query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Returns the last gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(
long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGDFTendersByUserId_Last(
supplierId, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"String getSupplierID();",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public String getLastReport()\n {\n return null;\n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public java.lang.String getLastChgBy() {\n\t\treturn lastChgBy;\n\t}",
"public String getSupplier() {\n return supplier;\n }",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"long getLastBonusTicketDate();",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public jkt.hms.masters.business.Users getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public jkt.hms.masters.business.Users getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public jkt.hms.masters.business.Users getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public String supplierList(SupplierDetails s);",
"@Override\n\tpublic FinanceData getLastData() {\n\t\treturn list_fr.get(0);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public String getLastP() {\n\t\treturn lastFieldP.getText();\n\t}",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public T getLast(){\n\treturn _end.getCargo();\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public process get_last() {\n\t\treturn queue.getLast();\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"public String getLastupdateby() {\n return lastupdateby;\n }",
"public HistoryEntry getLastEntry() {\n\t\t\treturn null;\n\t\t}",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public List<Info> getLastInfo() {\n\t\treturn dao.getLastInfo();\n\t}",
"public String extractinggroupmainid()\r\n\t{\r\n\t\tSystem.out.println(\"welcome to extractinggrouptempid\");\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsgroupcode;\r\n\t\t\r\n\t\tJSONArray getbookingsarray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tint l = getbookingsarray.length();\r\n\t\tSystem.out.println(\"length\"+l);\r\n\t\t\r\n\t\tString getgrouptempid = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\").getJSONObject(l-2).getJSONObject(\"group\").getString(\"id\");\r\n\t\tSystem.out.println(getgrouptempid);\r\n\t\t\r\n\t\tSystem.out.println(getbookingsarray);\r\n\t\t\r\n\t\t//String groupcode = \"hi\";\r\n\t\t\r\n\t\tSystem.out.println(\"group temp id:\"+getgrouptempid);\r\n\t\tgetGroupTempID = getgrouptempid;\r\n\t\treturn getgrouptempid;\r\n\t}",
"public String getLastItem();",
"public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}",
"@RequestMapping(path = \"/last24hDeliveredItems\", method = RequestMethod.GET)\n public List<DeliveredItem> getLast24hDeliveredItems() {\n Query queryObject = new Query(\"Select * from delivery_item\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<DeliveredItem> deliveredItemList = resultMapper\n .toPOJO(queryResult, DeliveredItem.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return deliveredItemList.stream().filter(deliveredItem -> instantIsBetweenDates(deliveredItem.getTime(), start, stop)).collect(Collectors.toList());\n }",
"@Override\n\tpublic LocalRichInfo fetchByemailReqBfcInfo_Last(boolean inStage,\n\t\tString email, OrderByComparator<LocalRichInfo> orderByComparator) {\n\t\tint count = countByemailReqBfcInfo(inStage, email);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<LocalRichInfo> list = findByemailReqBfcInfo(inStage, email,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"@RequestMapping(path = \"/last24hDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getLast24hDeliveryIssues() {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tSystem.out.println(\"queryResult : \" + queryResult);\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\tLocalDateTime stop = LocalDateTime.now().minusHours(0);\n\t\tLocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n\t\treturn deliveryIssueList.stream().filter(deliveryIssue -> instantIsBetweenDates(deliveryIssue.getTime(), start, stop)).collect(Collectors.toList());\n\t}",
"PartyType getFinalDeliveryParty();",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public String getLast()\n {\n return lastItem;\n }",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"public static Optional<Student> getStudentWithHighestGpa() {\n\t\treturn StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(maxBy(Comparator.comparing(Student::getGpa)));\n\t}",
"private Request findLastRequest(Set<FeedProvider> provider, Map<Request,Set<FeedProvider>> lastRequests) {\n Request r = null;\n for (Entry<Request, Set<FeedProvider>> entry:lastRequests.entrySet()) {\n if (entry.getValue() == provider) {\n r = entry.getKey();\n break;\n }\n }\n \n return r;\n }",
"public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"@Override\n\tpublic SendRecord getLastExcelTp(String vosId) {\n\t\tSession ss =sf.getCurrentSession();\n\t\tString hql=\"from SendRecord sr where sr.vosId=:vosId Order by sr.sendTime desc\";\n\t\tQuery query =ss.createQuery(hql);\n\t\tquery.setParameter(\"vosId\", vosId);\n\t\t\n\t\tquery.setMaxResults(1);// \n\t\t\n\t\tSendRecord sr=(SendRecord)query.uniqueResult();\n\t\treturn sr;\n\t}",
"public List<Tupel<Artist, Integer>> getLastReleaseDateOfEachArtist();",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }",
"@Override\r\n\tpublic int findMaxSaleRecordID(int promoterId) {\n\t\treturn iImportSalesRecordDao.findMaxSaleRecordID(promoterId);\r\n\t}",
"public String getLastEmailedDateString() {\r\n return this.lastEmailedDateString;\r\n }",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n\tpublic List<SupplierView> getSupplierDistinctName() {\n\t\tString sql=\"SELECT DISTINCT(s.supplier_name) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}",
"public String getSupplierCommodity() {\n return supplierCommodity;\n }",
"public String getLastC() {\n\t\treturn lastFieldC.getText();\n\t}",
"public Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }",
"@Override\n //TODO lambda\n public int lastFieldLine() {\n int max = -1;\n for (int i : lineToField.keySet()) {\n if (i > max) {\n max = i;\n }\n }\n return max;\n }",
"public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }",
"@RequestMapping(value = \"/spending\", method = RequestMethod.GET)\n public List<SpendingCustomer> highestSpendingCustomers() {\n return customerRepository.highestSpenders();\n }",
"protected String getHighestCrest(int option, String date) {\n String buffer = null;\n String where = null;\n\n /* Create the query */\n String query = \"select stage, datcrst from crest\";\n\n /* Create the where clause from the desired option. */\n if (option == E19_GAGE_READING_CREST) {\n where = \" where lid = '\" + lid + \"' and hw is null \";\n } else if (option == E19_HIGH_WATERMARKS_CREST) {\n where = \" where lid = '\" + lid + \"' and hw = 'X' \";\n } else if (option == E19_TIME_CREST) {\n where = \" where lid = '\" + lid + \"' and datcrst >= '\" + date + \"'\";\n }\n\n where += \" order by stage desc \";\n\n /* Create the return string and return. */\n ArrayList<Object[]> rs = TextReportDataManager.getInstance()\n .getCrest(query + where);\n\n if ((rs != null) && (rs.size() > 0)) {\n Object[] oa = rs.get(0); // get the first record\n buffer = String.format(\"%s %10s\", oa[0],\n sdf.format((Date) oa[1]));\n }\n\n return buffer;\n }",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public String findHighestScorers() {\n ArrayList<String> names = new ArrayList<String>();\n String theirNames = \"\";\n int highest = findHighestScore();\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) == 0) {\n //note that each quiz taker's arraylist of scores is already sorted in descending order post-constructor\n boolean alreadyThere = false;\n for(String name: names) {\n if(name.equals(allQuizTakers.get(i).getName())) {\n alreadyThere = true;\n }\n }\n if (!alreadyThere) {\n theirNames += allQuizTakers.get(i).getName() + \" \";\n names.add(allQuizTakers.get(i).getName());\n }\n }\n }\n return theirNames;\n }",
"public long getLastBonusTicketDate() {\n return lastBonusTicketDate_;\n }",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}"
]
| [
"0.6845128",
"0.631901",
"0.59418875",
"0.58359283",
"0.5813405",
"0.5690324",
"0.564151",
"0.54413617",
"0.5392697",
"0.5378167",
"0.537175",
"0.53413993",
"0.53084594",
"0.53061146",
"0.52237064",
"0.51834476",
"0.51817185",
"0.5158278",
"0.5096941",
"0.50368553",
"0.50011665",
"0.49933112",
"0.49537694",
"0.49537694",
"0.48858204",
"0.4878741",
"0.48782402",
"0.48701298",
"0.48275158",
"0.48217228",
"0.48216262",
"0.47942618",
"0.47869843",
"0.47869843",
"0.47869843",
"0.47600868",
"0.4734826",
"0.4714418",
"0.46983638",
"0.46822044",
"0.46753815",
"0.46600315",
"0.46459284",
"0.46113208",
"0.46062577",
"0.459023",
"0.45880762",
"0.45697382",
"0.45660734",
"0.45456952",
"0.45098203",
"0.44983715",
"0.449458",
"0.44700533",
"0.44661626",
"0.44651103",
"0.44530013",
"0.4443621",
"0.44415453",
"0.4429702",
"0.441092",
"0.44036353",
"0.43995947",
"0.4395077",
"0.43945062",
"0.4393661",
"0.43914005",
"0.43822682",
"0.43801853",
"0.43793508",
"0.4379142",
"0.4378976",
"0.43781742",
"0.43764108",
"0.4372944",
"0.4357709",
"0.43520463",
"0.4348777",
"0.43445888",
"0.43408695",
"0.4335965",
"0.43334255",
"0.43292397",
"0.4318214",
"0.43145967",
"0.43088686",
"0.4303186",
"0.4302108",
"0.42996168",
"0.42996168",
"0.42996168",
"0.42996168",
"0.42996168",
"0.42969257",
"0.42916653",
"0.42899373",
"0.4289511",
"0.4288949",
"0.42870688",
"0.4285722"
]
| 0.60601985 | 2 |
Returns the last gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(
long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {
return getPersistence().fetchByGDFTendersByUserId_Last(
supplierId, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"String getSupplierID();",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public String getLastReport()\n {\n return null;\n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public java.lang.String getLastChgBy() {\n\t\treturn lastChgBy;\n\t}",
"public String getSupplier() {\n return supplier;\n }",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"long getLastBonusTicketDate();",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public jkt.hms.masters.business.Users getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public jkt.hms.masters.business.Users getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public jkt.hms.masters.business.Users getLastChgBy () {\n\t\treturn lastChgBy;\n\t}",
"public String supplierList(SupplierDetails s);",
"@Override\n\tpublic FinanceData getLastData() {\n\t\treturn list_fr.get(0);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public String getLastP() {\n\t\treturn lastFieldP.getText();\n\t}",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public T getLast(){\n\treturn _end.getCargo();\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public process get_last() {\n\t\treturn queue.getLast();\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"public String getLastupdateby() {\n return lastupdateby;\n }",
"public HistoryEntry getLastEntry() {\n\t\t\treturn null;\n\t\t}",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public List<Info> getLastInfo() {\n\t\treturn dao.getLastInfo();\n\t}",
"public String extractinggroupmainid()\r\n\t{\r\n\t\tSystem.out.println(\"welcome to extractinggrouptempid\");\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsgroupcode;\r\n\t\t\r\n\t\tJSONArray getbookingsarray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tint l = getbookingsarray.length();\r\n\t\tSystem.out.println(\"length\"+l);\r\n\t\t\r\n\t\tString getgrouptempid = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\").getJSONObject(l-2).getJSONObject(\"group\").getString(\"id\");\r\n\t\tSystem.out.println(getgrouptempid);\r\n\t\t\r\n\t\tSystem.out.println(getbookingsarray);\r\n\t\t\r\n\t\t//String groupcode = \"hi\";\r\n\t\t\r\n\t\tSystem.out.println(\"group temp id:\"+getgrouptempid);\r\n\t\tgetGroupTempID = getgrouptempid;\r\n\t\treturn getgrouptempid;\r\n\t}",
"public String getLastItem();",
"public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}",
"@RequestMapping(path = \"/last24hDeliveredItems\", method = RequestMethod.GET)\n public List<DeliveredItem> getLast24hDeliveredItems() {\n Query queryObject = new Query(\"Select * from delivery_item\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<DeliveredItem> deliveredItemList = resultMapper\n .toPOJO(queryResult, DeliveredItem.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return deliveredItemList.stream().filter(deliveredItem -> instantIsBetweenDates(deliveredItem.getTime(), start, stop)).collect(Collectors.toList());\n }",
"@Override\n\tpublic LocalRichInfo fetchByemailReqBfcInfo_Last(boolean inStage,\n\t\tString email, OrderByComparator<LocalRichInfo> orderByComparator) {\n\t\tint count = countByemailReqBfcInfo(inStage, email);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<LocalRichInfo> list = findByemailReqBfcInfo(inStage, email,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"@RequestMapping(path = \"/last24hDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getLast24hDeliveryIssues() {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tSystem.out.println(\"queryResult : \" + queryResult);\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\tLocalDateTime stop = LocalDateTime.now().minusHours(0);\n\t\tLocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n\t\treturn deliveryIssueList.stream().filter(deliveryIssue -> instantIsBetweenDates(deliveryIssue.getTime(), start, stop)).collect(Collectors.toList());\n\t}",
"PartyType getFinalDeliveryParty();",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public String getLast()\n {\n return lastItem;\n }",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"public static Optional<Student> getStudentWithHighestGpa() {\n\t\treturn StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(maxBy(Comparator.comparing(Student::getGpa)));\n\t}",
"private Request findLastRequest(Set<FeedProvider> provider, Map<Request,Set<FeedProvider>> lastRequests) {\n Request r = null;\n for (Entry<Request, Set<FeedProvider>> entry:lastRequests.entrySet()) {\n if (entry.getValue() == provider) {\n r = entry.getKey();\n break;\n }\n }\n \n return r;\n }",
"public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"@Override\n\tpublic SendRecord getLastExcelTp(String vosId) {\n\t\tSession ss =sf.getCurrentSession();\n\t\tString hql=\"from SendRecord sr where sr.vosId=:vosId Order by sr.sendTime desc\";\n\t\tQuery query =ss.createQuery(hql);\n\t\tquery.setParameter(\"vosId\", vosId);\n\t\t\n\t\tquery.setMaxResults(1);// \n\t\t\n\t\tSendRecord sr=(SendRecord)query.uniqueResult();\n\t\treturn sr;\n\t}",
"public List<Tupel<Artist, Integer>> getLastReleaseDateOfEachArtist();",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }",
"@Override\r\n\tpublic int findMaxSaleRecordID(int promoterId) {\n\t\treturn iImportSalesRecordDao.findMaxSaleRecordID(promoterId);\r\n\t}",
"public String getLastEmailedDateString() {\r\n return this.lastEmailedDateString;\r\n }",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n\tpublic List<SupplierView> getSupplierDistinctName() {\n\t\tString sql=\"SELECT DISTINCT(s.supplier_name) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}",
"public String getSupplierCommodity() {\n return supplierCommodity;\n }",
"public String getLastC() {\n\t\treturn lastFieldC.getText();\n\t}",
"public Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }",
"@Override\n //TODO lambda\n public int lastFieldLine() {\n int max = -1;\n for (int i : lineToField.keySet()) {\n if (i > max) {\n max = i;\n }\n }\n return max;\n }",
"public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public java.util.Date getLastChgDate () {\n\t\treturn lastChgDate;\n\t}",
"public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }",
"@RequestMapping(value = \"/spending\", method = RequestMethod.GET)\n public List<SpendingCustomer> highestSpendingCustomers() {\n return customerRepository.highestSpenders();\n }",
"protected String getHighestCrest(int option, String date) {\n String buffer = null;\n String where = null;\n\n /* Create the query */\n String query = \"select stage, datcrst from crest\";\n\n /* Create the where clause from the desired option. */\n if (option == E19_GAGE_READING_CREST) {\n where = \" where lid = '\" + lid + \"' and hw is null \";\n } else if (option == E19_HIGH_WATERMARKS_CREST) {\n where = \" where lid = '\" + lid + \"' and hw = 'X' \";\n } else if (option == E19_TIME_CREST) {\n where = \" where lid = '\" + lid + \"' and datcrst >= '\" + date + \"'\";\n }\n\n where += \" order by stage desc \";\n\n /* Create the return string and return. */\n ArrayList<Object[]> rs = TextReportDataManager.getInstance()\n .getCrest(query + where);\n\n if ((rs != null) && (rs.size() > 0)) {\n Object[] oa = rs.get(0); // get the first record\n buffer = String.format(\"%s %10s\", oa[0],\n sdf.format((Date) oa[1]));\n }\n\n return buffer;\n }",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public String findHighestScorers() {\n ArrayList<String> names = new ArrayList<String>();\n String theirNames = \"\";\n int highest = findHighestScore();\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) == 0) {\n //note that each quiz taker's arraylist of scores is already sorted in descending order post-constructor\n boolean alreadyThere = false;\n for(String name: names) {\n if(name.equals(allQuizTakers.get(i).getName())) {\n alreadyThere = true;\n }\n }\n if (!alreadyThere) {\n theirNames += allQuizTakers.get(i).getName() + \" \";\n names.add(allQuizTakers.get(i).getName());\n }\n }\n }\n return theirNames;\n }",
"public long getLastBonusTicketDate() {\n return lastBonusTicketDate_;\n }",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}"
]
| [
"0.631901",
"0.60601985",
"0.59418875",
"0.58359283",
"0.5813405",
"0.5690324",
"0.564151",
"0.54413617",
"0.5392697",
"0.5378167",
"0.537175",
"0.53413993",
"0.53084594",
"0.53061146",
"0.52237064",
"0.51834476",
"0.51817185",
"0.5158278",
"0.5096941",
"0.50368553",
"0.50011665",
"0.49933112",
"0.49537694",
"0.49537694",
"0.48858204",
"0.4878741",
"0.48782402",
"0.48701298",
"0.48275158",
"0.48217228",
"0.48216262",
"0.47942618",
"0.47869843",
"0.47869843",
"0.47869843",
"0.47600868",
"0.4734826",
"0.4714418",
"0.46983638",
"0.46822044",
"0.46753815",
"0.46600315",
"0.46459284",
"0.46113208",
"0.46062577",
"0.459023",
"0.45880762",
"0.45697382",
"0.45660734",
"0.45456952",
"0.45098203",
"0.44983715",
"0.449458",
"0.44700533",
"0.44661626",
"0.44651103",
"0.44530013",
"0.4443621",
"0.44415453",
"0.4429702",
"0.441092",
"0.44036353",
"0.43995947",
"0.4395077",
"0.43945062",
"0.4393661",
"0.43914005",
"0.43822682",
"0.43801853",
"0.43793508",
"0.4379142",
"0.4378976",
"0.43781742",
"0.43764108",
"0.4372944",
"0.4357709",
"0.43520463",
"0.4348777",
"0.43445888",
"0.43408695",
"0.4335965",
"0.43334255",
"0.43292397",
"0.4318214",
"0.43145967",
"0.43088686",
"0.4303186",
"0.4302108",
"0.42996168",
"0.42996168",
"0.42996168",
"0.42996168",
"0.42996168",
"0.42969257",
"0.42916653",
"0.42899373",
"0.4289511",
"0.4288949",
"0.42870688",
"0.4285722"
]
| 0.6845128 | 0 |
Returns the gdf tender submission detailses before and after the current gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails[]
findByGDFTendersByUserId_PrevAndNext(
long tenderSubRefID, long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGDFTendersByUserId_PrevAndNext(
tenderSubRefID, supplierId, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public List<TblPurchaseOrderDetail>getAllDataPurchaseOrderDetail(TblSupplier supplier,TblPurchaseOrder po,RefPurchaseOrderStatus poStatus,TblItem item,Date startDate,Date endDate,TblPurchaseRequest mr);",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public String supplierList(SupplierDetails s);",
"@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public List<ModelingSubmission> modelingSubmissionsForComparison(ModelingExercise exerciseWithParticipationsAndSubmissions) {\n return exerciseWithParticipationsAndSubmissions.getStudentParticipations().parallelStream().map(Participation::findLatestSubmission).filter(Optional::isPresent)\n .map(Optional::get).filter(submission -> submission instanceof ModelingSubmission).map(submission -> (ModelingSubmission) submission).collect(toUnmodifiableList());\n }",
"public void showBeforeAfterLocation() {\n\t\tfor (Integer key : afterLoc.keySet()) {\n\t\t\tdouble[] ary = afterLoc.get(key);\n\n\t\t\tString locationA = \"\";\n\t\t\tfor (int i = 0; i < ary.length; i++) {\n\t\t\t\tlocationA += Config.roundTwoDecimals(ary[i]) + \"\\t\";\n\t\t\t}\n\n\t\t\tdouble[] ary2 = beforeLoc.get(key);\n\n\t\t\tString locationB = \"\";\n\t\t\tfor (int i = 0; i < ary2.length; i++) {\n\t\t\t\tlocationB += Config.roundTwoDecimals(ary2[i]) + \"\\t\";\n\t\t\t}\n\t\t\tCaller.log(\" AFTER: \" + key + \" | \" + locationA + \"\\t|\" + attractors.get(key).count);\n\t\t}\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"private String getGeofenceTrasitionDetails(int geoFenceTransition, List<Geofence> triggeringGeofences) {\n ArrayList<String> triggeringGeofencesList = new ArrayList<>();\n for (Geofence geofence : triggeringGeofences) {\n triggeringGeofencesList.add(geofence.getRequestId());\n }\n\n String status = null;\n if (geoFenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER)\n status = \"Entering \";\n else if (geoFenceTransition == Geofence.GEOFENCE_TRANSITION_EXIT)\n status = \"Exiting \";\n return status + TextUtils.join(\", \", triggeringGeofencesList);\n }",
"Date getPriorDate();",
"private String getGeofenceTrasitionDetails(int geoFenceTransition, List<Geofence> triggeringGeofences) {\n ArrayList<String> triggeringGeofencesList = new ArrayList<>();\n for (Geofence geofence : triggeringGeofences) {\n triggeringGeofencesList.add(geofence.getRequestId());\n }\n\n String status = null;\n if (geoFenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER)\n status = \"Entering Geofence\";\n else if (geoFenceTransition == Geofence.GEOFENCE_TRANSITION_EXIT)\n status = \"Exiting Geofence\";\n return status + TextUtils.join(\", \", triggeringGeofencesList);\n }",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public int compare(Submission lhs, Submission rhs) {\n\t\tint firstCriteria = lhs.getStatus().compareTo(rhs.getStatus());\n\t\tif (firstCriteria != 0)\n\t\t\treturn firstCriteria;\n\t\treturn lhs.getProposedDate().compareTo(rhs.getProposedDate());\n\t}",
"private void generateMarkedDates() {\n this.markedDates = new HashMap<>();\n for (Task t : logic.getAddressBook().getTaskList()) {\n\n if (markedDates.containsKey(t.getStartDate().getDate())) {\n if (t.getPriority().getPriorityLevel() > markedDates.get(t.getStartDate().getDate())) {\n markedDates.put(t.getStartDate().getDate(), t.getPriority().getPriorityLevel());\n }\n } else {\n markedDates.put(t.getStartDate().getDate(), t.getPriority().getPriorityLevel());\n }\n\n if (markedDates.containsKey(t.getEndDate().getDate())) {\n if (t.getPriority().getPriorityLevel() > markedDates.get(t.getEndDate().getDate())) {\n markedDates.put(t.getEndDate().getDate(), t.getPriority().getPriorityLevel());\n }\n } else {\n markedDates.put(t.getEndDate().getDate(), t.getPriority().getPriorityLevel());\n }\n }\n }",
"protected void sortPostsByProximityTo() {\n\t\tIntent intent = new Intent(this, LocationActivity.class);\n\t\tintent.putExtra(\"previousLocation\", ActiveUserModel.getInstance()\n\t\t\t\t.getUser().getLocation());\n\t\tstartActivityForResult(intent, GET_LOCATION);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"private String E19History() {\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_HISTORY + \"\\n\\n\");\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int loop = 0;\n int needed = 0;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 3);\n\n for (Pub pub : data.getPubList()) {\n String beginDate = sdf.format(pub.getBegin());\n String endDate = \" \";\n if (pub.getEnd() != null) {\n endDate = sdf.format(pub.getEnd());\n }\n String tmp1 = String.format(\" %-25s %7s%10s %10s\\n\",\n pub.getPpub(), \" \", beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n for (Gage gage : gageList) {\n String beginDate = sdf.format(gage.getBegin());\n String endDate = \" \";\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n }\n\n String tmp1 = String.format(\n \" %-11s %14s%-11s %10s %10s\\n\", gage.getType(),\n \" \", gage.getOwner(), beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n\n for (Datum datum : data.getDatumList()) {\n String elevation = \" \";\n if (datum.getElevation() != -999) {\n elevation = String.format(\"%8.3f\", datum.getElevation());\n }\n\n String date = sdf.format(datum.getDate());\n\n String tmp1 = String.format(\" %s %24s%10s\\n\", elevation,\n \" \", date);\n\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);// ????\n\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n avail = available + count1;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(new Date()), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"@Transactional\r\n\tpublic List<String> getTasks(String assignee) {\r\n\t\tString assign = ORDER_ASSIGNEE;\r\n\t\tlogger.info(\"Received order to getTasks, assignee : \" + assign);\r\n\t\tList<Task> tasks = taskService.createTaskQuery().taskCandidateGroup(assign).list();\r\n\r\n\t\tList<String> orders = tasks.stream().map(task -> {\r\n\t\t\tMap<String, Object> variables = taskService.getVariables(task.getId());\r\n\t\t\treturn (String) variables.get(\"orderid\");\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tlogger.info(\"orderid(s) : \" + orders.toString());\r\n\t\treturn orders;\r\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"private String E19Gages() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 68;\n String[] crit1 = null;\n String[] crit2 = null;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 2);\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_GAGES + \"\\n\\n\");\n buffer.append(\n \" DCP TELEM\\n\\n\");\n\n buffer.append(String.format(\n \" NESS ID: %-9s %12s TYPE OF TELEMETRY: %s\\n\",\n data.getDcp().getGoes(), \" \", data.getTelem().getType()));\n buffer.append(String.format(\n \" OWNER: %-11s %12s OWNER: %s\\n\",\n data.getDcp().getOwner(), \" \", data.getTelem().getOwner()));\n buffer.append(String.format(\n \" REPORT TIME: %-9s %12s PHONE NUMBER: %s\\n\",\n data.getDcp().getRptime(), \" \", data.getTelem().getPhone()));\n buffer.append(String.format(\n \" INTERVAL: %-5s %12s INTERVAL: %s\\n\",\n data.getDcp().getRptfreq(), \" \", data.getTelem().getRptFreq()));\n\n // Create the first criteria\n int dcpNumCols = 20;\n int dcpLeftMargin = 0;\n\n if (data.getDcp().getCriteria() != null) {\n crit1 = TextUtil.wordWrap(data.getDcp().getCriteria(), dcpNumCols,\n dcpLeftMargin);\n }\n\n // Create the second criteria\n int telmNumCols = 15;\n int telmLeftMargin = 0;\n\n if (data.getTelem().getCriteria() != null) {\n crit2 = TextUtil.wordWrap(data.getTelem().getCriteria(),\n telmNumCols, telmLeftMargin);\n }\n\n int crit1Size = 0;\n int crit2Size = 0;\n\n // formatting for line 1\n if (crit1 != null) {\n buffer.append(String.format(\" CRITERIA: %-20s %12s\", crit1[0],\n \" \"));\n crit1Size = crit1.length - 1;\n }\n\n if (crit2 != null) {\n buffer.append(String.format(\"CRITERIA: %-20s\\n\", crit2[0]));\n crit2Size = crit2.length - 1;\n }\n\n int index = 1;\n\n // formatting for all additional lines\n while ((crit1Size > 0) || (crit2Size < 0)) {\n if (crit1Size > 0) {\n buffer.append(String.format(\" %-20s %12s\",\n crit1[index], \" \"));\n crit1Size--;\n }\n\n if (crit2Size > 0) {\n buffer.append(String.format(\" %-20s\", crit2[index]));\n crit2Size--;\n buffer.append(\"\\n\");\n }\n index++;\n }\n\n String cost = \" \";\n if (data.getTelem().getCost() > 0) {\n cost = String.format(\"%-7.2f\", data.getTelem().getCost());\n }\n\n buffer.append(String.format(\n \" %18s PAYOR/COST OF LINE: %s / $ %s\\n\\n\",\n \" \", data.getTelem().getPayor(), cost));\n\n int count1 = countNewlines(buffer.toString());\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n int loop = 0;\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int needed = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n\n for (Gage gage : gageList) {\n // Get the remark field\n // Compute the number of lines needed for this record\n String[] lines = TextUtil.wordWrap(gage.getRemark(), numCols, 0);\n needed = (countNewlines(gage.getRemark()) + 1) + 1;\n\n if (needed <= avail) {\n // Formatting for line 1\n String remarkLine = \"\";\n\n if (lines != null) {\n remarkLine = lines[0];\n }\n String beginDate = \" \";\n String endDate = \" \";\n\n if (gage.getBegin() != null) {\n\n beginDate = sdf.format(gage.getBegin());\n }\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n\n }\n\n buffer.append(String.format(\n \" %-11s %-11s %-11s %10s %10s %-23s\\n\",\n gage.getType(), gage.getOwner(), gage.getMaint(),\n beginDate, endDate, remarkLine));\n\n // Formatting for all additional lines\n if ((lines != null) && (lines.length > 0)) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) {\n buffer.append(indent + lines[i] + \"\\n\");\n }\n }\n }\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n for (int i = 0; i < (((getLinesPerPage() * loop)\n + getFooterPosition())\n - countNewlines(buffer.toString())); i++) {\n buffer.append(\"\\n\");\n }\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_GAGES, \"GAGES\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n // Reset available value & continue from top of loop.\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_GAGES, \"GAGES\", null,\n E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"@Override\r\n\tpublic List<DispatchAnalysis> getDispatchDetailsBetween(Date fromDate, Date toDate)\t{\r\n\t\t\r\n\t\tList<DispatchAnalysis> dispatchAnalysisDetails=new ArrayList<>();\r\n\t\tDispatchAnalysis dispatchAnalysis=new DispatchAnalysis();\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\tSystem.out.println(orderDetails);\r\n\t\t//for each order placed, get shipment details\r\n\t\tfor(Order order:orderDetails)\t{\r\n\t\t\tList<Shipment> shipmentDetails=order.getShipments();\r\n\t\t\tSystem.out.println(shipmentDetails);\r\n\t\t\t\r\n\t\t\tfor(Shipment shipment:shipmentDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\tc.setTime(order.getOrderDate());\r\n\t\t\t\tc.add(c.DAY_OF_MONTH, 1);\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysis.setProductName(shipment.getProduct().getProductName());\r\n\t\t\t\tdispatchAnalysis.setMerchantName(shipment.getProduct().getInventory().getMerchant().getMerchantName());\r\n\t\t\t\t//expected dispatch date of the product is one day after order placed\r\n\t\t\t\tdispatchAnalysis.setExpectedDispatchDate(c.getTime());\r\n\t\t\t\tdispatchAnalysis.setActualDispatchDate(shipment.getDispatchDate());\r\n\t\t\t\tdispatchAnalysis.setDeliveryDate(shipment.getDeliveryDate());\r\n\t\t\t\t\r\n\t\t\t\tdispatchAnalysisDetails.add(dispatchAnalysis);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dispatchAnalysisDetails;\r\n\t}",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public String getTravelRequisitionHistoryList() {\n\t\t// default method invoked when this action is called - struts framework rule\n\t\tif (logger.isDebugEnabled())\n\t\t\tlogger.debug(\"inside expense history action\");\n\t\tString status = \"\";\n\t\ttreqMaster = (TravelReqMasters) session.get(IConstants.TRAVEL_REQUISITION_SESSION_DATA);\n\n\t\tif (treqMaster == null) {\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t} else {\n\t\t\ttreqHistoryList = treqService.getTravelRequisitionHistory(treqMaster.getTreqeIdentifier().getTreqeIdentifier());\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t\tstatus = treqMaster.getStatus();\n\t\t\tString nextActionCode = null;\n\t\t\tnextActionCode = treqService.getNextActionCode(treqMaster);\n\t\t\tif (nextActionCode != null) {\n\t\t\t\tsetStatus(treqService.getRemainingApprovalPaths(\n\t\t\t\t\t\ttreqMaster.getTreqmIdentifier(), getUserSubject()));\n\t\t\t}\t\t\t\n\t\t\telse\n\t\t\t\tif (status != null) {\n\t\t\t\t\tif (status.equals(IConstants.APPROVED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.EXTRACTED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.HOURS_ADJUSTMENT_SENT)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_APPROVED_EXTRACTED_HOURS_ADJUSTMENT_SENT);\n\t\t\t\t\t} else if (status.equals(IConstants.PROCESSED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_PROCESSED);\n\t\t\t\t\t} else if (status.equals(IConstants.REJECTED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_REJECTED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_NEEDSTOBESUBMITTED);\n\t\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn IConstants.SUCCESS;\n\t}",
"public int getFullfillment() {\r\n return fullfillment;\r\n }",
"public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic int compare(GoodsSpecification gs1, GoodsSpecification gs2) {\n\t\t\t\t\t\t\t\treturn gs1.getSequence() - gs2.getSequence();\r\n\t\t\t\t\t\t\t}",
"Record getShortTermCompEffAndExpDates(Record inputRecord);",
"public String processOrder() {\n notifyAllObservers();\n\n return getOrderReport();\n }",
"private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"Ordering<Part> getOrdering();",
"@Override\n\tpublic int getOrder() {\n\t\treturn CoreEvent.DEFAULT_ORDER - 1;\n\t}",
"public int compare(Entity e0, Entity e1) { // compares 2 entities\r\n\t\t\tif (e1.y < e0.y) return +1; // If the y position of the first entity is less (higher up) than the second entity, then it will be moved up in sorting.\r\n\t\t\tif (e1.y > e0.y) return -1; // If the y position of the first entity is more (lower) than the second entity, then it will be moved down in sorting.\r\n\t\t\treturn 0; // ends the method\r\n\t\t}",
"public int compare(Employee e1,Employee e2){\n\t\t\t\t\treturn e1.getNumber()-e2.getNumber();\r\n\t\t\t\t}",
"public String empleadosPorPrioridad(ArrayList<Empleado> prioridad){\n String aux = \"los empleados son: \\n\";\n for (int i = 0; i < prioridad.size(); i++) {\n aux += \"nombre: \" + prioridad.get(i).getNombre() + \" -\" +\" Identificacion: \"+ prioridad.get(i).getIdentificacion() \n + \"\\n\";\n }\n return aux;\n }",
"@Test\n\tpublic void testAssociatorSort() throws Exception {\n\t\t// add out of order to events list\n\t\tJsonEventInfoComparatorTest comparatorTest = new JsonEventInfoComparatorTest();\n\t\tcomparatorTest.setup();\n\t\ttestService.events.add(comparatorTest.farEvent);\n\t\ttestService.events.add(comparatorTest.fartherEvent);\n\t\ttestService.events.add(comparatorTest.closeEvent);\n\n\t\tJsonEventInfo reference = new JsonEventInfo(comparatorTest.referenceEvent);\n\t\tList<JsonEventInfo> sorted = testAssociator.getSortedNearbyEvents(\n\t\t\t\treference, null);\n\t\tAssert.assertEquals(\"closest event first\",\n\t\t\t\tcomparatorTest.closeEvent, sorted.get(0).getEvent());\n\t\tAssert.assertEquals(\"farther event last\",\n\t\t\t\tcomparatorTest.fartherEvent,\n\t\t\t\tsorted.get(testService.events.size() - 1).getEvent());\n\n\t\tSystem.err.println(testAssociator.formatOutput(reference, null, sorted));\n\t}",
"public String showTodayOrderPassengerDetails(){\n\t\tReportData selectedReportItem=flightOrderDao.getReportDetailsByRowId(CurrentReportdata.getId());\n\t\t//logger.info(\"showPassengerDetails--------------------flightReportPage.getId()=\"+CurrentReportdata.getId());\n\t\t//logger.info(\"showPassengerDetails-------------------selectedReportItem=\"+selectedReportItem);\n\n\t\tif(selectedReportItem!=null){\n\t\t\tCurrentReportdata = selectedReportItem;\n\t\t}\n\n\n\t\t/*ReportData newReportData=flightOrderDao.getReportDetailsByRowId(selectedReportItem.getId());\n\t\tif(newReportData!=null){\n\t\t\tCurrentReportdata=newReportData;\n\t\t}*/\n\t\t//agency data-----------------end--------------------------\n\t\tReportData flightOrderCustomer = flightOrderDao.getFlightOrderCustomerDetail(selectedReportItem.getId());\n\t\tFlightOrderRow \tflightOrderRow = flightOrderDao.getFlightOrderRowDataById(selectedReportItem.getId());\n\n\n\t\tfor(int i=0;i<flightOrderCustomer.getFlightOrderCustomerList().size();i++){\n\t\t\tFlightOrderCustomer customer=flightOrderCustomer.getFlightOrderCustomerList().get(i);\n\t\t\t//for(FlightOrderCustomerPriceBreakup PriceBreakup:flightOrderCustomer.getFlightOrderCustomerPriceBreakup()){\n\t\t\tFlightOrderCustomerPriceBreakup PriceBreakup=flightOrderCustomer.getFlightOrderCustomerPriceBreakup().get(i);\n\t\t\t//logger.info(\"customer.getId()-----\"+customer.getId()+\"---PriceBreakup.getId()-------\"+PriceBreakup.getId());\n\n\n\t\t\tBigDecimal brakupMarkup=new BigDecimal(PriceBreakup.getMarkup());\n\t\t\t//\tBigDecimal procesiingFeee=new BigDecimal(\"0.00\");\n\n\n\t\t\tBigDecimal basePrice= PriceBreakup.getBaseFare().multiply(flightOrderRow.getApiToBaseExchangeRate());\n\t\t\tBigDecimal taxes= PriceBreakup.getTax().multiply(flightOrderRow.getApiToBaseExchangeRate()) ;\n\t\t\tBigDecimal totalBasePrice = basePrice.add(brakupMarkup);\n\t\t\tBigDecimal basePriceInBooking=totalBasePrice.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\tBigDecimal taxesInBooking=taxes.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\t//BigDecimal totalPrice=procesiingFeee.add(basePriceInBooking).add(taxesInBooking);//should be added later\n\n\t\t\tBigDecimal totalPriceInBooking=basePriceInBooking.add(taxesInBooking);\n\t\t\t//logger.info(\"totalPrice----in booking--------------------\"+totalPriceInBooking);\n\n\t\t\tReportData data = new ReportData();\n\t\t\tdata.setName(customer.getFirstName());\n\t\t\tdata.setSurname(customer.getLastName());\n\t\t\tdata.setGender(customer.getGender());\n\t\t\tdata.setMobile(customer.getMobile());\n\t\t\t//data.setPassportExpDate(customer.getPassportExpiryDate());\n\t\t\tdata.setPhone(customer.getPhone());\n\t\t\tdata.setPrice(basePriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setAgentCom(PriceBreakup.getMarkup());\n\t\t\tdata.setTotal(totalPriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\tdata.setTax(taxesInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setRoute(orderTripDetail.getOriginCode()+\"-\"+orderTripDetail.getDestinationCode());\n\t\t\tpassList.add(data);\n\t\t\t//sessionMap.put(\"passengerList\", passList);\n\t\t}\n\t\ttry {\n\t\t\tReportData companyWalletHistory=flightOrderDao.getWalletAmountTxStatementHistoryByUserId(selectedReportItem.getUserId(),selectedReportItem.getOrderId());\n\t\t\tList<WalletAmountTranferHistory> newWalletHistoryList=new ArrayList<WalletAmountTranferHistory>();\n\t\t\tif(companyWalletHistory!=null && companyWalletHistory.getWalletAmountTranferHistory()!=null){\n\t\t\t\tfor(WalletAmountTranferHistory history:companyWalletHistory.getWalletAmountTranferHistory()){\n\t\t\t\t\tif(history.getUserId()==Integer.parseInt(selectedReportItem.getUserId())){\n\t\t\t\t\t\tnewWalletHistoryList.add(history);\n\t\t\t\t\t\tcompanyWalletHistory.setWalletAmountTranferHistory(newWalletHistoryList); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(companyWalletHistory!=null){\n\t\t\t\ttxHistory=companyWalletHistory;\n\t\t\t}\n\t\t\tif(flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId())!=null){\n\t\t\t\tendUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId());\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\"(-----Exception----------)\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"private void getDetailedDebitAgingNONE(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n //Get and revert all updates made to all transactions from atDate to today.\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n EMCQuery settlementQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n settlementQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) > 0) {\n //Debit\n settlementQuery.addFieldAggregateFunction(\"debitSettled\", \"SUM\");\n settlementQuery.addAnd(\"debitTransRef\", agingLine.getTransRecordID());\n //When changing the following line, note that the customer statement and detailed aging reports will be affected.\n settlementQuery.addOrderBy(\"debitTransactionDate\");\n } else {\n //Credit\n settlementQuery.addFieldAggregateFunction(\"creditSettled\", \"SUM\");\n settlementQuery.addAnd(\"creditTransRef\", agingLine.getTransRecordID());\n //When changing the following line, note that the customer statement and detailed aging reports will be affected.\n settlementQuery.addOrderBy(\"creditTransactionDate\");\n }\n\n BigDecimal totalSettled = (BigDecimal) util.executeSingleResultQuery(settlementQuery, userData);\n\n if (totalSettled == null) {\n totalSettled = BigDecimal.ZERO;\n }\n\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) > 0) {\n //Debit\n agingLine.setBalance(agingLine.getBalance().add(totalSettled));\n } else {\n agingLine.setBalance(agingLine.getBalance().subtract(totalSettled));\n }\n }\n }\n }",
"@Override\r\n\tpublic List<DrankB> findCommodityByLater() {\n\t\treturn pageMapper.findCommodityByLater();\r\n\t}",
"public JsonArray getInvertoryOrdersByID(String supplierID) {\r\n\t\tJsonArray orders = new JsonArray();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT * FROM fuel_inventory_orders\" + \" WHERE supplierID = '\" + supplierID\r\n\t\t\t\t\t\t+ \"' AND orderStatus = 'SENT_TO_SUPPLIER' OR orderStatus = 'Supllied';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tstmt.executeQuery(query);\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tJsonObject order = new JsonObject();\r\n\t\t\t\t\torder.addProperty(\"orderID\", rs.getString(\"orderID\"));\r\n\t\t\t\t\torder.addProperty(\"fuelType\", rs.getString(\"fuelType\"));\r\n\t\t\t\t\torder.addProperty(\"fuelAmount\", rs.getString(\"fuelAmount\"));\r\n\t\t\t\t\torder.addProperty(\"supplierID\", rs.getString(\"supplierID\"));\r\n\t\t\t\t\torder.addProperty(\"stationID\", rs.getString(\"stationID\"));\r\n\t\t\t\t\torder.addProperty(\"orderStatus\", rs.getString(\"orderStatus\"));\r\n\t\t\t\t\torder.addProperty(\"reason\", rs.getString(\"reason\"));\r\n\t\t\t\t\torder.addProperty(\"totalPrice\", rs.getString(\"totalPrice\"));\r\n\t\t\t\t\torder.addProperty(\"orderDate\", rs.getString(\"orderDate\"));\r\n\t\t\t\t\torders.add(order);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn orders;\r\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic int compare(GoodsSpecification gs1,\r\n\t\t\t\t\t\t\t\t\tGoodsSpecification gs2) {\n\t\t\t\t\t\t\t\treturn gs1.getSequence() - gs2.getSequence();\r\n\t\t\t\t\t\t\t}",
"public List getEpIndepot(String suppliers) {\n\t\treturn getHibernateTemplate().find(\" from DIndepot a where a.SupplierId in \"+suppliers+\"\");\n\t}",
"public int compare(Employee e1,Employee e2){\n\t\t\t\treturn e1.getNumber()-e2.getNumber();\r\n\t\t\t}",
"@Override\n\tpublic String getAfterAny() {\n\t\treturn model.getAfterAny();\n\t}",
"private List<String> getGeofenceTransitionDetails(List<Geofence> triggeringGeofences) {\n List<String> geofenceRequestIds = new ArrayList<>();\n // Return the request ids of the triggered geofences\n for (Geofence geofence : triggeringGeofences) {\n geofenceRequestIds.add(geofence.getRequestId());\n }\n return geofenceRequestIds;\n }",
"public Object getITStandardsAndGuidelinesFeedbackActionTaskRecord() {\n return iTStandardsAndGuidelinesFeedbackActionTaskRecord;\n }",
"public List<DetailerCall> getDetailers() {\n if (detailers == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n DetailerCallDao targetDao = daoSession.getDetailerCallDao();\n List<DetailerCall> detailersNew = targetDao._queryTask_Detailers(uuid);\n synchronized (this) {\n if(detailers == null) {\n detailers = detailersNew;\n }\n }\n }\n return detailers;\n }",
"public RowIterator getSupplierSiteEO()\n {\n return (RowIterator)getAttributeInternal(SUPPLIERSITEEO);\n }",
"public void alignSelectedFurnitureOnBackSide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float [][] points = leadPiece.getPoints();\n Line2D backLine = new Line2D.Float(points [0][0], points [0][1], points [1][0], points [1][1]); \n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n alignPieceOfFurnitureAlongSides(alignedPiece.getPieceOfFurniture(), leadPiece, backLine, false, null, 0);\n }\n }\n });\n }",
"public String getOrderHistory() {\n\n\t\treturn getOrderHistory(\"\");\n\t}",
"private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public java.lang.String getBIndPrevAfcars()\r\n {\r\n return this._bIndPrevAfcars;\r\n }",
"@NotNull\n EntityIterable intersectSavingOrder(@NotNull final EntityIterable right);",
"private void orderMoreFromSupplier() {\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.setData(Uri.parse(\"mailTo:\"));\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, mSupplierEmail);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Order \" + mBrandEditText.getText().toString()\n + \" \" + mModelEditText.getText().toString());\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"Please ship a supply of \" + mQuantityEditText.getText().toString());\n\n if (emailIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(emailIntent);\n }\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"eventId\");\n FieldOrder.add(\"timestamp\");\n FieldOrder.add(\"type\");\n FieldOrder.add(\"username\");\n FieldOrder.add(\"fullMessage\");\n return FieldOrder;\n }",
"public static String getAchivements(int partnerId) {\n int size = lstEvents.size();\n // List<EventEntity> achievePartners = new ArrayList<>();\n List<EventEntity> allAchievement = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n EventEntity entity = lstEvents.get(i);\n // if (entity.isConcurrent()) {\n if (entity.getPartnerId() == 0 || entity.getPartnerId() == partnerId) {\n allAchievement.add(entity);\n }\n\n // if (entity.getPartnerId() == partnerId) {\n // achievePartners.add(entity);\n // onlyPartner = true;\n // }\n\n // }\n }\n\n List<EventEntity> retEvents;\n // if (onlyPartner) {\n // retEvents = achievePartners;\n // } else {\n retEvents = allAchievement;\n // }\n\n int retSize = retEvents.size();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < retSize; i++) {\n EventEntity achiveEntity = retEvents.get(i);\n if (achiveEntity.getGameId() >= 0) {\n sb.append(achiveEntity.getEventId()).append(AIOConstants.SEPERATOR_BYTE_1);\n sb.append(achiveEntity.getTittle()).append(AIOConstants.SEPERATOR_BYTE_2);\n }\n }\n\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }",
"private static Set<EMailAddress> getSequencingSampleTrackingRecipients(\n Collection<Sample> sequencingSamples)\n {\n assert sequencingSamples != null;\n\n final Set<EMailAddress> recipients = new HashSet<EMailAddress>();\n\n // Recipients are taken from properties of the sequencing sample.\n final Set<String> recipientPropertyTypeCodes = new HashSet<String>();\n recipientPropertyTypeCodes.add(CONTACT_PERSON_EMAIL);\n recipientPropertyTypeCodes.add(PRINCIPAL_INVESTIGATOR_EMAIL);\n recipientPropertyTypeCodes.add(CONTACT_DATA_MANAGER_EMAIL);\n\n for (Sample sequencingSample : sequencingSamples)\n {\n for (Map.Entry<String, String> space : recipientsBySpace.entrySet())\n {\n if (sequencingSample.getSpace().getCode().equals(space.getKey()))\n {\n String spaceRecipientOrNull =\n recipientsBySpace.get(space.getKey());\n if (spaceRecipientOrNull != null)\n {\n EMailAddress myEmail = new EMailAddress(spaceRecipientOrNull);\n recipients.add(myEmail);\n }\n }\n }\n\n for (IEntityProperty property : sequencingSample.getProperties())\n {\n final String propertyCode = property.getPropertyType().getCode();\n final String propertyValue = property.tryGetAsString();\n if (recipientPropertyTypeCodes.contains(propertyCode))\n {\n EMailAddress myEmail = new EMailAddress(propertyValue);\n recipients.add(myEmail);\n }\n }\n }\n\n return recipients;\n }",
"public Stack<Map<Integer, Territory>> getMapsHistoryByOrder() {\n Stack<Map<Integer,Territory>> mapsHistoryByOrder = new Stack<>();\n roundsHistory.forEach(roundHistory -> mapsHistoryByOrder.push(roundHistory.getMapHistory()));\n return mapsHistoryByOrder;\n }",
"int[] getGivenByOrder();",
"@Override\r\n\t\t\t\t\t\t\t\t\tpublic int compare(GoodsSpecification gs1,\r\n\t\t\t\t\t\t\t\t\t\t\tGoodsSpecification gs2) {\n\t\t\t\t\t\t\t\t\t\treturn gs1.getSequence()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- gs2.getSequence();\r\n\t\t\t\t\t\t\t\t\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Samsung\\\\Documents\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(20,TimeUnit.SECONDS);\r\n\r\n\r\n\t\ttry {\r\n\t\t\tdriver.get(\"https://www.nasdaq.com/extended-trading/afterhours-mostactive.aspx\");\r\n\t\t}\r\n\t\tcatch(Exception x) {\r\n\r\n\t\t}\r\n\r\n\r\n\t\tActions A = new Actions(driver);\r\n\t\tA.moveToElement(driver.findElement(By.xpath(\"//a[@id='show-all']/span\"))).click().build().perform();\r\n\r\n\r\n\t\tint count = driver.findElements(By.xpath(\"//div[@id='_declined']/table/tbody/tr\")).size();\r\n\t\tSystem.out.println(count);\r\n\r\n\r\n\t\tArrayList<String> SymbolMostDeclined=new ArrayList<String>();\r\n\t\tArrayList<String> CompanyMostDeclined=new ArrayList<String>();\r\n\t\tArrayList<String> LastSaleMostDeclined=new ArrayList<String>();\r\n\t\tArrayList<String> ChangeNetMostDeclined=new ArrayList<String>();\r\n\t\tArrayList<String> ShareVolumeMostDeclined=new ArrayList<String>();\r\n\t\t\r\n\t\tSymbolMostDeclined.add(\"Symbol\");\r\n\t\tCompanyMostDeclined.add(\"Company\");\r\n\t\tLastSaleMostDeclined.add(\" Last Sale \");\r\n\t\tChangeNetMostDeclined.add(\" Net Change \");\r\n\t\tShareVolumeMostDeclined.add(\"Share Volume\");\r\n\r\n\r\n\t\tfor(int i = 1; i <= count; i++) {\r\n\t\t\tString Xpath = \"//div[@id='_declined']/table/tbody/tr[\" + String.valueOf(i) + \"]/td[1]/h3/a\";\r\n\t\t\t//System.out.println(Xpath);\r\n\t\t\tSymbolMostDeclined.add(driver.findElement(By.xpath(Xpath)).getText());\r\n\r\n\r\n\t\t\tXpath = \"//div[@id='_declined']/table/tbody/tr[\" + String.valueOf(i) + \"]/td[2]/b\";\r\n\t\t\tCompanyMostDeclined.add(driver.findElement(By.xpath(Xpath)).getText());\r\n\r\n\r\n\t\t\tXpath = \"//div[@id='_declined']/table/tbody/tr[\" + String.valueOf(i) + \"]/td[4]\";\r\n\t\t\tLastSaleMostDeclined.add(driver.findElement(By.xpath(Xpath)).getText());\r\n\r\n\r\n\t\t\tXpath = \"//div[@id='_declined']/table/tbody/tr[\" + String.valueOf(i) + \"]/td[5]\";\r\n\r\n\t\t\tString test = driver.findElement(By.xpath(Xpath)).getText();\r\n\r\n\t\t\tif(test.contains(\"unch\")) {\r\n\t\t\t\tChangeNetMostDeclined.add(test);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tXpath += \"/span\";\r\n\t\t\t\tString className = driver.findElement(By.xpath(Xpath)).getAttribute(\"class\");\r\n\t\t\t\t//\t\tSystem.out.println(\"testing >>>>>>>> \" + className );\r\n\t\t\t\tString value = driver.findElement(By.xpath(Xpath)).getText();\r\n\r\n\t\t\t\tvalue.replace(\"[?]\", \"\");\r\n\r\n\t\t\t\tif(className.contains(\"green\")) {\r\n\t\t\t\t\tvalue += \" Up \";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvalue += \" Down \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tChangeNetMostDeclined.add(value);\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\tXpath = \"//div[@id='_declined']/table/tbody/tr[\" + String.valueOf(i) + \"]/td[6]\";\r\n\t\t\tShareVolumeMostDeclined.add(driver.findElement(By.xpath(Xpath)).getText());\r\n\t\t\t//SymbolMostActive.add(driver.findElement(By.xpath(\"//div[@id='_active']/table/tbody/tr[i]/td[1]/h3/a\")).getText());\r\n\t\t}\r\n\r\n\r\n\r\n//\t\tfor(String obj:SymbolMostDeclined) {\r\n//\t\t\tSystem.out.println(obj); \r\n//\t\t}\r\n//\r\n//\t\tfor(String obj:CompanyMostDeclined) {\r\n//\t\t\tSystem.out.println(obj); \r\n//\t\t}\r\n//\t\tfor(String obj:LastSaleMostDeclined) {\r\n//\t\t\tSystem.out.println(obj); \r\n//\t\t}\r\n//\t\tfor(String obj:ChangeNetMostDeclined) {\r\n//\t\t\tSystem.out.println(obj); \r\n//\t\t}\r\n//\t\tfor(String obj:ShareVolumeMostDeclined) {\r\n//\t\t\tSystem.out.println(obj); \r\n//\t\t}\r\n\r\n\t\t//System.out.println(count);\r\n\r\n\t\tdriver.close();\r\n\t\t\r\n\t\tXSSFWorkbook workbook = new XSSFWorkbook();\r\n XSSFSheet sheet = workbook.createSheet(\"Most-Declined\");\r\n \r\n for(int i = 0; i <= count; i++) {\r\n \tRow row = sheet.createRow(i);\r\n \tint col = 0;\r\n \tCell cell = row.createCell(col++);\r\n \tcell.setCellValue((String) SymbolMostDeclined.get(i));\r\n \t\r\n \tcell = row.createCell(col++);\r\n \tcell.setCellValue((String) CompanyMostDeclined.get(i));\r\n \t\r\n \t cell = row.createCell(col++);\r\n \tcell.setCellValue((String) LastSaleMostDeclined.get(i));\r\n \t\r\n \tcell = row.createCell(col++);\r\n \tcell.setCellValue((String) ChangeNetMostDeclined.get(i));\r\n \t\r\n \tcell = row.createCell(col++);\r\n \tcell.setCellValue((String) ShareVolumeMostDeclined.get(i));\r\n \t\r\n }\r\n \r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(MostDeclinedFile);\r\n workbook.write(outputStream);\r\n workbook.close();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n System.out.println(\"Done\");\r\n\r\n\r\n\t}",
"com.google.protobuf.Int64Value getDeliveryDateBefore();",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public int sendSupplierOrderNotificationEmail(int customerID, int orderId, int confirmationNumber, Collection<OrderedProduct> orderedProducts, Date orderDate) {\r\n // SMTP Setting\r\n String smtpServer = \"smtp.gmail.com\";\r\n\r\n //Email Addresses\r\n String from = \"[email protected]\";\r\n for (OrderedProduct orderedProduct_outer : orderedProducts) {\r\n int supplierId = orderedProduct_outer.getProduct().getSupplierID().getSupplierID();\r\n String supplierEmail = supplierFacade.find(supplierId).getSupplierEmail().trim();\r\n\r\n String to = supplierEmail;\r\n String bcc = \"[email protected]\";\r\n\r\n //Message\r\n String subject = \"New Order for Collection: \" + orderId + \"|\" + \"Confirmation Number: \" + confirmationNumber;\r\n String message = \"Please liaise with our shipper as soon as possible to get the products listed below shipped to the customer.\";\r\n String productNameAndQuantitySubheader = \"<tr><td>Product</td><td>Quantity</td></tr>\";\r\n String productNameAndQuantity = null;\r\n\r\n for (OrderedProduct orderedProduct_inner : orderedProducts) {\r\n \r\n int productSupplier = orderedProduct_inner.getProduct().getSupplierID().getSupplierID();\r\n \r\n // if productSupplier matches the supplier's id whom email has been retrived above, then send them the product and quantity details below\r\n if(supplierId == productSupplier){\r\n String productName = orderedProduct_inner.getProduct().getProductName();\r\n int productQuantity = orderedProduct_inner.getOrderedProductQuantity();\r\n productNameAndQuantity += \"<tr><td>\" + productName + \"</td><td>\" + productQuantity + \"</td></tr>\";\r\n }\r\n }\r\n\r\n String messageBody\r\n = \"<table>\"\r\n + \"<tr><td colspan=2>\" + message + \"</td></tr>\"\r\n + \"<tr><td colspan=2>Order Details</td></tr>\"\r\n + \"<tr><td>Order Number:</td><td>\" + orderId + \"</td></tr>\"\r\n + \"<tr><td>Confirmation Number:</td><td>\" + confirmationNumber + \"</td></tr>\"\r\n + \"<tr><td>Order Date:</td><td>\" + orderDate + \"</td></tr>\"\r\n + productNameAndQuantitySubheader\r\n + productNameAndQuantity\r\n + \"</table>\";\r\n\r\n try {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.transport.protocol\", \"smtp\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", smtpServer);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n Authenticator authenticator = new SMTPAuthenticator();\r\n Session session = Session.getInstance(properties, authenticator);\r\n\r\n // Create a new messageBody\r\n Message mimeMessage = new MimeMessage(session);\r\n\r\n // Set the FROM and TO fields\r\n mimeMessage.setFrom(new InternetAddress(from));\r\n mimeMessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\r\n mimeMessage.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc, false)); // Change this to be hard-coded Peripherals email\r\n mimeMessage.setSubject(subject);\r\n mimeMessage.setContent(messageBody, \"text/html; charset=utf-8\");\r\n\r\n // Set some other header information\r\n mimeMessage.setHeader(\"Order Confirmation\", \"Peripherals\");\r\n mimeMessage.setSentDate(new Date());\r\n\r\n // Send the messageBody\r\n Transport.send(mimeMessage);\r\n System.out.println(\"Message sent successfully!\");\r\n return 0;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Exception \" + ex);\r\n return -1;\r\n }\r\n }\r\n return 1;\r\n }",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"private GeofenceInfoContent[] sortByDate(GeofenceInfoContent[] geofenceInfoContents){\n GeofenceInfoContent infoContent = null;\n for(int j = 0; j < geofenceInfoContents.length; j++) {\n for (int i = 0; i < geofenceInfoContents.length; i++) {\n infoContent = geofenceInfoContents[i];\n if (i < geofenceInfoContents.length - 1) {\n String year1 = infoContent.getYear();\n String year2 = geofenceInfoContents[i + 1].getYear();\n int year1Int = Integer.parseInt(year1);\n int year2Int = Integer.parseInt(year2);\n if (year1Int < year2Int) {\n geofenceInfoContents[i] = geofenceInfoContents[i + 1];\n geofenceInfoContents[i + 1] = infoContent;\n }\n }\n }\n }\n return geofenceInfoContents;\n }",
"private List<Score> order(List<Score> s)\n {\n Collections.sort(s, new Comparator<Score>()\n {\n\n @Override\n public int compare(Score o1, Score o2) {\n // TODO Auto-generated method stub\n\n return o1.getSentId() - o2.getSentId();\n }\n });\n return s;\n }",
"public String showWeekOrderPassengerDetails(){\n\t\tReportData selectedReportItem=flightOrderDao.getReportDetailsByRowId(CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails--------------------flightReportPage.getId()=\"+CurrentReportdata.getId());\n\t\tlogger.info(\"showPassengerDetails-------------------selectedReportItem=\"+selectedReportItem);\n\n\t\tif(selectedReportItem!=null){\n\t\t\tCurrentReportdata = selectedReportItem;\n\t\t}\n\t\t//agency data-----------------end--------------------------\n\t\tReportData flightOrderCustomer = flightOrderDao.getFlightOrderCustomerDetail(selectedReportItem.getId());\n\t\tFlightOrderRow \tflightOrderRow = flightOrderDao.getFlightOrderRowDataById(selectedReportItem.getId());\n\n\n\t\tfor(int i=0;i<flightOrderCustomer.getFlightOrderCustomerList().size();i++){\n\t\t\tFlightOrderCustomer customer=flightOrderCustomer.getFlightOrderCustomerList().get(i);\n\t\t\t//for(FlightOrderCustomerPriceBreakup PriceBreakup:flightOrderCustomer.getFlightOrderCustomerPriceBreakup()){\n\t\t\tFlightOrderCustomerPriceBreakup PriceBreakup=flightOrderCustomer.getFlightOrderCustomerPriceBreakup().get(i);\n\t\t\t//logger.info(\"customer.getId()-----\"+customer.getId()+\"---PriceBreakup.getId()-------\"+PriceBreakup.getId());\n\n\n\t\t\tBigDecimal brakupMarkup=new BigDecimal(PriceBreakup.getMarkup());\n\t\t\t//\tBigDecimal procesiingFeee=new BigDecimal(\"0.00\");\n\n\n\t\t\tBigDecimal basePrice= PriceBreakup.getBaseFare().multiply(flightOrderRow.getApiToBaseExchangeRate());\n\t\t\tBigDecimal taxes= PriceBreakup.getTax().multiply(flightOrderRow.getApiToBaseExchangeRate()) ;\n\t\t\tBigDecimal totalBasePrice = basePrice.add(brakupMarkup);\n\t\t\tBigDecimal basePriceInBooking=totalBasePrice.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\tBigDecimal taxesInBooking=taxes.multiply(flightOrderRow.getBaseToBookingExchangeRate());\n\t\t\t//BigDecimal totalPrice=procesiingFeee.add(basePriceInBooking).add(taxesInBooking);//should be added later\n\t\t\tBigDecimal totalPriceInBooking=basePriceInBooking.add(taxesInBooking);\n\t\t\t//logger.info(\"totalPrice----in booking--------------------\"+totalPriceInBooking);\n\t\t\tReportData data = new ReportData();\n\t\t\tdata.setName(customer.getFirstName());\n\t\t\tdata.setSurname(customer.getLastName());\n\t\t\tdata.setGender(customer.getGender());\n\t\t\tdata.setMobile(customer.getMobile());\n\t\t\t//data.setPassportExpDate(customer.getPassportExpiryDate());\n\t\t\tdata.setPhone(customer.getPhone());\n\t\t\tdata.setPrice(basePriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setAgentCom(PriceBreakup.getMarkup());\n\t\t\tdata.setTotal(totalPriceInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\tdata.setTax(taxesInBooking.setScale(2, BigDecimal.ROUND_UP));\n\t\t\t//data.setRoute(orderTripDetail.getOriginCode()+\"-\"+orderTripDetail.getDestinationCode());\n\t\t\tpassList.add(data);\n\t\t\t//sessionMap.put(\"passengerList\", passList);\n\n\t\t}\n\n\t\ttry {\n\t\t\tReportData companyWalletHistory=flightOrderDao.getWalletAmountTxStatementHistoryByUserId(selectedReportItem.getUserId(),selectedReportItem.getOrderId());\n\t\t\tList<WalletAmountTranferHistory> newWalletHistoryList=new ArrayList<WalletAmountTranferHistory>();\n\t\t\tif(companyWalletHistory!=null && companyWalletHistory.getWalletAmountTranferHistory()!=null){\n\t\t\t\tfor(WalletAmountTranferHistory history:companyWalletHistory.getWalletAmountTranferHistory()){\n\t\t\t\t\tif(history.getUserId()==Integer.parseInt(selectedReportItem.getUserId())){\n\t\t\t\t\t\tnewWalletHistoryList.add(history);\n\t\t\t\t\t\tcompanyWalletHistory.setWalletAmountTranferHistory(newWalletHistoryList); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(companyWalletHistory!=null){\n\t\t\t\ttxHistory=companyWalletHistory;\n\t\t\t}\n\t\t\tif(flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId())!=null){\n\t\t\t\tendUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(selectedReportItem.getOrderId());\n\t\t\t}\n\n\t\t\t/* txHistory = flightOrderDao.getWalletAmountTxStatementHistory(reportData.getOrderId());\n\t\t\t endUserTxHistory =flightOrderDao.getEndUserPaymentTransactions(reportData.getOrderId());*/\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.info(\"(-----Exception----------)\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn SUCCESS;\n\t}"
]
| [
"0.57202196",
"0.54199",
"0.54037505",
"0.5044118",
"0.4929889",
"0.489019",
"0.48380092",
"0.47878668",
"0.47825864",
"0.46124017",
"0.45465338",
"0.45107296",
"0.45017025",
"0.44785294",
"0.44348773",
"0.44144508",
"0.43972316",
"0.43756363",
"0.4363261",
"0.42799738",
"0.4256243",
"0.42550072",
"0.4252505",
"0.423728",
"0.41916034",
"0.41823012",
"0.41753393",
"0.41749096",
"0.41654778",
"0.4153275",
"0.41495654",
"0.41492358",
"0.41401762",
"0.4131329",
"0.41038573",
"0.41012168",
"0.40947685",
"0.4094453",
"0.40886566",
"0.40870634",
"0.40677488",
"0.40625006",
"0.40578786",
"0.40562278",
"0.40507895",
"0.40489843",
"0.4041665",
"0.4024784",
"0.40086043",
"0.39842007",
"0.39715356",
"0.39592856",
"0.39579245",
"0.39569223",
"0.3956616",
"0.39543998",
"0.39463174",
"0.39403623",
"0.39399433",
"0.39392748",
"0.3938903",
"0.39352456",
"0.3934903",
"0.39313012",
"0.3929152",
"0.3920579",
"0.39138502",
"0.39116132",
"0.3897237",
"0.3893317",
"0.3892837",
"0.3888539",
"0.38874027",
"0.3886195",
"0.38789803",
"0.3878583",
"0.38719305",
"0.38697374",
"0.38639805",
"0.38600212",
"0.38477108",
"0.38421828",
"0.38358006",
"0.38268253",
"0.38188544",
"0.38171068",
"0.38170743",
"0.38163462",
"0.38100758",
"0.38066584",
"0.37992334",
"0.3788748",
"0.3786778",
"0.37863898",
"0.37831423",
"0.37830555",
"0.37828934",
"0.3779081",
"0.37775227",
"0.37771276"
]
| 0.6384319 | 0 |
Removes all the gdf tender submission detailses where supplierId = &63; from the database. | public static void removeByGDFTendersByUserId(long supplierId) {
getPersistence().removeByGDFTendersByUserId(supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public void delete(SupplierCard supplier) {\n supplier_dao.delete(supplier);\n }",
"@Override\n\tpublic void deleteIntoSupplierView(long supplierId, long productId) {\n\t\tString sql=\"DELETE FROM supplier_product WHERE supplier_supplier_id=? AND product_product_id=?\";\n\t\tgetJdbcTemplate().update(sql, supplierId, productId);\n\t}",
"public void actionPerformed(ActionEvent arg){\n\t\t\t\tif(editSuppIdCombo.getSelectedIndex() != 0){\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\tlistOfSuppliers.removeElement(editSuppIdCombo.getSelectedItem().toString());\n\t\t\t\t\t\t\tsuppIdCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tsuppNameCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\teditSuppIdCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tsuppliers.remove(supplier);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Supplier Deleted\");\n\t\t\t\t\t\t\teditSuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\teditSupplierName.setText(\"\");\n\t\t\t\t\t\t\teditSupplierAddress.setText(\"\");\n\t\t\t\t\t\t\teditSupplierEmail.setText(\"\");\n\t\t\t\t\t\t\teditSupplierPhone.setText(\"\");\n\t\t\t\t\t\t\teditSupplierDelivery.setText(\"\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public void deleteEntry(int id) {\n\t\tString sql=\"delete from suppplierpayments where supplierpayId=\"+id+\"\"; \n\t template.update(sql); \n\t\t\n\t}",
"public void deleteSupplierEntityById(int supplierEntityId) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n SupplierEntity entityToDelete = (SupplierEntity)session.get(SupplierEntity.class, supplierEntityId);\n session.delete(entityToDelete);\n tx.commit();\n log.warn(\"Deleted supplier: \" + entityToDelete + \" with id of: \" + supplierEntityId);\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }",
"@Override\n\tpublic void deleteIntoSupplier(long supplierId, long productId) {\n\t\tString sql=\"DELETE FROM supplier WHERE supplier_id IN(SELECT B.supplier_supplier_id FROM supplier_product B INNER JOIN product p ON B.product_product_id=p.product_id WHERE supplier_id=? AND B.product_product_id=?)\";\n\t getJdbcTemplate().update(sql, supplierId, productId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public void _unlinkSupplier(ModelElement supplier1);",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"int delRouteByIdSupplier(Long id_supplier);",
"public void deleteSupplierEntity(SupplierEntity originEntity) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n session.delete(originEntity);\n tx.commit();\n log.warn(\"Deleted supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"void deleteTrackerAssigned(final Integer id);",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public int deleteSupplier(int id) {\n\t\t\t String deleteQuery=\"delete from registration_customer_data where id='\"+id+\"' \";\n\t\t\t return template.update(deleteQuery); \n\t\t}",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"public ModelElement removeSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 remove_head327A646F00E6 \"Dependency::removeSupplier\"\n ;",
"void deleteTrackerAssignedOld(final Integer id);",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public void clearSupplier()\n // -end- 335C0D7A02E4 remove_all_head327A646F00E6 \"Dependency::clearSupplier\"\n ;",
"@DeleteMapping(\"/jpa/users/{username}/suppliers/{id}\")\n public ResponseEntity<Void> deleteSupplier(@PathVariable String username,\n @PathVariable Long id){\n supplierJpaRepo.deleteById(id);\n\n\n return ResponseEntity.noContent().build();\n\n\n //return ResponseEntity.notFound().build();\n }",
"public void unlinkProduct() {\n Product result;\n String supplierID = getToken(\"Enter supplier ID: \");\n if (warehouse.searchSupplier(supplierID) == null) {\n System.out.println(\"No such supplier!\");\n return;\n }\n do {\n String productID = getToken(\"Enter product ID: \");\n result = warehouse.unlinkProduct(supplierID, productID);\n if (result != null) {\n System.out.println(\"Product [\" + productID + \"] unassigned from supplier: [\" + supplierID + \"]\");\n }\n else {\n System.out.println(\"Product could not be unassigned\");\n }\n if (!yesOrNo(\"unassign more products from supplier: [\"+ supplierID + \"]\")) {\n break;\n }\n } while (true);\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public Boolean deleteGroupSupplier(GroupSupplier sm){\n\t\tTblGroupSupplier tblsm = new TblGroupSupplier();\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\ttblsm.convertToTable(sm);\n\t\t\ttx = session.beginTransaction();\n\t\t\tsession.delete(tblsm);\n\t\t\ttx.commit();\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\tif (tx!= null) tx.rollback();\n\t\t\te.printStackTrace();\n\t\t\tsession.close();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"private void cleanUpConsumedEsnRecords() {\n\t\tesnInfoRepository.findAllByIsConsumed(true).removeIf(item -> (Days\n\t\t\t\t.daysBetween(new DateTime(item.getDateImported()), new DateTime()).isGreaterThan(Days.days(30))));\n\t}",
"private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static void RecipeTipsFirebaseDeleteAll() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}",
"public void setSuppliersId(Short suppliersId) {\n this.suppliersId = suppliersId;\n }",
"public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }",
"@Override\r\n\tpublic boolean delFeback(int feedbackId) {\n\t\treturn BaseDao.execute(\"delete from feedback where feedbackId = ?\", feedbackId) > 0;\r\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public void delete_contact(String contact, SupplierCard supplier) {\n supplier_dao.delete_contact(contact, supplier);\n }",
"public boolean deleteSuppEmail (java.lang.String supp_no) throws com.mcip.orb.CoException {\n return this._delegate.deleteSuppEmail(supp_no);\n }",
"private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"void deleteTrackerListResolution(final Integer id);",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"void deleteTrackerRegistrations(final Integer id);",
"public void deleteCopiedPendingLedgerEntries();",
"public void deletePushQuestionsIDList() {\n\t\tArrayList<String> blank = new ArrayList<String>();\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tPUSH_POSTS, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(blank, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public void removeByschoolId(long schoolId);",
"@After\r\n\tpublic void clean() {\r\n\t\tlistAllGrades.put(\"FinalGrade\", 9f);\r\n\t\tlistScoreMetricStudent.put(\"comment_lines_density\", 50f);\r\n\t\tlistScoreMetricStudent.put(\"complexity\", 13f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density\", 50f);\r\n\t\tlistScoreMetricStudent.put(\"tests\", 4f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density_teacher\", 0.75f);\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(50f));\r\n\t\tmapQuality.put(\"TestOfStudent\", new ModelValue(4f, 1f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 1.5f));\r\n\t\tmapQuality.put(\"Complexity\", new ModelValue(20f, 1f));\r\n\t\tlistAllGrades.put(\"Comments\", 1f);\r\n\t\tlistLostPoints.put(\"Comments\", 1.5f);\r\n\t\ttry {\r\n\t\t\tSonarDataBase.getInstance().deleteTestAndScoreTeacher(99);\r\n\t\t} catch (ClassNotFoundException | SQLException | SonarqubeDataBaseException | 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}",
"private void ClearForm() {\n supplierName.setText(\"\");\n supplierDiscription.setText(\"\");\n }",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"void deleteTrackerGroups(final Integer id);",
"public void deletePrisoners(String pisid){\r\n String q=\"DELETE FROM prisoners WHERE Prisonerid=?\";\r\n try\r\n {\r\n int k=0;\r\n PreparedStatement st=getConnection().prepareStatement(q);\r\n st.setString(1, pisid);\r\n if(st.executeUpdate()>k){\r\n JOptionPane.showMessageDialog(null,pisid+\"deleted successively\");\r\n \r\n }\r\n }\r\n catch(SQLException x){\r\n JOptionPane.showMessageDialog(null, x.getMessage());\r\n }\r\n \r\n //defines how update can be done\r\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\teditSupplierName.setText(supplier.getName());\n\t\t\t\t\t\t\teditSupplierAddress.setText(supplier.getAddress());\n\t\t\t\t\t\t\teditSupplierEmail.setText(supplier.getEmail());\n\t\t\t\t\t\t\teditSupplierPhone.setText(Integer.toString(supplier.getPhone()));\n\t\t\t\t\t\t\teditSupplierDelivery.setText(Integer.toString(supplier.getDaysToDeliver()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}",
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"void deleteTrackerRelated(final Integer id);",
"public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }",
"public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }",
"public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }",
"private void removeOlderGigs() {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tint currentHr = cal.get(Calendar.HOUR_OF_DAY);\r\n\t\t\r\n\t\tif ((currentHr >= 0 && currentHr <= 7)) {\r\n\t\t\t//Log.d(TAG, \"deleting older gigs\");\r\n\t\t\tmGigsDbHelper.deleteOlderGigs();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void clear() {\n myReported.clear();\n }",
"private void purgeCases() {\n\t\tVector<String> owners = new Vector<String>();\n\t\tVector<String> users = new Vector<String>(); \n\t\tfor(IStorageIterator<User> userIterator = CommCareApplication._().getUserStorage(User.class).iterate(); userIterator.hasMore();) {\n\t\t\tString id = userIterator.nextRecord().getUniqueId();\n\t\t\towners.addElement(id);\n\t\t\tusers.addElement(id);\n\t\t}\n\t\t\n\t\t//Now add all of the relevant groups\n\t\t//TODO: Wow. This is.... kind of megasketch\n\t\tfor(String userId : users) {\n\t\t\tDataInstance instance = CommCareUtil.loadFixture(\"user-groups\", userId);\n\t\t\tif(instance == null) { continue; }\n\t\t\tEvaluationContext ec = new EvaluationContext(instance);\n\t\t\tfor(TreeReference ref : ec.expandReference(XPathReference.getPathExpr(\"/groups/group/@id\").getReference())) {\n\t\t\t\tAbstractTreeElement<AbstractTreeElement> idelement = ec.resolveReference(ref);\n\t\t\t\tif(idelement.getValue() != null) {\n\t\t\t\t\towners.addElement(idelement.getValue().uncast().getString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tSqlStorage<ACase> storage = CommCareApplication._().getUserStorage(ACase.STORAGE_KEY, ACase.class);\n\t\tCasePurgeFilter filter = new CasePurgeFilter(storage, owners);\n\t\tstorage.removeAll(filter);\n\t\t\n\t\tSqlStorage<Ledger> stockStorage = CommCareApplication._().getUserStorage(Ledger.STORAGE_KEY, Ledger.class);\n\t\tLedgerPurgeFilter stockFilter = new LedgerPurgeFilter(stockStorage, storage);\n\t\tstockStorage.removeAll(stockFilter);\n\t}",
"void removePublisherQueueEntries(String publisherName);",
"public String deleteResearcher(int id);",
"public DamageSpace planToRemoveGoodsShelfListWithSupplierSpace(DamageSpace damageSpace, String supplierSpaceId, Map<String,Object> options)throws Exception{\n\t\t\t\t//SmartList<ThreadLike> toRemoveThreadLikeList = threadLikeList.getToRemoveList();\n\t\t//the list will not be null here, empty, maybe\n\t\t//getThreadLikeDAO().removeThreadLikeList(toRemoveThreadLikeList,options);\n\t\t\n\t\tMultipleAccessKey key = new MultipleAccessKey();\n\t\tkey.put(GoodsShelf.DAMAGE_SPACE_PROPERTY, damageSpace.getId());\n\t\tkey.put(GoodsShelf.SUPPLIER_SPACE_PROPERTY, supplierSpaceId);\n\t\t\n\t\tSmartList<GoodsShelf> externalGoodsShelfList = getGoodsShelfDAO().\n\t\t\t\tfindGoodsShelfWithKey(key, options);\n\t\tif(externalGoodsShelfList == null){\n\t\t\treturn damageSpace;\n\t\t}\n\t\tif(externalGoodsShelfList.isEmpty()){\n\t\t\treturn damageSpace;\n\t\t}\n\t\t\n\t\tfor(GoodsShelf goodsShelfItem: externalGoodsShelfList){\n\t\t\tgoodsShelfItem.clearSupplierSpace();\n\t\t\tgoodsShelfItem.clearDamageSpace();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSmartList<GoodsShelf> goodsShelfList = damageSpace.getGoodsShelfList();\t\t\n\t\tgoodsShelfList.addAllToRemoveList(externalGoodsShelfList);\n\t\treturn damageSpace;\n\t}",
"public void deleteFurniture(List<HomePieceOfFurniture> deletedFurniture) {\n final boolean basePlanLocked = this.home.isBasePlanLocked();\n final boolean allLevelsSelection = this.home.isAllLevelsSelection();\n final List<Selectable> oldSelection = this.home.getSelectedItems(); \n List<HomePieceOfFurniture> homeFurniture = this.home.getFurniture(); \n\n // Replace pieces by their group when they have to be all deleted\n deletedFurniture = new ArrayList<HomePieceOfFurniture>(deletedFurniture);\n List<HomeFurnitureGroup> homeGroups = new ArrayList<HomeFurnitureGroup>(); \n searchGroups(homeFurniture, homeGroups);\n boolean updated;\n do {\n updated = false;\n for (HomeFurnitureGroup group : homeGroups) {\n List<HomePieceOfFurniture> groupFurniture = group.getFurniture();\n if (deletedFurniture.containsAll(groupFurniture)) {\n deletedFurniture.removeAll(groupFurniture);\n deletedFurniture.add(group);\n updated = true;\n }\n }\n } while (updated);\n \n // Sort the deletable furniture in the ascending order of their index in home or their group\n Map<HomeFurnitureGroup, Map<Integer, HomePieceOfFurniture>> deletedFurnitureMap =\n new HashMap<HomeFurnitureGroup, Map<Integer, HomePieceOfFurniture>>();\n int deletedFurnitureCount = 0;\n for (HomePieceOfFurniture piece : deletedFurniture) {\n // Check piece is deletable and doesn't belong to a group\n if (isPieceOfFurnitureDeletable(piece)) {\n HomeFurnitureGroup group = getPieceOfFurnitureGroup(piece, null, homeFurniture);\n Map<Integer, HomePieceOfFurniture> sortedMap = deletedFurnitureMap.get(group);\n if (sortedMap == null) {\n sortedMap = new TreeMap<Integer, HomePieceOfFurniture>();\n deletedFurnitureMap.put(group, sortedMap);\n }\n if (group == null) {\n sortedMap.put(homeFurniture.indexOf(piece), piece);\n } else {\n sortedMap.put(group.getFurniture().indexOf(piece), piece);\n }\n deletedFurnitureCount++;\n }\n }\n final HomePieceOfFurniture [] furniture = new HomePieceOfFurniture [deletedFurnitureCount]; \n final int [] furnitureIndex = new int [furniture.length];\n final Level [] furnitureLevels = new Level [furniture.length];\n final HomeFurnitureGroup [] furnitureGroups = new HomeFurnitureGroup [furniture.length];\n int i = 0;\n for (Map.Entry<HomeFurnitureGroup, Map<Integer, HomePieceOfFurniture>> sortedMapEntry : deletedFurnitureMap.entrySet()) {\n for (Map.Entry<Integer, HomePieceOfFurniture> pieceEntry : sortedMapEntry.getValue().entrySet()) {\n furniture [i] = pieceEntry.getValue();\n furnitureIndex [i] = pieceEntry.getKey(); \n furnitureLevels [i] = furniture [i].getLevel();\n furnitureGroups [i++] = sortedMapEntry.getKey();\n }\n } \n doDeleteFurniture(furniture, basePlanLocked, false); \n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n doAddFurniture(furniture, furnitureGroups, furnitureIndex, null, furnitureLevels, basePlanLocked, allLevelsSelection); \n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n home.setSelectedItems(Arrays.asList(furniture));\n doDeleteFurniture(furniture, basePlanLocked, false); \n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoDeleteSelectionName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }",
"public void delFor(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE5, Sales_Id + \"=\" +idi, null);\n\t\t\n\t}",
"public void deleteProveedor (Long id_proveedor){\n proveedorPersistence.delete(id_proveedor);\n }",
"@Override\r\n public void supprimerFilm(Film f) {\n int idEvent= RetourIdEvent(f);\r\n try {\r\n String sql = \"DELETE FROM `film` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl = conn.createStatement();\r\n int rs =stl.executeUpdate(sql);\r\n \r\n String sql2 = \"DELETE FROM `evenement` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl2 = conn.createStatement();\r\n int rs1 =stl2.executeUpdate(sql2);\r\n \r\n } catch (SQLException ex) {\r\n System.err.println(\"SQLException: \" + ex.getMessage());\r\n \r\n } }",
"public void removeCheckedStudents(View v)\n {\n for(Student aStudent: studentsList)\n {\n if(aStudent.isDeletable()) {\n //myDBHelper.removeStudent(aStudent);\n //studentAdapter.remove(aStudent);\n myDBHelper.removeStudent(aStudent);\n //adapter.remove(aTeacher);\n //\n studentsList = myDBHelper.getAllStudents();\n //Instantiated an adapter\n studentAdapter = new StudentAdapter(this, R.layout.activity_list_item, studentsList);\n ListView listTeachers = (ListView) findViewById(R.id.lstStudentsView);\n listTeachers.setAdapter(studentAdapter);\n studentAdapter.notifyDataSetChanged();\n }\n }\n if(studentsList.isEmpty())\n btnEdit.setEnabled(false);\n imgStudentImage.setImageResource(R.mipmap.noimgavail);\n //clear all fields\n txtFirstName.setText(\"\");\n txtLastName.setText(\"\");\n txtAge.setText(\"\");\n txtYear.setText(\"\");\n }",
"public void removeYieldByYearAndProducer(int year, String producer)\n throws Exceptions.DatabaseDeletionException, Exceptions.NoDatabaseRecordsRemovedException {\n Boolean recordsDeleted = false;\n CollectionReference colRef = dbClient.collection(\"producerYields\");\n try {\n ApiFuture<QuerySnapshot> future = colRef.whereEqualTo(\"producer\", producer).whereEqualTo(\"year\", year).get();\n List<QueryDocumentSnapshot> documents = future.get().getDocuments();\n for (QueryDocumentSnapshot doc : documents) {\n doc.getReference().delete();\n recordsDeleted = true;\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n throw new Exceptions.DatabaseDeletionException(\n \"ERROR failed to delete records with year \" + year + \" and producer \" + producer);\n }\n if (!recordsDeleted) {\n throw new Exceptions.NoDatabaseRecordsRemovedException(\n \"No records to be removed for year \" + year + \" and producer '\" + producer + \"'\");\n }\n }",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }",
"public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }",
"void deleteTrackerNotificationRecipients(final Integer id);",
"@Override\n\tpublic void deleteTkfl(Tkfl tkfl) {\n\t\tList<Tkfl> tkfls = (List<Tkfl>) this.getCurrentTkflById(tkfl.getId()\n\t\t\t\t.toString());\n\t\tString sql = \"delete from tkfl where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tkfl.getId() });\n\t\tfor (Tkfl child : tkfls) {\n\t\t\tthis.deleteTkfl(child);\n\t\t}\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }",
"void clearRecords() {\n\t\ttry {\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"Student.txt\")));\n\t\tpw.close();\n\t\tSystem.out.println(\"\\nAll Records cleared successfully !\");\n\t\tfor (int i = 0; i < 999999999; i++);\n\t\t}catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"@DeleteMapping(\"/record-25-herfinancieerings/{id}\")\n @Timed\n public ResponseEntity<Void> deleteRecord25Herfinancieering(@PathVariable Long id) {\n log.debug(\"REST request to delete Record25Herfinancieering : {}\", id);\n\n record25HerfinancieeringRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public static void clean(Context context) {\n try (SQLiteDatabase db = new DatabaseFactory(context, null).getWritableDatabase()) {\n UploadingFilesRepository uploadRepo = new UploadingFilesRepository(db);\n Response response = uploadRepo.deleteAll();\n\n SyncQueueRepository syncRepo = new SyncQueueRepository(db);\n List<SyncQueueEntryModel> syncEntries = syncRepo.getAll();\n\n for (SyncQueueEntryModel syncEntry : syncEntries) {\n\n boolean isProcessing = syncEntry.getStatus() == SyncStateEnum.PROCESSING.getValue();\n boolean isQued = syncEntry.getStatus() == SyncStateEnum.QUEUED.getValue();\n\n if (isProcessing || isQued) {\n\n SyncQueueEntryDbo dbo = new SyncQueueEntryDbo(syncEntry);\n dbo.setProp(SynchronizationQueueContract._STATUS, SyncStateEnum.IDLE.getValue());\n\n Response updateResponse = syncRepo.update(dbo.toModel());\n }\n }\n } catch (Exception e) {\n\n }\n }",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tif(suppliers.size() >= 1){\n\t\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(suppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tsupplierJTextArea.setText(\" Supplier Id: \"+supplier.getId()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Name: \"+supplier.getName()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Address: \"+supplier.getAddress()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Email: \"+supplier.getEmail()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Phone: \"+supplier.getPhone()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Delivery Time: \"+supplier.getDaysToDeliver());\n\t\t\t\t\t\t\t\tsuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Suppliers Found\");\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public void delete(){\n if (shx!=null) shx.delete();\n if (shp!=null) shp.delete();\n if (dbf!=null) dbf.delete();\n if (prj!=null) prj.delete();\n }",
"void deleteTrackerAttachments(final Integer id);",
"void purgeContent(List<Md2Entity> updates);",
"@Override\n\tpublic boolean updateSupplier(Supplier_model s) \n\t{\n\t\t\t\tboolean flag=false;\n\t\t\t\ttry{\n\t\t\t\t\tsession=hibernateUtil.openSession();\n\t\t\t\t\ttx=session.beginTransaction();\n\t\t\t\t\tQuery q=session.createQuery(\"update Supplier_model set suppliername='\"+s.getSuppliername()+\"', description='\"+s.getDescription()+\"', emailid='\"+s.getEmailid()+\"', suppcompanyid='\"+s.getSuppcompanyid()+\"', phone='\"+s.getPhone()+\"', mobile1='\"+s.getMobile1()+\"', mobile2='\"+s.getMobile2()+\"', website='\"+s.getWebsite()+\"', address='\"+s.getAddress()+\"', cid='\"+s.getCid()+\"', sid='\"+s.getSid()+\"', cityid='\"+s.getCityid()+\"', jobposition='\"+s.getJobposition()+\"', supptitleid='\"+s.getSupptitleid()+\"', faxno='\"+s.getFaxno()+\"', updated_by='\"+s.getUpdated_by()+\"' where supplierid=\"+s.getSupplierid());\n\t\t\t\t\tint i=q.executeUpdate();\n\t\t\t\t\tif(i>0)\n\t\t\t\t\t\tflag=true;\n\t\t\t\t\ttx.commit();\n\t\t\t\t\t\n\t\t\t\t}catch(Throwable ex){\n\t\t\t\t\tif(tx!=null)\n\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinally{\n\t\t\t\t\tsession.close();\n\t\t\t\t}\n\t\t\t\treturn flag;\n\t}",
"public static void deletetea(String teaid2) {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"delete from teacher where ID = ? \");\n\t\t\tps.setString(1, teaid2);\n\t\t\tps.execute();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录删除成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据删除失败!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public void removeFinArFundsInActionAppliedHistory(FinArFundsInActionAppliedHistory finArFundsInActionAppliedHistory);",
"@Override\npublic void deleteAll(Iterable<? extends Formation> entities) {\n\t\n}",
"public static boolean removeSurgeryEntry(String srg) {\n boolean result = new SurgeriesList().removeSurgery(srg);\n if (result) {\n updateSurgeriesTable();\n }\n return result;\n }",
"public void removeEntry(ActionEvent event) {\n\t\tnewReport2.removeSample(table.getSelectionModel().getSelectedItem());\n\t\ttable.getItems().removeAll(table.getSelectionModel().getSelectedItem());\n\t\tif(conclusionNumbers1.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber())!=-1) {\n\t\t\tconclusionNumbers1.remove(conclusionNumbers1.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber()));\n\t\t}\n\t\telse {\n\t\t\tconclusionNumbers2.remove(conclusionNumbers2.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber()));\n\t\t}\n\t}",
"public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }",
"int deleteByPrimaryKey(Integer deliveryid);"
]
| [
"0.64010495",
"0.5747822",
"0.5695447",
"0.56748253",
"0.5582617",
"0.558238",
"0.5562708",
"0.54649985",
"0.54254603",
"0.5388487",
"0.53003365",
"0.5272706",
"0.5271215",
"0.521607",
"0.5189579",
"0.5175708",
"0.5111617",
"0.5104265",
"0.508884",
"0.50759363",
"0.5068139",
"0.5036597",
"0.5023565",
"0.5016668",
"0.49924585",
"0.49864808",
"0.49495098",
"0.49449295",
"0.49376062",
"0.49230313",
"0.4909321",
"0.4905569",
"0.4890076",
"0.488884",
"0.4846045",
"0.48252138",
"0.4822281",
"0.48201334",
"0.48112744",
"0.48038918",
"0.48019814",
"0.4794934",
"0.47914222",
"0.47758436",
"0.4756314",
"0.47502044",
"0.4724094",
"0.47238615",
"0.4719915",
"0.47077143",
"0.46918368",
"0.46877632",
"0.46827716",
"0.46813273",
"0.46806267",
"0.46778488",
"0.4676528",
"0.46751413",
"0.46731785",
"0.46727154",
"0.46714628",
"0.46694836",
"0.46647865",
"0.4659472",
"0.46558985",
"0.46496606",
"0.4645432",
"0.4637005",
"0.46367183",
"0.4619482",
"0.46128517",
"0.46094254",
"0.45981267",
"0.45971057",
"0.45926163",
"0.4587351",
"0.45838186",
"0.45810777",
"0.45711997",
"0.4567594",
"0.4565415",
"0.4564403",
"0.45593184",
"0.45585418",
"0.45543402",
"0.45505077",
"0.4544785",
"0.45419905",
"0.4538069",
"0.45327145",
"0.45279372",
"0.45260617",
"0.45257106",
"0.45249882",
"0.45239857",
"0.45235142",
"0.45213437",
"0.45208168",
"0.45202258",
"0.45194748"
]
| 0.68182176 | 0 |
Returns the number of gdf tender submission detailses where supplierId = &63;. | public static int countByGDFTendersByUserId(long supplierId) {
return getPersistence().countByGDFTendersByUserId(supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n\tpublic int NoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_id) FROM supplier\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int getNoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_supplier_id) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int getNoofProduct(String supplierName) {\n\t String sql=\"SELECT COUNT(h.product_product_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t return total;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n\tpublic int getNoofQuantity(String supplierName) {\n\t\tString sql=\"SELECT SUM(h.quantity) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"@Override\n\tpublic int getNoofProduct() {\n\t\tString sql=\"SELECT COUNT(product_product_id) FROM supplier_product\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic int getNoofSupplier(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE buy_date>=?::Date and buy_date<=?::Date\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplyStartDate, supplyLastDate);\n\t\treturn total;\n\t}",
"ArrayList<Relation> attributeCountLT4ForPropertiesbySupplierId(String supplierId);",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"String getSupplierID();",
"int getDeliveredCount();",
"public int getCountExemplarsFree() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint freeCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (!exemplar.getIsBorrowed()) {\r\n \t\t\t\tfreeCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn freeCount;\r\n \t}",
"int getDeliveriesCount();",
"int getDetailsCount();",
"int getDetailsCount();",
"public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNumberSubmits();\n }\n\n return counter;\n }",
"public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"int getEducationsCount();",
"public int getDeliveriesCount() {\n if (deliveriesBuilder_ == null) {\n return deliveries_.size();\n } else {\n return deliveriesBuilder_.getCount();\n }\n }",
"public int getCount() {\n\t\t\tcantidadGrupos = extras.getInt(\"cantidadGrupos\");\n\t\t\treturn cantidadGrupos;\n\t\t}",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"int getCountRouteSupplierByCriteria(CountRouteSupplierCriteria dto);",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public long numPostingEntries();",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public int getDeliveredCount() {\n if (deliveredBuilder_ == null) {\n return delivered_.size();\n } else {\n return deliveredBuilder_.getCount();\n }\n }",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public int countGoodsShelfListWithSupplierSpace(String damageSpaceId, String supplierSpaceId, Map<String,Object> options)throws Exception{\n\n\t\tMultipleAccessKey key = new MultipleAccessKey();\n\t\tkey.put(GoodsShelf.DAMAGE_SPACE_PROPERTY, damageSpaceId);\n\t\tkey.put(GoodsShelf.SUPPLIER_SPACE_PROPERTY, supplierSpaceId);\n\t\t\n\t\tint count = getGoodsShelfDAO().countGoodsShelfWithKey(key, options);\n\t\treturn count;\n\t}",
"public int AssignedCount() {\n \t\treturn jobsent.size();\n \t}",
"int getNumberOfArtillery();",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"int getFundsCount();",
"int getFundsCount();",
"public int getNumGruppoPacchetti();",
"public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }",
"public int obtenerNumeroFuentes() {\n\t\tint n = 0;\n\n\t\ttry {\n\n\t\t\trs = stmt\n\t\t\t\t\t.executeQuery(\"SELECT COUNT(IDFUENTE) AS FUENTES FROM FUENTE\");\n\t\t\trs.next();\n\n\t\t\tn = rs.getInt(\"FUENTES\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"No es posible recuperar el numero de fuentes\");\n\n\t\t}\n\n\t\treturn n;\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public abstract long countByShipper(Shipper shipper);",
"public abstract long countByShipper(Shipper shipper);",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"int getRealtorNumCnt(RealtorDTO realtorDTO);",
"public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }",
"int getStudentResponseCount();",
"public int sizeSupplier()\n // -end- 335C0D7A02E4 size_head327A646F00E6 \"Dependency::sizeSupplier\"\n ;",
"@Override\n public int getNbHarvesting(String harvesterName)\n {\n return 0;\n }",
"public int countByschoolId(long schoolId);",
"public String method_1457() {\r\n return String.format(\"count=%d\", new Object[]{Integer.valueOf(this.field_1677.size())});\r\n }",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public int getDeliveriesCount() {\n return deliveries_.size();\n }",
"int getWorkAreaCount(String dept, Long workArea);",
"private int getFurnitureGroupCount(List<HomePieceOfFurniture> furniture) {\n int i = 0;\n for (HomePieceOfFurniture piece : furniture) {\n if (piece instanceof HomeFurnitureGroup) {\n i += 1 + getFurnitureGroupCount(((HomeFurnitureGroup)piece).getFurniture());\n }\n }\n return i;\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"int getListSnIdCount();",
"protected void getRecipientNumber(TargetForm aForm, HttpServletRequest req) {\n\t\tTargetDao targetDao = (TargetDao) getBean(\"TargetDao\");\n\t\tTarget target = (Target) getBean(\"Target\");\n\t\tRecipientDao recipientDao = (RecipientDao) getBean(\"RecipientDao\");\n\t\t\n\t\ttarget = targetDao.getTarget(aForm.getTargetID(), aForm.getCompanyID(req));\n\t\tint numOfRecipients = recipientDao.sumOfRecipients(aForm.getCompanyID(req), target.getTargetSQL());\n\t\t\n\t\taForm.setNumOfRecipients(numOfRecipients);\n\t\t\n\t}",
"public int getVersionCount(String mailId, String assignment){\n\t\t\t\tint count = 0;\n\t\t\t\tConnection conn = openConnection();\n\t\t \tPreparedStatement stmt = null;\n\t\t \t// Execute SQL query\n\t\t try {\n\t\t \tString sql = \"SELECT filename FROM ASSIGNMENTS WHERE assignmentname=? AND emailid=?\";\n\t\t\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\t\t\tstmt.setString(1, assignment);\n\t\t\t\t\tstmt.setString(2, mailId);\n\t\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\t\t//System.out.println(\"InsertUserDetails state: \"+state+\" | \"+name+\",\"+pwd+\",\"+role+church);\n\t\t\t\t\tif(rs!=null){\n\t\t\t\t\t\twhile(rs.next()){\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t\tcloseConnection(conn);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t return count;\n\t\t}",
"int getEntryCount();",
"int getPickupsCount();",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"int getUserQuestJobsCount();",
"public void setSuppliersId(Short suppliersId) {\n this.suppliersId = suppliersId;\n }",
"int getStudentCount();",
"int getTaskDetailsCount();",
"public int countElectronicsByMaker(String maker)\n { \n \tint count = 0;\n \tfor( Gizmo g : purchases )\n \t{\n \t\tif( g.getMaker().equals( maker ) && g.isElectronic()==true )\n \t\t\tcount = count + 1; //or count++\n \t}\n \treturn count; \t\n }",
"int getPurchasableOffersCount();",
"public int getTotalSPEntries() {\n\t\tList<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\treturn list.size();\n\t}",
"public NM getNumberOfTPSTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(39, 0);\r\n\t\treturn retVal;\r\n }",
"public int getIncidentsReportedCount() {\r\n\t\treturn incidentsReported.size();\r\n\t}",
"public int getDeliveredCount() {\n return delivered_.size();\n }",
"public int addSupplierEntity(SupplierEntity originEntity) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n Integer supplierId = null;\n\n try {\n tx = session.beginTransaction();\n supplierId = (Integer) session.save(originEntity);\n tx.commit();\n log.warn(\"Added supplier: \" + originEntity + \" with id of: \" + supplierId);\n } catch (HibernateException e) {\n if (tx!=null) tx.rollback();\n log.error(e);\n } finally {\n session.close();\n }\n\n return supplierId;\n\n }",
"@Override\r\n\tpublic int getReportingUrlCreationInfoCount(Object obj){\n\t\ttry {\r\n\t\t\tMap<?, ?> map = (HashMap) obj;\r\n\t\t\tLong count = null;\r\n\t\t\tif (map != null && map.get(\"mapKey\") != null){\r\n\t\t\t\t// Condition Codes\r\n\t\t\t\tcount = (Long) getSession().createQuery(\"select count(*) from ReportingUrlCreation ruc\" +\r\n\t\t\t\t\t\t\" where ruc.status = 'A' and ruc.entityKey like :entityKey\")\r\n\t\t\t\t\t\t.setParameter(\"entityKey\", \"%\" + map.get(\"mapKey\") + \"%\")\r\n\t\t\t\t\t\t.uniqueResult();\r\n\t\t\t} else {\r\n\t\t\t\tcount = (Long) getSession().createQuery(\"select count(*) from ReportingUrlCreation ruc\" +\r\n\t\t\t\t\t\t\" where ruc.status = 'A' \")\r\n\t\t\t\t\t\t.uniqueResult();\r\n\t\t\t}\r\n\t\t\treturn count.intValue();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tre.printStackTrace();\r\n\t\t\tthrow re;\r\n\t\t}\r\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"int getVulnerabilityReportsCount();",
"public static int getNoOfHospitals(){\n return noOfHospitals;\n }",
"@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);",
"@Override\n\tpublic int countByemailReqBfcInfo(boolean inStage, String email) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_EMAILREQBFCINFO;\n\n\t\tObject[] finderArgs = new Object[] { inStage, email };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_LOCALRICHINFO_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_INSTAGE_2);\n\n\t\t\tboolean bindEmail = false;\n\n\t\t\tif (email == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_EMAIL_1);\n\t\t\t}\n\t\t\telse if (email.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_EMAIL_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindEmail = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_EMAIL_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(inStage);\n\n\t\t\t\tif (bindEmail) {\n\t\t\t\t\tqPos.add(email);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public int getCountExemplarsBorrowed() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint borrowedCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (exemplar.getIsBorrowed()) {\r\n \t\t\t\tborrowedCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn borrowedCount;\r\n \t}",
"public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}",
"public void getSeedEntryCount(String mVarietyMstID,\n String mGradeId,String CurrentDate,\n String HeapNo,\n\n final HttpResponseListener<JSONObject> hhtpResponseListener) {\n CurrentDate = AllUtils.getFormattedDateForSql(CurrentDate);\n String url = ConstantPath.BASE_URL_NEW + \"Mahacott/CallTrackingRequest?action=getSeedEntryCount&CommodityMstId=2\"\n + \"&CommoVarietyMstId=\" + mVarietyMstID\n + \"&Grade=\" + mGradeId\n + \"&PressingDate=\" +CurrentDate\n + \"&HeapNo=\" + HeapNo + \"\";\n\n System.out.println(\"URL==\" + url);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n System.out.println(\"GET SEED STOCK QTY RESPONSE: \" + response.toString());\n hhtpResponseListener.getResponse(response);\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO Auto-generated method stub\n error.printStackTrace();\n }\n });\n\n RequestConnection.getRequestConnection(context).addRequestQue(jsonObjectRequest);\n\n }",
"private int getNum(EngClass ec) {\n\t\treturn engClassService.getStuNum(ec);\n\t}",
"private int getPersonTypeCountFromPassengers(final Collection<Passenger> passengers, final PersonType type)\r\n {\r\n final Set<PersonType> adultType = EnumSet.of(type);\r\n return PassengerUtils.getPersonTypeCountFromPassengers(passengers, adultType);\r\n }",
"public int numSubmissions(String name) {\n // checks if student exists - stores index in student list if exists\n int exists = this.studentExists(name);\n\n // return -1 if name is invalid or student does not exist\n if (name == null || name == \"\" || exists == -1) {\n return -1;\n } else {\n // student does exists, so returns number of submissions for student\n return (studentList.get(exists)).getNumberSubmits();\n }\n }"
]
| [
"0.7313868",
"0.65647984",
"0.65034807",
"0.64309675",
"0.62104464",
"0.6022463",
"0.5828416",
"0.58198696",
"0.5732197",
"0.56718683",
"0.5659879",
"0.5631629",
"0.5602353",
"0.5560752",
"0.5445404",
"0.5438907",
"0.5433548",
"0.5388708",
"0.5381465",
"0.53741556",
"0.5359628",
"0.53325725",
"0.5274014",
"0.52646077",
"0.5263096",
"0.5254045",
"0.52225024",
"0.5164766",
"0.51611453",
"0.5160495",
"0.5150906",
"0.5150906",
"0.51428133",
"0.513268",
"0.50934035",
"0.5091735",
"0.50679624",
"0.5040929",
"0.50376534",
"0.5035902",
"0.50325215",
"0.5006715",
"0.5002124",
"0.49942237",
"0.4984486",
"0.49615386",
"0.495853",
"0.49559245",
"0.4951949",
"0.49410078",
"0.49323112",
"0.49323112",
"0.49040285",
"0.48966634",
"0.48945278",
"0.48706773",
"0.48701024",
"0.48701024",
"0.48613495",
"0.48581976",
"0.485779",
"0.48568642",
"0.48431242",
"0.48358107",
"0.48331824",
"0.48320085",
"0.48261303",
"0.48168314",
"0.4795627",
"0.4790108",
"0.47890586",
"0.4782417",
"0.47808856",
"0.47803336",
"0.47688752",
"0.47650832",
"0.47626904",
"0.47606137",
"0.47593606",
"0.47518948",
"0.4745825",
"0.47453612",
"0.47410414",
"0.47406834",
"0.47325456",
"0.47283262",
"0.47260344",
"0.47193733",
"0.47164613",
"0.47160536",
"0.47125965",
"0.47114348",
"0.47106007",
"0.47031453",
"0.46963462",
"0.46855322",
"0.46833515",
"0.46833304",
"0.46822804",
"0.46813142"
]
| 0.7180554 | 1 |
Caches the gdf tender submission details in the entity cache if it is enabled. | public static void cacheResult(
GDFTenderSubmissionDetails gdfTenderSubmissionDetails) {
getPersistence().cacheResult(gdfTenderSubmissionDetails);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }",
"@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }",
"public void cacheResult(DataEntry dataEntry);",
"public void setCached() {\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }",
"@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}",
"@Override\n public boolean isCaching() {\n return false;\n }",
"@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }",
"@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }",
"@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}",
"@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }",
"private void addEntitiesToEntityCache(ModelReader modelReader,\n\t\t ResourceHandler resourceHandler,\n String loaderEnt,\n String locationEnt) throws OfbizDataException {\n\t\tif (modelReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null reader or resource handler\" +\n\t\t\t\t\t \" in addEntitiesToEntityCache() method. Model\" +\n \" reader: %s Resource handler: %s\",\n modelReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n Document document;\n\t\t\tMap<String, ModelEntity> entityCache = modelReader.getEntityCache();\n List<ModelViewEntity> tempViewEntityList\n = new LinkedList<ModelViewEntity>();\n Hashtable<String, String> docElementValues\n = new Hashtable<String, String>();\n\n\t\t\tsynchronized (ModelReader.class) {\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n String msg = \"Error getting document from resource handler\";\n LOG.error(msg);\n\t\t\t\t\tthrow new GenericEntityConfException(msg, e);\n\t\t\t\t}\n\t\t\t\tif(document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n\t\t\t\t\tString msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tint i = 0;\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tboolean isEntity = \"entity\".equals(curChild.getNodeName());\n\t\t\t\t\t\tboolean isViewEntity = \"view-entity\".equals(curChild.getNodeName());\n\n\t\t\t\t\t\tif ((isEntity || isViewEntity) &&\n\t\t\t\t\t\t\tcurChild.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n\t\t\t\t\t\t\t\tUtilXml.checkEmpty(curEntity.getAttribute(\"entity-name\"));\n\n\t\t\t\t\t\t\t// check to see if entity with same name has already\n\t\t\t\t\t\t\t// been read\n\t\t\t\t\t\t\tif (entityCache.containsKey(entityName)) {\n if(LOG.isDebugEnabled()) {\n LOG.debug(String.format(\n \"Entity %s is defined more than once, most \" +\n \"recent will overwrite previous definition\",\n entityName));\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// add entity to entityResourceHandlerMap map\n\t\t\t\t\t\t\tmodelReader.addEntityToResourceHandler(entityName,\n\t\t\t\t\t\t\t\t loaderEnt,\n locationEnt);\n\n\t\t\t\t\t\t\tModelEntity entity;\n\n\t\t\t\t\t\t\tif (isEntity) {\n\t\t\t\t\t\t\t\tentity = createModelEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n if(LOG.isDebugEnabled()){\n LOG.debug(String.format(\"[Entity]: # %d: %s\",\n i, entityName));\n }\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tentity = createModelViewEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n\t\t\t\t\t\t\t\t// put the view entity in a list to get ready\n\t\t\t\t\t\t\t\t// for the second pass to populate fields...\n\t\t\t\t\t\t\t\ttempViewEntityList.add((ModelViewEntity)entity);\n if(LOG.isDebugEnabled()){\n String msg = String.format(\"[ViewEntity]: # %d: %s\",\n i, entityName);\n LOG.debug(msg);\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (entity != null) {\n safelyMapAdd(entityCache, entityName, entity);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLOG.warn(String.format(\"Could not create entity \" +\n \"for entityName: %s\",\n\t\t\t\t\t\t\t\t\t\t entityName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"No child nodes found.\");\n\t\t\t\t}\n\n\t\t\t\tmodelReader.rebuildResourceHandlerEntities();\n\n\t\t\t\t// do a pass on all of the view entities now that all of the\n\t\t\t\t// entities have loaded and populate the fields\n for (ModelViewEntity me : tempViewEntityList) {\n me.populateFields(entityCache);\n }\n\t\t\t\tLOG.debug(\"FINISHED LOADING ENTITIES.\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding entities \" +\n\t\t\t\t\t\"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}",
"public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }",
"@Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}",
"public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);",
"public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }",
"public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }",
"public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode) {\n\t\t\n\t}",
"protected void cacheLoadThroughSubjects()\n {\n }",
"public static void setProposalInCache(ProposalDTO proposalDTO){\n \tString proposalKey=PROPOSAL_KEY+\"_\"+proposalDTO.getProposalId();\n\t\tlog.info(\"set proposal in memcache : memcache key:\"+proposalKey);\n\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalDTO);\n\t}",
"@Override\n\tpublic void cacheResult(Paper paper) {\n\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tPaperImpl.class, paper.getPrimaryKey(), paper);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { paper.getUuid(), paper.getGroupId() }, paper);\n\n\t\tpaper.resetOriginalValues();\n\t}",
"@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }",
"void reattachEntityWithNoLock(IPojoGenEntity entity);",
"protected void assignTracked() {\r\n\t\tsubmitTracked = new CTracked();\r\n\t\tsubmitTracked.setName(txtName.getText());\r\n\t\tsubmitTracked.setPassword(txtPassword.getText());\r\n\t\tsubmitTracked.setEmail(txtEmail.getText());\r\n\t\tsubmitTracked.setBirthday(dateBirthday.getValue());\r\n\t\tsubmitTracked.setTel(txtMobilePhone.getText().equals(\"\") ? null\r\n\t\t\t\t: txtMobilePhone.getText());\r\n\t\tsubmitTracked\r\n\t\t\t\t.setIntervalGps(Integer.parseInt(cbIntervalGPS.getValue()));\r\n\t\tsubmitTracked.setActive(checkActive.getValue());\r\n\t\tsubmitTracked.setEmbedded(checkEmbedded.getValue());\r\n\t\tsubmitTracked.setShowInMap(checkShowInMap.getValue());\r\n\t\tsubmitTracked.setLang(cbLanguage.getValue());\r\n\t\tsubmitTracked.setCountry(cbCountry.getValue());\r\n\t\t\r\n\t\tsubmitTracked.setSchedule(scheduleWindow.getSubmitSchedule().toBytes());\r\n\t\ttry {\r\n\t\t\tsubmitTracked.setGmt(new Integer(cbTimeZone.getValue()));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tsubmitTracked.setGmt(7);\r\n\t\t}\r\n\t\tsubmitTracked.setApiKey(txtApiKey.getText());\r\n\t\tpostAssignTracked();\r\n\t}",
"@Override\n public void updateCache(List<FavoriteEntity> ltEntity)\n {\n super.delAll();\n this.appendCache(ltEntity);\n }",
"@Override\n\tpublic void cacheResult(FactNonPrintedMaterial factNonPrintedMaterial) {\n\t\tEntityCacheUtil.putResult(FactNonPrintedMaterialModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFactNonPrintedMaterialImpl.class,\n\t\t\tfactNonPrintedMaterial.getPrimaryKey(), factNonPrintedMaterial);\n\n\t\tfactNonPrintedMaterial.resetOriginalValues();\n\t}",
"public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }",
"@Override\n\tpublic void cacheResult(EmployeeComplaint employeeComplaint) {\n\t\tEntityCacheUtil.putResult(EmployeeComplaintModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEmployeeComplaintImpl.class, employeeComplaint.getPrimaryKey(),\n\t\t\temployeeComplaint);\n\n\t\temployeeComplaint.resetOriginalValues();\n\t}",
"@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}",
"public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }",
"@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }",
"boolean isCachingEnabled();",
"private void evictCache(ExtUser entity) {\n\t}",
"@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}",
"private boolean updateCache(String type) {\n\t\treturn false;\n\t}",
"public boolean isSaveCache() {\n return mSaveCache;\n }",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"private void updateTimeEntryData()\n throws RedmineException\n {\n if (System.currentTimeMillis() > (timeEntriesUpdateTimeStamp+Settings.cacheExpireTime*1000))\n {\n synchronized(timeEntries)\n {\n // get total number of time entries\n int timeEntryCount = getDataLength(\"/time_entries\",\"time_entry\");\n for (int i = timeEntries.size(); i < timeEntryCount; i++)\n {\n timeEntries.add(TIME_ENTRY_NULL);\n }\n\n // get date of first time entry (Note: always sorted descending and cannot be changed)\n timeEntryStartDate = new Date();\n getData(\"/time_entries\",\"time_entry\",timeEntryCount-1,1,new ParseElementHandler<TimeEntry>()\n {\n public void data(Element element)\n {\n timeEntryStartDate = getDateValue(element,\"spent_on\");\n//Dprintf.dprintf(\"timeEntryStartDate=%s\",timeEntryStartDate);\n }\n });\n\n timeEntriesUpdateTimeStamp = System.currentTimeMillis();\n }\n }\n }",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode, Map<String, Object> properties) {\n\t\t\n\t}",
"@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}",
"public void preDoSave(T entity)\n {\n }",
"@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(AddressChangeReqDetails addressChangeReqDetails) {\n\t\tEntityCacheUtil.putResult(AddressChangeReqDetailsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAddressChangeReqDetailsImpl.class,\n\t\t\taddressChangeReqDetails.getPrimaryKey(), addressChangeReqDetails);\n\n\t\taddressChangeReqDetails.resetOriginalValues();\n\t}",
"@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public void refreshObjectCache();",
"public static boolean updateStuff(Entity entity){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tKey key = datastore.put(entity);\n\t\tif (key != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private void writefastcq() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"cq\");\r\n\t\tedit.commit();\r\n\t}",
"protected void customCustomRendering(T entity, double x, double y, double z, float entityYaw, float partialTicks) {}",
"public static <T extends Entity> EntityCache<T> getMemoryEntityCache() {\n\t\tEntityMap<T> entityMap = new MemoryEntityMap<T>();\n\t\treturn new EntityCache<T>(entityMap);\n\t}",
"@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}",
"public DBMaker enableMRUCache() {\n cacheType = DBCacheRef.MRU;\n return this;\n }",
"protected boolean shouldUseCache()\n/* */ {\n/* 384 */ return ((isCacheable()) && (this.painters != null) && (this.painters.length > 0)) || (super.shouldUseCache());\n/* */ }",
"private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }",
"@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tprotected void processEntity(Entity entity, float deltaTime) {\n\t\t\n\t}",
"StoreResponse set(CACHE_ELEMENT e);",
"public void save(Session session) {\n session.save(this);\n ModelMeta meta = ModelMeta.getModelMeta(this.getClass());\n if(meta.isCacheable()){\n RedisTemplate.save(this);\n }\n }",
"private <T extends EntityBase> void updateParentEntityInCache(Class<T> entityClass, UUID uuid, T entity) {\n for (T childEntity : cache.getEntities(entityClass)) {\n if (uuid.equals(childEntity.getParentEntityId())) {\n childEntity.setParentEntity(entity);\n }\n }\n }",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"@Override\n protected Loadable[] getEntityPersisters() {\n \t\treturn persisters;\n \t}",
"TabListCacheTransmitter getTabListCacheTransmitter();",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public void cacheResult(AnnotationInfo annotationInfo) {\n\t\tEntityCacheUtil.putResult(AnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey(),\n\t\t\tannotationInfo);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ANNOTATIONPROPERTIES,\n\t\t\tnew Object[] {\n\t\t\t\tLong.valueOf(annotationInfo.getDocumentRecordID()),\n\t\t\t\t\n\t\t\tannotationInfo.getName(),\n\t\t\t\t\n\t\t\tannotationInfo.getAnnotationType(),\n\t\t\t\t\n\t\t\tannotationInfo.getLead()\n\t\t\t}, annotationInfo);\n\n\t\tannotationInfo.resetOriginalValues();\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"@LogMessage(level = WARN)\n @Message(value = \"read-only cache configured for mutable entity [%s]\", id = 20007)\n void readOnlyCacheConfiguredForMutableEntity(String entityName);",
"public EntityData dynamicUpdateCache(DynamicMetadataSource source, MetadataCache cache, String entityID, byte[] document) throws InvalidMetadataException;",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"@Override\n public EntityResponse getEntity(String entitySetName, OEntityKey entityKey, EntityQueryInfo queryInfo) { \n if (_log.isDebugEnabled()) {\n _log.debug(\"getEntity(set:\" + entitySetName + \", key:\" + entityKey + \", queryInfo:{\" + OData4JServerUtils.toString(queryInfo) + \"}\");\n }\n \n ExtendedPropertyModel.setQueryInfo(queryInfo);\n try {\n return super.getEntity(entitySetName, entityKey, queryInfo);\n } finally {\n // remove from thread-local\n ExtendedPropertyModel.setQueryInfo(null);\n }\n }",
"@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }",
"public void cacheResult(VcmsArticleType vcmsArticleType);",
"public boolean shouldCache() {\n return this.shouldCache;\n }",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"public boolean isCached() {\n return true;\n }",
"public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);",
"public Map<String, ProvisioningEntity> getCacheJsonToProvisioningEntity() {\n return this.cacheJsonToProvisioningEntity;\n }",
"@SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();",
"@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}",
"public void cacheResult(CsclAppointeeMaster csclAppointeeMaster);",
"@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}",
"protected void addTileToCache(ElevationTile tile, BufferWrapper elevations)\n {\n if (tile.getLevelNumber() == 0)\n this.levelZeroTiles.put(tile.getTileKey(), tile);\n else\n this.getMemoryCache().add(tile.getTileKey(), tile, elevations.getSizeInBytes());\n }",
"public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }",
"public Object saveState(FacesContext context) {\r\n Object values[] = new Object[24];\r\n values[0] = super.saveState(context);\r\n// values[1] = new Integer(imageCounter);\r\n values[2] = width;\r\n values[3] = height;\r\n values[4] = render ? Boolean.TRUE : Boolean.FALSE;\r\n values[5] = chartTitle;\r\n values[6] = data;\r\n values[7] = labels;\r\n values[8] = colors;\r\n values[9] = shapes;\r\n values[10] = xaxisLabels;\r\n values[11] = xaxisTitle;\r\n values[12] = yaxisTitle;\r\n values[13] = style;\r\n values[14] = styleClass;\r\n values[15] = legendPlacement;\r\n values[16] = legendColumns;\r\n values[17] = horizontal ? Boolean.TRUE : Boolean.FALSE;\r\n values[18] = horizontalSet ? Boolean.TRUE : Boolean.FALSE;\r\n values[19] = chartURI;\r\n values[20] = chartResource;\r\n values[21] = saveAttachedState(context, renderOnSubmitMethodBinding);\r\n values[22] = type;\r\n values[23] = parentFormId;\r\n return ((Object) (values));\r\n }",
"public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name)) {\r\n // Found cached\r\n cached.remove(e.getKey());\r\n break;\r\n }\r\n }\r\n // Put new entry\r\n if(o != null)\r\n cached.put(o, name);\r\n // Post async update\r\n pending.put(name, o);\r\n apply(context);\r\n }",
"@Override\n\tpublic void cacheResult(Department department) {\n\t\tEntityCacheUtil.putResult(DepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tDepartmentImpl.class, department.getPrimaryKey(), department);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\tnew Object[] { department.getName(), department.getDevisionId() },\n\t\t\tdepartment);\n\n\t\tdepartment.resetOriginalValues();\n\t}",
"@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }",
"public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"public Boolean updateCache(String type) throws Exception {\n //Updating the same policy\n System.out.println(\"Updating Cache after a record is \"+type);\n JSONObject currentPolicy = policy.getCachePolicy();\n return updateCache(currentPolicy);\n }",
"public long getLastModified() { return _entry!=null? _entry.getLastModified() : 0; }"
]
| [
"0.5678779",
"0.56590605",
"0.5521769",
"0.50311625",
"0.4934079",
"0.4928972",
"0.49066618",
"0.4889288",
"0.47983852",
"0.47925994",
"0.47729024",
"0.47714758",
"0.4766856",
"0.47552973",
"0.47483295",
"0.47384727",
"0.47074765",
"0.46329772",
"0.46110868",
"0.45943078",
"0.45910907",
"0.4580216",
"0.4571646",
"0.45442396",
"0.45189798",
"0.4517866",
"0.4510866",
"0.44926438",
"0.44842553",
"0.44813442",
"0.44725522",
"0.44650614",
"0.44637892",
"0.44615918",
"0.44594985",
"0.44505402",
"0.44422275",
"0.44316924",
"0.44219783",
"0.44181293",
"0.44159755",
"0.44133365",
"0.4409115",
"0.44043967",
"0.4394571",
"0.43802786",
"0.43772462",
"0.4372466",
"0.4365823",
"0.43657047",
"0.43607914",
"0.43516654",
"0.43463388",
"0.4344259",
"0.43407574",
"0.43327639",
"0.4330762",
"0.43305355",
"0.4329613",
"0.43294758",
"0.43227738",
"0.43224964",
"0.43219078",
"0.4321362",
"0.43174097",
"0.43119353",
"0.43090126",
"0.4308999",
"0.43046317",
"0.4304044",
"0.43033403",
"0.43013164",
"0.4297572",
"0.42940286",
"0.42911208",
"0.4287649",
"0.42829672",
"0.42793095",
"0.4278902",
"0.4273123",
"0.42724854",
"0.42723092",
"0.4263539",
"0.426297",
"0.42562184",
"0.425449",
"0.42537656",
"0.42459086",
"0.42404547",
"0.4240321",
"0.4239867",
"0.42392203",
"0.42321378",
"0.42245683",
"0.42177248",
"0.4210375",
"0.4207778",
"0.4207521",
"0.42051622",
"0.42036042"
]
| 0.6943599 | 0 |
Caches the gdf tender submission detailses in the entity cache if it is enabled. | public static void cacheResult(
List<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {
getPersistence().cacheResult(gdfTenderSubmissionDetailses);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }",
"public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }",
"@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }",
"public void cacheResult(DataEntry dataEntry);",
"@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}",
"@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }",
"@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }",
"public void setCached() {\n }",
"private void addEntitiesToEntityCache(ModelReader modelReader,\n\t\t ResourceHandler resourceHandler,\n String loaderEnt,\n String locationEnt) throws OfbizDataException {\n\t\tif (modelReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null reader or resource handler\" +\n\t\t\t\t\t \" in addEntitiesToEntityCache() method. Model\" +\n \" reader: %s Resource handler: %s\",\n modelReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n Document document;\n\t\t\tMap<String, ModelEntity> entityCache = modelReader.getEntityCache();\n List<ModelViewEntity> tempViewEntityList\n = new LinkedList<ModelViewEntity>();\n Hashtable<String, String> docElementValues\n = new Hashtable<String, String>();\n\n\t\t\tsynchronized (ModelReader.class) {\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n String msg = \"Error getting document from resource handler\";\n LOG.error(msg);\n\t\t\t\t\tthrow new GenericEntityConfException(msg, e);\n\t\t\t\t}\n\t\t\t\tif(document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n\t\t\t\t\tString msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tint i = 0;\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tboolean isEntity = \"entity\".equals(curChild.getNodeName());\n\t\t\t\t\t\tboolean isViewEntity = \"view-entity\".equals(curChild.getNodeName());\n\n\t\t\t\t\t\tif ((isEntity || isViewEntity) &&\n\t\t\t\t\t\t\tcurChild.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n\t\t\t\t\t\t\t\tUtilXml.checkEmpty(curEntity.getAttribute(\"entity-name\"));\n\n\t\t\t\t\t\t\t// check to see if entity with same name has already\n\t\t\t\t\t\t\t// been read\n\t\t\t\t\t\t\tif (entityCache.containsKey(entityName)) {\n if(LOG.isDebugEnabled()) {\n LOG.debug(String.format(\n \"Entity %s is defined more than once, most \" +\n \"recent will overwrite previous definition\",\n entityName));\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// add entity to entityResourceHandlerMap map\n\t\t\t\t\t\t\tmodelReader.addEntityToResourceHandler(entityName,\n\t\t\t\t\t\t\t\t loaderEnt,\n locationEnt);\n\n\t\t\t\t\t\t\tModelEntity entity;\n\n\t\t\t\t\t\t\tif (isEntity) {\n\t\t\t\t\t\t\t\tentity = createModelEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n if(LOG.isDebugEnabled()){\n LOG.debug(String.format(\"[Entity]: # %d: %s\",\n i, entityName));\n }\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tentity = createModelViewEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n\t\t\t\t\t\t\t\t// put the view entity in a list to get ready\n\t\t\t\t\t\t\t\t// for the second pass to populate fields...\n\t\t\t\t\t\t\t\ttempViewEntityList.add((ModelViewEntity)entity);\n if(LOG.isDebugEnabled()){\n String msg = String.format(\"[ViewEntity]: # %d: %s\",\n i, entityName);\n LOG.debug(msg);\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (entity != null) {\n safelyMapAdd(entityCache, entityName, entity);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLOG.warn(String.format(\"Could not create entity \" +\n \"for entityName: %s\",\n\t\t\t\t\t\t\t\t\t\t entityName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"No child nodes found.\");\n\t\t\t\t}\n\n\t\t\t\tmodelReader.rebuildResourceHandlerEntities();\n\n\t\t\t\t// do a pass on all of the view entities now that all of the\n\t\t\t\t// entities have loaded and populate the fields\n for (ModelViewEntity me : tempViewEntityList) {\n me.populateFields(entityCache);\n }\n\t\t\t\tLOG.debug(\"FINISHED LOADING ENTITIES.\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding entities \" +\n\t\t\t\t\t\"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }",
"@Override\n public boolean isCaching() {\n return false;\n }",
"@Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );",
"@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }",
"@Override\n\tpublic void cacheResult(Paper paper) {\n\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tPaperImpl.class, paper.getPrimaryKey(), paper);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { paper.getUuid(), paper.getGroupId() }, paper);\n\n\t\tpaper.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(FactNonPrintedMaterial factNonPrintedMaterial) {\n\t\tEntityCacheUtil.putResult(FactNonPrintedMaterialModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFactNonPrintedMaterialImpl.class,\n\t\t\tfactNonPrintedMaterial.getPrimaryKey(), factNonPrintedMaterial);\n\n\t\tfactNonPrintedMaterial.resetOriginalValues();\n\t}",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }",
"public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);",
"@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}",
"protected void cacheLoadThroughSubjects()\n {\n }",
"@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}",
"public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }",
"public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode) {\n\t\t\n\t}",
"@Override\n public void updateCache(List<FavoriteEntity> ltEntity)\n {\n super.delAll();\n this.appendCache(ltEntity);\n }",
"@Override\n\tpublic void cacheResult(EmployeeComplaint employeeComplaint) {\n\t\tEntityCacheUtil.putResult(EmployeeComplaintModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEmployeeComplaintImpl.class, employeeComplaint.getPrimaryKey(),\n\t\t\temployeeComplaint);\n\n\t\temployeeComplaint.resetOriginalValues();\n\t}",
"public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected boolean shouldUseCache()\n/* */ {\n/* 384 */ return ((isCacheable()) && (this.painters != null) && (this.painters.length > 0)) || (super.shouldUseCache());\n/* */ }",
"private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }",
"@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}",
"public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }",
"@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}",
"public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static void setProposalInCache(ProposalDTO proposalDTO){\n \tString proposalKey=PROPOSAL_KEY+\"_\"+proposalDTO.getProposalId();\n\t\tlog.info(\"set proposal in memcache : memcache key:\"+proposalKey);\n\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalDTO);\n\t}",
"void reattachEntityWithNoLock(IPojoGenEntity entity);",
"@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}",
"private void writefastcq() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"cq\");\r\n\t\tedit.commit();\r\n\t}",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"@Override\n\tprotected void processEntity(Entity entity, float deltaTime) {\n\t\t\n\t}",
"public void post() {\n//\t\tif(!supercachequery){\n//\t\t\thandlePostReset();\n//\t\t}\n//\t\tsupercachequery = false;\n\t}",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode, Map<String, Object> properties) {\n\t\t\n\t}",
"public void refreshObjectCache();",
"@Override\n\tpublic void cacheResult(AddressChangeReqDetails addressChangeReqDetails) {\n\t\tEntityCacheUtil.putResult(AddressChangeReqDetailsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAddressChangeReqDetailsImpl.class,\n\t\t\taddressChangeReqDetails.getPrimaryKey(), addressChangeReqDetails);\n\n\t\taddressChangeReqDetails.resetOriginalValues();\n\t}",
"public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);",
"public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}",
"protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }",
"@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }",
"@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public void save(Session session) {\n session.save(this);\n ModelMeta meta = ModelMeta.getModelMeta(this.getClass());\n if(meta.isCacheable()){\n RedisTemplate.save(this);\n }\n }",
"public boolean isSaveCache() {\n return mSaveCache;\n }",
"@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}",
"@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}",
"public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }",
"public Object saveState(FacesContext context) {\r\n Object values[] = new Object[24];\r\n values[0] = super.saveState(context);\r\n// values[1] = new Integer(imageCounter);\r\n values[2] = width;\r\n values[3] = height;\r\n values[4] = render ? Boolean.TRUE : Boolean.FALSE;\r\n values[5] = chartTitle;\r\n values[6] = data;\r\n values[7] = labels;\r\n values[8] = colors;\r\n values[9] = shapes;\r\n values[10] = xaxisLabels;\r\n values[11] = xaxisTitle;\r\n values[12] = yaxisTitle;\r\n values[13] = style;\r\n values[14] = styleClass;\r\n values[15] = legendPlacement;\r\n values[16] = legendColumns;\r\n values[17] = horizontal ? Boolean.TRUE : Boolean.FALSE;\r\n values[18] = horizontalSet ? Boolean.TRUE : Boolean.FALSE;\r\n values[19] = chartURI;\r\n values[20] = chartResource;\r\n values[21] = saveAttachedState(context, renderOnSubmitMethodBinding);\r\n values[22] = type;\r\n values[23] = parentFormId;\r\n return ((Object) (values));\r\n }",
"private boolean updateCache(String type) {\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();",
"@Override protected void processEntity(Time time, Entity entity) {\n }",
"@Override\n public EntityResponse getEntity(String entitySetName, OEntityKey entityKey, EntityQueryInfo queryInfo) { \n if (_log.isDebugEnabled()) {\n _log.debug(\"getEntity(set:\" + entitySetName + \", key:\" + entityKey + \", queryInfo:{\" + OData4JServerUtils.toString(queryInfo) + \"}\");\n }\n \n ExtendedPropertyModel.setQueryInfo(queryInfo);\n try {\n return super.getEntity(entitySetName, entityKey, queryInfo);\n } finally {\n // remove from thread-local\n ExtendedPropertyModel.setQueryInfo(null);\n }\n }",
"boolean isCachingEnabled();",
"public void cacheResult(AnnotationInfo annotationInfo) {\n\t\tEntityCacheUtil.putResult(AnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey(),\n\t\t\tannotationInfo);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ANNOTATIONPROPERTIES,\n\t\t\tnew Object[] {\n\t\t\t\tLong.valueOf(annotationInfo.getDocumentRecordID()),\n\t\t\t\t\n\t\t\tannotationInfo.getName(),\n\t\t\t\t\n\t\t\tannotationInfo.getAnnotationType(),\n\t\t\t\t\n\t\t\tannotationInfo.getLead()\n\t\t\t}, annotationInfo);\n\n\t\tannotationInfo.resetOriginalValues();\n\t}",
"@Override\n protected Loadable[] getEntityPersisters() {\n \t\treturn persisters;\n \t}",
"@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"public void cacheResult(CompanyAg companyAg) {\n\t\tEntityCacheUtil.putResult(CompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey(), companyAg);\n\n\t\tcompanyAg.resetOriginalValues();\n\t}",
"public DBMaker enableMRUCache() {\n cacheType = DBCacheRef.MRU;\n return this;\n }",
"private void evictCache(ExtUser entity) {\n\t}",
"@Override\n\tpublic void cacheResult(Department department) {\n\t\tEntityCacheUtil.putResult(DepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tDepartmentImpl.class, department.getPrimaryKey(), department);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\tnew Object[] { department.getName(), department.getDevisionId() },\n\t\t\tdepartment);\n\n\t\tdepartment.resetOriginalValues();\n\t}",
"public void cacheResult(Campus campus);",
"public void cacheResult(VcmsArticleType vcmsArticleType);",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public void cacheResult(CsclAppointeeMaster csclAppointeeMaster);",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}",
"public void cacheResult(TrabajadorEmpresa trabajadorEmpresa) {\n\t\tEntityCacheUtil.putResult(TrabajadorEmpresaModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTrabajadorEmpresaImpl.class, trabajadorEmpresa.getPrimaryKey(),\n\t\t\ttrabajadorEmpresa);\n\n\t\ttrabajadorEmpresa.resetOriginalValues();\n\t}",
"protected void customCustomRendering(T entity, double x, double y, double z, float entityYaw, float partialTicks) {}",
"private void updateTimeEntryData()\n throws RedmineException\n {\n if (System.currentTimeMillis() > (timeEntriesUpdateTimeStamp+Settings.cacheExpireTime*1000))\n {\n synchronized(timeEntries)\n {\n // get total number of time entries\n int timeEntryCount = getDataLength(\"/time_entries\",\"time_entry\");\n for (int i = timeEntries.size(); i < timeEntryCount; i++)\n {\n timeEntries.add(TIME_ENTRY_NULL);\n }\n\n // get date of first time entry (Note: always sorted descending and cannot be changed)\n timeEntryStartDate = new Date();\n getData(\"/time_entries\",\"time_entry\",timeEntryCount-1,1,new ParseElementHandler<TimeEntry>()\n {\n public void data(Element element)\n {\n timeEntryStartDate = getDateValue(element,\"spent_on\");\n//Dprintf.dprintf(\"timeEntryStartDate=%s\",timeEntryStartDate);\n }\n });\n\n timeEntriesUpdateTimeStamp = System.currentTimeMillis();\n }\n }\n }",
"@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }",
"public EntityData dynamicUpdateCache(DynamicMetadataSource source, MetadataCache cache, String entityID, byte[] document) throws InvalidMetadataException;",
"public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}",
"private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }",
"@Override\r\n\tpublic void cacheResult(Share share) {\r\n\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\tShareImpl.class, share.getPrimaryKey(), share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\tnew Object[] { share.getUuid(), share.getGroupId() }, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_NAMEMARKETCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getName(),\r\n\t\t\t\tshare.getMarketId()\r\n\t\t\t}, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getSymbol()\r\n\t\t\t}, share);\r\n\r\n\t\tshare.resetOriginalValues();\r\n\t}",
"private void reloadTreatmentData()\n {\n if (_dietTreatment == null) return;\n _dietTreatment.updateContactJournalsCache();\n _dietTreatment.updateDietParametersCache();\n _dietTreatment.updateDietPlansCache();\n _dietTreatment.updatePatientStatesCache();\n _dietTreatment.updateSystemUsersCache();\n \n // load nutritionprotocols\n NutritionProtocolDAO dao = DAOFactory.getInstance().getNutritionProtocolDAO();\n List<NutritionProtocol> nps = dao.findByDietTreatment(_dietTreatment.getModel());\n _nutritionProtocols = new ArrayList<NutritionProtocolBO>();\n for (NutritionProtocol nutritionProtocol : nps) \n {\n _nutritionProtocols.add(new NutritionProtocolBO(nutritionProtocol));\n }\n }",
"public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }",
"public static <T extends Entity> EntityCache<T> getMemoryEntityCache() {\n\t\tEntityMap<T> entityMap = new MemoryEntityMap<T>();\n\t\treturn new EntityCache<T>(entityMap);\n\t}",
"@Override\n\tpublic void cacheResult(List<Department> departments) {\n\t\tfor (Department department : departments) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDepartmentImpl.class, department.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(department);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdepartment.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@LogMessage(level = WARN)\n @Message(value = \"read-only cache configured for mutable entity [%s]\", id = 20007)\n void readOnlyCacheConfiguredForMutableEntity(String entityName);",
"public void cacheResult(List<ContactCompanyAg> contactCompanyAgs) {\n\t\tfor (ContactCompanyAg contactCompanyAg : contactCompanyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tContactCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tContactCompanyAgImpl.class,\n\t\t\t\t\t\tcontactCompanyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(contactCompanyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcontactCompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void cacheResult(Approvatore approvatore) {\n\t\tentityCache.putResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tApprovatoreImpl.class, approvatore.getPrimaryKey(), approvatore);\n\n\t\tapprovatore.resetOriginalValues();\n\t}",
"public boolean isCached() {\n return true;\n }",
"public void preDoSave(T entity)\n {\n }",
"private <T extends EntityBase> void updateParentEntityInCache(Class<T> entityClass, UUID uuid, T entity) {\n for (T childEntity : cache.getEntities(entityClass)) {\n if (uuid.equals(childEntity.getParentEntityId())) {\n childEntity.setParentEntity(entity);\n }\n }\n }",
"StoreResponse set(CACHE_ELEMENT e);",
"public static boolean updateStuff(Entity entity){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tKey key = datastore.put(entity);\n\t\tif (key != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}"
]
| [
"0.69956166",
"0.58064306",
"0.5601917",
"0.50370723",
"0.50053406",
"0.50012565",
"0.49946186",
"0.497783",
"0.49756977",
"0.49734905",
"0.49638838",
"0.48934865",
"0.48857242",
"0.47966164",
"0.47939914",
"0.47911644",
"0.47889534",
"0.47843227",
"0.47721186",
"0.4761203",
"0.47445115",
"0.47319692",
"0.4722295",
"0.4703671",
"0.46779016",
"0.46742195",
"0.4638626",
"0.4636493",
"0.46295863",
"0.4629246",
"0.4593912",
"0.4586881",
"0.45806453",
"0.45663065",
"0.45607537",
"0.45585042",
"0.4557814",
"0.45433375",
"0.45372102",
"0.45185304",
"0.4512236",
"0.4509522",
"0.45025763",
"0.45022023",
"0.44956315",
"0.44919312",
"0.44902822",
"0.4485311",
"0.44644988",
"0.44613582",
"0.44538596",
"0.44472018",
"0.44403347",
"0.44364515",
"0.44311303",
"0.4430868",
"0.44252545",
"0.44226447",
"0.44218975",
"0.4416347",
"0.44026276",
"0.4401348",
"0.44007313",
"0.44003332",
"0.43942654",
"0.43925837",
"0.43903184",
"0.4389476",
"0.43869364",
"0.43819734",
"0.43721133",
"0.43699917",
"0.4364744",
"0.43633574",
"0.43619657",
"0.4360762",
"0.43533158",
"0.43512672",
"0.43508297",
"0.4350232",
"0.434424",
"0.43431795",
"0.4340649",
"0.43394443",
"0.4336904",
"0.43363002",
"0.43283346",
"0.43276322",
"0.4317519",
"0.4304977",
"0.43044713",
"0.43036386",
"0.43035203",
"0.43033177",
"0.4299558",
"0.42987",
"0.42968267",
"0.42922306",
"0.42881793",
"0.42736745"
]
| 0.6089975 | 1 |
Creates a new gdf tender submission details with the primary key. Does not add the gdf tender submission details to the database. | public static GDFTenderSubmissionDetails create(long tenderSubRefID) {
return getPersistence().create(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createSubmission(String[] attributes, int docuID, int orgID) {\n\t\tint actID = ActivityDetailsService.getActivityDetailsByDocuID(docuID).getId();\n\t\tint submissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t//System.out.println(\"docuID: \" + docuID);\n\t\tif(submissionID == 0){\n\t\t\t//create submission details\n\t\t\tSubmissionDetails subDet = new SubmissionDetails();\n\t\t\tsubDet.setActID(actID);\n\t\t\tsubDet.setSubmittedBy(attributes[16]);\n\t\t\tsubDet.setContactNo(attributes[17]);\n\t\t\tsubDet.setEmailAddress(attributes[18]);\n\t\t\tsubDet.setDateSubmitted(toDateTime(attributes[0]));\n\t\t\tsubDet.setSubmissionType(attributes[4]);\n\t\t\t\n\t\t\tif(subDet.getSubmissionType().equalsIgnoreCase(\"Special Approval Slip\"))\n\t\t\t\tsubDet.setSasType(attributes[19]);\n\t\t\telse subDet.setSasType(\"-\");\n\t\t\tSubmissionDetailsService.addSubmissionDetails(subDet);\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t} else {\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t}\n\t\n\t}",
"TeacherRecord createTeacherRecord(String firstName, String lastName, String address, String phone,\n\t\t\tCourseType specialization, String location, String clientId) throws Exception;",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"@Override\n\tpublic long create(Teacher teacher) {\n\t\treturn 0;\n\t}",
"Paper addNewPaper(PaperForm form, Long courseId)throws Exception;",
"public DataEntry create(long dataEntryId);",
"public void createSurvey(int tid);",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"void create(Feedback entity);",
"public void create(CostEngineering costEngineering) {\n cost_engineering_dao.create(costEngineering);\n }",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void submitInfoButton(View v) {\n //each entry needs a unique ID\n Business newBusiness = new Business();\n String newKey = appState.firebaseReference.push().getKey();\n newBusiness.setName(nameField.getText().toString());\n newBusiness.setPrimaryBusiness(primaryBusinessField.getText().toString());\n newBusiness.setBusinessNumber(numberField.getText().toString());\n newBusiness.setAddress(addressField.getText().toString());\n newBusiness.setProvince(provinceField.getSelectedItem().toString());\n\n appState.firebaseReference.child(newKey).setValue(newBusiness,\n new DatabaseReference.CompletionListener(){\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference){\n if(databaseError != null){\n Toast toast = Toast.makeText(appState, \"Error: Creation failed!\",\n Toast.LENGTH_LONG);\n toast.show();\n } else {\n finish();\n Toast toast = Toast.makeText(appState, \"Business entry created\",\n Toast.LENGTH_LONG);\n toast.show();\n }\n }\n });\n }",
"@PostMapping(\"/record-25-herfinancieerings\")\n @Timed\n public ResponseEntity<Record25Herfinancieering> createRecord25Herfinancieering(@RequestBody Record25Herfinancieering record25Herfinancieering) throws URISyntaxException {\n log.debug(\"REST request to save Record25Herfinancieering : {}\", record25Herfinancieering);\n if (record25Herfinancieering.getId() != null) {\n throw new BadRequestAlertException(\"A new record25Herfinancieering cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Record25Herfinancieering result = record25HerfinancieeringRepository.save(record25Herfinancieering);\n return ResponseEntity.created(new URI(\"/api/record-25-herfinancieerings/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@POST \n\t\t@Path(\"NewGrant\") \n\t\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED) \n\t\t@Produces(MediaType.TEXT_PLAIN)\n\t\tpublic String insertFund( @FormParam(\"id\") String id,\n\t\t\t\t @FormParam(\"title\") String title,\n\t\t\t\t\t\t\t\t@FormParam(\"full_name\") String full_name,\n\t\t\t\t\t\t\t\t@FormParam(\"email\") String email,\n\t\t\t\t\t\t\t\t@FormParam(\"phone\") String phone,\n\t\t\t\t\t\t\t\t@FormParam(\"research_category\") String research_category,\n\t\t\t\t\t\t\t\t@FormParam(\"budget\") String budget,\n\t\t\t\t\t\t\t\t@FormParam(\"introduction\") String introduction)\n\t\n\t\t{\n\t\t \t{\n\t\t \t\tString output = Obj.insertGrantApplication(id,title,full_name,email,phone,research_category,budget,introduction); \n\t\t \t\treturn output;\n\t\t\t}\n\t\t}",
"private void addTeacher() {\n\t\t\n\t\tString lastName = tLastNameTF.getText();\n\t\tString firstName = tFirstNameTF.getText();\n\t\tString schoolName = tSchoolNameTF.getText();\n\t\tString userName = tUsernameTF.getText();\n\t\tchar[] password = tPasswordPF1.getPassword();\n\t\tString sA1 = tSecurityQ1TF.getText();\n\t\tString sQ1 = (String)tSecurityList1.getSelectedItem();\n\t\tString sA2 = tSecurityQ2TF.getText();\n\t\tString sQ2 = (String)tSecurityList2.getSelectedItem();\n\t\t\n\t\tteacher = new Teacher(lastName, firstName, schoolName, userName, password, sA1, sQ1, sA2, sQ2);\n\t\t\n\t\t//Add teacher to database \n\t\t\n\t}",
"public TeacherPage submit() {\n clickSaveButton();\n return this;\n }",
"@Override\n\tpublic void create(Teacher teacher) {\n\t\tdao.create(teacher);\n\t}",
"@Override\n\tpublic ResponseEntity<?> addGradeSubject(Integer tId, Integer gsId) {\n\t\tif (teacherRepo.existsById(tId)) {\n\t\t\tif (gradeSubjectRepo.existsById(gsId)) {\n\t\t\t\tUTeacherEntity teacher = teacherRepo.findById(tId).get();\n\t\t\t\tGrade_Subject gradSub = gradeSubjectRepo.findById(gsId).get();\n\t\t\t\tInteger label = gradSub.getGrade().getLabel();\n\n\t\t\t\tif (teacherGradeSubjectRepo.findByTeacher_idAndGradeSubject_id(tId, gsId).isPresent()) {\n\t\t\t\t\treturn new ResponseEntity<String>(\"Already exists in database.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t} else {\n\t\t\t\t\tif ((teacher.getTitle() == ETitle.SUBJECT_TEACHER && label > 4)\n\t\t\t\t\t\t\t|| (teacher.getTitle() == ETitle.LOWER_GRADES_TEACHER && label < 5)) {\n\t\t\t\t\t\tTeacher_Grade_Subject tgs = new Teacher_Grade_Subject();\n\t\t\t\t\t\ttgs.setTeacher(teacher);\n\t\t\t\t\t\ttgs.setGradeSubject(gradSub);\n\t\t\t\t\t\tteacherGradeSubjectRepo.save(tgs);\n\t\t\t\t\t\tlogger.error(\"Error occured while creating tgs\");\n\t\t\t\t\t\tlogger.info(\"Admin (email: \" + AuthController.getEmail() + \") added new tgs \" + tgs);\n\t\t\t\t\t\treturn new ResponseEntity<Teacher_Grade_Subject>(tgs, HttpStatus.OK);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new ResponseEntity<String>(\"Compatance is not acceptable.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no subject_grade with such ID\"),\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no teacher with such ID\"),\n\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t}\n\n\t}",
"private void insertEntry() {\n String desiredId = idField.getText();\n String desiredName = nameField.getText();\n String desiredMajor = majorField.getText();\n\n if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"Error: A student with this information already exists.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } else {\n studentHashMap.put(desiredId, new Student(desiredName, desiredMajor));\n\n this.displayStatusPanel(\n \"Success: \" + desiredName + \" has been added.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n }\n }",
"public long createAssignment(Assignment assignment) {\n long id = -1;\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues assignmentContentValues = new ContentValues();\n assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_TITLE,\n assignment.getAssignmentTitle());\n assignmentContentValues.put(Config.COLUMN_COURSE_ID,\n assignment.getCourseID());\n assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_GRADE,\n assignment.getGrade());\n\n try {\n id = db.insert(Config.TABLE_NAME_ASSIGNMENT,\n null, assignmentContentValues);\n } catch (SQLException e) {\n Log.d(TAG, \"Exception: \" + e.getMessage());\n Toast.makeText(context,\n \"Operation Failed: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n } finally {\n db.close();\n }\n return id;\n }",
"private void submit_attendance() {\n }",
"public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void create(Post post) {\r\n jdbcOp.update(SQL_INSERT_TICKET,\r\n post.getCustomerName(),\r\n post.getSubject(), \r\n post.getBody(),\r\n post.getCategories());\r\n// for (String role : user.getRoles()) {\r\n// jdbcOp.update(SQL_INSERT_ROLE,\r\n// user.getUsername(),\r\n// role); \r\n }",
"public void createGrade(String name,int year, String subject, String assessment, String achievement,String knowledge,String skill){\n try{\n String query = \"INSERT INTO `coitdatabase`.`grade` (`studentName`, `stuYear`, `subjectName`, `asseName`, `grade`, `knowledge`, `skill`) VALUES ('\"+name+\"', '\"+year+\"', '\"+subject+\"', '\"+assessment+\"', '\"+achievement+\"', '\"+knowledge+\"', '\"+skill+\"');\";\n st.executeUpdate(query);\n }catch(Exception ex){\n System.out.println(\"Error in create grade \"+ ex);\n }\n }",
"int insert(ac_teacher_instrument record);",
"public void newRecord() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tdateTxt.setText(dateFormat.format(new Date()));\n\t\t//mark all students enrolled as attendant\n\t\tif (courseTable.getSelectedRow() != -1) {\n\t\t\tsetWarningMsg(\"\");\n\t\t\tupdateStudent(currentCourse);\n\t\t\tfor (int i = 0; i < studentTable.getRowCount(); i++) {\n\t\t\t\tstudentTable.setValueAt(new Boolean(true), i, 0);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse {\n\t\t\t//show message: choose course first\n\t\t\tsetWarningMsg(\"please select course first\");\n\t\t}\n\t}",
"@Override\r\n\tpublic Feedback addFeedback(int parentId, int tutorId, String rating) {\n\t\tFeedback feedback= new Feedback();\r\n\t\t//feedback.setParentId(parentId);\r\n\t\t//feedback.setTutorId(tutorId);\r\n\t\t//feedback.setRating(rating);\r\n\t\tfrepository.save(feedback);\r\n\t\treturn feedback;\r\n\t}",
"@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CREATE_NEW_POST) {\n if (resultCode == RESULT_OK) {\n String user = data.getStringExtra(PostingActivity.USER);\n String subject = data.getStringExtra(PostingActivity.SUBJECT);\n String question = data.getStringExtra(PostingActivity.QUESTION);\n\n Post post = new Post(user, subject, question);\n postQuestion(post);\n }\n }\n }",
"public String createTRecord(String firstName, String lastName, String address, String phone, String specialization,\n\t\t\tString location, String managerID);",
"public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }",
"int insert(SalGrade record);",
"int insert(PmPost record);",
"public Assignment createAssignment(Assignment assignment) throws Exception {\n\t\ttry{ \n\t\t\tLog.d(\"AssignmentDataSource\",\"Create Assignment\");\n\t\t\tContentValues values = new ContentValues();\n\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_TITLE,assignment.getTitle());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_SUBJECTS, assignment.getSubjects_id());\n\t\t\tif(assignment.getDescription()==null||assignment.getDescription().equals(\"\")){\n\t\t\t\tvalues.putNull(MySQLiteHelper.ASSIGNMENT_DESCRIPTION);\n\t\t\t}else{\n\t\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DESCRIPTION, assignment.getDescription());\n\t\t\t}\n\t\t\tLog.d(\"AssignmentDataSource\",\"assignment description : \"+assignment.getDescription());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DUEDATE, assignment.getDueDate());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DUETIME, assignment.getDueTime());\n\t\t\tif(assignment.getAlarm()==null||assignment.getAlarm().equals(\"\")){\n\t\t\t\tvalues.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\t\t\t}else{\n\t\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_ALARM, assignment.getAlarm());\n\t\t\t}\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_ACADEMIC,assignment.getAcademic_id());\n\n\t\t\tlong newId = database.insert(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tnull,values);\n\n\t\t\tLog.d(\"AssignmentDataSource\",\"newId : \"+newId);\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, MySQLiteHelper.ASSIGNMENT_ID + \" = \" + newId, null,\n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\tAssignment newAssignment = cursorToAssignment(cursor);\n\t\t\tcursor.close();\n\t\t\treturn newAssignment;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}",
"int insert(PcQualificationInfo record);",
"@Override\n\tpublic int insertstuGrade(StuGrade grade) {\n\t\tDbConnection dbo=null;\n\t\tint flag=0;\n\t\tString sql=\"insert into stugrade(id,stuid,subjectid,subjectscore,examtype,examteam,create_time)values('\"+grade.getId()+\n\t\t\t\t\"','\"+grade.getStuid()+\"','\"+grade.getSubjectid()+\"','\"+grade.getSubjectscore()+\"','\"+grade.getExamtype()+\"','\"+grade.getExamteam()+\"','\"+grade.getCreate_time()+\"')\";\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\ttry {\n\t\t\tdbo=new DbConnection();\n\t\t\tconn=dbo.getConnection();\n\t\t\t/*pstmt=conn.prepareStatement(sql);*/\n\t\t\tpstmt=DbConnection.getPreparedStatemnt(conn, sql);\n\t\t\t//pstmt.setString(1, grade.getSubjectid());\n\t\t\tflag=pstmt.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tflag=0;\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tDbConnection.close(conn,pstmt);\n\t\t}\n\t\treturn flag;\n\t}",
"public void insertReimbursement(Reimbursement r) {\n\n\t\t//open a Session object to establish a DB connection\n\t\tSession ses = HibernateUtil.getSession(); //similar to opening a connection with JDBC\n\t\t\n\t\tr.setSubmitted(LocalDate.now().toString());\n\t\t\n\t\tlog.info(r);\n\t\t\n\t\tses.save(r); \n\t\t\n\t\tHibernateUtil.closeSession();\n\t\t\n\t\tlog.info(r);\n\t}",
"@Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(Grades grade);",
"private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }",
"private void saveStudent(){\n StudentGroupThrift group = mainWindow.getStudentClient().getStudentGroupByName\n (this.group.getSelectedItem().toString());\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String birthDate = format.format(jDateChooser.getDate());\n StudentThrift studentThrift = new StudentThrift(\n id,\n getTextID(FIRST_NAME),\n getTextID(LAST_NAME),\n getTextID(MIDDLE_NAME),\n birthDate,\n getTextID(ADDRESS),\n group\n );\n mainWindow.getStudentClient().saveStudent(studentThrift);\n closeDialog();\n }",
"@Override\n\tpublic void submitReimbEmp(Reimbursement reimbursement) {\n\t\t\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tfinal String SQL = \"insert into ers_reimbursement (reimb_amount, reimb_description, reimb_submitted, reimb_author, reimb_status_id, reimb_type_id) values (?,?, current_timestamp, ?, 1 ,?) \";\n\n\t\ttry {\n\t\t\tconn = ConnectionUtil.getConnection();\n\t\t\tstmt = conn.prepareStatement(SQL);\n\t\t\t\n\t\t\tstmt.setInt(1, reimbursement.getAmount());\n\t\t\tstmt.setString(2, reimbursement.getDescription());\n\t\t\tstmt.setInt(3, reimbursement.getAuthorId());\n\t\t\tstmt.setInt(4, reimbursement.getType().getTypeId());\n\t\t\t\n\n\t\t\tstmt.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\n\t\t\n\t}\n\t}",
"private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}",
"int insert(Teacher record);",
"protected IacucProtocolSubmission createProtocolSubmission(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) {\n IacucProtocolSubmissionBuilder submissionBuilder = new IacucProtocolSubmissionBuilder(protocol, submitAction.getSubmissionTypeCode());\n submissionBuilder.setSubmissionTypeQualifierCode(submitAction.getSubmissionQualifierTypeCode());\n submissionBuilder.setProtocolReviewTypeCode(submitAction.getProtocolReviewTypeCode());\n setSubmissionStatus(submissionBuilder, submitAction);\n setCommittee(submissionBuilder, submitAction);\n setSchedule(submissionBuilder, submitAction);\n return submissionBuilder.create();\n }",
"@Path(\"/add/{gradeId}/{title}/{studentCreatedTopic}/{studentUploadPost}/{studentUploadRepository}/{studentLinkPost}\")\n @GET\n @ProduceMime(\"application/xml\")\n public String add(\n @PathParam(\"gradeId\") String gradeId, \n @PathParam(\"title\") String title, \n @PathParam(\"studentCreatedTopic\") String studentCreatedTopic, \n @PathParam(\"studentUploadPost\") String studentUploadPost, \n @PathParam(\"studentUploadRepository\") String studentUploadRepository, \n @PathParam(\"studentLinkPost\") String studentLinkPost) {\n \n Forum forum = new Forum();\n br.ufc.ivela.commons.model.Grade grade = daoGrade.get(new Long(gradeId));\n \n forum.setGrade(grade);\n forum.setTitle(title);\n forum.setStudentCreateTopic(new Boolean(studentCreatedTopic));\n forum.setStudentUploadPost(new Boolean(studentUploadPost));\n forum.setStudentUploadRepository(new Boolean(studentUploadRepository));\n forum.setStudentLinkPost(new Boolean(studentLinkPost));\n\n Long id = (Long) daoForum.save(forum);\n return xStream.toXML(id);\n }",
"@POST\n\t@Path(\"task/submission\")\n\tpublic void taskSubmission(TaskSubmissionTO sumbmissionTO, @Context HttpServletRequest request, @Context HttpServletResponse response) {\n\t\tlogger.info(\"taskSubmission start\");\n\t\tMap<String, Object> json = new HashMap<>();\n\t\tEntityManager em = EntityManagerHelper.getDefaulteEntityManager();\n\t\ttry {\n\t\t\tTaskService taskService = new TaskService(em);\n\t\t\tTaskSubmission taskSumission = taskService.upsertTaskSubmission(sumbmissionTO, CurrentContext.getAppUser());\n\t\t\tTaskSubmissionTO savedTO = new TaskSubmissionTO(taskSumission);\n\t\t\tjson.put(Constants.CODE, Constants.RESPONSE_OK);\n\t\t\tjson.put(Constants.DATA_ITEM, savedTO);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e );\n\n\t\t\tjson.put(Constants.CODE, Constants.ERROR_WITH_MSG);\n\t\t\tjson.put(Constants.MESSAGE, e.getMessage());\n\t\t} finally {\n\t\t\tif (em.isOpen()) {\n\t\t\t\tem.close();\n\t\t\t}\n\t\t}\n\t\trenderResponseJson(json, response);\n\t\tlogger.info(\"taskSubmission exit\");\n\t}",
"public EvaluationsDegreePk insert(EvaluationsDegree dto) throws EvaluationsDegreeDaoException;",
"@PostMapping(value = \"/_create\")\n\tpublic ResponseEntity<ResponseInfoWrapper> createTender(\n\t\t\t@RequestBody @Valid @Validated RequestInfoWrapper requestInfoWrapper,\n\t\t\t@RequestHeader(\"User-Agent\") String request) {\n\t\treturn tenderNoticePublicationService.createTender(requestInfoWrapper, request);\n\t}",
"public TCgthmaster(String tCggthid, Date tCgthdate, String tGysid, String warehouseid, String salesman, String departmentid, String currencyid, String touchperson, String checkperson, String boolput, String booltax, String columnone, String columntwo, String permitter, BigDecimal exchrate) {\n this.tCggthid = tCggthid;\n this.tCgthdate = tCgthdate;\n this.tGysid = tGysid;\n this.warehouseid = warehouseid;\n this.salesman = salesman;\n this.departmentid = departmentid;\n this.currencyid = currencyid;\n this.touchperson = touchperson;\n this.checkperson = checkperson;\n this.boolput = boolput;\n this.booltax = booltax;\n this.columnone = columnone;\n this.columntwo = columntwo;\n this.permitter = permitter;\n this.exchrate = exchrate;\n }",
"private void createNewGroup()\n {\n\n Map<String,String> map = new HashMap<>();\n map.put(\"groupName\",gName);\n map.put(\"groupId\",gId);\n map.put(\"groupAddress\",gAddress);\n map.put(\"groupDescription\",gDescription);\n map.put(\"groupAdmin\",currentUserName);\n map.put(\"date\",someMethod.getDateWithTime());\n map.put(\"groupType\",groupType);\n map.put(\"time\",time);\n PostData postData = new PostData(MakeMyGroup.this,taskInterface);\n postData.InsertData(getResources().getString(R.string.alreadyMember),map);\n\n /*try {\n DATA = URLEncoder.encode(\"groupName\",\"UTF-8\")+\"=\"+URLEncoder.encode(gName,\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"groupId\",\"UTF-8\")+\"=\"+URLEncoder.encode(gId,\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"groupAddress\",\"UTF-8\")+\"=\"+URLEncoder.encode(gAddress,\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"groupDescription\",\"UTF-8\")+\"=\"+URLEncoder.encode(gDescription,\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"groupAdmin\",\"UTF-8\")+\"=\"+URLEncoder.encode(currentUserName,\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"date\",\"UTF-8\")+\"=\"+URLEncoder.encode(someMethod.getDateWithTime(),\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"groupType\",\"UTF-8\")+\"=\"+URLEncoder.encode(groupType,\"UTF-8\")+\"&\"\n +URLEncoder.encode(\"time\",\"UTF-8\")+\"=\"+URLEncoder.encode(time,\"UTF-8\");\n\n DatabaseBackgroundTask backgroundTask = new DatabaseBackgroundTask(this);\n backgroundTask.setOnResultListener(taskInterface);\n backgroundTask.execute(getResources().getString(R.string.createGroup),DATA);\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }*/\n }",
"public ModelingExercise addExampleSubmission(ModelingExercise modelingExercise) throws Exception {\n Set<ExampleSubmission> exampleSubmissionSet = new HashSet<>();\n String validModel = FileUtils.loadFileFromResources(\"test-data/model-submission/model.54727.json\");\n var exampleSubmission = database.generateExampleSubmission(validModel, modelingExercise, true);\n exampleSubmission.assessmentExplanation(\"explanation\");\n exampleSubmissionSet.add(exampleSubmission);\n modelingExercise.setExampleSubmissions(exampleSubmissionSet);\n return modelingExercise;\n }",
"@Test\n public void createContributorInsertsAndReturnsNewRecord() {\n Contributor contributor =\n new Contributor()\n .setContributorType(new ContributorType().setId(1L))\n .setFirstName(\"Brie\")\n .setLastName(\"Larson\");\n\n // WHEN: a new contributor is created\n Contributor result = contributorDao.createContributor(contributor);\n\n // THEN: a new record is inserted and returned\n assertNotNull(result.getId());\n assertEquals(\"Brie\", result.getFirstName());\n assertEquals(\"Larson\", result.getLastName());\n assertEquals(1L, result.getContributorType().getId());\n assertEquals(\"Actor\", result.getContributorType().getName());\n }",
"private void submit() throws SQLException, IllegalArgumentException {\r\n\t\t\r\n\t\t//Get all the values\r\n\t\tString fname = \"\", lname = \"\";\r\n\t\tint age = 0, workExp = 0;\r\n\t\tint selfProd = 0, selfQoS = 0, selfExp = 0;\t\t//selfrating values\r\n\t\t\r\n\t\t//Mandatory fields\r\n\t\tfname = tfFirstname.getText();\r\n\t\tlname = tfLastname.getText();\r\n\t\t\r\n\t\tif (fname.equals(\"\") || lname.equals(\"\"))\r\n\t\t\tthrow new IllegalArgumentException(\"Firstname and Lastname are\"\r\n\t\t\t\t\t+ \" mandatory fields!\");\r\n\t\t\r\n\t\t//Non-mandatory fields\r\n\t\ttry {\r\n\t\t\tage = Integer.parseInt(tfAge.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tage = -1;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tworkExp = Integer.parseInt(tfWorkExp.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tworkExp = -1;\r\n\t\t}\r\n\t\t\r\n\t\t//slider values are default value (3) if untouched\r\n\t\tselfProd = sliderProd.getValue();\r\n\t\tselfQoS = sliderQoS.getValue();\r\n\t\tselfExp = sliderExp.getValue();\r\n\t\t\r\n\t\t\r\n\t\t//Create insert query for the values which are definitely set\r\n\t\tString query = \"INSERT INTO surveyresults (candidate, lastname, firstname,\"\r\n\t\t\t\t+ \"productivity, quality_of_service, exceeding_expectations) \"\r\n\t\t\t\t+ \"VALUES (\" + this.candidateID + \", '\" + lname + \"', '\" + fname \r\n\t\t\t\t+ \"', \" + selfProd + \", \" + selfQoS + \", \" + selfExp + \");\";\r\n\t\tdbc.executeUpdate(query);\r\n\t\t\r\n\t\t\r\n\t\t//Check the other values: age, workExp\r\n\t\tif (age >= 0) {\r\n\t\t\tquery = \"UPDATE surveyresults SET age = \" + age + \" \"\r\n\t\t\t\t\t+ \"WHERE candidate = \" + this.candidateID + \";\";\r\n\t\t\tdbc.executeUpdate(query);\r\n\t\t}\r\n\t\t\r\n\t\tif (workExp >= 0) {\r\n\t\t\tquery = \"UPDATE surveyresults SET working_experience = \" + workExp\r\n\t\t\t\t\t+ \" WHERE candidate = \" + this.candidateID + \";\";\r\n\t\t\tdbc.executeUpdate(query);\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t//set invitation status to completed (link is invalid now)\r\n\t\tquery = \"UPDATE invitations SET status = 'Completed' WHERE \"\r\n\t\t\t\t+ \"candidate = \" + this.candidateID + \";\";\r\n\t\tdbc.executeUpdate(query);\r\n\t}",
"@Override\n\tpublic int insertTeacher(Sy05 record) {\n\t\treturn 0;\n\t}",
"public void add(Teacher teacher) {\n Session session = sessionFactory.getCurrentSession();\n Transaction transaction = session.beginTransaction();\n session.save(teacher);\n transaction.commit();\n }",
"public void createStudent(String name, String ID){}",
"public static void createAllergyRecords(final Context context, final HashMap<String, String> data) {\n\n // Set initial state\n loader.setVisibility(View.VISIBLE);\n allergyRecyclerViewList.setVisibility(View.GONE);\n\n // Url\n String url = ServiceUrls.KEY_HEALTHBOOK_ALLERGIES.concat(StringConstants.KEY_CREATE);\n\n // Set data\n final HashMap<String, Object> postData = new HashMap<>();\n postData.put(StringConstants.KEY_PATIENT_ID, SharedPreferenceService.getValue(context, StringConstants.KEY_PATIENT_ID));\n postData.put(StringConstants.KEY_ALLERGY_ID, data.get(StringConstants.KEY_ALLERGY_ID));\n postData.put(StringConstants.KEY_ALLERGY_TYPE, data.get(StringConstants.KEY_ALLERGY_TYPE));\n postData.put(StringConstants.KEY_ALLERGY_KIND_OF_REACTION, data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION));\n postData.put(StringConstants.KEY_START_DATE, DateTimeUtils.convertTimestampToUTC(\n Long.valueOf(data.get(StringConstants.KEY_START_DATE))));\n postData.put(StringConstants.KEY_ALLERGY_COMMENTS, data.get(StringConstants.KEY_ALLERGY_COMMENTS));\n\n // Set Headers\n final HashMap<String, String> headers = new HashMap<>();\n headers.put(StaticConstants.KEY_AUTHORIZATION,\n StaticConstants.KEY_BEARER\n .concat(\" \")\n .concat(SharedPreferenceService.getValue(context, StringConstants.KEY_TOKEN)));\n\n\n if (Validation.isConnected(context)) {\n\n /**\n * API Call\n */\n APICallService.PostAPICall(activity, context, url, postData, headers, new APIInterface() {\n\n @Override\n public void onSuccess(JSONObject response) {\n\n try {\n\n // Create in Local Database\n Allergy mAllergyModel = new Allergy(\n SharedPreferenceService.getValue(context, StringConstants.KEY_PATIENT_ID),\n response.getString(StringConstants.KEY_P_ID),\n data.get(StringConstants.KEY_ALLERGY_ID),\n data.get(StringConstants.KEY_ALLERGY_NAME),\n data.get(StringConstants.KEY_SEARCH_LIST_HYPERLINK),\n data.get(StringConstants.KEY_ALLERGY_TYPE),\n data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION),\n DateTimeUtils.convertTimestampToDate(Long.valueOf(data.get(StringConstants.KEY_START_DATE))),\n data.get(StringConstants.KEY_ALLERGY_COMMENTS));\n\n mAllergyModel.save();\n allergyBindingAdapter.notifyDataSetChanged();\n readAllergyList(getInstance().getContext());\n\n } catch (Exception e) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Log error\n ErrorHandlers.handleError(activity);\n Crashlytics.logException(e);\n }\n }\n\n @Override\n public void onError(VolleyError error) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n }\n });\n } else {\n\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Internet Not Available\n ErrorHandlers.handleInternetConnectionFailure(activity);\n }\n }",
"int insert(TSubjectInfo record);",
"public static synchronized boolean insert (Ticket t) {\n\t\t\t\n\t\tString firstName = t.getFirstName();\n\t\tString lastName = t.getLastName();\n\t\tint eventId = t.getEvent().getUniqueId();\n\t\tint numberOfSeats = t.getNumberOfSeats();\n\t\tboolean isSuccessful = false;\t\t\n\t\t\n\t\tif (TicketTDG.checkAvailableSeating(eventId, numberOfSeats)) {\n\t\t\ttry {\n\t\t\t\tisSuccessful = TicketTDG.insert(firstName, lastName, eventId, numberOfSeats);\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn isSuccessful;\n\t}",
"@Override\n\tpublic boolean createApplicant(ApplicantEntity applicantEntity) {\n\t\tentityManager.persist(applicantEntity);\n\t\treturn false;\n\t}",
"public void create(Singer newRecord);",
"@Override\n public void onClick(View v) {\n TeacherClass t = new TeacherClass();\n //grab text from first name text input and apply to teacher first name\n t.firstName = txtFirstName.getText().toString().trim();\n //grab text from last name text input and apply to teacher last name\n t.lastName = txtLastName.getText().toString().trim();\n //grab text from username text input and and apply to teacher username\n t.username = txtUsername.getText().toString().trim();\n //grab text from password text input and apply to teacher password\n t.password = txtPassword.getText().toString().trim();\n //grab text from password confirm text input and create string variable\n String confirm = txtConfirm.getText().toString().trim();\n t.daycareID = adminDaycare; //admin can only create a user within their own daycare\n //isAdmin - set to true if admin radio button is selected\n if(admin.isChecked()) {\n t.isAdmin = true;\n }\n //verify that all information has been provided and is correct\n if(VerifyInfo(t.firstName, t.lastName, t.username, t.password, confirm)) {\n PasswordHash hash = new PasswordHash();\n t.password = hash.generatedPassword(t.password);\n\n InsertTeacher(t.firstName, t.lastName, t.username, t.password, t.daycareID, t.isAdmin);\n }\n }",
"public void submit(ActionEvent actionEvent) {\n if(checkFields()) {\n try {\n newStudent = new Student(firstName.getText(), lastName.getText(),birthday.getValue(),selectImage.getImage());\n activities();\n System.out.println(\"new student: \" + newStudent);\n studentList.add(newStudent);\n viewStudent(actionEvent);\n } catch (IllegalArgumentException | IOException e){\n errorDisplay.setText(e.getMessage());\n }\n }\n }",
"public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);",
"@RequestMapping(\n method = {RequestMethod.POST },\n consumes = MediaType.APPLICATION_JSON_VALUE\n )\n public Teacher createUser(@Valid @RequestBody Teacher teacher) {\n return teachersRep.save(teacher);\n }",
"@PostMapping(\"/feedbacks\")\n @Timed\n public ResponseEntity<Feedback> createFeedback(@RequestBody Feedback feedback) throws URISyntaxException {\n log.debug(\"REST request to save Feedback : {}\", feedback);\n if (feedback.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new feedback cannot already have an ID\")).body(null);\n }\n Feedback result = feedbackRepository.save(feedback);\n return ResponseEntity.created(new URI(\"/api/feedbacks/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"int insert(WstatTeachingClasshourTeacher record);",
"public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }",
"@Test\n\tpublic void testCreateCourseScoped() throws Exception {\n\t\tfinal Course course = this.zeusClient.courses().get(1L);\n\t\tassertNotNull(course);\n\n\t\tfinal Series series = this.zeusClient.series().getAll(course).get(0);\n\t\tassertNotNull(series);\n\n\t\tfinal Exercise exercise = this.zeusClient.exercises().getAll(series).get(0);\n\t\tassertNotNull(exercise);\n\n\t\tlong id = -1;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tid = this.zeusClient.submissions().create(course, series, exercise, CODE);\n\t\t\t} catch (final UnprocessableEntityException ex) {\n\t\t\t\tThread.sleep(1000L);\n\t\t\t}\n\t\t} while (id <= 0L);\n\n\t\tfinal Submission submission = this.zeusClient.submissions().get(id);\n\t\tassertNotNull(submission);\n\t\tassertEquals(SubmissionStatus.QUEUED, submission.getStatus());\n\t\tassertEquals(CODE, submission.getCode());\n\t}",
"public Performer create(Performer p) throws EVDBRuntimeException, EVDBAPIException {\n\t\tif (p.getSpid() != null) {\n\t\t\tthrow new EVDBRuntimeException(\"Create called on an performer with an existing SPID\");\n\t\t}\n\t\t\n\t\treturn createOrModify(p);\n\t}",
"@PostMapping(\"applicant\")\n public Applicant newApplicant(@RequestBody ApplicantDto applicantDto) {\n return applicantService.save(applicantDto);\n }",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public int createNewPatient(Patient p) {\n int id = 0;\n String query = \"INSERT INTO PATIENTS(name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query, PreparedStatement.RETURN_GENERATED_KEYS)) {\n pst.setString(1, p.getName());\n pst.setBoolean(2, p.isGender());\n pst.setDate(3, p.getBirth());\n pst.setString(4, p.getDpi());\n pst.setString(5, p.getPhone());\n pst.setDouble(6, p.getWeight());\n pst.setString(7, p.getBlood());\n pst.setString(8, p.getEmail());\n pst.setString(9, p.getPass());\n pst.executeUpdate();\n \n ResultSet rs = pst.getGeneratedKeys();\n if(rs.next()) {\n id = rs.getInt(1);\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n return id;\n }",
"public void createESEAccount(String farmerId, String farmerAcctNo, Date txnTime, int type);",
"@Override\n\tpublic SupportEntity createSupportRecord(SupportEntity supportEntity) throws DBException {\n\t\ttry {\n\t\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\tsupportEntity.setId((Long)session.save(supportEntity));\n\t\t}catch(Exception e){\n\t\t\t\n\t\t\tif(logger.isErrorEnabled()){\n\t\t\t\tlogger.error(\"Exception Occred while creating Support Record [\"+supportEntity.getId()+\"] [\"+supportEntity.getEmailId()+\"]\");\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t}\n\t\t\tthrow new DBException(e.getMessage(),e);\n\t\t\t\n\t\t}\n\t\tif(logger.isDebugEnabled()){\n\t\t\tlogger.debug(\"Support Record is inserted with id [\"+supportEntity.getId()+\"] [\"+supportEntity.getMobileNo()+\"] [\"+supportEntity.getEmailId()+\"]\");\n\t\t}\n\t\treturn supportEntity;\n\t}",
"public int createDBEntry() {\n\t\tint i = 0;\n\t\ttry {\n\t\t\tConnection con;\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tStatement statement = con.createStatement();\n\n\t\t\tStringBuffer strBuf = new StringBuffer();\n\t\t\tstrBuf.append(\"insert into Ticket(ticketID,\");\n\t\t\tstrBuf.append(\"ticketDate, \");\n\t\t\tstrBuf.append(\"bugTitle, \");\n\t\t\tstrBuf.append(\"bugDescription, \");\n\t\t\tstrBuf.append(\"bugCategory, \");\n\t\t\tstrBuf.append(\"projectName, \");\n\t\t\tstrBuf.append(\"projectVersion, \");\n\t\t\tstrBuf.append(\"assignedToDev, \");\n\t\t\tstrBuf.append(\"priority, \");\n\t\t\tstrBuf.append(\"status, \");\n\t\t\tstrBuf.append(\"comments, \");\n\t\t\tstrBuf.append(\"targetDueDate, \");\n\t\t\tstrBuf.append(\"ticketCreatedBy \");\t\n\t\t\tstrBuf.append(\") values (last_insert_id(), \");\n\t\t\tstrBuf.append(\"'\" + this.ticketDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugTitle + \"', \");\t\t\t\t\n\t\t\tstrBuf.append(\"'\" + this.bugDescription + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugCategory + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectVersion + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.assignedToDevName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketPriority + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketStatus + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.comments + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.targetDueDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.TicketCreatedBy + \"'\");\n\t\t\tstrBuf.append(\")\");\n\n\t\t\ti = statement.executeUpdate(strBuf.toString());\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn i;\n\t}",
"private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null || representativeName == null || representativePost == null\n || repPhoneNumber == null || grpBankAccount == null || physAddress == null\n || grpPhoneNumber == null || grpSupportType == null) {\n flashMessage(\"Please Fill all Fields\");\n\n } else if (IsEditing.equalsIgnoreCase(\"1\")) {\n url.append(\"editVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n\n } else { // Creating a new VSLA\n url.append(\"addNewVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n }\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n int cid=Integer.parseInt(request.getParameter(\"cid\"));\n String stime=request.getParameter(\"stime\"); \n String etime=request.getParameter(\"etime\");\n int tid=Integer.parseInt(request.getParameter(\"tid\"));\n String date=request.getParameter(\"date\");\n if(request.getParameter(\"action\").equalsIgnoreCase(\"save\")){\n GroupModel gm=new GroupModel();\n gm.setCid(cid);\n gm.setStime(stime);\n gm.setEtime(etime);\n gm.setTid(tid);\n gm.setDate(date);\n System.out.println(\"cid\"+cid);\n System.out.println(\"stime\"+stime);\n System.out.println(\"tis\"+tid);\n GroupDao.insert(gm);\n\n \n }\n \n }",
"public long createCourse(String category, String courseName, String assignmentName, String description, String dueDate, String completed)\r\n{\r\nContentValues initialValues = new ContentValues();\r\ninitialValues.put(KEY_CATEGORY, category);\r\ninitialValues.put(KEY_COURSENAME, courseName);\r\ninitialValues.put(KEY_ASSIGNMENTNAME, assignmentName);\r\ninitialValues.put(KEY_DESCRIPTION, description);\r\ninitialValues.put(KEY_DUEDATE, dueDate);\r\ninitialValues.put(KEY_COMPLETED, completed);\r\n\r\nreturn database.insert(DATABASE_TABLE, null, initialValues);\r\n}",
"public long add(String name, String discipline, String grade) {\n SQLiteDatabase db = _openHelper.getWritableDatabase();\n if (db == null) {\n return 0;\n }\n ContentValues row = new ContentValues();\n row.put(\"name\", name);\n row.put(\"discipline\", discipline);\n row.put(\"grade\", grade);\n long id = db.insert(\"Exams\", null, row);\n db.close();\n return id;\n }",
"void insertDepartment(String depName, Date creationDate, long idParentDepartment);",
"@Override\n\tpublic void create(Student student) {\n\t\tString query=\"insert into student values('\"+student.getId()+\"','\"+student.getName()+\"','\"+student.getAge()+\"')\";\n\t//\tjdbcTemplate.update(query);\n\t\tint result=jdbcTemplate.update(query);\n\t\tSystem.out.println(result+\"Record Inserted\");\n\t}",
"@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }",
"@Override\r\n\tpublic void createPost(Integer postID, Integer parentPostID,\r\n\t\t\tString posterName, String message, String[] imageName,\r\n\t\t\tString[] imageID) {\n\t\t\r\n\t}",
"@Override\n public void create(Course t) {\n String statement = INSERT;\n data.makeUpdateStatement(statement,new Object[]{(Object)t.getTitle(),(Object)t.getStream(), (Object)t.getType(),\n (Object)t.getStart_date(),(Object)t.getEnd_date()});\n Course lastCreatedCourse = getByMaxId(); //after the course creation, we get back the last course with the id\n t.setId(lastCreatedCourse.getId()); //and set the id to the given course\n data.closeConnections(data.ps, data.conn);\n \n }",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public boolean createPersonalDetails(Integer staffID, String surname, String name, Date dob, String address, String town, String county,\n String postCode, String telNo, String mobileNo, String emergencyContact, String emergencyContactNo){\n\n\n hrDB.addPDRecord(staffID, surname, name, dob, address, town, county,\n postCode, telNo, mobileNo, emergencyContact, emergencyContactNo);\n return true;\n\n\n }",
"public void prepare()\n {\n // First, we assign the payload a new UUID if it does not already have one\n if(getId() == null)\n setId(UUID.randomUUID());\n \n // Set the submission date to now\n setSubmissionDate(new Date());\n }",
"public String toString() {\n return \"submission\";\n }",
"@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"@PostMapping(value = insertTeacherStudentMapping, consumes = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<HttpResponse> insertTeacherStudent(@RequestBody TeacherStudent teacherStudent){\r\n\t\tteacherStudentService.insert(teacherStudent);\r\n\t\tHttpResponse response = new HttpResponse();\r\n\t\tresponse.setResponseMessage(\"TeacherStudent Inserted with StudentId : \" + teacherStudent.getStudentId() + \" and TeacherId : \" + teacherStudent.getTeacherId());\r\n\t\treturn ResponseEntity.ok().body(response);\r\n\t}",
"void insert(TResearchTeach record);",
"@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}",
"@Override\r\n\tpublic void insertTea(Teacher teacher) {\n\r\n\t}"
]
| [
"0.6060317",
"0.5467696",
"0.544367",
"0.5395554",
"0.53921705",
"0.5302194",
"0.5267055",
"0.52633196",
"0.5237253",
"0.5233755",
"0.52145624",
"0.51933527",
"0.51829785",
"0.5170652",
"0.5164278",
"0.5148354",
"0.51401484",
"0.5088352",
"0.5039158",
"0.50298136",
"0.5010757",
"0.5000668",
"0.4998276",
"0.4970821",
"0.49678537",
"0.49538702",
"0.49256366",
"0.49181822",
"0.48971012",
"0.48930728",
"0.4881143",
"0.48751396",
"0.4863082",
"0.48616552",
"0.48602843",
"0.48442918",
"0.48432845",
"0.4837517",
"0.48330626",
"0.48290133",
"0.48272738",
"0.48266256",
"0.48150235",
"0.4793154",
"0.47921902",
"0.47897565",
"0.47872776",
"0.4778394",
"0.4770197",
"0.47581622",
"0.4751599",
"0.4749322",
"0.4729431",
"0.4724818",
"0.47231343",
"0.47145382",
"0.47131124",
"0.47100678",
"0.4700816",
"0.46980357",
"0.46966654",
"0.46929973",
"0.4686673",
"0.46746022",
"0.4667843",
"0.46654826",
"0.46624026",
"0.46557972",
"0.4650223",
"0.4649156",
"0.4648451",
"0.46450707",
"0.464291",
"0.4640371",
"0.46387178",
"0.46299192",
"0.4627084",
"0.46227008",
"0.46186513",
"0.46183667",
"0.46169847",
"0.46167216",
"0.46161765",
"0.4615594",
"0.4614879",
"0.46140146",
"0.46134105",
"0.4612414",
"0.46097252",
"0.4603165",
"0.46025345",
"0.46004134",
"0.4600114",
"0.45989648",
"0.45954937",
"0.4594403",
"0.45938045",
"0.45886654",
"0.457034",
"0.45633838"
]
| 0.73186016 | 0 |
Removes the gdf tender submission details with the primary key from the database. Also notifies the appropriate model listeners. | public static GDFTenderSubmissionDetails remove(long tenderSubRefID)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().remove(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"public void clickedSpeakerDelete() {\n\t\tif(mainWindow.getSelectedRowSpeaker().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowSpeaker().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowSpeaker()[0];\n\t\t\tSpeakers tmpSpeaker = speakersList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deleteSpeaker(tmpSpeaker);\t\n\t\t\trefreshSpeakerTable();\t\t\t\n\t\t}\n\t}",
"public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\n public void removeFromDb() {\n }",
"public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }",
"@FXML\n void removeSubmit() {\n generalTextArea.clear();\n\n RadioButton selectedRadioButton;\n String departRemove;\n try{\n selectedRadioButton = (RadioButton) departmentRemove.getSelectedToggle();\n departRemove = selectedRadioButton.getText();\n }catch(NullPointerException e){\n generalTextArea.appendText(\"Please select a department.\");\n return;\n }\n\n String date = dateRemoveText.getText();\n if(!isParse(date)){\n return;\n }\n String name = nameRemoveText.getText();\n if(name.length() == 0){\n generalTextArea.appendText(\"The name field was left blank. Please enter a name! \\n\");\n return;\n }\n int tempPay = 0;\n Profile newEmployeeProfile = profileData(name, departRemove, date);\n Employee employeeToBeRemoved = new Fulltime(newEmployeeProfile, tempPay);\n boolean wasEmployeeRemoved = company.remove(employeeToBeRemoved);\n if (wasEmployeeRemoved) {\n generalTextArea.appendText(\"Employee removed.\");\n }else if (company.getNumEmployee() == 0){\n generalTextArea.appendText(\"Employee database is empty.\");\n }else{\n generalTextArea.appendText(\"Employee does not exist.\");\n }\n clearEverything();\n }",
"@Override\r\n\tpublic Feedback removeFeedback(int feedbackId) {\n\t\tFeedback feedback= frepository.getOne(feedbackId);\r\n\t\tfrepository.delete(feedback);\r\n\t\treturn feedback;\r\n\t}",
"@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}",
"@Override\n public void delete() {\n this.parent.handleRemoveSignal(this.deadline.getCourseName(),\n this.deadline.getName(),\n this.deadline.getYear(),\n this.deadline.getMonth(),\n this.deadline.getDay());\n }",
"@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}",
"public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}",
"@Override\r\n\tpublic void Suprremier_rec(reclamation rec) {\n\t\t\r\n\t\treclamations.remove(rec);\r\n\r\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public void deleteOne(ContactModelClass contactModelClass) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, \"id = ?\", new String[] { String.valueOf(contactModelClass.getId()) });\n db.close();\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PerSubmit : {}\", id);\n perSchedulerRepository.deleteById(id);\n perSubmitSearchRepository.deleteById(id);\n }",
"public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }",
"@Override\n\tpublic void removeGrade(Integer gid) {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tgradeDAO.deleteGrade(gid);\n\t}",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n subjectDAO.deleteFridayEntry(employee);\r\n subjectListAdapter.remove(employee);\r\n Toast.makeText(getActivity(), \"Subject Deleted\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblTickets.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblTickets.getValueAt(tblTickets.getSelectedRow(), 0).toString());\n\t\t\t\t\tdeleteTicket(id);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"private void onRemovePatient() {\n\t\tfinal int selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0)\n\t\t\t// No row has been selected\n\t\t\treturn;\n\n\t\t// Gets the patient ID\n\t\tbyte[] patientId = (byte[]) tablePatients.getValueAt(selectedRowIndex, PatientTable.ID);\n\n\t\t// Confirms the action\n\t\tif (! GuiManager.showConfirmationDialog(this, \"¿Eliminar paciente?\", \"Está a punto de eliminar un paciente y todos sus estudios asociados.\" + System.lineSeparator() + \"Esta acción no puede revertirse.\" + System.lineSeparator() + \"¿Está seguro que desea continuar?\"))\n\t\t\t// The action was canceled\n\t\t\treturn;\n\n\t\t// Locks the window\n\t\tlock();\n\n\t\t// Removes the patient\n\t\tRemovePatientCaller caller = new RemovePatientCaller() {\n\n\t\t\tpublic void onRemovePatientSuccess() {\n\t\t\t\t// Removes the patient's row\n\t\t\t\ttablePatients.removePatientSummary(selectedRowIndex);\n\n\t\t\t\t// Unlocks the window\n\t\t\t\tunlock();\n\n\t\t\t\t// Calls the selection callback method\n\t\t\t\tonSelectPatient();\n\t\t\t}\n\n\t\t};\n\t\tRemovePatientWorker worker = new RemovePatientWorker(caller, patientId);\n\t\tworker.execute();\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"void deleteApplicantById(Integer applicantId);",
"int deleteByPrimaryKey(Integer tfId);",
"static public void deleteSubjectMark(Integer subjectMarkID){\n\t Session session = HibernateUtil.getSessionFactory().openSession();\n\t Transaction tx = null;\n\t try{\n\t tx = session.beginTransaction();\n\t SubjectMark subjectMark = (SubjectMark)session.get(Teacher.class, subjectMarkID); \n\t session.delete(subjectMark); \n\t tx.commit();\n\t }catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t }finally {\n\t session.close(); \n\t }\n\t }",
"public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public String deleteResearcher(int id);",
"public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}",
"private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"void remove(PK id);",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"public void remove()\n {\n domain.removeParticipant(participant);\n }",
"@Query(\"DELETE FROM Grades WHERE subject = :subject\")\n int deleteGradeBySubject(String subject);",
"public void delete(CostEngineering costEngineering) {\n cost_engineering_dao.delete(costEngineering);\n }",
"public void delete(Context ctx){\n\t\t\tChildInteraction cDb = new ChildInteraction(ctx);\t// for writing to the db\n\t\t\tfor(String key : numbers.keySet())\t\t\t\t\t// for all the numbers\n\t\t\t\tcDb.DeleteChild(key, text);\t\t\t\t\t\t// delete the entry in the db\n\t\t\tcMessages.remove(this);\t\t\t\t\t\t\t\t// remove this from cMessages\n\t\t\tcDb.Cleanup();\t\t\t\t\t\t\t\t\t\t// cleanup\n\t\t}",
"@FXML\r\n private void handleSubmitButton() {\r\n Database_Statements.removeUser(employeeNumberField.getText().trim());\r\n }",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"void eliminar(PK id);",
"int deleteByPrimaryKey(Integer acTeacherInstrumentId);",
"@Override\n\tpublic void deletRow(HongXunWorkNum hongXunWorkNum) {\n\t\tgetHibernateTemplate().delete(hongXunWorkNum);\n\t}",
"@Override\n\tpublic String deleteById() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint RowNum=jt.getSelectedRow();\n\t\t\t\tif(RowNum==-1){\n\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"请选择一行\");\n\t\t\t\t return ;\n\t\t\t }\n\t\t\t\t\n\t\t\t\tint isDelete=JOptionPane.showConfirmDialog(null, \"是否确定删除该专业以及该专业所有班级与学生信息?\");\n\t\t\t\t\n\t\t\t\tif(isDelete==JOptionPane.YES_OPTION){\n\t\t\t\t\tString majorName=(String)mit.getValueAt(RowNum, 1);\n\t\t\t\t\tString deleteSql=\"delete from majorinfo where grade='\"+Tool.getGrade(userId)+\"' and majorName=?\";\n\t\t\t\t\tString deleteclass=\"delete from classinfo where grade='\"+Tool.getGrade(userId)+\"' and major=?\";\n\t\t\t\t\tString deletejob=\"delete from jobinfo where grade='\"+Tool.getGrade(userId)+\"' and major=?\";\n\t\t\t\t\t\n\t\t\t\t\tString[] dleteParas={Tool.string2UTF8(majorName)};\n\t\t\t\t\t\n\t\t\t\t\tmit.Update(deleteclass, dleteParas);\n\t\t\t\t\tmit.Update(deletejob, dleteParas);\n\t\t\t\t\t\n\t\t\t\t\tif(mit.Update(deleteSql, dleteParas)){\n\t\t\t\t\t\trefresh(jt);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"删除失败\");\n\t\t\t\t\t}\n\n\t\t\t\t\trefresh(jt);\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}",
"public void eliminarReceiver(Long id){\r\n persistence.remove(id);\r\n }",
"public void onRemoveParticipant() {\n Participant participant = outputParticipants.getSelectionModel().getSelectedItem();\n\n if (participant == null) {\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_NULL, null);\n return;\n }\n\n if (controller.removeParticipant(participant)) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_REMOVE, null);\n }",
"@Override\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\ttableAttachments.remove(tableAttachments.getSelectionIndices());\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }",
"public JavareviewModel deletereview(JavareviewModel oJavareviewModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing review from the database*/\n oJavareviewModel = (JavareviewModel) hibernateSession.get(JavareviewModel.class, oJavareviewModel.getreviewId());\n\n\n /* Delete the existing review from the database*/\n hibernateSession.delete(oJavareviewModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavareviewModel;\n }",
"@Override\r\n\tpublic boolean delFeback(int feedbackId) {\n\t\treturn BaseDao.execute(\"delete from feedback where feedbackId = ?\", feedbackId) > 0;\r\n\t}",
"@Override\n\tpublic int deletenetinfo(String id) {\n\t\treturn personmanagemarticleMapper.deleteByPrimaryKey(id);\n\t}",
"public void deleteLastFeedback() {\n\t\tint index = this.getLastPlayIndex();\n\n\t\tif (this.guessList[index].getCode() == null) {\n\t\t\tthis.guessList[index] = null;\n\t\t} else {\n\t\t\tthis.guessList[index].setFeedback(null);\n\t\t}\n\n\t\t// Notify all observers\n\t\tsuper.dataChanged();\n\t}",
"public void deleteTbagendamento() {\n\n if (agendamentoLogic.removeTbagendamento(tbagendamentoSelected)) {\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento removido com sucesso.\");\n listTbagendamentos = agendamentoLogic.findAllTbagendamentoFromCurrentDay();\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falha ao remover agendamento.\");\n }\n\n }",
"@Override\r\n\tpublic void deleteAttach(int f_idx) {\n\r\n\t}",
"public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }",
"@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}",
"@Override\r\n\tpublic void deleteEmployeeByEmployeeId(long emplloyeeId) {\n\t\t\r\n\t}",
"int deleteByPrimaryKey(String EQP_MODEL_ID);",
"@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}",
"void deleteTrackerAssignedOld(final Integer id);",
"@Override\n\tpublic void deleteEntry(Serializable id) {\n\t\tT t = this.getEntryById(id);\n\t\tthis.hibernateTemplate.delete(t);\n\t}",
"public void delete(EvaluationsDegreePk pk) throws EvaluationsDegreeDaoException;",
"int deleteByPrimaryKey(Integer idenfermedad);",
"@Override\n public void deleteBeer(UUID beerId) {\n log.debug(\"Deleting a beer...\" + beerId + \")\" +\"...\");\n }",
"@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblSessions.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblSessions.getValueAt(tblSessions.getSelectedRow(), 0).toString());\n\t\t\t\t\t\n\t\t\t\t\tdeleteSession(id);\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deletado com sucesso!\");\n\t\t\t\t}\n\t\t\t}",
"public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}",
"public String calfordelete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result;\r\n\t\tresult = model.calfordelete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"Record Deleted Successfully.\"));\r\n\t\t\tvendorMaster.setVendorCode(\"\");\r\n\t\t\tvendorMaster.setVendorName(\"\");\r\n\t\t\tvendorMaster.setVendorAdd(\"\");\r\n\t\t\tvendorMaster.setVendorCon(\"\");\r\n\t\t\tvendorMaster.setVendorEmail(\"\");\r\n\t\t\tvendorMaster.setCtyId(\"\");\r\n\t\t\tvendorMaster.setStateId(\"\");\r\n\t\t\tvendorMaster.setVendorCty(\"\");\r\n\t\t\tvendorMaster.setVendorState(\"\");\r\n\t\t\tvendorMaster.setMyPage(\"\");\r\n\t\t\tvendorMaster.setHiddencode(\"\");\r\n\t\t\tvendorMaster.setShow(\"\");\r\n\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"Record can not be deleted.\");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\r\n\t\treturn \"success\";\r\n\t}",
"@Override\n\tpublic String deleteByPrimaryKey(Familybranch record, Model m) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void deletePro(Integer id) {\n\t\tproblemMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\n\tpublic void deleteGerant(Gerant g) {\n\t\t\n\t}",
"@Override\r\n\tpublic void delete() {\n\t\tString delete=\"DELETE FROM members WHERE id =?\";\r\n\t\t try(Connection connection=db.getConnection();) {\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(delete);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t \tpreparedStatement.executeUpdate();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction successful\");\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t}\r\n\t}",
"@Override\r\n\tpublic void delete(String workerId) {\n\t\tWorker worker = getWorkerById(workerId);\r\n\t\tbaseDao.delete(worker);\r\n\t}",
"@Override\r\n\tpublic void deleteTea(Teacher teacher) {\n\r\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn siteReservoirInfoMapper.deleteByPrimaryKey(id);\n\t}",
"private void deleteActionPerformed(ActionEvent evt) throws Exception {\n String teaID = this.teaIDText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null, \"请先选择一条老师信息!\");\n return;\n }\n int confirm = JOptionPane.showConfirmDialog(null, \"确认删除?\");\n if(confirm == 0){//确认删除\n Connection con = dbUtil.getConnection();\n int delete = teacherInfo.deleteInfo(con, teaID);\n if(delete == 1){\n JOptionPane.showMessageDialog(null, \"删除成功!\");\n resetValues();\n }\n else{\n JOptionPane.showMessageDialog(null, \"删除失败!\");\n return;\n }\n initTable(new Teacher());//初始化表格\n }\n }",
"@Override\n\tpublic void deletRow(HongXunWorkItem hongXunWorkItem) {\n\t\tgetHibernateTemplate().delete(hongXunWorkItem);\n\t}",
"public void deletePatientByPrimaryKey(long id) throws PatientExn;",
"public void deleteReport()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(), new GetCallback<ParseObject>() \n\t\t{\n\t\t\tpublic void done(ParseObject object, ParseException e) \n\t\t\t{\n\t\t\t\tif (e == null) \n\t\t\t\t{\t\t\n\t\t\t\t\tobject.deleteInBackground(new DeleteCallback()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\t\treturnIntent.putExtra(\"reportPosition\", reportPosition);\n\t\t\t\t\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Report is deleted, go back to previous screen\n\t\t\t\t\t\t\tloading.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_right_main,\tR.anim.slide_right_sub);\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}",
"void unsetGradeModelRefs();",
"private void deleteEntry() {\n String desiredId = idField.getText();\n Student student = studentHashMap.get(desiredId);\n\n try {\n if (student == null) {\n throw new NoMatchFoundException();\n } else if (this.checkInput(student) == false) {\n throw new InputMismatchException();\n } else if (studentHashMap.containsKey(desiredId)) {\n studentHashMap.remove(desiredId);\n this.displayStatusPanel(\n \"Success: \" + student.getName() + \" removed.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n } else {\n throw new NoMatchFoundException();\n }\n } catch(NoMatchFoundException ex) {\n this.displayStatusPanel(\n \"Error: Entry not found.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } catch(InputMismatchException e) {\n this.displayStatusPanel(\n \"Error: Information does not match data on file.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n }\n }",
"@Override\n public void deleteFeedback(Long fID) throws NoResultException {\n Feedback f = em.find(Feedback.class, fID);\n\n if (f != null) {\n em.remove(f);\n } else {\n throw new NoResultException(\"Not found\");\n }\n }",
"public void actionPerformed(ActionEvent event) {\n selectedPeriodRemove=teacherPeriodsList.getSelectedIndex();\r\n selectedTeacherRemove=editTeachersList.getSelectedIndex(); \r\n \r\n //if there is a selected period\r\n if ((selectedPeriodRemove!=-1)&&(selectedTeacherRemove!=-1)){\r\n \r\n //Clearing books with that period and teacher\r\n for (int i = 0; i < bookInv.numBookSets(); i++){\r\n for (int j = 0; j < bookInv.getBookSet(i).getSize(); j++){\r\n Book temp = bookInv.getBookSet(i).getBook(j);\r\n String teacherName = teachers.get(selectedTeacherRemove).getName();\r\n if (temp.getTeacherName() != null){\r\n if (temp.getTeacherName().equals(teacherName)){\r\n bookInv.getBookSet(i).getBook(j).setInStockStatus(true);\r\n bookInv.getBookSet(i).getBook(j).setStudentName(null);\r\n bookInv.getBookSet(i).getBook(j).setTeacherName(null);\r\n bookInv.getBookSet(i).getBook(j).setPeriodNum(-1);\r\n }\r\n }\r\n }\r\n }\r\n //Saving inventory\r\n try{\r\n bookInv.saveInv();\r\n }catch(IOException e){}\r\n \r\n teachers.get(selectedTeacherRemove).removeSinglePeriodBooks(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).removePeriod(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).writePeriodList (false); \r\n \r\n //remove the period from the list model\r\n teacherPeriodsListModel.removeElementAt(selectedPeriodRemove);\r\n } else if (selectedTeacherRemove==-1){\r\n JLabel chooseTeacher = new JLabel( \"Please select a teacher to edit!\");\r\n chooseTeacher.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), chooseTeacher, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n } else {\r\n JLabel choosePeriod = new JLabel( \"Please select a period to remove!\");\r\n choosePeriod.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), choosePeriod, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n }\r\n teacherPeriodsList.clearSelection();\r\n }",
"public void deletePerson() {\n\t\t\n\n\t\tString code = selectedPerson.getCode();\n\t\tString nameKey = selectedPerson.getName()+code;\n\t\tString lastnameKey = selectedPerson.getLastName()+code;\n\t\tString fullNameKey = nameKey+lastnameKey+code;\n\t\ttreeName.removeE(nameKey);\n\t\ttreeLastname.removeE(lastnameKey);\n\t\ttreeFullName.removeE(fullNameKey);\n\t\ttreeCode.removeE(code);\n\n\t\t\n\t}",
"public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"public void removeEntry(int docID){\n this.docToEntities.remove(docID);\n }",
"@Override\n\tpublic void delRecMaterial(int id) {\n\t\t\n\t}",
"protected void submitDeleteAct(ActionEvent ae) {\n\t\tint index = stuClassListTable.getSelectedRow();\r\n\t\tif (index == -1) {// 未选中时,为-1\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请选中要删除的数据!!!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (JOptionPane.showConfirmDialog(this, \"确认要删除吗?\") == JOptionPane.OK_OPTION) {\r\n\t\t\tDefaultTableModel dft = (DefaultTableModel) stuClassListTable.getModel();\r\n\t\t\tint id = Integer.parseInt(dft.getValueAt(stuClassListTable.getSelectedRow(), 0).toString());\r\n\t\t\tStuClassDao<StuClass> stuClassDao = new StuClassDao<StuClass>();\r\n\t\t\tif (stuClassDao.delete(id)) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"删除成功!\");\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"删除失败!\");\r\n\t\t\t}\r\n\t\t\tstuClassDao.closeDao();\r\n\t\t\tsetTable(new StuClass());\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void delRec() {\n\t\t\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(String rcuid) {\n\t\treturn rcuSettimeMapper.deleteByPrimaryKey(rcuid);\n\t}",
"public void supprimer(Etudiant t) {\n\t\tdao.supprimer(t);\r\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"@Override\n\tpublic void deleteTrainInfo(Integer tId) {\n\t\ttrainingMapper.deleteByPrimaryKey(tId);\n\t}",
"public void removeEvent(long rowIndex) {\n SQLiteDatabase dbObj = getWritableDatabase();\n dbObj.delete(TABLE_EVENT_ENTRIES, KEY_ROWID + \"=\" + rowIndex, null);\n dbObj.close();\n }",
"@DeleteMapping(\"/record-25-herfinancieerings/{id}\")\n @Timed\n public ResponseEntity<Void> deleteRecord25Herfinancieering(@PathVariable Long id) {\n log.debug(\"REST request to delete Record25Herfinancieering : {}\", id);\n\n record25HerfinancieeringRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void documentRemoved(SingleDocumentModel model);",
"void deleteTransmission(Transmission transmission, SiteUser siteUser);"
]
| [
"0.5754766",
"0.54127777",
"0.53722227",
"0.5364778",
"0.5306185",
"0.52647907",
"0.5256878",
"0.52484685",
"0.5210748",
"0.5199261",
"0.5149375",
"0.5140188",
"0.5120291",
"0.51100904",
"0.5084368",
"0.50591266",
"0.50398105",
"0.5020618",
"0.50132304",
"0.50101095",
"0.49875274",
"0.49785352",
"0.49782234",
"0.49668258",
"0.49643922",
"0.49629563",
"0.4952776",
"0.4949335",
"0.4941874",
"0.49416703",
"0.49287",
"0.4924011",
"0.4922309",
"0.49122432",
"0.49042988",
"0.48997715",
"0.48981214",
"0.48926634",
"0.48881102",
"0.48692957",
"0.48645607",
"0.48564112",
"0.48451293",
"0.48416784",
"0.483664",
"0.48342508",
"0.48242992",
"0.48176262",
"0.48113132",
"0.48038247",
"0.48015693",
"0.47971898",
"0.47939047",
"0.4786204",
"0.47780016",
"0.4776862",
"0.47758484",
"0.47673902",
"0.47660086",
"0.4756966",
"0.47547945",
"0.4751846",
"0.47462475",
"0.47455633",
"0.47444418",
"0.47420993",
"0.4741849",
"0.47409418",
"0.47408396",
"0.47381413",
"0.4737519",
"0.4736308",
"0.47324377",
"0.47311142",
"0.4730271",
"0.47275597",
"0.47272706",
"0.47268924",
"0.47242332",
"0.47152418",
"0.47149882",
"0.47062007",
"0.4704951",
"0.4702726",
"0.46951568",
"0.46947455",
"0.46923405",
"0.46919298",
"0.46891892",
"0.46869692",
"0.46853033",
"0.4684146",
"0.4677796",
"0.46731052",
"0.46654642",
"0.4663232",
"0.46552274",
"0.4653427",
"0.46514922",
"0.4646254"
]
| 0.57859504 | 0 |
Returns the gdf tender submission details with the primary key or throws a NoSuchGDFTenderSubmissionDetailsException if it could not be found. | public static GDFTenderSubmissionDetails findByPrimaryKey(
long tenderSubRefID)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByPrimaryKey(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"@Override\n\tpublic String getSubmissionText() {\n\t\treturn model.getSubmissionText();\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}",
"ExperimenterId getExperimenterId();",
"@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"@Override\n\tpublic Subject findByTeacherAndGrade(int teacherId,int gradeId) {\n\t\tSchoolYear year = schoolYearService.getCurrent();\n\t\tTerm term = termService.getCurrent();\n\t\tList<TeacherSubjectVo> teacherSubjectVos = teacherSubjectMapper.findByGradeAndTeacher(year.getYearId(), term.getTermId(), gradeId, teacherId);\n\t\tif (teacherSubjectVos!= null && teacherSubjectVos.size()>0) {\n\t\t\treturn dao.findOne(teacherSubjectVos.get(0).getSubjectId()); \n\t\t}\t\n\t\treturn null;\n\t}",
"@Override\n\tpublic ResponseEntity<?> addGradeSubject(Integer tId, Integer gsId) {\n\t\tif (teacherRepo.existsById(tId)) {\n\t\t\tif (gradeSubjectRepo.existsById(gsId)) {\n\t\t\t\tUTeacherEntity teacher = teacherRepo.findById(tId).get();\n\t\t\t\tGrade_Subject gradSub = gradeSubjectRepo.findById(gsId).get();\n\t\t\t\tInteger label = gradSub.getGrade().getLabel();\n\n\t\t\t\tif (teacherGradeSubjectRepo.findByTeacher_idAndGradeSubject_id(tId, gsId).isPresent()) {\n\t\t\t\t\treturn new ResponseEntity<String>(\"Already exists in database.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t} else {\n\t\t\t\t\tif ((teacher.getTitle() == ETitle.SUBJECT_TEACHER && label > 4)\n\t\t\t\t\t\t\t|| (teacher.getTitle() == ETitle.LOWER_GRADES_TEACHER && label < 5)) {\n\t\t\t\t\t\tTeacher_Grade_Subject tgs = new Teacher_Grade_Subject();\n\t\t\t\t\t\ttgs.setTeacher(teacher);\n\t\t\t\t\t\ttgs.setGradeSubject(gradSub);\n\t\t\t\t\t\tteacherGradeSubjectRepo.save(tgs);\n\t\t\t\t\t\tlogger.error(\"Error occured while creating tgs\");\n\t\t\t\t\t\tlogger.info(\"Admin (email: \" + AuthController.getEmail() + \") added new tgs \" + tgs);\n\t\t\t\t\t\treturn new ResponseEntity<Teacher_Grade_Subject>(tgs, HttpStatus.OK);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new ResponseEntity<String>(\"Compatance is not acceptable.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no subject_grade with such ID\"),\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no teacher with such ID\"),\n\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t}\n\n\t}",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public String findGradeFormatByID (int gradeID);",
"public Researcher getResearcherByID(int id);",
"public String toString() {\n return \"submission\";\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public int getExamGradeId() {\n return examGradeId;\n }",
"DateTime getSubmissionTime();",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public String getPoster() {\n return getElement().getPoster();\n }",
"protected abstract String getJobSubmitId();",
"public String submittedBy() {\n return this.submittedBy;\n }",
"@Override\n @Transactional(readOnly = true)\n public Optional<PerSubmit> findOne(Long id) {\n log.debug(\"Request to get PerSubmit : {}\", id);\n return perSchedulerRepository.findById(id);\n }",
"@Override\r\n\tpublic Grade findGradeByName(String grade, Long companyId) {\r\n\t\treturn gradeRepository.findGradeByName(grade, companyId);\r\n\t}",
"public TimeEntry getTimeEntry(int timeEntryId)\n throws RedmineException\n {\n TimeEntry timeEntry = null;\n\n Integer index = timeEntryIdMap.get(timeEntryId);\n if (index == null)\n {\n getTimeEntries(ID_ANY,ID_ANY,ID_ANY,null);\n index = timeEntryIdMap.get(timeEntryId);\n }\n if (index != null)\n {\n timeEntry = getTimeEntryAt(index);\n }\n\n return timeEntry;\n }",
"private String getNameHtml(final Submitter submitter) {\n final GedRenderer<? extends GedObject> renderer =\n new SimpleNameRenderer(submitter.getName(),\n submitterRenderer.getRendererFactory(),\n submitterRenderer.getRenderingContext());\n return renderer.getNameHtml();\n }",
"public String getGradeName() {\n return gradeName;\n }",
"public String getGrade(String id) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.getGrade\", id);\r\n\t}",
"public RecordTemplate getRecordTemplate() throws PublicationTemplateException;",
"Achievements getPostDetails();",
"public java.lang.CharSequence getGLPOSTDETAILS() {\n return GLPOST_DETAILS;\n }",
"public java.lang.CharSequence getGLPOSTDETAILS() {\n return GLPOST_DETAILS;\n }",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"public Long getResearchteacherid() {\r\n\t\treturn researchteacherid;\r\n\t}",
"@Override\n\tpublic Grade findById(Integer gid) {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\treturn gradeDAO.selectById(gid);\n\t}",
"private static void createSubmission(String[] attributes, int docuID, int orgID) {\n\t\tint actID = ActivityDetailsService.getActivityDetailsByDocuID(docuID).getId();\n\t\tint submissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t//System.out.println(\"docuID: \" + docuID);\n\t\tif(submissionID == 0){\n\t\t\t//create submission details\n\t\t\tSubmissionDetails subDet = new SubmissionDetails();\n\t\t\tsubDet.setActID(actID);\n\t\t\tsubDet.setSubmittedBy(attributes[16]);\n\t\t\tsubDet.setContactNo(attributes[17]);\n\t\t\tsubDet.setEmailAddress(attributes[18]);\n\t\t\tsubDet.setDateSubmitted(toDateTime(attributes[0]));\n\t\t\tsubDet.setSubmissionType(attributes[4]);\n\t\t\t\n\t\t\tif(subDet.getSubmissionType().equalsIgnoreCase(\"Special Approval Slip\"))\n\t\t\t\tsubDet.setSasType(attributes[19]);\n\t\t\telse subDet.setSasType(\"-\");\n\t\t\tSubmissionDetailsService.addSubmissionDetails(subDet);\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t} else {\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t}\n\t\n\t}",
"@Override\n\tpublic int getGrade() {\n\t\treturn model.getGrade();\n\t}",
"public DataRecord getRecord(IdentifiedRecordTemplate template,\n String recordId) throws FormException {\n return getRecord(template, recordId, null);\n }",
"public Integer getSubmit_user_id() {\n return submit_user_id;\n }",
"TeacherRecord getTeacher(String recordId, String clientId) throws Exception;",
"public EI getProviderTrackingID() { \r\n\t\tEI retVal = this.getTypedField(4, 0);\r\n\t\treturn retVal;\r\n }",
"public Integer getExpertId() {\n return expertId;\n }",
"public VitalParticipant getParticipant() {\n\t\treturn this.getAssignmentResponse().getParticipant();\n }",
"public Performer get(String spid) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tMap<String, String> params = new HashMap();\n\t\tparams.put(\"id\", spid);\n\t\t\n\t\tInputStream is = serverCommunication.invokeMethod(PERFORMERS_GET, params);\n\t\t\n\t\tPerformer v = (Performer)unmarshallRequest(Performer.class, is);\n\t\t\n\t\treturn v;\n\t}",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"public String getGrade() {\n\t\treturn Grade;\n\t}",
"public Grade getGrade() {\n return this.grade;\n }",
"public DataEntry findByPrimaryKey(long dataEntryId)\n\t\tthrows NoSuchDataEntryException;",
"Calendar getSubmissionDeadline(ReportingPeriod period, Long transmissionType);",
"public synchronized String getReviewJSON(String rID) {\n Review r = this.reviewMap.get(rID);\n if (r == null) {\n return \"ERR: NO_SUCH_REVIEW\";\n } else {\n return gson.toJson(r);\n }\n }",
"String getIssueDetail();",
"public static int getHeighestGrade(int subject_index) {\n //defining the right list of grades\n ArrayList<Grade> list;\n if(subject_index != ALL_SUBJECTS) {\n list = grades.get(subject_index);\n }\n else {\n list = getGradeList();\n }\n\n //getting highest grade of list\n int max = 0;\n if(list.size() == 0) {\n if(settings.grades_isRatingInGrades()) {\n return 6;\n }\n else {\n return 15;\n }\n }\n for(Grade grade: list) {\n if(grade.getNumber() > max) {\n max = grade.getNumber();\n }\n }\n return max;\n }",
"public List<ModelingSubmission> modelingSubmissionsForComparison(ModelingExercise exerciseWithParticipationsAndSubmissions) {\n return exerciseWithParticipationsAndSubmissions.getStudentParticipations().parallelStream().map(Participation::findLatestSubmission).filter(Optional::isPresent)\n .map(Optional::get).filter(submission -> submission instanceof ModelingSubmission).map(submission -> (ModelingSubmission) submission).collect(toUnmodifiableList());\n }",
"String getGeneralID() throws ApplicationException;",
"public String getEntryId() {\n return entryId;\n }",
"public static Teachers getTeacher(int teacher_id) {\n\n Teachers teacher = null;\n\n String sql = \"SELECT * FROM teachers WHERE teacher_id = \" + teacher_id;\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n teacher = new Teachers(set.getInt(\"teacher_id\"),\n set.getString(\"name\"),\n set.getInt(\"age\"),\n set.getString(\"gender\"),\n set.getString(\"email_id\"));\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return teacher;\n }",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"public BusinessObjectDefinitionSubjectMatterExpertEntity getBusinessObjectDefinitionSubjectMatterExpertByKey(\n BusinessObjectDefinitionSubjectMatterExpertKey key);",
"public String getGrade() {\n return grade;\n }",
"public synchronized Group getGroupDetails() {\n try {\n this.connect();\n Group group = linkedin.groupOperations().getGroupDetails(groupId);\n return group;\n } catch (Exception e) {\n log.debug(\"Exception occured when reading group details from group: \" + groupId);\n }\n return null;\n }",
"java.lang.String getFortId();",
"@Override\r\n\t@RequestMapping(value=\"/edit\",method=RequestMethod.GET)\r\n\tpublic MeetingDetail getMeetingDetailById(MeetingDetail meetingDetail) {\n\t\treturn dao.getMeetingDetailById(meetingDetail);\r\n\t}",
"private Person getPerson() {\n String fore = this.forenameCombo.getSelectedItem().toString();\n String sur = this.surnameCombo.getSelectedItem().toString();\n String sect = this.sectionCombo.getSelectedItem().toString();\n Person myPers = pers.getPerson(fore, sur, sect);\n return myPers;\n }",
"public java.lang.Object getTimeEntryID() {\n return timeEntryID;\n }",
"public TeacherPage submit() {\n clickSaveButton();\n return this;\n }",
"public GradeInfo[] getGradeInfo() {\n return gradeInfo;\n }",
"Optional<Expert> findOne(Long id);",
"public String bkE() {\n return this.rE.bkA().getString(\"existing_instance_identifier\", \"\");\n }",
"@GetMapping(\"/record-25-herfinancieerings/{id}\")\n @Timed\n public ResponseEntity<Record25Herfinancieering> getRecord25Herfinancieering(@PathVariable Long id) {\n log.debug(\"REST request to get Record25Herfinancieering : {}\", id);\n Optional<Record25Herfinancieering> record25Herfinancieering = record25HerfinancieeringRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(record25Herfinancieering);\n }",
"default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }",
"@Override\r\n\tpublic Author getAuthorDetails(int authorId) throws AuthorNotFoundException {\n\t\tAuthor author = authorDAO.findOne(authorId);\r\n\t\tif(author == null) \r\n\t\t throw new AuthorNotFoundException(\"Author Details Not Found for Id \" + authorId);\r\n\t\treturn author;\r\n\t\t\r\n\t}",
"@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}",
"public EI getPayerTrackingID() { \r\n\t\tEI retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }",
"Paper getPaperInfo(Long paperId,Long courseId);",
"@Override\n\tpublic long getPaperId() {\n\t\treturn _paper.getPaperId();\n\t}",
"public Integer geteDeptid() {\n return eDeptid;\n }",
"public String getResearchteachername() {\r\n\t\treturn researchteachername;\r\n\t}",
"@Override\n\tpublic long getEmployeeDesignationId() {\n\t\treturn _candidate.getEmployeeDesignationId();\n\t}",
"public Subject getSubject(int subjectId) {\r\n\r\n\t\tif (subjectRepository.existsById(subjectId)) {\r\n\t\t\tlogger.info(\"*** Service : Displaying Subject with id ***\" + subjectId);\r\n\r\n\t\t}\r\n\r\n\t\treturn subjectRepository.findById(subjectId).orElse(null);\r\n\r\n\t}",
"@NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }"
]
| [
"0.6832319",
"0.6430153",
"0.6388802",
"0.6021066",
"0.5908941",
"0.5894956",
"0.5868405",
"0.5791131",
"0.5542409",
"0.5515789",
"0.54211706",
"0.52956057",
"0.5273161",
"0.51715595",
"0.51239556",
"0.5111187",
"0.5096351",
"0.50870275",
"0.50577474",
"0.49305615",
"0.4882031",
"0.48029724",
"0.4733001",
"0.4662419",
"0.46501273",
"0.45311585",
"0.44967705",
"0.4445409",
"0.43611512",
"0.43495426",
"0.4305085",
"0.43002257",
"0.42974052",
"0.42513153",
"0.42423487",
"0.42398882",
"0.42357424",
"0.4228599",
"0.42154714",
"0.41892686",
"0.41746885",
"0.4171153",
"0.41669708",
"0.4164454",
"0.4152646",
"0.41483995",
"0.41478273",
"0.41148815",
"0.4088123",
"0.40848988",
"0.40762067",
"0.40702948",
"0.4034259",
"0.4029808",
"0.40290803",
"0.40177754",
"0.4004765",
"0.39838058",
"0.3975337",
"0.39722085",
"0.39700967",
"0.39447337",
"0.39431214",
"0.39379266",
"0.3934483",
"0.39299166",
"0.3928169",
"0.39252385",
"0.39225647",
"0.39167473",
"0.39111033",
"0.39083427",
"0.38982737",
"0.38900062",
"0.38836977",
"0.38682446",
"0.3868072",
"0.3861405",
"0.38602957",
"0.38592422",
"0.38492042",
"0.38468698",
"0.38426644",
"0.38285947",
"0.38266867",
"0.3825854",
"0.3815636",
"0.38153443",
"0.3807983",
"0.38034302",
"0.38031384",
"0.38014635",
"0.37998548",
"0.37967038",
"0.3789489",
"0.37867293",
"0.37851676",
"0.3784613",
"0.37833953",
"0.37735328"
]
| 0.7722571 | 0 |
Returns the gdf tender submission details with the primary key or returns null if it could not be found. | public static GDFTenderSubmissionDetails fetchByPrimaryKey(
long tenderSubRefID) {
return getPersistence().fetchByPrimaryKey(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Override\n\tpublic String getSubmissionText() {\n\t\treturn model.getSubmissionText();\n\t}",
"@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"protected abstract String getJobSubmitId();",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"@Override\n @Transactional(readOnly = true)\n public Optional<PerSubmit> findOne(Long id) {\n log.debug(\"Request to get PerSubmit : {}\", id);\n return perSchedulerRepository.findById(id);\n }",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"java.lang.String getFortId();",
"PrimaryKey getPrimarykey();",
"public Integer getSubmit_user_id() {\n return submit_user_id;\n }",
"public String toString() {\n return \"submission\";\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public String getPoster() {\n return getElement().getPoster();\n }",
"public String getEntryId() {\n return entryId;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg getTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg)get_store().find_element_user(TPG$30, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"@Override\n\tpublic String getEntryId() {\n\t\treturn null;\n\t}",
"public final String getRefPK() {\n\t\tString str = getRequest().getParameter(\"RefPK\");\n\t\treturn str;\n\t}",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"public String submittedBy() {\n return this.submittedBy;\n }",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"@Override\n\tpublic long getChangesetEntryId() {\n\t\treturn _changesetEntry.getChangesetEntryId();\n\t}",
"private IssuePost getSingleSelectedRow() {\n ListSelectionModel selectionModel = table.getSelectionModel();\n int selectedIndex = selectionModel.getLeadSelectionIndex();\n if (selectedIndex != NOT_SELECTED) {\n return table.getRowData(selectedIndex);\n }\n return null;\n }",
"public Researcher getResearcherByID(int id);",
"public static Ring getRingByTeacherId(int teacherId) {\n\r\n String sql = \"select r.* from ring r \\n\"\r\n + \"join Teacher t \\n\"\r\n + \"on t.ringId = r.ringId \\n\"\r\n + \"where t.teacherId = ?\";\r\n\r\n Connection conn = DB.connect();\r\n PreparedStatement st;\r\n ResultSet rs;\r\n Ring ring;\r\n try {\r\n st = conn.prepareStatement(sql);\r\n st.setInt(1, teacherId);\r\n rs = st.executeQuery();\r\n System.out.println(sql);\r\n if (rs.next()) {\r\n ring = new Ring();\r\n \r\n ring.setRingId(rs.getInt(\"ringId\"));\r\n ring.setSchoolId(rs.getInt(\"schoolId\"));\r\n //ring.setDate(rs.getDate(\"date\"));\r\n ring.setName(rs.getString(\"name\"));\r\n ring.setMaxStudentNumber(rs.getInt(\"maxStudentNumber\"));\r\n \r\n return ring;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\r\n \r\n }\r\n return null;\r\n }",
"@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}",
"public ReleaseRecord getRelease() { return (ReleaseRecord)Database.getReleaseIndex().getRecord(releaseId); }",
"java.lang.String getPatientId();",
"public final String getIdFromSubjectMatchAsString () {\n\t \n JsArray<SubjectMatchTypeJS> array = getSubjectMatchAsArray();\n if (array == null)\n return null;\n \n if (array.length() == 0)\n return null;\n \n SubjectMatchTypeJS element = array.get(0);\n SubjectAttributeDesignatorJS des = element.getSubjectAttributeDesignatorAsObject();\n String attId = des.getAttributeId();\n if (\"urn:oasis:names:tc:xacml:1.0:subject:subject-id\".equals(attId)) {\n AttributeValueJS attVal = element.getAttributeValueAsObject();\n return attVal.getValue();\n } else\n return null;\n }",
"@Override\n\tpublic Entity getControllingPassenger() {\n\t\tList<Entity> list = getPassengers();\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"PatientInfo getPatientInfo(int patientId);",
"@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}",
"public java.lang.Object getTimeEntryID() {\n return timeEntryID;\n }",
"public String getSubmitterPrideLogin() {\n\t\tif (login != null) {\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_pride_login\" + TAB + login;\n\t\t}\n\t\treturn null;\n\t}",
"public int getRaterId();",
"public Integer getTgId() {\n return tgId;\n }",
"TeacherRecord getTeacher(String recordId, String clientId) throws Exception;",
"public Long getResearchteacherid() {\r\n\t\treturn researchteacherid;\r\n\t}",
"ExperimenterId getExperimenterId();",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public String getWallPostSender (String sig) {\n Logger.write(\"VERBOSE\", \"DB\", \"getWallPostSender(...)\");\n try {\n ResultSet sendersKey = query(DBStrings.getPostSender.replace(\"__SIG__\", sig));\n if (sendersKey.next())\n return sendersKey.getString(\"sendersKey\");\n else\n return \"<POST DOESN'T EXIST>\";\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return \"ERROR\";\n }\n }",
"public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String findGradeFormatByID (int gradeID);",
"public Object getCustomerEligibilityAssessmentRetrieveActionTaskRecord() {\n return customerEligibilityAssessmentRetrieveActionTaskRecord;\n }",
"public String getSubmitted() {\n return submitted;\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _scienceApp.getPrimaryKey();\n\t}",
"private Person getPerson() {\n String fore = this.forenameCombo.getSelectedItem().toString();\n String sur = this.surnameCombo.getSelectedItem().toString();\n String sect = this.sectionCombo.getSelectedItem().toString();\n Person myPers = pers.getPerson(fore, sur, sect);\n return myPers;\n }",
"String getAcctgTransEntrySeqId();",
"Paper getPaperInfo(Long paperId,Long courseId);",
"PrimaryKey getPrimaryKey();",
"PcQualificationInfo selectByPrimaryKey(Integer zid);",
"public long getPrimaryKey() {\n\t\treturn _forumUser.getPrimaryKey();\n\t}",
"protected String getRecipient() {\n return parameterService.getParameterValueAsString(AwardDocument.class,\n Constants.REPORT_TRACKING_NOTIFICATIONS_BATCH_RECIPIENT);\n }",
"Teacher selectByPrimaryKey(Integer pkid);",
"java.lang.String getTid();",
"java.lang.String getTid();",
"public int getTeacherid() {\r\n return teacherid;\r\n }",
"DateTime getSubmissionTime();",
"public java.lang.Integer getGrse_id();",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public java.lang.String getPatientID(){\n return localPatientID;\n }",
"public java.lang.String getPatientID(){\n return localPatientID;\n }",
"public JobEntry getJob(String jobId)\n {\n JobEntry je = null;\n\n try\n {\n je = schedulerService.getJob(Integer.parseInt(jobId));\n }\n catch (TurbineException e)\n {\n log.error(\"Could not retreive job id #{}\", jobId, e);\n }\n\n return je;\n }",
"public TimeEntry getTimeEntry(int timeEntryId)\n throws RedmineException\n {\n TimeEntry timeEntry = null;\n\n Integer index = timeEntryIdMap.get(timeEntryId);\n if (index == null)\n {\n getTimeEntries(ID_ANY,ID_ANY,ID_ANY,null);\n index = timeEntryIdMap.get(timeEntryId);\n }\n if (index != null)\n {\n timeEntry = getTimeEntryAt(index);\n }\n\n return timeEntry;\n }",
"public String getp_recpt_no() {\n return (String)getNamedWhereClauseParam(\"p_recpt_no\");\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dmGtStatus.getPrimaryKey();\n\t}",
"@Override\n\tpublic Subject findByTeacherAndGrade(int teacherId,int gradeId) {\n\t\tSchoolYear year = schoolYearService.getCurrent();\n\t\tTerm term = termService.getCurrent();\n\t\tList<TeacherSubjectVo> teacherSubjectVos = teacherSubjectMapper.findByGradeAndTeacher(year.getYearId(), term.getTermId(), gradeId, teacherId);\n\t\tif (teacherSubjectVos!= null && teacherSubjectVos.size()>0) {\n\t\t\treturn dao.findOne(teacherSubjectVos.get(0).getSubjectId()); \n\t\t}\t\n\t\treturn null;\n\t}",
"@Override\n\tpublic ResponseEntity<?> addGradeSubject(Integer tId, Integer gsId) {\n\t\tif (teacherRepo.existsById(tId)) {\n\t\t\tif (gradeSubjectRepo.existsById(gsId)) {\n\t\t\t\tUTeacherEntity teacher = teacherRepo.findById(tId).get();\n\t\t\t\tGrade_Subject gradSub = gradeSubjectRepo.findById(gsId).get();\n\t\t\t\tInteger label = gradSub.getGrade().getLabel();\n\n\t\t\t\tif (teacherGradeSubjectRepo.findByTeacher_idAndGradeSubject_id(tId, gsId).isPresent()) {\n\t\t\t\t\treturn new ResponseEntity<String>(\"Already exists in database.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t} else {\n\t\t\t\t\tif ((teacher.getTitle() == ETitle.SUBJECT_TEACHER && label > 4)\n\t\t\t\t\t\t\t|| (teacher.getTitle() == ETitle.LOWER_GRADES_TEACHER && label < 5)) {\n\t\t\t\t\t\tTeacher_Grade_Subject tgs = new Teacher_Grade_Subject();\n\t\t\t\t\t\ttgs.setTeacher(teacher);\n\t\t\t\t\t\ttgs.setGradeSubject(gradSub);\n\t\t\t\t\t\tteacherGradeSubjectRepo.save(tgs);\n\t\t\t\t\t\tlogger.error(\"Error occured while creating tgs\");\n\t\t\t\t\t\tlogger.info(\"Admin (email: \" + AuthController.getEmail() + \") added new tgs \" + tgs);\n\t\t\t\t\t\treturn new ResponseEntity<Teacher_Grade_Subject>(tgs, HttpStatus.OK);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new ResponseEntity<String>(\"Compatance is not acceptable.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no subject_grade with such ID\"),\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no teacher with such ID\"),\n\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t}\n\n\t}",
"public EI getProviderTrackingID() { \r\n\t\tEI retVal = this.getTypedField(4, 0);\r\n\t\treturn retVal;\r\n }",
"public static Teachers getTeacher(int teacher_id) {\n\n Teachers teacher = null;\n\n String sql = \"SELECT * FROM teachers WHERE teacher_id = \" + teacher_id;\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n teacher = new Teachers(set.getInt(\"teacher_id\"),\n set.getString(\"name\"),\n set.getInt(\"age\"),\n set.getString(\"gender\"),\n set.getString(\"email_id\"));\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return teacher;\n }",
"public String getPaterId() {\r\n return paterId;\r\n }",
"public gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId getPatentSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public VBeatPostModel getPost(String postId){\n List<VBeatPostModel> postList = AppLocalDB.getInstance().db.postDao().getPost(postId);\n\n if(postList.size() == 0) {\n return null;\n } else {\n return postList.get(0);\n }\n\n }",
"public String reviewProjectSubmissionQuery(String pID) \r\n\t{\r\n\t\tString query = \"SELECT * FROM SubmittedProject WHERE ProjectID=\\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}",
"int getPostId();",
"public String getRptinfo() {\n return rptinfo;\n }",
"public String getPatientCareTakerEmail() {\n\t\treturn this.patientCareTakerEmail;\n\t}",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"protected String getTaskId() {\n\t\tDisplay.debug(\"getTaskId() devuelve %s\", taskId);\n\t\treturn taskId;\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public long getPostId();",
"public GoogleMobilityData getRecordByKey(Long pk) throws SQLException {\n\n String select = \"SELECT * FROM GoogleMobilityData WHERE Synthetic_Mobility_PK=?\";\n Connection connection = null;\n PreparedStatement selectStmt = null;\n ResultSet results = null;\n try {\n connection = connectionManager.getConnection();\n selectStmt = connection.prepareStatement(select);\n selectStmt.setLong(1, pk);\n results = selectStmt.executeQuery();\n if (results.next()) {\n Date date = results.getDate(\"Date\");\n String country = results.getString(\"Country\");\n Long rec = results.getLong(\"Rec\");\n Long grocery = results.getLong(\"Grocery\");\n Long parks = results.getLong(\"Parks\");\n Long transit = results.getLong(\"Transit_Station\");\n Long work = results.getLong(\"Work\");\n Long residential = results.getLong(\"Residential\");\n String fips = results.getString(\"JHCountyStat_FipsCode\");\n\n GoogleMobilityData record = new GoogleMobilityData(date, country, rec, grocery, parks, transit, work, residential, fips);\n return record;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (connection != null) {\n connection.close();\n }\n if (selectStmt != null) {\n selectStmt.close();\n }\n if (results != null) {\n results.close();\n }\n }\n return null;\n }",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public String getTjr() {\n return tjr;\n }",
"public java.lang.String getPrimaryContact() {\n return primaryContact;\n }",
"public int getMakerId();",
"@Override\n\tpublic org.kisti.edison.science.service.persistence.ScienceAppPaperPK getPrimaryKey() {\n\t\treturn _scienceAppPaper.getPrimaryKey();\n\t}",
"Object getRefid();",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}",
"public String getPkid() {\n return pkid;\n }",
"public Number getRfrtHeaderIdPk() {\r\n return (Number) getAttributeInternal(RFRTHEADERIDPK);\r\n }"
]
| [
"0.64527524",
"0.645007",
"0.6342994",
"0.58145034",
"0.5728281",
"0.56903476",
"0.5600816",
"0.5472116",
"0.5422319",
"0.5366813",
"0.53603613",
"0.53361833",
"0.52189976",
"0.5130653",
"0.49527454",
"0.49444437",
"0.4942163",
"0.4941437",
"0.49187666",
"0.4914055",
"0.49096322",
"0.4878365",
"0.48598033",
"0.485968",
"0.48419517",
"0.48202896",
"0.47976455",
"0.47951376",
"0.47607303",
"0.47304693",
"0.47234577",
"0.47154585",
"0.4698491",
"0.46958748",
"0.46747705",
"0.46727145",
"0.46725965",
"0.46543863",
"0.4635278",
"0.46316832",
"0.4630207",
"0.46299323",
"0.46179327",
"0.46149516",
"0.4608058",
"0.46055964",
"0.46028572",
"0.46028027",
"0.45876098",
"0.4585108",
"0.4585025",
"0.45695442",
"0.4569256",
"0.45587763",
"0.45544565",
"0.45530584",
"0.45518914",
"0.4549164",
"0.45434675",
"0.45405918",
"0.4537812",
"0.45335504",
"0.45316756",
"0.45316756",
"0.45294568",
"0.45239192",
"0.45212734",
"0.45185855",
"0.45086065",
"0.45086065",
"0.45078263",
"0.45071867",
"0.45035246",
"0.45005405",
"0.44988",
"0.44847864",
"0.44843584",
"0.4477523",
"0.44567436",
"0.445636",
"0.44555712",
"0.4454009",
"0.44539732",
"0.44525868",
"0.4452212",
"0.44507998",
"0.4447879",
"0.44475192",
"0.44473496",
"0.44472545",
"0.44420305",
"0.44420096",
"0.4440851",
"0.4440485",
"0.4437282",
"0.4431066",
"0.4427623",
"0.44234753",
"0.44225994",
"0.442046"
]
| 0.68684655 | 0 |
Returns all the gdf tender submission detailses. | public static List<GDFTenderSubmissionDetails> findAll() {
return getPersistence().findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"@Override\n\tpublic String getSubmissionText() {\n\t\treturn model.getSubmissionText();\n\t}",
"public List<ModelingSubmission> modelingSubmissionsForComparison(ModelingExercise exerciseWithParticipationsAndSubmissions) {\n return exerciseWithParticipationsAndSubmissions.getStudentParticipations().parallelStream().map(Participation::findLatestSubmission).filter(Optional::isPresent)\n .map(Optional::get).filter(submission -> submission instanceof ModelingSubmission).map(submission -> (ModelingSubmission) submission).collect(toUnmodifiableList());\n }",
"public String toString() {\n return \"submission\";\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"@Override\n\tpublic List<ERForm> getAllForms() {\nString sql = \"select * from project1.reimbursementInfo;\";\n\t\t\n\t\tPreparedStatement stmt;\n\t\t\n\t\tList<ERForm> allForms = new ArrayList<ERForm>();\n\t\t\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tERForm form = new ERForm();\n\t\t\t\tform.setRID(rs.getInt(1));\n\t\t\t\tform.setUserName(rs.getString(2));\n\t\t\t\tform.setFullName(rs.getString(3));\n\t\t\t\tform.setTheDate(rs.getDate(4).toLocalDate());\n\t\t\t\tform.setEventStartDate(rs.getDate(5).toLocalDate());\n\t\t\t\tform.setTheLocation(rs.getString(6));\n\t\t\t\tform.setDescription(rs.getString(7));\n\t\t\t\tform.setTheCost(rs.getDouble(8));\n\t\t\t\tform.setGradingFormat(rs.getString(9));\n\t\t\t\tform.setPassingPercentage(rs.getString(10));\n\t\t\t\tform.setEventType(rs.getString(11));\n\t\t\t\tform.setFileName(rs.getString(12));\n\t\t\t\tform.setStatus(rs.getString(13));\n\t\t\t\tform.setReason(rs.getString(14));\n\t\t\t\tallForms.add(form);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}return allForms;\n\t}",
"public List<TRForm> viewFormforDeptHeads(int eid);",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"private void getEntries() {\r\n\r\n\t\tif(displayEntries.size() > 0){\r\n\t\t\tfor (int i = 0; i<displayEntries.size(); i++){\r\n\t\t\t\tNameSurferEntry entries = displayEntries.get(i);\r\n\t\t\t\tdrawRankGraph(entries,i);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<PerSubmit> findAll() {\n log.debug(\"Request to get all PerSubmits\");\n return perSchedulerRepository.findAll();\n }",
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public List<TRForm> viewFormforSupervisors(int eid);",
"public List<DetailerCall> getDetailers() {\n if (detailers == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n DetailerCallDao targetDao = daoSession.getDetailerCallDao();\n List<DetailerCall> detailersNew = targetDao._queryTask_Detailers(uuid);\n synchronized (this) {\n if(detailers == null) {\n detailers = detailersNew;\n }\n }\n }\n return detailers;\n }",
"public ArrayList<Assignment> getAllAssignmentsForUpload() {\n\t\tArrayList<Assignment> assignmentList = new ArrayList<Assignment>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ASSIGNMENT;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tAssignment assign = new Assignment();\n\t\t\tassign.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tassign.id = cursor.getString(1);\n\t\t\tassign.type = cursor.getInt(2);\n\t\t\tassign.submit_date = cursor.getString(3);\n\t\t\tassign.created_date = cursor.getString(4);\n\t\t\tassign.subject_relation_id = cursor.getString(5);\n\t\t\tassign.description = cursor.getString(6);\n\t\t\tassign.total_marks = cursor.getString(7);\n\t\t\tassign.marks = cursor.getString(8);\n\t\t\tassign.title = cursor.getString(9);\n\t\t\tassign.is_marked = cursor.getString(10);\n\t\t\tassign.is_published = cursor.getString(11);\n\t\t\tassign.file_name = cursor.getString(12);\n\t\t\tassign.attachment = cursor.getString(13);\n\t\t\n\t\t\t// Adding contact to list\n\t\t\tassignmentList.add(assign);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn assignmentList;\n\t}",
"public void showteachers(){\n for (int i=0; i<tlist.size(); i++){\n System.out.println(tlist.get(i).getTeacher());\n }\n }",
"@Override\n\tpublic List<Map<String, Object>> getTeacher() {\n\t\treturn getSession().selectList(getNamespace() + \"getTeacher\");\n\t}",
"public ArrayList<Teacher> getTeachersInField(){\r\n\t\treturn CourseFieldController.getFieldTeachers(this);\r\n\t}",
"public GradeInfo[] getGradeInfo() {\n return gradeInfo;\n }",
"Collection<MCodeMember> getAllSubmittedCodeMembers();",
"private void viewTeachers() {\n Iterable<Teacher> teachers = ctrl.getTeacherRepo().findAll();\n teachers.forEach(System.out::println);\n }",
"public String toString()\n {\n return \"PG/F: \" + PG + \", Department: \" + inspections + \", Contact Method: \" + method + \", Date: \" + date + \", Number: \" + num + \", Street: \" + street + \", Ward: \" + ward;\n }",
"@Override\r\n\tpublic List<Feedback> getFeedbacklist() {\n\t\tList<Feedback> flist= frepository.findAll();\r\n\t\treturn flist;\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"@Produces(MediaType.APPLICATION_JSON)\n @Override\n public List<Teacher> getAllTeachers() {\n List<Map<String, Object>> teachersIds = getJdbcTemplate().queryForList(sqlGetAllTeachersIds);\n if (teachersIds.size() == 0) {\n return null;\n }\n // find list of lessons by ID's\n List<Teacher> resultTeachers = new ArrayList<>();\n for (Map<String, Object> teacherId : teachersIds) {\n resultTeachers.add(getTeacherById((int) teacherId.get(\"id\")));\n }\n return resultTeachers;\n }",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"@GetMapping(\"task/{taskId}/allReviewers\")\n\tpublic ResponseEntity<Collection<ReviewerDTO>> getAllReviewers(@PathVariable String taskId) {\n\t\tTaskDto task = rspe.findTask(taskId);\n\t\tString magazine = (String) rspe.getVariable(task.getProcessInstanceId(), \"magazine\");\n\t\tString paper = (String) rspe.getVariable(task.getProcessInstanceId(), \"filename\");\n\n\t\tCollection<ReviewerDTO> reviewers = appTaskService.getAllReviewers(magazine);\n\t\tCollection<ReviewerDTO> reviewersData = new ArrayList<ReviewerDTO>();\n\n\t\tCollection<Review> reviews = reviewService.getByPaper(paper);\n\t\tfor(ReviewerDTO rew : reviewers) {\n\t\t\tboolean flag = false;\n\t\t\tfor(Review review : reviews) {\n\t\t\t\tSystem.out.println(\"evo me odje6666666666666666666666666666666 \"+rew.getUsername()+\" \"+review.getReviewer());\n\t\t\t\tif(rew.getUsername().equals(review.getReviewer())) {\n\t\t\t\t\tSystem.out.println(\"evo me odje6666666666666666666666666666666\");\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!flag && !reviewersData.contains(rew)) {\n\t\t\t\t\n\t\t\t\treviewersData.add(rew);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"ispisujem task id: \" + task.getId());\n\t\treturn ResponseEntity.ok(reviewersData);\n\t}",
"private void getPrinters() {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Printer\");\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n Printer p = ds.getValue(Printer.class);\n printers.add(p);\n }\n callFormDetailFunctions();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public static String debugSubmissionSetMetaData(SubmitTransactionData[] txnDatas) {\n\t\tfinal StringBuffer retVal = new StringBuffer();\n\t\tInteger i = 0;\n\t\tfor (final SubmitTransactionData txnData : txnDatas) {\n\t\t\ti++;\n\n\t\t\tretVal.append(\"\\nSubmission-Set \" + i + \"\\n\");\n\t\t\t// txnData.getDocList();\n\t\t\t// ProvideAndRegisterDocumentSetType metadata =\n\t\t\t// txnData.getMetadata();\n\t\t\tfinal SubmissionSetType ss = txnData.getSubmissionSet();\n\t\t\tretVal.append(\" EntryUUID: \" + ss.getEntryUUID() + \"\\n\");\n\t\t\tretVal.append(\" SourceId: \" + ss.getSourceId() + \"\\n\");\n\t\t\tretVal.append(\" SubmissionTime: \" + ss.getSubmissionTime() + \"\\n\");\n\t\t\tretVal.append(\" UniqueId: \" + ss.getUniqueId() + \"\\n\");\n\t\t\tretVal.append(\" Title: \" + ss.getTitle() + \"\\n\");\n\t\t\tretVal.append(\" PatientId: \" + ss.getPatientId() + \"\\n\");\n\t\t\tretVal.append(\n\t\t\t\t\t\" ContentTypeCode: \" + debugCodeString(ss.getContentTypeCode()) + \"\\n\");\n\t\t\tretVal.append(\" Author: \" + debugAuthorString(ss.getAuthor()) + \"\\n\");\n\t\t\tretVal.append(\" AvailabilityStatus: \" + ss.getAvailabilityStatus() + \"\\n\");\n\t\t\tretVal.append(\n\t\t\t\t\t\" Comments: \" + debugInternationalString(ss.getComments()) + \"\\n\");\n\t\t\tretVal.append(\" IntendedRecipient: \");\n\t\t\tif (ss.getIntendedRecipient().isEmpty()) {\n\t\t\t\tretVal.append(\"null\");\n\t\t\t} else {\n\t\t\t\tfor (final Object item2 : ss.getIntendedRecipient()) {\n\t\t\t\t\tretVal.append(\"\\n TODO IntendedRecipient \" + item2.getClass().getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\tretVal.append(\"\\n\");\n\n\t\t\tretVal.append(\" AssociatedFolders: \");\n\t\t\tif (ss.getAssociatedFolders().isEmpty()) {\n\t\t\t\tretVal.append(\"null\");\n\t\t\t} else {\n\t\t\t\tfor (final Object item2 : ss.getAssociatedFolders()) {\n\t\t\t\t\tretVal.append(\"\\n TODO AssociatedFolders \" + item2.getClass().getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\tretVal.append(\"\\n\");\n\n\t\t\tretVal.append(\" AssociatedDocuments: \");\n\t\t\tif (ss.getAssociatedDocuments().isEmpty()) {\n\t\t\t\tretVal.append(\"null\");\n\t\t\t} else {\n\t\t\t\tfor (final Object item2 : ss.getAssociatedDocuments()) {\n\t\t\t\t\tretVal.append(\"\\n \" + (String) item2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tretVal.append(\"\\n\");\n\t\t}\n\t\treturn retVal.toString();\n\t}",
"public List<String> viewExams() {\n List<String> list = new ArrayList<>();\n if (examList.size() == 0) {\n list.add(\"No Exams have been created yet!\");\n } else {\n for (int i = 0; i < examList.size(); i++) {\n String entry = (i + 1) + \".\" + examList.get(i).toString();\n list.add(entry);\n }\n }\n return list;\n }",
"public List getSubForums();",
"List<ExamGrSubMeta> getAnswerSheetMeta();",
"@Override\r\n\tpublic List<Feedback> getAll() {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/sysadm/tender\")\n public String showTenderList() {\n return \"admin/sysadm/tenderList\";\n }",
"private String E19Gages() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 68;\n String[] crit1 = null;\n String[] crit2 = null;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 2);\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_GAGES + \"\\n\\n\");\n buffer.append(\n \" DCP TELEM\\n\\n\");\n\n buffer.append(String.format(\n \" NESS ID: %-9s %12s TYPE OF TELEMETRY: %s\\n\",\n data.getDcp().getGoes(), \" \", data.getTelem().getType()));\n buffer.append(String.format(\n \" OWNER: %-11s %12s OWNER: %s\\n\",\n data.getDcp().getOwner(), \" \", data.getTelem().getOwner()));\n buffer.append(String.format(\n \" REPORT TIME: %-9s %12s PHONE NUMBER: %s\\n\",\n data.getDcp().getRptime(), \" \", data.getTelem().getPhone()));\n buffer.append(String.format(\n \" INTERVAL: %-5s %12s INTERVAL: %s\\n\",\n data.getDcp().getRptfreq(), \" \", data.getTelem().getRptFreq()));\n\n // Create the first criteria\n int dcpNumCols = 20;\n int dcpLeftMargin = 0;\n\n if (data.getDcp().getCriteria() != null) {\n crit1 = TextUtil.wordWrap(data.getDcp().getCriteria(), dcpNumCols,\n dcpLeftMargin);\n }\n\n // Create the second criteria\n int telmNumCols = 15;\n int telmLeftMargin = 0;\n\n if (data.getTelem().getCriteria() != null) {\n crit2 = TextUtil.wordWrap(data.getTelem().getCriteria(),\n telmNumCols, telmLeftMargin);\n }\n\n int crit1Size = 0;\n int crit2Size = 0;\n\n // formatting for line 1\n if (crit1 != null) {\n buffer.append(String.format(\" CRITERIA: %-20s %12s\", crit1[0],\n \" \"));\n crit1Size = crit1.length - 1;\n }\n\n if (crit2 != null) {\n buffer.append(String.format(\"CRITERIA: %-20s\\n\", crit2[0]));\n crit2Size = crit2.length - 1;\n }\n\n int index = 1;\n\n // formatting for all additional lines\n while ((crit1Size > 0) || (crit2Size < 0)) {\n if (crit1Size > 0) {\n buffer.append(String.format(\" %-20s %12s\",\n crit1[index], \" \"));\n crit1Size--;\n }\n\n if (crit2Size > 0) {\n buffer.append(String.format(\" %-20s\", crit2[index]));\n crit2Size--;\n buffer.append(\"\\n\");\n }\n index++;\n }\n\n String cost = \" \";\n if (data.getTelem().getCost() > 0) {\n cost = String.format(\"%-7.2f\", data.getTelem().getCost());\n }\n\n buffer.append(String.format(\n \" %18s PAYOR/COST OF LINE: %s / $ %s\\n\\n\",\n \" \", data.getTelem().getPayor(), cost));\n\n int count1 = countNewlines(buffer.toString());\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n int loop = 0;\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int needed = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n\n for (Gage gage : gageList) {\n // Get the remark field\n // Compute the number of lines needed for this record\n String[] lines = TextUtil.wordWrap(gage.getRemark(), numCols, 0);\n needed = (countNewlines(gage.getRemark()) + 1) + 1;\n\n if (needed <= avail) {\n // Formatting for line 1\n String remarkLine = \"\";\n\n if (lines != null) {\n remarkLine = lines[0];\n }\n String beginDate = \" \";\n String endDate = \" \";\n\n if (gage.getBegin() != null) {\n\n beginDate = sdf.format(gage.getBegin());\n }\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n\n }\n\n buffer.append(String.format(\n \" %-11s %-11s %-11s %10s %10s %-23s\\n\",\n gage.getType(), gage.getOwner(), gage.getMaint(),\n beginDate, endDate, remarkLine));\n\n // Formatting for all additional lines\n if ((lines != null) && (lines.length > 0)) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) {\n buffer.append(indent + lines[i] + \"\\n\");\n }\n }\n }\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n for (int i = 0; i < (((getLinesPerPage() * loop)\n + getFooterPosition())\n - countNewlines(buffer.toString())); i++) {\n buffer.append(\"\\n\");\n }\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_GAGES, \"GAGES\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n // Reset available value & continue from top of loop.\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_GAGES, \"GAGES\", null,\n E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"public List<ReconhecimentoGPDTO> getAllReconhecimentoGP(String emailFreelancer) throws SQLException {\n List<ReconhecimentoGPDTO> reconhecimentosGPDTO = new ArrayList<>();\n List<ReconhecimentoGP> reconhecimentosGP = repositorioFreelancer.getAllReconhecimentoGP(emailFreelancer);\n\n for (ReconhecimentoGP reconhecimentoGP : reconhecimentosGP) {\n reconhecimentosGPDTO.add((ReconhecimentoGPDTO) reconhecimentoGP.toDTO());\n }\n return reconhecimentosGPDTO;\n }",
"private List<Gender> extractGenders() {\n List<String> names = getNames(\"gender\");\n names.add(\"neutral\");\n GenderSelectAsyncTask task = new GenderSelectAsyncTask();\n GenderMapper mapper = new GenderMapper();\n task.setTypes(names);\n List<Gender> genders = new ArrayList<>(0);\n try {\n genders.addAll(mapper.to(task.execute().get()));\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"extractGenders: \" + e.getMessage(), e);\n }\n return genders;\n }",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"@Override\n\tpublic List<Teacher> getAll() {\n\t\treturn null;\n\t}",
"@Transactional(readOnly = true)\n public List<SubRedditData> getAll() {\n return subRedditRepository.findAll()\n .stream()\n .map(subRedditMapperInterface::mapSubRedditToData)\n .collect(Collectors.toList());\n }",
"public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}",
"public String findAllFeedbackEligibleClass() {\n List<ClassBean> list = new ArrayList();\n int currentTime = UtilsManager.getCurrentTimestampInSeconds();\n List<ScheduledFeedbackBean> findAllEligibleSFB = new ScheduledFeedbackBean().findAllFeedbackEligibleClass(currentTime);\n for (ScheduledFeedbackBean sfb : findAllEligibleSFB) {\n list.add(sfb.getClassId());\n }\n return convertBeanToJson(list);\n }",
"@Override\n\tpublic List<Patientstreatments> getallpatienttreat() {\n\t\treturn patreatrep.findAll();\n\t}",
"Achievements getPostDetails();",
"public List<TRForm> viewFormforEmployee(int eid);",
"@Override\r\n\tpublic List<Feedback> getFeedback(int tutorId) {\n\t\tList<Feedback> flist= frepository.getFeedback(tutorId);\r\n\t\treturn flist;\r\n\t}",
"public ArrayList<Grading> getGradingList(){\n \n ArrayList<Grading> gradingList = new ArrayList<Grading>();\n \n String select1 = \"select * from Gradings\";\n \n try{\n \n ps=dbc.con.prepareStatement(select1);\n rs=ps.executeQuery();\n Grading grading;\n while(rs.next()){\n \n grading = new Grading(rs.getString(\"studentId\"),rs.getString(\"firstName\"),rs.getString(\"course\"),rs.getString(\"examType\"),rs.getString(\"grade\"),rs.getString(\"date1\"));\n gradingList.add(grading);\n }\n \n }\n catch(Exception e){}\n return gradingList;\n }",
"public List < Entity > getPassengers ( ) {\n\t\treturn extract ( handle -> handle.getPassengers ( ) );\n\t}",
"@Override\n\tpublic List<Grade> findAll() {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tList<Grade> grades=gradeDAO.selectAll();\n\t\treturn grades;\n\t}",
"public String getAllPapers(){\r\n\t\tString allPapers = \"\";\r\n\t\tif(papers != null){\r\n\t\t\tfor(int index = 0; index < papers.size(); ++index){\r\n\t\t\t\tallPapers += papers.get(index).getTitleOfPaper() + \"\\n\\t\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tallPapers = \"No papers have been added.\";\r\n\t\t}\r\n\t\t\r\n\t\treturn allPapers;\r\n\t}",
"public ArrayList<Announcement> getAllAnnouncementforUpload() {\n\t\tArrayList<Announcement> announcementList = new ArrayList<Announcement>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ANNOUNCEMENT;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tAnnouncement announcement = new Announcement();\n\t\t\tannouncement.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tannouncement.type = cursor.getString(2);\n\t\t\tannouncement.date = cursor.getString(1);\n\t\t\tannouncement.subject_relation_id = cursor.getString(3);\n\t\t\tannouncement.title = cursor.getString(4);\n\t\t\tannouncement.description = cursor.getString(5);\n\t\t\tannouncement.attachment = cursor.getString(6);\n\t\t\tannouncement.file_name = cursor.getString(7);\n\t\t\tannouncementList.add(announcement);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn announcementList;\n\t}",
"List<TeacherRecord> getTeachers(String clientId) throws Exception;",
"public String getAllCommitteeMembers(){\r\n\t\tString allCommitteeMembers = \"\";\r\n\t\tfor(int index = 0; index < committeeMembers.size(); ++index){\r\n\t\t\tallCommitteeMembers += committeeMembers.get(index).returnNameInString() + \"\\n\\t\";\r\n\t\t}\r\n\t\treturn allCommitteeMembers;\r\n\t}",
"@Override\n\tpublic List<Map<String, String>> getTechsOforg(int org_id) {\n\t\treturn teacherDao.getTechsOforg(org_id);\n\t}",
"public String getPassengersDetails(){\n waitForPageToLoad();\n String passengers = driver.findElement(oPassengerDetails).getText();\n logger.debug(\"passenger details are :\" + passengers);\n return passengers;\n }",
"public List<Termek> getAllTermek() {\r\n return Termeks;\r\n }",
"public List<Renter> showRentersList(){\n String sql = \"SELECT renterID AS id, first_name AS firstName, last_name AS lastName, CPR AS cpr, email, phone, \" +\n \"driver_license_number AS licenseNumber, a.street, a.building, a.floor, a.door, z.zip, city.name AS city,\" +\n \" c.name AS country FROM renter r JOIN address a ON r.addressID=a.addressID JOIN zip z ON a.zipID=z.zipID\" +\n \" JOIN city ON z.cityID=city.cityID JOIN country c ON z.countryID=c.countryID\";\n return template.query(sql, rowMapper);\n }",
"private List<Text> getPosts() {\n\t\tList<Text> result = new ArrayList<>();\n\t\tObservableList<Post> postList = PostDAO.searchPosts(String.valueOf(friendsID));\n\t\tfor(Post post : postList) {\n\t\t\tString postTime = post.getPostTime();\n\t\t\tString content = post.getPostContent();\n\t\t\tString editTime = post.getEditTime();\n\t\t\tString toPost;\n\t\t\tif(editTime != null) {\n\t\t\t\ttoPost = \"Post on \" + postTime + \" Last edit on \" + editTime + \"\\n\" + content + \"\\n\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttoPost = \"Post on \" + postTime + \"\\n\" + content + \"\\n\";\n\t\t\t}\n\t\t\tText text = new Text(toPost);\n\t\t\tresult.add(text);\n\t\t}\n\t\treturn result;\n\t}",
"private String E19StaffGage() {\n StringBuilder buffer = new StringBuilder();\n StringBuilder record = new StringBuilder();\n int numCols = 85; // width of flood text\n int leftMargin = 12;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n\n int flood_filler = 100; // so flood section is space-buffered\n int crest_filler = 20; // so crest section is space-buffered\n\n int linesAvailable = 0; // ensures correct num of lines/page\n int linesNeeded = 0; // ensures lines will fit on page\n\n int maxStage = Integer.MIN_VALUE; // maximum of flood and crest stage\n int minStage = Integer.MAX_VALUE; // minimum of flood and crese stage\n int scaleDiff = 0;\n double range; // maxstage - minstage\n double feetStagePerLine = 0.0; // (range / lines_per_page)\n\n double currentStage;\n\n int lines_per_page = 51; // max printable lines per page\n int tickmark_gap = 5; // distance between tickmarks\n int currentTick = 0; // loop control variable (for tickmarks)\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_STAFFGAGE + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getStaffGageData(lid);\n\n int count1 = countNewlines(buffer.toString());\n\n linesAvailable = getLinesPerPage() - count1 - 7;\n\n ArrayList<Flood> floodList = null;\n if (data.getStaffData().getFloodList() != null) {\n floodList = data.getStaffData().getFloodList();\n }\n ArrayList<Crest> crestList = null;\n if (data.getStaffData().getCrestList() != null) {\n crestList = data.getStaffData().getCrestList();\n }\n\n if ((crestList != null && !crestList.isEmpty())\n || (floodList != null && !floodList.isEmpty())) {\n // find the min and max stage values found in the Flood and Crest\n // tables\n if (floodList != null) {\n for (Flood flood : floodList) {\n if (flood.getStage() < minStage) {\n minStage = (int) flood.getStage();\n }\n if (flood.getStage() > maxStage) {\n maxStage = (int) flood.getStage();\n }\n }\n }\n if (crestList != null) {\n for (Crest crest : crestList) {\n if (crest.getStage() < minStage) {\n minStage = (int) crest.getStage();\n }\n if (crest.getStage() > maxStage) {\n maxStage = (int) crest.getStage();\n }\n }\n }\n\n maxStage++;\n\n // determine the range & feetStagePerLine (feet per line)\n range = maxStage - minStage;\n feetStagePerLine = (range / lines_per_page);\n\n if (feetStagePerLine < 0.2) {\n feetStagePerLine = 0.2;\n } else if (feetStagePerLine < 0.4) {\n feetStagePerLine = 0.4;\n } else if (feetStagePerLine < 1.0) {\n feetStagePerLine = 1.0;\n } else if (feetStagePerLine < 2.0) {\n feetStagePerLine = 2.0;\n } else if (feetStagePerLine < 5.0) {\n feetStagePerLine = 5.0;\n }\n\n // set the maxstage based on the minstage + lines per page and\n // feet/line\n scaleDiff = (int) (((lines_per_page - 1) * feetStagePerLine)\n - range);\n\n maxStage += scaleDiff / 2;\n\n if (floodList != null) {\n // Compute the number of lines needed for first flood record.\n if ((floodList.size() > 0) && (floodList.get(0)\n .getStage() != HydroConstants.MISSING_VALUE)) {\n tmp1 = String.format(\"%7.2f\", floodList.get(0).getStage());\n String[] lines = TextUtil\n .wordWrap(floodList.get(0).getDamage(), numCols, 0);\n record.append(indent + tmp1);\n\n if (lines != null && lines.length > 0) {\n record.append(\" - \" + lines[0]);\n\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) {\n record.append(indent + lines[i]);\n }\n }\n }\n \n linesNeeded = countNewlines(record.toString());\n }\n }\n\n currentStage = maxStage; // currentStage is decremented by\n // feetStagePerLine\n int floodIndex = 0;\n int crestIndex = 0;\n int lineIndex = 0;\n String[] lines = null;\n String thisLineStr = null;\n\n for (currentTick = 0; currentTick < lines_per_page; currentTick++) {\n if (linesNeeded <= linesAvailable) {\n /*\n * List the flood events\n */\n if ((floodList.size() > floodIndex)\n && (floodList.get(floodIndex) != null)\n && (currentStage <= floodList.get(floodIndex)\n .getStage())) {\n // get one line at a time from record\n if (lines == null) {\n lines = TextUtil.wordWrap(\n floodList.get(floodIndex).getDamage(),\n numCols, 0);\n lineIndex = 0;\n\n tmp1 = \" \";\n if (floodList.get(floodIndex)\n .getStage() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%7.2f\",\n floodList.get(floodIndex).getStage());\n }\n\n if (lines == null || lines[lineIndex] == null) {\n thisLineStr = \" \" + tmp1 + \" -\";\n } else {\n thisLineStr = \" \" + tmp1 + \" - \"\n + lines[lineIndex];\n }\n } else {\n thisLineStr = \" \";\n }\n\n int spaces = flood_filler - thisLineStr.length();\n record.setLength(0);\n\n // Fill in the beginning of the line with spaces\n StringBuilder remainSpace = new StringBuilder();\n for (int i = 0; i < spaces; i++) {\n remainSpace.append(\" \");\n }\n buffer.append(thisLineStr);\n buffer.append(remainSpace.toString());\n\n lineIndex++;\n\n if (lines != null && lineIndex == lines.length - 1) { // No\n // more\n // lines\n // in\n // this\n // record\n floodIndex++; // Get the next record\n\n if ((floodList.size() > floodIndex)\n && (floodList.get(floodIndex) != null)) {\n\n // Compute the number of lines needed for new\n // flood record.\n if (floodList.get(floodIndex)\n .getStage() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%7.2f\", floodList\n .get(floodIndex).getStage());\n record.append(\" \" + tmp1 + \" - \" + floodList\n .get(floodIndex).getDamage());\n lines = TextUtil.wordWrap(record.toString(),\n numCols, 0);\n linesNeeded = countNewlines(\n record.toString());\n }\n }\n\n lines = null;\n lineIndex = 0;\n }\n } else { // no flood information on this line\n for (int i = 0; i < flood_filler; i++) {\n buffer.append(\" \");\n }\n }\n\n /*\n * Draw the gage\n */\n if ((currentTick % tickmark_gap) == 0) { // then show gage\n // with tickmark\n String s = e19BuildStaffGageString(\n String.format(\"%4.0f\", currentStage));\n buffer.append(s);\n } else { // then show gage with delete/rubout characters\n String s = e19BuildStaffGageString(null);\n buffer.append(s);\n }\n\n /*\n * List the crest events\n */\n if ((crestList.size() > crestIndex)\n && (crestList.get(crestIndex) != null)\n && (currentStage <= crestList.get(crestIndex)\n .getStage())) {\n tmp2 = String.format(\"%8.2f\",\n crestList.get(crestIndex).getStage());\n if (crestList.get(crestIndex).getDatcrst() != null) {\n tmp3 = sdf.format(\n crestList.get(crestIndex).getDatcrst());\n }\n buffer.append(String.format(\"%s %s\", tmp2, tmp3));\n\n while ((crestList.size() > crestIndex)\n && (crestList.get(crestIndex) != null)\n && (crestList.get(crestIndex)\n .getStage() >= currentStage)) {\n crestIndex++;\n }\n } else { // no crest information on this line\n for (int i = 0; i < crest_filler; i++) {\n buffer.append(\" \");\n }\n }\n\n /*\n * End of current line\n */\n buffer.append(\"\\n\");\n currentStage -= feetStagePerLine;\n linesAvailable--;\n } // lines needed less than available\n } // for currentTick\n }\n\n data = TextReportDataManager.getInstance().getDataForReports(lid, 0);\n buffer.append(\"\\n\\n\");\n buffer.append(\" REACH: \");\n if (data.getDescrip() != null) {\n buffer.append(String.format(\"%-80s\", data.getDescrip().getReach()));\n } else {\n buffer.append(String.format(\"%-80s\", \"\"));\n }\n\n if (data.getRiverstat() != null) {\n buffer.append(String.format(\"\tELEVATION ZERO: %7.2f\\n\\n\",\n data.getRiverstat().getZd()));\n } else {\n buffer.append(String.format(\"\tELEVATION ZERO: %7.2f\\n\\n\", 0.));\n }\n\n buffer.append(\"\\n\");\n buffer.append(advanceToFooter(0, buffer.toString()));\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_STAFFGAGE, \"STAFF\", null,\n E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer + \"\\n\\n\");\n\n return buffer.toString();\n }",
"public List<Teacher> getTeachers() {\n\t\tList<Teacher> teachers = this.hibernateTemplate.loadAll(Teacher.class);\n\t\treturn teachers;\n\t}",
"public List<TransporteTerrestreEntity> getTransportes() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todos los transportes.\");\n List<TransporteTerrestreEntity> transportes = persistence.findAll(); \n LOGGER.log(Level.INFO, \"Termina proceso de consultar todos los transportes\");\n return transportes; \n }",
"java.util.List getGradeModelRefs();",
"private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }",
"public String[] getRecordOnPan() {\r\n String result[] = new String[6];\r\n result[0] = nameTf.getText();\r\n result[1] = locationTf.getText();\r\n result[2] = specialtiesTf.getText();\r\n result[3] = sizeTf.getText();\r\n result[4] = rateTf.getText();\r\n result[5] = ownerTf.getText();\r\n\r\n return result;\r\n }",
"public List<Qualification> getQualifications() {\n return qualifications;\n }",
"public String toString() {\n return \"\\nGig Name : \"+gigName+\" \" +\n \"Gig URL : \"+gigURL+\" \" +\n \"Gig Date : \"+gigDate+\" \" +\n \"Gig Ranking : \"+gigRanking; \n }",
"public Review[] seeAllReview(String TEmail) {\n\t\t\n\t\tRateAndReview r = new RateAndReview();\n\t\t\n\t\tReview[] All = r.getReviews(TEmail);\n\t\t\n\t\treturn All;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"@Override\n\tpublic List<Teacher> getTeaNameAndID() {\n\t\treturn teacherDAO.getTeaNameAndID();\n\t}",
"@Override\n\tpublic ResponseEntity<?> getCTGS(Integer tId) {\n\t\tif (teacherRepo.existsById(tId)) {\n\t\t\treturn new ResponseEntity<List<Class_Teacher_Grade_Subject>>(\n\t\t\t\t\tctgsRepo.findByTgs_Teacher_idAndActive(tId, true), HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no teacher with such ID\"),\n\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t}\n\t}",
"@Override\n\tpublic List<Fee_Entity> get_all_fee() {\n\t\treturn fee.get_all_fee();\n\t}",
"java.lang.String getRaceList();",
"@Override\n\tpublic List<ParticipantDTO> getAllEnrolledParticipant() {\n\t\tList<ParticipantDTO> participantList = eManager.createQuery(\n\t\t\t\t\"SELECT p FROM ParticipantDTO p\", ParticipantDTO.class)\n\t\t\t\t.getResultList();\n\n\t\treturn participantList;\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"@Override\n\tpublic List<Meeting> getAllMettingList() {\n\t\treturn (List<Meeting>) meetingRepository.findAll();\n\t}",
"private List<List<Submittable>> allSubmittablesLists(){\n List lists = Arrays.asList(analyses, assays, assayData, egaDacs, egaDacPolicies, egaDatasets, projects, samples, sampleGroups, studies);\n return (List<List<Submittable>>)lists;\n }",
"@GetMapping\n\tpublic ResponseEntity<List<Bug>> getAllBugs () {\n\n\t\tHttpStatus status = HttpStatus.OK;\n\t\tHttpHeaders httpHeaders = new HttpHeaders();\n\t\thttpHeaders.setContentType(MediaType.APPLICATION_JSON);\n\t\t\n\t\tList<Bug> providerDetails = bugService.fetchAllBugs();\n\t\t\n\t\treturn new ResponseEntity<>(providerDetails, httpHeaders, status);\n\t}",
"public TeacherPage submit() {\n clickSaveButton();\n return this;\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static ArrayList<Teacher> getAllDocenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_ALL_TEACHERS;\n\t\t\tReceiveContent rp1 = sendReceive(rp);\n\t\t\tArrayList<Teacher> lis = (ArrayList<Teacher>) rp1.parameters[0];\n\t\t\treturn lis;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new ArrayList<Teacher>();\n\t}",
"private List<Integer> gradeExams() {\r\n\t\tlog(mName + \": grading exams\");\r\n\t\tRandom rand = new Random();\r\n\t\tList<Integer> scores = new ArrayList<Integer>();\r\n\r\n\t\tfor (Contestant c : mContestants) {\r\n\t\t\tint score = rand.nextInt(101);\r\n\t\t\tlog(mName + \": \" + c.getName() + \" has scored \" + score);\r\n\t\t\tc.setExamScore(score);\r\n\t\t\tscores.add(score);\r\n\t\t}\r\n\r\n\t\treturn scores;\r\n\t}",
"public Iterable<StudentQualificationPersonDetail> getStudentRegisteredData(){\n\t\t\n\t\treturn sqcRepository.findAll();\n\t}",
"public String toString(){\n return getfName() +\"\\n\" + getlName() + \"\\n\" + getSsn() + \"\\n\" + getBday() + \"\\n\" + getGender();\n }",
"public String projectSubmissions(String nameDiscipline, String nameProject)\n throws InvalidDisciplineException, InvalidProjectException{\n Professor _professor = getProfessor();\n return _professor.projectSubmissions(nameDiscipline, nameProject);\n }",
"private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }",
"private String getNameHtml(final Submitter submitter) {\n final GedRenderer<? extends GedObject> renderer =\n new SimpleNameRenderer(submitter.getName(),\n submitterRenderer.getRendererFactory(),\n submitterRenderer.getRenderingContext());\n return renderer.getNameHtml();\n }",
"public String toString() {\n \r\n return this.studentID + \", \" + this.lastName + \", \" +\r\n this.firstName + \", \" + this.q1 + \", \" +\r\n this.q2 + \", \" + this.q3 + \", \" +\r\n this.q4 + \", \" + this.q5 + \", \" +\r\n this.qmkup + \", \" + this.midterm + \", \" +\r\n this.problems + \", \" +\r\n this.finalExam + \", \" + this.courseGrade + \", \" +\r\n this.letterGrade;\r\n }",
"@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}",
"public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n if (questBuilder_ == null) {\n return java.util.Collections.unmodifiableList(quest_);\n } else {\n return questBuilder_.getMessageList();\n }\n }",
"public List<StandardProteinBean> getStanderdPlotProt() {\n return standerdPlotProt;\n }",
"public String getBulk() {\n return ElasticQuestionnaire.getGenericBulk(getCreationDate_PK(), ElasticQuestionnaire.getType(), getAsJSON().toString());\n }"
]
| [
"0.65303296",
"0.5872183",
"0.548756",
"0.5397518",
"0.5350374",
"0.53400815",
"0.5289653",
"0.5246331",
"0.5241938",
"0.52365875",
"0.5201332",
"0.5185516",
"0.514166",
"0.5137776",
"0.5122614",
"0.50539434",
"0.49732426",
"0.49606895",
"0.49432003",
"0.4938747",
"0.4905342",
"0.48973262",
"0.48744798",
"0.48690763",
"0.48656946",
"0.4854212",
"0.48541853",
"0.48399505",
"0.48289534",
"0.4825307",
"0.4822182",
"0.4798112",
"0.4790323",
"0.47800845",
"0.47652537",
"0.47580066",
"0.47515786",
"0.474638",
"0.47452086",
"0.47309026",
"0.47300184",
"0.4727591",
"0.4712571",
"0.47080615",
"0.4703261",
"0.46986488",
"0.46783036",
"0.4678005",
"0.46615863",
"0.46521342",
"0.4650377",
"0.46493635",
"0.46401322",
"0.46364233",
"0.46356195",
"0.46316466",
"0.46213704",
"0.46158752",
"0.4601385",
"0.45972076",
"0.45931128",
"0.45908776",
"0.45778754",
"0.45771715",
"0.4576342",
"0.45740366",
"0.4569317",
"0.45649981",
"0.45564944",
"0.45557508",
"0.45522922",
"0.4552207",
"0.4547464",
"0.45467573",
"0.45461068",
"0.45455053",
"0.45432633",
"0.45416114",
"0.45365897",
"0.45302486",
"0.45237362",
"0.45094457",
"0.45057857",
"0.45012596",
"0.44982204",
"0.44940153",
"0.4491265",
"0.44905728",
"0.4489335",
"0.44721988",
"0.4470146",
"0.44677883",
"0.44645914",
"0.4458908",
"0.44572556",
"0.44512555",
"0.44487426",
"0.44375533",
"0.44268808",
"0.44252262"
]
| 0.7932513 | 0 |
Returns a range of all the gdf tender submission detailses. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from GDFTenderSubmissionDetailsModelImpl. | public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {
return getPersistence().findAll(start, end);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}",
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipations(int start, int end) {\n\n\t\treturn _participationLocalService.getParticipations(start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@RequestMapping(value = \"/{start}/{end}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic @ResponseBody String viewBranchManagersRange(@PathVariable(\"start\") int start, @PathVariable(\"end\") int end) throws JsonProcessingException {\r\n\r\n\t\treturn branchManagerService.viewBranchManagersRange(start, end);\r\n\t}",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findAll(int start, int end);",
"public AreaRendererEndType getEndType() {\n\t\treturn this.endType;\n\t}",
"public static List<Term> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}",
"@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end);",
"MinmaxEntity getEnd();",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }",
"private List<GbGradingSchemaEntry> setupGradingSchemaEntries() {\n\n\t\t// get configured values or defaults\n\t\t// need to retain insertion order\n\t\tMap<String, Double> bottomPercents = new LinkedHashMap<>();\n\n\t\t// note that we sort based on name so we need to pull the right name out of the list of mappings, for both cases\n\t\tfinal String gradingSchemaName = this.gradeMappings.stream()\n\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t.findFirst()\n\t\t\t\t.get()\n\t\t\t\t.getName();\n\n\t\tif (StringUtils.equals(this.currentGradeMappingId, this.configuredGradeMappingId)) {\n\t\t\t// get the values from the configured grading scale in this gradebook and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.model.getObject().getGradebookInformation().getSelectedGradingScaleBottomPercents());\n\t\t} else {\n\t\t\t// get the default values for the chosen grading scale and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.gradeMappings.stream()\n\t\t\t\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t\t.get()\n\t\t\t\t\t\t\t.getDefaultBottomPercents());\n\t\t}\n\n\t\t// convert map into list of objects which is easier to work with in the views\n\t\tfinal List<GbGradingSchemaEntry> rval = new ArrayList<>();\n\t\tfor (final Map.Entry<String, Double> entry : bottomPercents.entrySet()) {\n\t\t\trval.add(new GbGradingSchemaEntry(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn rval;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"@Override\n public List<Publication> getAllReviewed(String filter, int start, int length, String orderBy, String sortOrder) {\n Integer defaultReturnValue = (length == 0) ? 10 : length;\n\n PageRequest pageRequest = getPageRequest(start, defaultReturnValue, orderBy, sortOrder);\n if(filter == null || filter.isEmpty()) {\n return referenceRepository.findAllByStatusIs(pageRequest, \"reviewed\").getContent();\n } else {\n filter = \".*\" + filter + \".*\";\n return referenceRepository.findReviewedContains(filter, pageRequest).getContent();\n }\n }",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);",
"Collection<AssociationEnd> getSpecifiedEnds();",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworks(int start, int end);",
"public String[] getGradeRanges() {\n\t\tString t = doc.get(getFieldId(\"gradeRange\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"String getEndRange();",
"Collection<MCodeMember> getAllSubmittedCodeMembers();",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(super.toString());\n builder.append(\",end=\" + end.toString());\n\n return builder.toString();\n }",
"public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end);\n\t}",
"@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@RequestMapping(value = \"/allEndroit\")\n\tpublic List<Endroit> getAllEndroit() {\n\t\n\t\treturn endroitDAO.getAllEndroitList();\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\r\n public String toString() \r\n {\n return \"[\" + getStart() + \", \" + getEnd() + \"]\";\r\n }",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public Element setEndModifier(char start_modifier, char end_modifier) {\n\t\tthis.end_start_modifier = start_modifier;\n\t\tthis.end_end_modifier = end_modifier;\n\t\tsetEndStartModifierDefined(true);\n\t\tsetEndEndModifierDefined(true);\n\t\treturn (this);\n\t}",
"@Override\r\n\tpublic List<ReviewDTO> review_list(int start, int end, String code) throws Exception {\n\t\treturn reviewDao.review_list(start, end, code);\r\n\t}",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipationsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<eu.strasbourg.service.project.model.Participation>\n\t\t\t\t\torderByComparator) {\n\n\t\treturn _participationLocalService.getParticipationsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"Collection<AssociationEnd> getAssociations();",
"public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end) {\n\n\t\treturn getPersistence().filterFindByG_T(groupId, termId, start, end);\n\t}",
"@Override\n\tpublic List<Road_grade> getAllRoadGrade() {\n\t\treturn this.roadDao.getAllRoadGrade();\n\t}",
"@Override\n\tpublic List<Grade> findAll() {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tList<Grade> grades=gradeDAO.selectAll();\n\t\treturn grades;\n\t}",
"private HashMap getGradeRangeMap() {\n\t\tHashMap map = new HashMap();\n\t\tGradeRangeHelper grh;\n\t\tgrh = new GradeRangeHelper(\"Primary elementary\", \"DLESE:Primary elementary\", 0, 2);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"Intermediate elementary\", \"DLESE:Intermediate elementary\", 3, 5);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"Middle school\", \"DLESE:Middle school\", 6, 8);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"High school\", \"DLESE:High school\", 9, 12);\n\t\tmap.put(grh.value, grh);\n\t\treturn map;\n\t}",
"public Set<T> getRanges();",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end);",
"public LocalDate getEndDate () {\n\t\treturn DateUtils.toLocalDate(this.end);\n\t}",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public String getItemRange() {\n\t\tint start = (currentPage - 1) * OrderHistoryActionForm.RESULTS_PER_PAGE\n\t\t\t\t+ 1;\n\t\tString startStr = String.valueOf(start);\n\t\tint end = start + OrderHistoryActionForm.RESULTS_PER_PAGE - 1;\n\t\tif (end > this.totalItems) {\n\t\t\tend = this.totalItems;\n\t\t}\n\t\tString endStr = String.valueOf(end);\n\t\treturn startStr + \"-\" + endStr;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Guide> findByTime(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"FROM Guide WHERE id NOT IN (SELECT guide FROM Excursion AS XS WHERE (XS.start BETWEEN \"\n\t\t\t\t\t\t+ \":startDate AND :endDate) OR (XS.end BETWEEN :startDate AND :endDate))\");\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\n\t\treturn result.list();\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@ApiModelProperty(value = \"An array of each component of the event end date\")\n public DateDetails getEndDateDetails() {\n return endDateDetails;\n }",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end);",
"public List<com.heman.bysj.jooq.tables.pojos.Teacher> fetchRangeOfGrade(Integer lowerInclusive, Integer upperInclusive) {\n return fetchRange(Teacher.TEACHER.GRADE, lowerInclusive, upperInclusive);\n }",
"public java.lang.String getRange() {\n\t\treturn _range;\n\t}",
"public SolrQuery buildSolrQueryForPeriod(String query, String startDate, String endDate) {\n log.info(\"query between \" + startDate + \"T00:00:00Z and \" + endDate + \"T23:59:59Z\");\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(query); //Smurf labs forces text:query\n solrQuery.setRows(0); // 1 page only\n solrQuery.add(\"fl\", \"id\");// rows are 0 anyway\n solrQuery.add(\"fq\",\"content_type_norm:html\"); // only html pages\n solrQuery.add(\"fq\",\"crawl_date:[\" + startDate + \"T00:00:00Z TO \" + endDate + \"T23:59:59Z]\");\n return solrQuery;\n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public static List<FoundObject> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public int getEndRange() {\r\n\t\treturn lookupValue(Params.END_RANGE);\r\n\t}"
]
| [
"0.8427116",
"0.79115385",
"0.6729891",
"0.6419376",
"0.62230754",
"0.59723914",
"0.49923286",
"0.48260152",
"0.47004065",
"0.46587855",
"0.45143783",
"0.44948733",
"0.4488657",
"0.4438348",
"0.44322962",
"0.4398956",
"0.4313475",
"0.42884496",
"0.42475963",
"0.42415926",
"0.4217572",
"0.4215634",
"0.41943395",
"0.418667",
"0.41842097",
"0.41542384",
"0.41515574",
"0.41496593",
"0.4132499",
"0.41320962",
"0.41270792",
"0.41075027",
"0.4101525",
"0.40872893",
"0.40641883",
"0.4041227",
"0.40136942",
"0.40108225",
"0.4002569",
"0.39974362",
"0.39720002",
"0.39580795",
"0.39541814",
"0.39463753",
"0.39450085",
"0.39439288",
"0.3940391",
"0.39041308",
"0.3873536",
"0.3863958",
"0.38545275",
"0.38543463",
"0.38513604",
"0.38361686",
"0.3813051",
"0.38092488",
"0.38025185",
"0.3769371",
"0.3768392",
"0.37602863",
"0.3756966",
"0.37564653",
"0.3755403",
"0.37432274",
"0.37372112",
"0.37288174",
"0.37222713",
"0.37142658",
"0.37129787",
"0.37093067",
"0.37088877",
"0.37075728",
"0.37012532",
"0.36915538",
"0.36877882",
"0.36820388",
"0.36781108",
"0.36780953",
"0.367698",
"0.36751813",
"0.36671096",
"0.36647272",
"0.36623597",
"0.3657699",
"0.3654309",
"0.3648429",
"0.3644341",
"0.36431712",
"0.36392027",
"0.3635771",
"0.36306956",
"0.36292735",
"0.36272213",
"0.362593",
"0.36178985",
"0.36102843",
"0.3607525",
"0.360698",
"0.36012107",
"0.3596994"
]
| 0.7573114 | 2 |
Returns an ordered range of all the gdf tender submission detailses. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from GDFTenderSubmissionDetailsModelImpl. | public static List<GDFTenderSubmissionDetails> findAll(
int start, int end,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<Term> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipationsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<eu.strasbourg.service.project.model.Participation>\n\t\t\t\t\torderByComparator) {\n\n\t\treturn _participationLocalService.getParticipationsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n public List<Publication> getAllReviewed(String filter, int start, int length, String orderBy, String sortOrder) {\n Integer defaultReturnValue = (length == 0) ? 10 : length;\n\n PageRequest pageRequest = getPageRequest(start, defaultReturnValue, orderBy, sortOrder);\n if(filter == null || filter.isEmpty()) {\n return referenceRepository.findAllByStatusIs(pageRequest, \"reviewed\").getContent();\n } else {\n filter = \".*\" + filter + \".*\";\n return referenceRepository.findReviewedContains(filter, pageRequest).getContent();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}",
"public AreaRendererEndType getEndType() {\n\t\treturn this.endType;\n\t}",
"Collection<AssociationEnd> getSpecifiedEnds();",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipations(int start, int end) {\n\n\t\treturn _participationLocalService.getParticipations(start, end);\n\t}",
"public java.util.List<DataEntry> findByCopiedFrom(\n\t\tlong copiedFrom, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"@RequestMapping(value = \"/{start}/{end}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic @ResponseBody String viewBranchManagersRange(@PathVariable(\"start\") int start, @PathVariable(\"end\") int end) throws JsonProcessingException {\r\n\r\n\t\treturn branchManagerService.viewBranchManagersRange(start, end);\r\n\t}",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"private List<GbGradingSchemaEntry> setupGradingSchemaEntries() {\n\n\t\t// get configured values or defaults\n\t\t// need to retain insertion order\n\t\tMap<String, Double> bottomPercents = new LinkedHashMap<>();\n\n\t\t// note that we sort based on name so we need to pull the right name out of the list of mappings, for both cases\n\t\tfinal String gradingSchemaName = this.gradeMappings.stream()\n\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t.findFirst()\n\t\t\t\t.get()\n\t\t\t\t.getName();\n\n\t\tif (StringUtils.equals(this.currentGradeMappingId, this.configuredGradeMappingId)) {\n\t\t\t// get the values from the configured grading scale in this gradebook and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.model.getObject().getGradebookInformation().getSelectedGradingScaleBottomPercents());\n\t\t} else {\n\t\t\t// get the default values for the chosen grading scale and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.gradeMappings.stream()\n\t\t\t\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t\t.get()\n\t\t\t\t\t\t\t.getDefaultBottomPercents());\n\t\t}\n\n\t\t// convert map into list of objects which is easier to work with in the views\n\t\tfinal List<GbGradingSchemaEntry> rval = new ArrayList<>();\n\t\tfor (final Map.Entry<String, Double> entry : bottomPercents.entrySet()) {\n\t\t\trval.add(new GbGradingSchemaEntry(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn rval;\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n return EffectiveEndDtComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);",
"public java.util.List<Todo> findByTodoDouble(\n\t\tdouble todoDouble, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public String[] getGradeRanges() {\n\t\tString t = doc.get(getFieldId(\"gradeRange\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoDateTime(\n\t\tDate todoDateTime, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public Sort Range() throws Z3Exception\n\t{\n\t\treturn Sort.Create(Context(),\n\t\t\t\tNative.getArraySortRange(Context().nCtx(), NativeObject()));\n\t}",
"MinmaxEntity getEnd();",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public List<Reporteador> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 52: */ {\r\n/* 53: 71 */ return this.reporteadorDao.obtenerListaPorPagina(startIndex, pageSize, sortField, sortOrder, filters);\r\n/* 54: */ }",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }",
"public java.util.List<DataEntry> findByDataSectionId(\n\t\tlong dataSectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid, start, end, orderByComparator);\n\t}",
"@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"Collection<AssociationEnd> getAssociations();",
"public java.util.List<DataEntry> findAll(int start, int end);",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public Collection getSortedEntries(final PropertyAccessor sortProperty, boolean descending) {\n \t\tIEntryQueries queries = (IEntryQueries)getSession().getAdapter(IEntryQueries.class);\n \tif (queries != null) {\n \t\treturn queries.getSortedEntries(this, sortProperty, descending);\n \t} else {\n \t\t// IEntryQueries has not been implemented in the datastore.\n \t\t// We must therefore provide our own implementation.\n \t\t\n \t\tList sortedEntries = new LinkedList();\n \t\t\n \t\tIterator it = entries.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tsortedEntries.add(it.next());\n \t\t}\n \t\t\n \t\tComparator entryComparator;\n \t\tif (sortProperty.getPropertySet() == EntryInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == TransactionInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == AccountInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else {\n \t\t\tthrow new RuntimeException(\"given property cannot be used for entry sorting\");\n \t\t}\n \t\t\n \t\tif (descending) {\n \t\t\tfinal Comparator ascendingComparator = entryComparator;\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\treturn ascendingComparator.compare(b, a);\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\t\n \t\tCollections.sort(sortedEntries, entryComparator);\n \t\t\n \t\treturn sortedEntries;\n \t}\n \t}",
"public Element setEndModifier(char start_modifier, char end_modifier) {\n\t\tthis.end_start_modifier = start_modifier;\n\t\tthis.end_end_modifier = end_modifier;\n\t\tsetEndStartModifierDefined(true);\n\t\tsetEndEndModifierDefined(true);\n\t\treturn (this);\n\t}",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@GetMapping(\"/sort-asc\")\n public List<TeacherDTO> getSortedTeachers() {\n return teacherService.getSortedTeachers().stream()\n .map(this::convertToDto)\n .collect(Collectors.toList());\n }"
]
| [
"0.7835619",
"0.6889571",
"0.6739795",
"0.65772873",
"0.5433542",
"0.54093105",
"0.5266302",
"0.51865584",
"0.5107242",
"0.49731663",
"0.49097815",
"0.4899732",
"0.47916833",
"0.47635317",
"0.47540274",
"0.47243157",
"0.4720959",
"0.46702203",
"0.46298957",
"0.46281445",
"0.4510905",
"0.45043913",
"0.44479877",
"0.44274366",
"0.44203433",
"0.4412837",
"0.4401151",
"0.4379299",
"0.43321967",
"0.43184838",
"0.43032178",
"0.42767882",
"0.42662707",
"0.42594412",
"0.42354712",
"0.4189508",
"0.41787335",
"0.41179967",
"0.41104388",
"0.4098498",
"0.40921396",
"0.4091199",
"0.40879735",
"0.40785196",
"0.40769842",
"0.40700334",
"0.4063263",
"0.4059529",
"0.4050763",
"0.40323132",
"0.40313777",
"0.39979112",
"0.39844152",
"0.39758268",
"0.39727512",
"0.39723846",
"0.39722207",
"0.39628017",
"0.39607996",
"0.3954485",
"0.39498776",
"0.39476505",
"0.39311895",
"0.3923904",
"0.39206934",
"0.391878",
"0.38816586",
"0.38772652",
"0.38673672",
"0.38638633",
"0.38608056",
"0.38352713",
"0.3830574",
"0.38256577",
"0.3815639",
"0.38113108",
"0.38101417",
"0.380946",
"0.37919465",
"0.37901774",
"0.3787273",
"0.37862635",
"0.37803996",
"0.37792137",
"0.37772027",
"0.3776934",
"0.37695202",
"0.37403518",
"0.3728714",
"0.37255773",
"0.37243593",
"0.37204894",
"0.37110117",
"0.37071854",
"0.36945555",
"0.36917275",
"0.36894888",
"0.3686984",
"0.36847085",
"0.36799827"
]
| 0.8366351 | 0 |
Returns an ordered range of all the gdf tender submission detailses. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from GDFTenderSubmissionDetailsModelImpl. | public static List<GDFTenderSubmissionDetails> findAll(
int start, int end,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<Term> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipationsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<eu.strasbourg.service.project.model.Participation>\n\t\t\t\t\torderByComparator) {\n\n\t\treturn _participationLocalService.getParticipationsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"@Override\n public List<Publication> getAllReviewed(String filter, int start, int length, String orderBy, String sortOrder) {\n Integer defaultReturnValue = (length == 0) ? 10 : length;\n\n PageRequest pageRequest = getPageRequest(start, defaultReturnValue, orderBy, sortOrder);\n if(filter == null || filter.isEmpty()) {\n return referenceRepository.findAllByStatusIs(pageRequest, \"reviewed\").getContent();\n } else {\n filter = \".*\" + filter + \".*\";\n return referenceRepository.findReviewedContains(filter, pageRequest).getContent();\n }\n }",
"public AreaRendererEndType getEndType() {\n\t\treturn this.endType;\n\t}",
"Collection<AssociationEnd> getSpecifiedEnds();",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipations(int start, int end) {\n\n\t\treturn _participationLocalService.getParticipations(start, end);\n\t}",
"public java.util.List<DataEntry> findByCopiedFrom(\n\t\tlong copiedFrom, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"@RequestMapping(value = \"/{start}/{end}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic @ResponseBody String viewBranchManagersRange(@PathVariable(\"start\") int start, @PathVariable(\"end\") int end) throws JsonProcessingException {\r\n\r\n\t\treturn branchManagerService.viewBranchManagersRange(start, end);\r\n\t}",
"public java.util.List<DataEntry> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"private List<GbGradingSchemaEntry> setupGradingSchemaEntries() {\n\n\t\t// get configured values or defaults\n\t\t// need to retain insertion order\n\t\tMap<String, Double> bottomPercents = new LinkedHashMap<>();\n\n\t\t// note that we sort based on name so we need to pull the right name out of the list of mappings, for both cases\n\t\tfinal String gradingSchemaName = this.gradeMappings.stream()\n\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t.findFirst()\n\t\t\t\t.get()\n\t\t\t\t.getName();\n\n\t\tif (StringUtils.equals(this.currentGradeMappingId, this.configuredGradeMappingId)) {\n\t\t\t// get the values from the configured grading scale in this gradebook and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.model.getObject().getGradebookInformation().getSelectedGradingScaleBottomPercents());\n\t\t} else {\n\t\t\t// get the default values for the chosen grading scale and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.gradeMappings.stream()\n\t\t\t\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t\t.get()\n\t\t\t\t\t\t\t.getDefaultBottomPercents());\n\t\t}\n\n\t\t// convert map into list of objects which is easier to work with in the views\n\t\tfinal List<GbGradingSchemaEntry> rval = new ArrayList<>();\n\t\tfor (final Map.Entry<String, Double> entry : bottomPercents.entrySet()) {\n\t\t\trval.add(new GbGradingSchemaEntry(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn rval;\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n return EffectiveEndDtComparatorNullsLower;\n }",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);",
"public String[] getGradeRanges() {\n\t\tString t = doc.get(getFieldId(\"gradeRange\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}",
"public java.util.List<Todo> findByTodoDouble(\n\t\tdouble todoDouble, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoDateTime(\n\t\tDate todoDateTime, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"MinmaxEntity getEnd();",
"public Sort Range() throws Z3Exception\n\t{\n\t\treturn Sort.Create(Context(),\n\t\t\t\tNative.getArraySortRange(Context().nCtx(), NativeObject()));\n\t}",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public List<Reporteador> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 52: */ {\r\n/* 53: 71 */ return this.reporteadorDao.obtenerListaPorPagina(startIndex, pageSize, sortField, sortOrder, filters);\r\n/* 54: */ }",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }",
"public java.util.List<DataEntry> findByDataSectionId(\n\t\tlong dataSectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid, start, end, orderByComparator);\n\t}",
"@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"Collection<AssociationEnd> getAssociations();",
"public java.util.List<DataEntry> findAll(int start, int end);",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public Collection getSortedEntries(final PropertyAccessor sortProperty, boolean descending) {\n \t\tIEntryQueries queries = (IEntryQueries)getSession().getAdapter(IEntryQueries.class);\n \tif (queries != null) {\n \t\treturn queries.getSortedEntries(this, sortProperty, descending);\n \t} else {\n \t\t// IEntryQueries has not been implemented in the datastore.\n \t\t// We must therefore provide our own implementation.\n \t\t\n \t\tList sortedEntries = new LinkedList();\n \t\t\n \t\tIterator it = entries.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tsortedEntries.add(it.next());\n \t\t}\n \t\t\n \t\tComparator entryComparator;\n \t\tif (sortProperty.getPropertySet() == EntryInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == TransactionInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == AccountInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else {\n \t\t\tthrow new RuntimeException(\"given property cannot be used for entry sorting\");\n \t\t}\n \t\t\n \t\tif (descending) {\n \t\t\tfinal Comparator ascendingComparator = entryComparator;\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\treturn ascendingComparator.compare(b, a);\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\t\n \t\tCollections.sort(sortedEntries, entryComparator);\n \t\t\n \t\treturn sortedEntries;\n \t}\n \t}",
"public Element setEndModifier(char start_modifier, char end_modifier) {\n\t\tthis.end_start_modifier = start_modifier;\n\t\tthis.end_end_modifier = end_modifier;\n\t\tsetEndStartModifierDefined(true);\n\t\tsetEndEndModifierDefined(true);\n\t\treturn (this);\n\t}",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end);"
]
| [
"0.8366336",
"0.68884104",
"0.6741279",
"0.65757805",
"0.5433862",
"0.540944",
"0.5266197",
"0.5187412",
"0.5107266",
"0.49733266",
"0.49101812",
"0.4899433",
"0.47925523",
"0.47646785",
"0.47535202",
"0.47232625",
"0.4720218",
"0.46700934",
"0.4629963",
"0.4629504",
"0.45113418",
"0.45034575",
"0.4448377",
"0.44263265",
"0.4421214",
"0.44135213",
"0.4400559",
"0.43804577",
"0.4332251",
"0.4319546",
"0.43031266",
"0.4278288",
"0.42659295",
"0.42589098",
"0.42352152",
"0.41891608",
"0.41785687",
"0.411806",
"0.41111317",
"0.40986067",
"0.40923703",
"0.40920496",
"0.408755",
"0.40803403",
"0.40759826",
"0.4068973",
"0.4064744",
"0.40592355",
"0.4049327",
"0.4032169",
"0.40294787",
"0.39981672",
"0.39844573",
"0.39762884",
"0.39730057",
"0.39728612",
"0.39716265",
"0.39638776",
"0.39624166",
"0.39544597",
"0.394919",
"0.3946927",
"0.39321342",
"0.39242586",
"0.39221245",
"0.39204484",
"0.38811296",
"0.387678",
"0.3869755",
"0.38646603",
"0.38599074",
"0.38357425",
"0.38301098",
"0.3824894",
"0.3815987",
"0.38109463",
"0.38095397",
"0.3808841",
"0.3791882",
"0.3789255",
"0.37889498",
"0.37877762",
"0.37806863",
"0.37799093",
"0.37788028",
"0.37767005",
"0.3769166",
"0.37402472",
"0.37296754",
"0.3726324",
"0.37253663",
"0.37228754",
"0.37114215",
"0.37063316",
"0.36946124",
"0.36913878",
"0.3688628",
"0.3686534",
"0.36846572",
"0.36809564"
]
| 0.78350496 | 1 |
Removes all the gdf tender submission detailses from the database. | public static void removeAll() {
getPersistence().removeAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }",
"public void deleteAllRequests() {\n try {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, null, null);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}",
"public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }",
"public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }",
"public void clear() {\n\t if (entries != null) {\n\t\tfor (Entry e : entries) {\n\t\t for(Field f: EntrySerializer.getAllFields(e)) {\n\t\t\tif (f != null) f.clear();\n\t\t }\n\t\t}\n\t }\n\t if (groups != null) {\n\t\tfor (Group g: groups) {\n\t\t for (Field f : GroupSerializer.getAllFields(g)) {\n\t\t\tif (f != null) f.clear();\n\t\t }\n\t\t}\n\t }\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Query(\"DELETE FROM issue_table\")\n void deleteAll();",
"@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }",
"public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }",
"public final void clean() {\n distributed_graph.unpersist(true);\n }",
"private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }",
"public void deleteAll() {\n\t\ttry{\t\n\t\t\tbanco.delete(meuBancoHelper.TABELA_MTAG,null,null);\n\t\t\t}\n\t\t\tcatch(NullPointerException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t}",
"public static void RecipeTipsFirebaseDeleteAll() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void removeAllData() {\n dbHelper.removeAllData(db);\n }",
"public void deletePushQuestionsIDList() {\n\t\tArrayList<String> blank = new ArrayList<String>();\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tPUSH_POSTS, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(blank, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }",
"public static void deleteSubject(int i) {\n //delete lessons\n for(int x = 0; x < 5; x++) {\n for(int y = 0; y < 9; y++) {\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n if (schedule.getLesson(x, y).getSubjectIndex() >= i) {\n if (schedule.getLesson(x, y).getSubjectIndex() == i) {\n schedule.setLessonToNull(x, y);\n }\n else {\n schedule.getLesson(x, y).setSubjectIndex(schedule.getLesson(x, y).getSubjectIndex()-1);\n }\n }\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n }\n else {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": null\");\n }\n }\n }\n }\n\n //delete grades\n for(int n = i; n < Storage.grades.size(); n++) {\n for(int g = 0; g < Storage.grades.get(n).size(); g++) {\n if(n == i) {\n FileSaver.deleteGrade(Storage.grades.get(n).get(g));\n }\n else {\n FileSaver.renameGradeFolder(Storage.grades.get(n).get(g), FileSaver.GRADE_MINUS_SUBJECT_INDEX);\n }\n }\n }\n grades.remove(i);\n\n //delete homework\n for(int n = i; n < Storage.homework.size(); n++) {\n for(int h = 0; h < Storage.homework.get(n).size(); h++) {\n if(n == i) {\n FileSaver.deleteHomework(Storage.homework.get(n).get(h));\n }\n else {\n FileSaver.renameHomeworkFolder(Storage.homework.get(n).get(h), FileSaver.HOMEWORK_MINUS_SUBJECT_INDEX);\n }\n }\n }\n homework.remove(i);\n\n //delete subject\n subjects.remove(i);\n for(int n = i; n < Storage.subjects.size(); n++) {\n Storage.subjects.get(n).decreaseIndex();\n }\n }",
"@After\r\n\tpublic void clean() {\r\n\t\tlistAllGrades.put(\"FinalGrade\", 9f);\r\n\t\tlistScoreMetricStudent.put(\"comment_lines_density\", 50f);\r\n\t\tlistScoreMetricStudent.put(\"complexity\", 13f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density\", 50f);\r\n\t\tlistScoreMetricStudent.put(\"tests\", 4f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density_teacher\", 0.75f);\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(50f));\r\n\t\tmapQuality.put(\"TestOfStudent\", new ModelValue(4f, 1f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 1.5f));\r\n\t\tmapQuality.put(\"Complexity\", new ModelValue(20f, 1f));\r\n\t\tlistAllGrades.put(\"Comments\", 1f);\r\n\t\tlistLostPoints.put(\"Comments\", 1.5f);\r\n\t\ttry {\r\n\t\t\tSonarDataBase.getInstance().deleteTestAndScoreTeacher(99);\r\n\t\t} catch (ClassNotFoundException | SQLException | SonarqubeDataBaseException | 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}",
"public void deleteAll(){\n editor.clear();\n editor.apply();\n }",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"public void cleanAll() {\r\n\t\ttos.clear();\r\n\t\tbcs.clear();\r\n\t\tccs.clear();\r\n\t\tattachments.clear();\r\n\t\tinLines.clear();\r\n\t\tsubject= null;\r\n\t\ttext= null;\r\n\t\tfrom= null;\r\n\t}",
"public void deleteDepartments() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(\"departments\", null, null);\n db.close();\n }",
"@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}",
"protected void deleteAllTag() {\n\t\tReaderDataBase.deleteAll(this);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"@Override\n\tpublic void deleteAllStudents() {\n\t\t\n\t}",
"public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }",
"public void deleteAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"delete from \" + TABLE_NAME);\n }",
"private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }",
"void deleteAllChallenges();",
"private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}",
"public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}",
"void clearRecords() {\n\t\ttry {\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"Student.txt\")));\n\t\tpw.close();\n\t\tSystem.out.println(\"\\nAll Records cleared successfully !\");\n\t\tfor (int i = 0; i < 999999999; i++);\n\t\t}catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public void deleteAll()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.deleteAll();\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void deleteAll() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME , null , null);\n }",
"public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }",
"@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}",
"public void delete(){\n if (shx!=null) shx.delete();\n if (shp!=null) shp.delete();\n if (dbf!=null) dbf.delete();\n if (prj!=null) prj.delete();\n }",
"public static void clean(Context context) {\n try (SQLiteDatabase db = new DatabaseFactory(context, null).getWritableDatabase()) {\n UploadingFilesRepository uploadRepo = new UploadingFilesRepository(db);\n Response response = uploadRepo.deleteAll();\n\n SyncQueueRepository syncRepo = new SyncQueueRepository(db);\n List<SyncQueueEntryModel> syncEntries = syncRepo.getAll();\n\n for (SyncQueueEntryModel syncEntry : syncEntries) {\n\n boolean isProcessing = syncEntry.getStatus() == SyncStateEnum.PROCESSING.getValue();\n boolean isQued = syncEntry.getStatus() == SyncStateEnum.QUEUED.getValue();\n\n if (isProcessing || isQued) {\n\n SyncQueueEntryDbo dbo = new SyncQueueEntryDbo(syncEntry);\n dbo.setProp(SynchronizationQueueContract._STATUS, SyncStateEnum.IDLE.getValue());\n\n Response updateResponse = syncRepo.update(dbo.toModel());\n }\n }\n } catch (Exception e) {\n\n }\n }",
"public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }",
"public void deleteAllItineraryItems() {\n\t\tmEditor.clear();\n\t\tmEditor.commit();\n\t}",
"void unsetGradeModelRefs();",
"public void deleteAllData() {\n SQLiteDatabase db = getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(TABLE_HISTORY, null, null);\n db.delete(TABLE_LASTSCAN, null, null);\n db.delete(TABLE_SENSOR, null, null);\n db.delete(TABLE_SCANS, null, null);\n\n db.setTransactionSuccessful();\n } catch (Exception e) {\n\n } finally {\n db.endTransaction();\n }\n }",
"public void delete(Context ctx){\n\t\t\tChildInteraction cDb = new ChildInteraction(ctx);\t// for writing to the db\n\t\t\tfor(String key : numbers.keySet())\t\t\t\t\t// for all the numbers\n\t\t\t\tcDb.DeleteChild(key, text);\t\t\t\t\t\t// delete the entry in the db\n\t\t\tcMessages.remove(this);\t\t\t\t\t\t\t\t// remove this from cMessages\n\t\t\tcDb.Cleanup();\t\t\t\t\t\t\t\t\t\t// cleanup\n\t\t}",
"@Override\n\tpublic String deleteAll() {\n\t\treturn null;\n\t}",
"@Override\n public void removeFromDb() {\n }",
"public void wipeDB() {\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tdb.delete(EventDataSQLHelper.TABLE, null, null);\n\t\tdb.close();\n }",
"public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"@Override\npublic void deleteAll(Iterable<? extends Formation> entities) {\n\t\n}",
"public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}",
"public static void clearGrades() {\n for(int i = 0; i < grades.size(); i++) {\n grades.get(i).clear();\n }\n for(int i = 0; i < subjects.size(); i++) {\n subjects.get(i).setAverage(0);\n }\n grades.clear();\n }",
"private void deleteAllQuestionInputTextAreas() {\n UIComponent panel = FacesContext.getCurrentInstance().getViewRoot().findComponent(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:questionsPerformanceAppraisalPanel\");\n panel.getChildren().clear();\n }",
"private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }",
"private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}",
"@Override\r\n public void supprimerFilm(Film f) {\n int idEvent= RetourIdEvent(f);\r\n try {\r\n String sql = \"DELETE FROM `film` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl = conn.createStatement();\r\n int rs =stl.executeUpdate(sql);\r\n \r\n String sql2 = \"DELETE FROM `evenement` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl2 = conn.createStatement();\r\n int rs1 =stl2.executeUpdate(sql2);\r\n \r\n } catch (SQLException ex) {\r\n System.err.println(\"SQLException: \" + ex.getMessage());\r\n \r\n } }",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }",
"public void deleteAll() {\n\t\t\n\t}",
"@After\n public void tearDown() {\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n }",
"@Override\n\tpublic void deleteAll() {\n\t\tmDB.execSQL(\"DROP TABLE EVENT\");\n\t}",
"public void cleanup() {\n this.index = new TreeMap<String, PostingsList>();\n this.count = 0;\n }",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"public void clearFields() {\n dataSearch = new Date();\n tbcliente = null;\n tbfuncionario = null;\n listTbagendamentos = agendamentoLogic.findAllTbagendamentoFromCurrentDay();\n }",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"public void clear()\n\t{\n\t\tmerchants.clear();\n dao.deleteRows(null);\n }",
"private void deleteMathGamesPreviousContent()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(DATABASE_TABLE_MATH_GAMES, null, null);\n db.close();\n }",
"@Override\r\n\tpublic void deleteAll() {\n\r\n\t}",
"@After\n\tpublic void tearDown() throws Exception {\n\t\tfor (int i = 0; i < feedbacks.length; ++i) {\n\t\t\tfeedbacks[i] = null;\n\t\t}\n\t\tfeedbacks = null;\n\t\texecuteSQL(connection, \"test_files/stress/clear.sql\");\n\t\tconnection.close();\n\t\tconnection = null;\n\t}",
"public void deleteAll() {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Query query = session.createQuery(\"DELETE FROM Person \");\n query.executeUpdate();\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully deleted all persons.\");\n }\n catch (Exception e){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion of all persons failed\");\n }\n finally {\n session.close();\n }\n }",
"@Override\r\n\tpublic void deleteAllInBatch() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}",
"private void clear() {\n transactionalHooks.clearTransaction();\n transactionDeques.remove();\n }"
]
| [
"0.5834821",
"0.5809844",
"0.5605812",
"0.5517286",
"0.54975235",
"0.5492215",
"0.5489816",
"0.5486172",
"0.54694337",
"0.5456433",
"0.54314566",
"0.53956574",
"0.5391404",
"0.53553694",
"0.5334913",
"0.5322881",
"0.53112185",
"0.5291665",
"0.5288529",
"0.5273304",
"0.5263782",
"0.5262784",
"0.5236905",
"0.522626",
"0.52192265",
"0.52192265",
"0.52192265",
"0.52192265",
"0.5217369",
"0.52078676",
"0.52059007",
"0.52048826",
"0.51984483",
"0.51974005",
"0.5189542",
"0.5177739",
"0.5176201",
"0.5171777",
"0.516971",
"0.5163541",
"0.51631576",
"0.51568186",
"0.5154921",
"0.5154077",
"0.5153733",
"0.5151544",
"0.51472604",
"0.5140576",
"0.5131377",
"0.51302433",
"0.51215726",
"0.511558",
"0.51076776",
"0.509581",
"0.5054754",
"0.5043506",
"0.5039731",
"0.50390744",
"0.5032869",
"0.5030911",
"0.5029113",
"0.502791",
"0.502658",
"0.5026231",
"0.50255764",
"0.5025286",
"0.5025286",
"0.5025286",
"0.5022319",
"0.5017639",
"0.5013919",
"0.50134754",
"0.49966615",
"0.49938983",
"0.49938983",
"0.49938983",
"0.49938983",
"0.49938983",
"0.49938983",
"0.49938983",
"0.49938983",
"0.49899316",
"0.49891332",
"0.4978801",
"0.4977658",
"0.49758852",
"0.49750292",
"0.49583477",
"0.49575484",
"0.4955262",
"0.4949178"
]
| 0.53596383 | 21 |
Returns the number of gdf tender submission detailses. | public static int countAll() {
return getPersistence().countAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNumberSubmits();\n }\n\n return counter;\n }",
"public long numPostingEntries();",
"public int getNumberOfActivitiesByPoster(Identity posterIdentity);",
"public int getCount() {\n\t\t\tcantidadGrupos = extras.getInt(\"cantidadGrupos\");\n\t\t\treturn cantidadGrupos;\n\t\t}",
"public int getNumGruppoPacchetti();",
"public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public Integer getNumJrnPost() {\n return numJrnPost;\n }",
"public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);",
"@Override\n\tpublic String getLastPostingNumber() {\n\t\tString count = userInfoDAO.getLastPostingNumber();\n\t\treturn count;\n\t}",
"public int getBadgeCount()\n\t{\n\t\tint result = 0;\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tif(m_badges[i] == 1)\n\t\t\t\tresult++;\n\t\treturn result;\n\t}",
"public int AssignedCount() {\n \t\treturn jobsent.size();\n \t}",
"public int getNoOfTickets() {\n\t\treturn noOfTickets;\r\n\t}",
"public int numSubmissions(String name) {\n // checks if student exists - stores index in student list if exists\n int exists = this.studentExists(name);\n\n // return -1 if name is invalid or student does not exist\n if (name == null || name == \"\" || exists == -1) {\n return -1;\n } else {\n // student does exists, so returns number of submissions for student\n return (studentList.get(exists)).getNumberSubmits();\n }\n }",
"public int getDepartedPassengerCount() {\n\t\tint total = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttotal += taxi.getTotalNrOfPassengers();\n\t\t}\n\t\treturn total;\n\t}",
"public NM getNumberOfTPSTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(39, 0);\r\n\t\treturn retVal;\r\n }",
"@Override\n public int getNbHarvesting(String harvesterName)\n {\n return 0;\n }",
"int getEntryCount();",
"int getPostNum();",
"@Override\r\n\tpublic int[] getTicketCount() {\n\t\tint[] result = new int[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tresult[0] = card.size();\r\n\t\tresult[1] = cash.size();\r\n\t\treturn result;\r\n\t}",
"public int getTotalPassengers() {\n return totalPassengers;\n }",
"int getMailCount() {\n\t\treturn mail_count[mailbox_number];\n\t}",
"int getEducationsCount();",
"int getStudentResponseCount();",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"public int getNrDuengerVorhanden(){\r\n\t\treturn this.modelData.getPresentFertiliser().size();\r\n\t}",
"public static int getNos() {\n\t\treturn numberOfStudents;\n\t}",
"@Override\n\tpublic Integer getTeacherForCount() {\n\t\treturn teacherDAO.getTeacherForCount();\n\t}",
"int getStudentCount();",
"int getUserQuestJobsCount();",
"public int countOfGenerations ();",
"public int getJailCount(){\n return m_jailCount;\n }",
"int getGroupCount();",
"public Integer getAttendCount() {\n return attendCount;\n }",
"public int getReportCount ()\n {\n return reportCount;\n }",
"public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }",
"@Override\n\tpublic int getParticipationsCount() {\n\t\treturn _participationLocalService.getParticipationsCount();\n\t}",
"public String getNum_of_sat_test_takers() {\n return num_of_sat_test_takers;\n }",
"static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }",
"public int getTimeEntryCount()\n throws RedmineException\n {\n return getTimeEntryCount(null);\n }",
"public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }",
"public int getNumGenerations() {\n return numGenerations;\n }",
"public int getNumberOfCommenters(){\n return commenters.size();\n }",
"protected void getRecipientNumber(TargetForm aForm, HttpServletRequest req) {\n\t\tTargetDao targetDao = (TargetDao) getBean(\"TargetDao\");\n\t\tTarget target = (Target) getBean(\"Target\");\n\t\tRecipientDao recipientDao = (RecipientDao) getBean(\"RecipientDao\");\n\t\t\n\t\ttarget = targetDao.getTarget(aForm.getTargetID(), aForm.getCompanyID(req));\n\t\tint numOfRecipients = recipientDao.sumOfRecipients(aForm.getCompanyID(req), target.getTargetSQL());\n\t\t\n\t\taForm.setNumOfRecipients(numOfRecipients);\n\t\t\n\t}",
"public int getNumberOfPages(HttpServletRequest request,\n SubmissionInfo subInfo) throws ServletException\n {\n // always just one page of initial questions\n return 1;\n }",
"int getDetailsCount();",
"int getDetailsCount();",
"public Integer getRt_thanks_count() {\n return rt_thanks_count;\n }",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public int getCountForum();",
"public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public int getPostnr() {\n return postnr;\n }",
"int getPersonInfoCount();",
"int getReaultCount();",
"public int getNunFigli() {\n\t\tint numFigli = 0;\n\t\tfor (Nodo_m_ario figlio : figli) {\n\t\t\tif (figlio != null) {\n\t\t\t\tnumFigli += 1;\n\t\t\t}\n\t\t}\n\t\treturn numFigli;\n\t}",
"@Override\n\tpublic int getMailynCnt() {\n\t\treturn 0;\n\t}",
"public int getSize() {\r\n\t\treturn passengers.size();\r\n\t}",
"public String method_1457() {\r\n return String.format(\"count=%d\", new Object[]{Integer.valueOf(this.field_1677.size())});\r\n }",
"int getTaskDetailsCount();",
"public int getEntryCount() {\n if (entryBuilder_ == null) {\n return entry_.size();\n } else {\n return entryBuilder_.getCount();\n }\n }",
"public String get_count() {\n\t\treturn count;\n\t}",
"public int getQuestCount() {\n if (questBuilder_ == null) {\n return quest_.size();\n } else {\n return questBuilder_.getCount();\n }\n }",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public int obtenerNumeroFuentes() {\n\t\tint n = 0;\n\n\t\ttry {\n\n\t\t\trs = stmt\n\t\t\t\t\t.executeQuery(\"SELECT COUNT(IDFUENTE) AS FUENTES FROM FUENTE\");\n\t\t\trs.next();\n\n\t\t\tn = rs.getInt(\"FUENTES\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"No es posible recuperar el numero de fuentes\");\n\n\t\t}\n\n\t\treturn n;\n\t}",
"@Override\n\tpublic Integer getSubjectForCount() {\n\t\treturn subjectDAO.getSubjectForCount();\n\t}",
"public IntColumn getNumConformersSubmitted() {\n return delegate.getColumn(\"num_conformers_submitted\", DelegatingIntColumn::new);\n }",
"@Override\n public int getGroupCount() {\n return Grade.length;\n }",
"public int getEntryCount() {\n return mem.getChar(34);\n }",
"public NM getNumberOfTPSPP() { \r\n\t\tNM retVal = this.getTypedField(34, 0);\r\n\t\treturn retVal;\r\n }",
"public int getNumStudents()\n\t{\n\t\treturn numStudents;\n\t}",
"public int getProblemCount();",
"int getBadgeNumber();",
"int getBadgeNumber();",
"public int getNumberOfNurse() {\n return numberOfNurse;\n }",
"public int obtenerNumeroFacturas(){\n return historialFacturas.size();\n }",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public abstract int getCntFtc();",
"int getQuestCount();",
"int getContactCount();",
"public int getTotRuptures();",
"public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }",
"public int getParticipantNum() {\n if (mIsGroupChat) {\n Logger.d(TAG, \"getParticipantNum() this is a group chat\");\n if (null != mChatMap) {\n Object obj = mChatMap.get(ChatListFragment.NUMBER);\n Logger.d(TAG, \"getParticipantNum() the obj is \" + obj);\n if (obj instanceof List) {\n List<String> numbers = (List<String>) obj;\n int size = numbers.size();\n Logger.d(TAG, \"getParticipantNum() the size is \" + size);\n return size;\n } else {\n Logger.e(TAG, \"getParticipantNum() obj is not a List\");\n return 0;\n }\n } else {\n Logger.e(TAG,\n \"getParticipantNum() this is a group chat, but mChatMap is null\");\n return 0;\n }\n } else {\n Logger.d(TAG, \"getParticipantNum() this is a 1-2-1 chat\");\n return 1;\n }\n }",
"private int getNum(EngClass ec) {\n\t\treturn engClassService.getStuNum(ec);\n\t}",
"public int get_count();",
"public int getNumeroTareasPendientes(){\n return tareas.size();\n }",
"public int getPostNum() {\n return postNum_;\n }",
"public int getNumberOfCharactersInThisText(){\n\t\treturn this.number;\n\t}",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"int getRealtorNumCnt(RealtorDTO realtorDTO);",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}",
"public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}",
"public int getCount() {\n\t\treturn OReportOne.size();\n\t}",
"public int getPigsCounter() {\n return _pigsCounter;\n }",
"public int getNumOfLegs() {\n return numOfLegs;\n }",
"@Override\r\n\tpublic int getGeunTaeCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeCnt\",params);\r\n\t}",
"int getPhoneCount();",
"int getPhoneCount();",
"public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}"
]
| [
"0.6745638",
"0.6500434",
"0.61228913",
"0.6059781",
"0.60444057",
"0.59226227",
"0.587792",
"0.5863273",
"0.5849942",
"0.5831046",
"0.5772577",
"0.57615304",
"0.5753792",
"0.5737675",
"0.5737318",
"0.57203066",
"0.5671869",
"0.567117",
"0.56690264",
"0.5668713",
"0.5660599",
"0.5620649",
"0.5617544",
"0.56151843",
"0.56021947",
"0.5598118",
"0.5575288",
"0.5550156",
"0.5549544",
"0.5540692",
"0.5537138",
"0.55332464",
"0.5529995",
"0.5514404",
"0.5514101",
"0.5511167",
"0.55060315",
"0.5505042",
"0.5489031",
"0.5487359",
"0.5478523",
"0.5475218",
"0.5474696",
"0.54700696",
"0.54676944",
"0.54664135",
"0.54664135",
"0.5460521",
"0.54587024",
"0.5458043",
"0.54473317",
"0.54423857",
"0.5438086",
"0.543396",
"0.5430286",
"0.54281795",
"0.5419294",
"0.5417807",
"0.54137486",
"0.54136795",
"0.5404161",
"0.5399268",
"0.5398954",
"0.5398803",
"0.5396446",
"0.53942984",
"0.5384726",
"0.5382334",
"0.5381325",
"0.5370361",
"0.53700167",
"0.53647023",
"0.5362951",
"0.5362951",
"0.53602636",
"0.53586227",
"0.5356496",
"0.5353606",
"0.53499323",
"0.53479093",
"0.5347737",
"0.53472745",
"0.534086",
"0.5339663",
"0.53376883",
"0.5333521",
"0.53303075",
"0.5327055",
"0.53270286",
"0.53251576",
"0.53202313",
"0.5315215",
"0.5314333",
"0.53124005",
"0.5310881",
"0.53069293",
"0.52989113",
"0.5298018",
"0.52939683",
"0.52939683",
"0.5289963"
]
| 0.0 | -1 |
Constructor for objects of class JacobDatabase | public JacobDatabase()
{
entries = new ArrayList<KantoDex>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public sqlDatabase() {\n }",
"public DB() {\r\n\t\r\n\t}",
"public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"public DatabaseTable() { }",
"private Db() {\n super(Ke.getDatabase(), null);\n }",
"public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }",
"public DatabaseOperations(){\n\n }",
"public DBConnection()\n {\n\n }",
"public AddressBookDB() throws SQLException, ClassNotFoundException{ }",
"public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}",
"public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"[email protected]\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }",
"public Database() {\n\t\tconn = null;\n\t}",
"public Database() {\n //Assign instance variables.\n this.movies = new ArrayList<>();\n this.users = new ArrayList<>();\n }",
"private DbQuery() {}",
"private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }",
"private TexeraDb() {\n super(\"texera_db\", null);\n }",
"public SetupDatabase() {\n }",
"public DatabaseParameter() {\n super(\"database\", \"Database\");\n }",
"private DatabaseManager() {\n // Default constructor\n }",
"private AttendantDatabase() {}",
"public DbBasic1( String _dbName ) {\n\t\tdbName = _dbName;\n\n\t\tif ( debug )\n\t\t\tSystem.out.println(\n\t\t\t\t \"Db.constructor [\"\n\t\t\t\t+ dbName\n\t\t\t\t+ \"]\");\n\n\t\topen();\n\t\treadMetaData();\n\t\tprintData();\n\t}",
"public QueryBO() {\r\n }",
"private DbConnection() {\n }",
"public KVDatabase() {\n //private constructor to prevent instantiation.\n }",
"public Database(String dbName) {\n this.dbName = dbName;\n }",
"public DbUtil() {}",
"public EstadosSql() {\r\n }",
"public DaoConnection() {\n\t\t\n\t}",
"public BankDatabase() {\r\n accounts = new Account[3];\r\n Connection c = null;\r\n Statement stmt = null;\r\n try {\r\n Class.forName(\"org.postgresql.Driver\");\r\n c = DriverManager\r\n .getConnection(\"jdbc:postgresql://localhost:5432/ATM\",\r\n \"postgres\", \"0000\");\r\n c.setAutoCommit(false);\r\n stmt = c.createStatement();\r\n ResultSet rs = stmt.executeQuery( \"SELECT * FROM accounts;\" );\r\n var i = 0;\r\n while ( rs.next() ) {\r\n int theAccountNumber = rs.getInt(\"accountnumber\");\r\n int thePin = rs.getInt(\"pin\");\r\n double theAvailiableBalance = rs.getDouble(\"availiablebalance\");\r\n double theTotalBalance = rs.getDouble(\"totalbalance\");\r\n accounts[i] = new Account( theAccountNumber, thePin, theAvailiableBalance, theTotalBalance);\r\n i++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n c.close();\r\n } catch ( Exception e ) {\r\n System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\r\n System.exit(0);\r\n }\r\n\r\n\r\n// accounts = new Account[2]; // just 2 accounts for testing\r\n// accounts[0] = new Account(12345, 54321, 1000.0, 1200.0);\r\n// accounts[1] = new Account(98765, 56789, 200.0, 200.0);\r\n }",
"private DatabaseManager() {}",
"private DatabaseOperations() {\n }",
"protected abstract ODatabaseInternal<?> newDatabase();",
"private DatabaseManager() {\r\n }",
"public DBManager() {\n\t\t\n\t}",
"private DBConnection() \n {\n initConnection();\n }",
"public CreateJavaDBDatabaseOperator() {\n super(Bundle.getStringTrimmed(\"org.netbeans.modules.derby.Bundle\", \"LBL_CreateDatabaseTitle\"));\n }",
"public ConnectDB(){\r\n\r\n\t}",
"public ValuesDAO(Database db) \n\t{\n\t\tthis.db = db;\n\t}",
"public OWLAnonymousIndividualHGDB()\r\n\t{\r\n\r\n\t}",
"public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }",
"public JdbcObjectStudentDAO() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void construct() {\n\t\tSystem.out.println(\"Getting a MySQL Database Connection\");\n\n\t}",
"public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }",
"public RadixObjectDb() {\r\n super('r', TextUtils.EMPTY_STRING);\r\n }",
"public Database(Context context) {\n super(context, nome_db, null, versao_db);\n }",
"public Database() {\r\n\t\ttry {\t\r\n\t\t\tSystem.out.println(\"Database: Connected\");\r\n\t\t\tconn = DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Unable to connect to database\");\r\n\t\t}\r\n\t}",
"public CustomerDatabase(){\n\t\tlist = new ArrayList<Customer>();\n\t}",
"public DBCreator(DBConnection connection) {\n this.dbConnection = connection;\n }",
"public Database(Context context) {\n super(context, DB_NAME, null, DB_VER);\n }",
"Database createDatabase();",
"public ArtistDb(Connection connection) {\r\n super(connection);\r\n }",
"private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }",
"public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }",
"public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}",
"private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }",
"public QueryExecutorMDB() {\n\t}",
"public CoreDatabase(String dbName) throws SQLException {\n\n this.conn = DriverManager.getConnection(\n SQLITE_URL + dbName + EXTENSION\n );\n\n }",
"public DBMonster() {\n\n }",
"private DatabaseContract() {}",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}",
"B database(S database);",
"public JDBCFacade(String database) {\r\n\r\n\t\ttry {\r\n\t\t\tif (null == database || database.isEmpty()) {\r\n\t\t\t\tSystem.out.println(\"El motor de base de datos es requerido\");\r\n\t\t\t}\r\n\t\t\tif (database.toLowerCase().equals(\"postgresql\")) {\r\n\t\t\t\tif (!connection.getDriver(\"org.postgresql.Driver\")) {\r\n\t\t\t\t\tSystem.out.println(\"Driver no encontrado.\");\r\n\t\t\t\t}\r\n\t\t\t\tif (!connection.connect(host, port, this.database, databaseUser, databasePassword)) {\r\n\t\t\t\t\tSystem.out.println(\"No se pudo conectar a la base de datos \");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Y la BD!?\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private DBParameter() {\n }",
"public DatabaseBackend(Context context) {\n super(context, Db_name, null, Db_version);\n }",
"public SQLDataBase(Context context){ // is this supposed to be public?\n super(context, DATABASE_NAME, null, 1);\n }",
"public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }",
"public DBConnection() {\n this(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST, DB_PORT);\n }",
"public Database(String url) {\n this.url = url;\n\n File f = new File(url);\n\n if (f.exists()) {\n try {\n f.mkdirs();\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //create table relationship\n LinkedList<String> relationship_attributes = new LinkedList<>();\n relationship_attributes.add(\"id_entity1\");\n relationship_attributes.add(\"id_entity2\");\n relationship_attributes.add(\"description\");\n this.create_table(\"relationship\", relationship_attributes);\n }",
"protected DBMaintainer() {\n }",
"public OnibusDAO() {}",
"public DbUtils() {\r\n // do nothing\r\n }",
"public DBPoolImpl()\n {\n }",
"public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}",
"private PurchaseDB() {}",
"public MyBudgetDatabase(String databaseName) throws SQLException {\n this.dbName = databaseName;\n }",
"DatabaseClient newJobDbClient();",
"public SRWDatabasePool() {\n }",
"private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }",
"public CheckBodyDB() {\n }",
"public DatabaseConnection newConnection();",
"public ConexionDB() {\n\n\t\tconn = null;\n\n\t}",
"public AbysswalkerGame(DataBase db) { this.db = db; }",
"private DBContract() {}",
"private DBContract() {}",
"public SimpleDB() \n\t{\n\t\tcomparedToClass= new int[][] {{0,1,3,5,9,11,13,16,19,20,23},{0,0,0,0,0,0,0,0,0,0,0}};\n\t\tmaxGrade = new int [24];\n\t\tfor (int i = 0; i< maxGrade.length; i++) \n\t\t{\n\t\t\tmaxGrade[i] = 0;\n\t\t}\n\t\tpassRate.put(0,new Integer[]{125,290});\n\t\tpassRate.put(1,new Integer[] {436,580});\n\t\tpassRate.put(3,new Integer[] {713,580});\n\t\tpassRate.put(5,new Integer[] {570,500});\n\t\tpassRate.put(9,new Integer[] {480,580});\n\t\tpassRate.put(11,new Integer[] {1050,580});\n\t\tpassRate.put(13,new Integer[] {310,580});\n\t\tpassRate.put(16,new Integer[] {235,290});\n\t\tpassRate.put(19,new Integer[] {250,580});\n\t\tpassRate.put(20,new Integer[] {200,290});\n\t\tpassRate.put(23,new Integer[] {1000,1140});\n\t}",
"public DatabaseConnection(Connection c){\n\t\tconn = c;\n\t}",
"public DatabaseAdaptor() {\n\t\ttry {\n\t\t\tdatabase = new MyDatabase(DB_NAME);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Database(Set<Variable> variables) {\n\t\tthis.variables = variables;\n\t\tthis.listInstance = new LinkedList<Map<Variable, Object>>();\n\t}",
"public AccountDatabase() {\n accounts = new Account[5];\n size = 0;\n }",
"public Database() throws SQLException {\n conn = DriverManager.getConnection(dbURL, username, password);\n }",
"public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }",
"public WkBscCoreDAOImpl() {\r\n super();\r\n }",
"public CustomerModelDS(String nomeDb, String activity) {\r\n\t\ttry {\r\n\t\t\tContext initCtx = new InitialContext();\r\n\t\t\tContext envCtx = (Context) initCtx.lookup(\"java:comp/env\");\r\n\t\t\tds = (DataSource) envCtx.lookup(\"jdbc/\"+nomeDb);\r\n\t\t\tconnection = ds.getConnection();\r\n\t\t\tthis.tableName = activity.toLowerCase()+table;\r\n\t\t } catch (NamingException | SQLException e) {\r\n\t\t\ttry {\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/\"+nomeDb, \"root\", \"\");\r\n\t\t\t\tconnection.setAutoCommit(false);\r\n\t\t\t} catch (SQLException | ClassNotFoundException ex) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t }\r\n\t}",
"public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public DatabaseController()\n\t{\n\t\tconnectionString = \"jdbc:mysql://localhost/?user=root\";\n\t\tcheckDriver();\n\t\tsetupConnection();\n\t}",
"public SqlCommand(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }",
"public JdbTree() {\r\n this(new Object [] {});\r\n }",
"private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}"
]
| [
"0.7479303",
"0.7293221",
"0.7241627",
"0.7117487",
"0.7101017",
"0.7006761",
"0.6897066",
"0.6897003",
"0.6896034",
"0.6829665",
"0.6809035",
"0.6803299",
"0.67780817",
"0.67694587",
"0.6740892",
"0.6731758",
"0.6727409",
"0.6691605",
"0.66763604",
"0.6657394",
"0.6594207",
"0.6576981",
"0.65738714",
"0.6572728",
"0.65694326",
"0.65628666",
"0.65129083",
"0.6512708",
"0.65077883",
"0.64933944",
"0.6481952",
"0.6471336",
"0.6465981",
"0.6449789",
"0.64331186",
"0.64301896",
"0.6411105",
"0.63992816",
"0.6396068",
"0.63925177",
"0.6391925",
"0.6389787",
"0.6374947",
"0.6373517",
"0.6348872",
"0.63429195",
"0.632334",
"0.6305384",
"0.6305046",
"0.6296732",
"0.629653",
"0.6279367",
"0.62648267",
"0.62613934",
"0.62591994",
"0.625725",
"0.62444615",
"0.6211538",
"0.61820805",
"0.6181259",
"0.6169921",
"0.61626625",
"0.6162364",
"0.61592144",
"0.61517215",
"0.6147499",
"0.6141218",
"0.6135605",
"0.6130708",
"0.61255395",
"0.6122445",
"0.61117464",
"0.60988665",
"0.6097457",
"0.60969865",
"0.6094523",
"0.6091336",
"0.6090547",
"0.608598",
"0.6083125",
"0.6075633",
"0.6065436",
"0.60633975",
"0.6062821",
"0.6060487",
"0.6060487",
"0.6051707",
"0.60472363",
"0.60455054",
"0.6042263",
"0.6035553",
"0.6027949",
"0.60248816",
"0.60200167",
"0.6017672",
"0.60122454",
"0.600947",
"0.60079384",
"0.6003166",
"0.60025555"
]
| 0.69509584 | 6 |
Adds an object of KantoDex and its subclasses to the database of entries. Will not add the same entry more than once. | public void addEntry(KantoDex entry)
{
if(entries.isEmpty())
{
entries.add(entry);
}
else
{
boolean notFound = true;
for(KantoDex entryInit : entries)
{
if(entry.getDexNumInt() == entryInit.getDexNumInt())
{
System.out.println("Error: Attempted to add an entry that already exists, or should not exist.");
notFound = false;
}
}
if(notFound)
{
entries.add(entry);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void save(T pojo) {\n\n Map<Class, Set<ReflectionUtils.DataDescriptor>> valueMap = new HashMap<>();\n\n try {\n ReflectionUtils.valuesForClasses(valueMap, null, pojo);\n\n for (Map.Entry<Class, Set<ReflectionUtils.DataDescriptor>> entry : valueMap.entrySet()) {\n Insert insert = null;\n if (entry.getKey().getName().equals(pojo.getClass().getName())) {\n logger.info(\"Working on the root class \" + pojo);\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n insert = QueryBuilder.insertInto(keySpace, tableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n\n logger.debug(\"Insert \" + insert);\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n } else {\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n String nestedtableName = descriptor.getTableName();\n logger.debug(\"Insert builder \" + descriptor + \" into \" + keySpace + \".\" + nestedtableName);\n insert = QueryBuilder.insertInto(keySpace, nestedtableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n }\n }\n }\n catch (HecateException e) {\n logger.error(\"Hecate problem \" + e);\n }\n }",
"void addTypes(EntryRep bits) {\n\tString classFor = bits.classFor();\n\tString[] superclasses = bits.superclasses();\n\n\t//The given EntryRep will add its className to the\n\t//subtype list of all its supertypes.\n\n\tString prevClass = classFor;\n\tfor (int i = 0; i < superclasses.length; i++) {\n\t if (!addKnown(superclasses[i], prevClass)) {\n\t\treturn;\n\t }\n\t prevClass = superclasses[i];\n\t}\n\n\t// If we are here prevClass must have java.Object as its\n\t// direct superclass (we don't store \"java.Object\" in\n\t// EntryRep.superclasses since that would be redundant) and\n\t// prevClass is not already in the the tree. Place it in the\n\t// \"net.jini.core.entry.Entry\" bucket so it does not get lost\n\t// if it does not have any sub-classes.\n\t//\n\t// Fix suggested by Lutz Birkhahn <[email protected]>\n\taddKnown(ROOT, prevClass);\n }",
"@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }",
"public void addClass(Class c) { // adding a single class\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_ID, c.getID());\n\t\tvalues.put(KEY_TAKENIN, c.getTakenIn());\n\n\t\t/*\n\t\t * values.put(KEY_ID, 1234567890); values.put(KEY_MAJORN, \"123\");\n\t\t * values.put(KEY_CLASSN, \"123\"); values.put(KEY_TITLE, \"123\");\n\t\t * values.put(KEY_UNITS, 123); values.put(KEY_DESCRIPTION, \"123\");\n\t\t * values.put(KEY_FALL, 1); values.put(KEY_SPRING, 0);\n\t\t */\n\t\t// Inserting Row\n\t\tdb.insert(TABLE_USERCLASSES, null, values);\n\t\tdb.close(); // Closing database connection\n\t}",
"public JacobDatabase()\n {\n entries = new ArrayList<KantoDex>();\n \n }",
"abstract public void insert(final KeyClass data, final RID rid);",
"@Override\n\tpublic void addClazz(Clazz clazz) {\n\t\tclazzDao.addClazz(clazz);\n\t}",
"public static void addToMap(AxiomType<? extends OWLAxiom> axiomType, Class<? extends OWLAxiomHGDB> axiomClassHGDB) {\r\n\t\tif (m.containsKey(axiomType)) throw new IllegalArgumentException(\"axiomType already mapped \" + axiomType); \r\n\t\tif (mReverse.containsKey(axiomClassHGDB)) throw new IllegalArgumentException(\"axiomClassHGDB already mapped \" + axiomClassHGDB);\r\n\t\tif (axiomType == null || axiomClassHGDB == null) throw new IllegalArgumentException(\"null not allowed\");\r\n\t\tif (Modifier.isAbstract(axiomClassHGDB.getModifiers())) throw new IllegalArgumentException(\"axiomClassHGDB must not be abstract\" + axiomClassHGDB);\r\n\t\tif (! HGLink.class.isAssignableFrom(axiomClassHGDB)) throw new IllegalArgumentException(\"axiomClassHGDB must implement HGLink\" + axiomClassHGDB);\r\n\t\tm.put(axiomType, axiomClassHGDB);\r\n\t\tmReverse.put(axiomClassHGDB, axiomType);\r\n\t}",
"private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }",
"@Override\n\tpublic void insert(Unidade obj) {\n\n\t}",
"@Override\n public void insert(Realm realm, RealmModel object, Map<RealmModel, Long> cache) {\n @SuppressWarnings(\"unchecked\") Class<RealmModel> clazz = (Class<RealmModel>) ((object instanceof RealmObjectProxy) ? object.getClass().getSuperclass() : object.getClass());\n\n if (clazz.equals(com.binary_winters.projects.iverbs.situaciones.modelo.SituacionGenerica.class)) {\n io.realm.SituacionGenericaRealmProxy.insert(realm, (com.binary_winters.projects.iverbs.situaciones.modelo.SituacionGenerica) object, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.VerboEnEsp.class)) {\n io.realm.VerboEnEspRealmProxy.insert(realm, (com.binary_winters.projects.iverbs.VerboEnEsp) object, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.modelo.PalabraAgregadaBean.class)) {\n io.realm.PalabraAgregadaBeanRealmProxy.insert(realm, (com.binary_winters.projects.iverbs.modelo.PalabraAgregadaBean) object, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.modelo.VerboGenericoBean.class)) {\n io.realm.VerboGenericoBeanRealmProxy.insert(realm, (com.binary_winters.projects.iverbs.modelo.VerboGenericoBean) object, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.modelo.HistorialDePartidaBean.class)) {\n io.realm.HistorialDePartidaBeanRealmProxy.insert(realm, (com.binary_winters.projects.iverbs.modelo.HistorialDePartidaBean) object, cache);\n } else {\n throw getMissingProxyClassException(clazz);\n }\n }",
"public boolean add(T newEntry);",
"public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }",
"@Override\n public void insertOrUpdate(Realm realm, RealmModel obj, Map<RealmModel, Long> cache) {\n @SuppressWarnings(\"unchecked\") Class<RealmModel> clazz = (Class<RealmModel>) ((obj instanceof RealmObjectProxy) ? obj.getClass().getSuperclass() : obj.getClass());\n\n if (clazz.equals(com.binary_winters.projects.iverbs.situaciones.modelo.SituacionGenerica.class)) {\n io.realm.SituacionGenericaRealmProxy.insertOrUpdate(realm, (com.binary_winters.projects.iverbs.situaciones.modelo.SituacionGenerica) obj, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.VerboEnEsp.class)) {\n io.realm.VerboEnEspRealmProxy.insertOrUpdate(realm, (com.binary_winters.projects.iverbs.VerboEnEsp) obj, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.modelo.PalabraAgregadaBean.class)) {\n io.realm.PalabraAgregadaBeanRealmProxy.insertOrUpdate(realm, (com.binary_winters.projects.iverbs.modelo.PalabraAgregadaBean) obj, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.modelo.VerboGenericoBean.class)) {\n io.realm.VerboGenericoBeanRealmProxy.insertOrUpdate(realm, (com.binary_winters.projects.iverbs.modelo.VerboGenericoBean) obj, cache);\n } else if (clazz.equals(com.binary_winters.projects.iverbs.modelo.HistorialDePartidaBean.class)) {\n io.realm.HistorialDePartidaBeanRealmProxy.insertOrUpdate(realm, (com.binary_winters.projects.iverbs.modelo.HistorialDePartidaBean) obj, cache);\n } else {\n throw getMissingProxyClassException(clazz);\n }\n }",
"void addNewEntry(BlogEntry entry) throws DAOException;",
"public void addObject(DcObject dco);",
"public boolean add(T entry) {\n return false;\n }",
"public void insert(KeyedItem newItem);",
"private void addTypeableInstances() {\r\n \r\n if (currentModuleTypeInfo.isExtension()) {\r\n //don't add instances again for an adjunct module.\r\n return;\r\n }\r\n \r\n final ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n //this uses the fact that Prelude.Typeable is a public class, and all modules must import the Prelude.\r\n final TypeClass typeableTypeClass = currentModuleTypeInfo.getVisibleTypeClass(CAL_Prelude.TypeClasses.Typeable);\r\n \r\n SortedSet<TypeClass> constraintSet = TypeClass.makeNewClassConstraintSet();\r\n constraintSet.add(typeableTypeClass);\r\n constraintSet = Collections.unmodifiableSortedSet(constraintSet);\r\n \r\n for (int i = 0, nTypeConstructors = currentModuleTypeInfo.getNTypeConstructors(); i < nTypeConstructors; ++i) {\r\n \r\n final TypeConstructor typeCons = currentModuleTypeInfo.getNthTypeConstructor(i);\r\n \r\n //we only add a Typeable instance for type constructors all of whose type arguments have arity *.\r\n if (typeCons.getKindExpr().isSimpleKindChain()) {\r\n \r\n final int arity = typeCons.getTypeArity(); \r\n final TypeExpr[] args = new TypeExpr[arity];\r\n \r\n for (int j = 0; j < arity; ++j) {\r\n \r\n args[j] = TypeVar.makeTypeVar(null, constraintSet, false);\r\n }\r\n \r\n final TypeConsApp typeConsApp = new TypeConsApp(typeCons, args);\r\n \r\n final ClassInstance classInstance = new ClassInstance(currentModuleName, typeConsApp, typeableTypeClass, null, ClassInstance.InstanceStyle.INTERNAL);\r\n \r\n currentModuleTypeInfo.addClassInstance(classInstance);\r\n }\r\n } \r\n }",
"private boolean addKnown(String superclass, String subclass) {\n\tSet<String> v;\n v = classSet(superclass);\n if (v == null) {\n v = new ConcurrentSkipListSet<String>();\n Set<String> existed = subclasses.putIfAbsent(superclass, v);\n if (existed != null) v = existed; // discard new set.\n }\n\treturn v.add(subclass);\n }",
"private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }",
"@Test\r\n public void testAdd() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n System.out.println(entry1.toString());\r\n // Initial state\r\n assertEquals(0, instance.size());\r\n assertFalse(instance.contains(entry1));\r\n\r\n instance.add(entry1);\r\n\r\n // Test general case (size)\r\n assertEquals(1, instance.size());\r\n\r\n // Test general case (content)\r\n assertTrue(instance.contains(entry1));\r\n\r\n // Test combined quantity case\r\n // Test that matching ignores letter case\r\n// int initialQuantity = entry1.getQuantity();\r\n int diff = 1;\r\n// int newQuantity = initialQuantity + diff;\r\n Grocery duplicate = new Grocery(entry1.getName().toLowerCase(),\r\n entry1.getCategory());\r\n duplicate.setQuantity(diff);\r\n instance.add(duplicate);\r\n System.out.println(instance.toString());\r\n // and ? do we test anything here?\r\n }",
"public boolean load() {\n // commented out because of new structure issues\n// Fish fish1 = new Fish(\n// \"Karper\",\n// 1,\n// 2,\n// 2,\n// LocalDate.now(),\n// \"Zoet water\",\n// \"Uithoorn\",\n// \"Mais\",\n// true,\n// true,\n// \"niks\"\n// );\n// Fish fish2 = new Fish(\n// \"Karper\",\n// 1,\n// 2,\n// 2,\n// LocalDate.now(),\n// \"Zoet water\",\n// \"Uithoorn\",\n// \"Mais\",\n// true,\n// true,\n// \"niks\"\n// );\n// super.addOrUpdate(fish1);\n// super.addOrUpdate(fish2);\n return true;\n }",
"public void insert(KeyedItem o){\r\n\t\tinsert(this,o);\r\n\t}",
"private void executeInsert()\n\t\t\tthrows TranslatorException {\n\n\t\tInsert icommand = (Insert) command;\t\t\n\t\t\n\t\tTable t = metadata.getTable(icommand.getTable().getMetadataObject().getFullName());\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\tthis.addChildObject(t);\n\t\t\treturn;\n\t\t}\n\t\tString pkColName = null;\n\t\t\n\t\t// process the top level object\n\t\tList<Column> pk = t.getPrimaryKey().getColumns();\n\t\tif (pk == null || pk.isEmpty()) {\n final String msg = CoherencePlugin.Util.getString(\"CoherenceUpdateExecution.noPrimaryKeyDefinedOnTable\", new Object[] {t.getName()}); //$NON-NLS-1$\n\t\t\tthrow new TranslatorException(msg);\t\t\n\t\t}\n\t\t\n\t\tpkColName = visitor.getNameFromElement(pk.get(0));\n\t\t\n\t\tObject newObject = cacheTranslator.createObject(icommand.getColumns(), \n\t\t\t\t((ExpressionValueSource)icommand.getValueSource()).getValues(), \n\t\t\t\tthis.visitor, \n\t\t\t\tt);\n\t\t\n\t\t// get the key value to use to for adding to the cache\n\t\tObject keyvalue = ObjectSourceMethodManager.getValue(\"get\" + pkColName, newObject);\n\t\n\t\t// add to cache\n\t\ttry {\n\t\t\tthis.connection.add(keyvalue, newObject);\n\t\t} catch (ResourceException e) {\n\t\t\tthrow new TranslatorException(e);\n\t\t}\t\t\t\n\n\t\t\n\t}",
"@Override\n protected void insertIntoEntryTable(BibEntry bibEntry) {\n StringBuilder insertIntoEntryQuery = new StringBuilder()\n .append(\"INSERT INTO \")\n .append(escape(\"ENTRY\"))\n .append(\"(\")\n .append(escape(\"TYPE\"))\n .append(\") VALUES(?)\");\n\n // This is the only method to get generated keys which is accepted by MySQL, PostgreSQL and Oracle.\n try (PreparedStatement preparedEntryStatement = connection.prepareStatement(insertIntoEntryQuery.toString(),\n Statement.RETURN_GENERATED_KEYS)) {\n\n preparedEntryStatement.setString(1, bibEntry.getType());\n preparedEntryStatement.executeUpdate();\n\n try (ResultSet generatedKeys = preparedEntryStatement.getGeneratedKeys()) {\n if (generatedKeys.next()) {\n bibEntry.getSharedBibEntryData().setSharedID(generatedKeys.getInt(1)); // set generated ID locally\n }\n }\n } catch (SQLException e) {\n LOGGER.error(\"SQL Error: \", e);\n }\n }",
"RecipeObject addRecipe(RecipeObject recipe);",
"public void addAnimal(Animals animals) {\n SQLiteDatabase db = getWritableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(Util.KEY_NAME, animals.getName());\n contentValues.put(Util.KEY_SIZE, animals.getSpeices());\n\n //Insert\n db.insert(Util.TABLE_NAME, null, contentValues);\n db.close();\n\n\n }",
"@Override\n\tpublic void insert(Category entitiy) {\n\n\t}",
"public final <T> boolean insert(final Class<T> key, T value) {\n\n if(contains(key))\n return false;\n\n _data.put(key, value);\n return true;\n }",
"@Override\r\n\tpublic void add(Botany botany) {\n\t\tdao.add(botany);\r\n\t}",
"public void save() throws Throwable\n {\n String typeFilename = \n CatalogManager.getCurrentDirectory()+\n File.separator+\n CompositeTypeRecord.databaseFileName;\n\n String fieldFilename =\n CatalogManager.getCurrentDirectory()+\n File.separator+\n TypeFieldRecord.databaseFileName;\n\n new File(typeFilename).delete();\n new File(fieldFilename).delete();\n\n Db typeRecordTable = new Db(null, 0);\n typeRecordTable.set_error_stream(System.err);\n typeRecordTable.set_errpfx(\"Catalog Save Error\");\n typeRecordTable.open(typeFilename, null, Db.DB_BTREE, Db.DB_CREATE, 0644);\n\n Db typeFieldRecordTable = new Db(null, 0);\n typeFieldRecordTable.set_error_stream(System.err);\n typeFieldRecordTable.set_errpfx(\"Catalog Save Error\");\n typeFieldRecordTable.open(fieldFilename, null, Db.DB_BTREE, Db.DB_CREATE, 0644);\n\n CompositeType[] compositeTypes = getAllCompositeTypes();\n\n if (compositeTypes != null) {\n for (int i = 0; i < compositeTypes.length; i++) {\n CompositeType type = compositeTypes[i];\n IntegerDbt key = new IntegerDbt(type.getId());\n CompositeTypeRecord typeRecord = new CompositeTypeRecord(type.getId(), \n type.getName(), \n type.getNumberOfAttributes(),\n\t\t\t\t\t\t\t\t\t type.getIsInferred());\n if (typeRecordTable.put(null, key, typeRecord, 0) == Db.DB_KEYEXIST) \n System.out.println(\"The key already exists.\");\n int offset = 0;\n \n for (int j = 0; j < type.getNumberOfAttributes(); j++) {\n Type t = type.getAttributeType(j);\n if (t.isPrimitive()) {\n int size = type.getAttributeLength(j);\n IntegerArrayDbt innerKey = new IntegerArrayDbt(new int[] {type.getId(), j});\n \n int fieldType = 0;\n\n PrimitiveType primitiveType = (PrimitiveType) t;\n fieldType = primitiveType.getTypeId();\n\n TypeFieldRecord typeFieldRecord = new TypeFieldRecord(type.getId(), \n j, \n type.getAttributeName(j), \n fieldType,\n offset,\n size);\n offset += size;\n if (typeFieldRecordTable.put(null, innerKey, typeFieldRecord, 0) == Db.DB_KEYEXIST) \n System.out.println(\"The key already exists.\");\n }\n }\n }\n if (Constants.VERBOSE) System.out.println(\"\" + compositeTypes.length + \n\t\t\t\t\t\t \" types are recorded.\");\n } \n typeRecordTable.close(0);\n typeFieldRecordTable.close(0);\n }",
"public void addRentEntry(RentEntryBean reb) {\n RentDAO rentDAO = new RentDAO();\n rentDAO.addHouse(reb);\n }",
"private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }",
"private void addMapping(Class... types)\n {\n for (Class type : types)\n {\n if (mappings.put(type.getSimpleName(), type.getName()) != null)\n {\n throw new IllegalStateException(\"A mapping already exists for \" + type.getSimpleName());\n }\n }\n }",
"protected void addClass ( Class<? extends Object> c ) {\n if ( log.isDebugEnabled() ) {\n log.debug(\"Adding class: \" + c.getName()); //$NON-NLS-1$\n }\n synchronized ( this.dynamicEntityClasses ) {\n this.dynamicEntityClasses.add(c);\n }\n\n }",
"public com.guidewire.datamodel.TypekeyDocument.Typekey addNewTypekey()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.TypekeyDocument.Typekey target = null;\r\n target = (com.guidewire.datamodel.TypekeyDocument.Typekey)get_store().add_element_user(TYPEKEY$16);\r\n return target;\r\n }\r\n }",
"public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }",
"int insert(Clazz record);",
"public void associate(Object obj, Class type);",
"protected UUID add(E entry) {\n\t\treturn add(entry, true);\n\t}",
"public void add( T obj )\n {\n // Any distinct object causes creation of a new tree-set.\n // We count any such sets as we go.\n if (!contains( obj ))\n {\n nodes.put(obj, new Node(obj));\n numSets++;\n }\n }",
"@Override\n\tpublic <T> void insertOne(T entityClass) throws Exception {\n\t\t\n\t}",
"@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}",
"@Override\n public void add(Fish object) {\n list.add(object);//adds the Fish to the list\n Log.d(\"Adapter\",\"added\");\n }",
"public void addEntry(@NotNull Entry entry) {\n for (String name : entry.names) {\n mappingByName.put(name, entry);\n }\n }",
"public void addBestelling(Bestelling bestelling) {\n\r\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n // If a connection was successfully setup, execute the INSERT statement\r\n\r\n connection.executeSQLInsertStatement(\"INSERT INTO bestelling (`bestelId`, `tafelId`) VALUES(\" + bestelling.getId() + \",\" + bestelling.getTafelId() + \");\");\r\n\r\n for(Drank d : bestelling.getDranken()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_bestelling (`DrankID`, `BestelId`, `hoeveelheid`) VALUES (\" + d.getDrankId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n for(Gerecht g : bestelling.getGerechten()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_bestelling (`GerechtID`, `BestelId`, `hoeveelheid`) VALUES (\" + g.getGerechtId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n\r\n //Close DB connection\r\n connection.closeConnection();\r\n }\r\n\r\n }",
"@Override\n public void insertEntry(Entry entry) {\n members.add(entry);\n\n }",
"public int addEntry(String cid, Date eventTime, String key, String type, Map<String,String> map){\r\n\t\tCustomer cust;\r\n\t\tif (!type.equalsIgnoreCase(sConstants.CUSTOMER)){\r\n\t\t\tif (treeData.get(cid) == null){\r\n\t\t\t\t//return sConstants.NOT_EXIST;\r\n\t\t\t\tcust = new MyCustomer(cid, eventTime, map);\r\n\t\t\t\ttreeData.put(cid, cust);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcust = treeData.get(cid);\r\n\t\t\t\tcust.update(eventTime, key, type, map);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (treeData.get(cid) != null){\r\n\t\t\t\treturn sConstants.ALREADY_EXIST;\r\n\t\t\t}\r\n\t\t\tcust = new MyCustomer(cid, eventTime, map);\r\n\t\t\ttreeData.put(cid, cust);\r\n\t\t}\r\n\t if (eventTime.before(first))\r\n\t \tfirst = eventTime;\r\n\t if (eventTime.after(last))\r\n\t \tlast = eventTime;\r\n\r\n\t\treturn sConstants.SUCCESS;\r\n\t}",
"boolean addObject(E object) throws DatabaseNotAccessibleException, DatabaseLogicException;",
"public void add(Iterable<Map.Entry> kvEntries) {\n // oddly, firing list changed events get much slower as amount of total [map] meta-data increases [NOW WE KNOW WHY]\n\n // the categoryList updates still trigger the updates, so we turn them off with a flag for now\n \n // disableEvents = true;\n try {\n for (Map.Entry e : kvEntries) {\n try {\n categoryList.add(new VueMetadataElement(e.getKey().toString(), e.getValue().toString()));\n } catch (Throwable t) {\n Log.error(\"add entry \" + Util.tags(e), t);\n }\n }\n } catch (Throwable tx) {\n Log.error(\"add iterable \" + Util.tags(kvEntries), tx);\n }\n // finally {\n // disableEvents = false;\n // }\n fireListChanged(\"bulk-add\");\n }",
"public static synchronized void putAll(ClassEntry[] entries){\n\t\tfor (ClassEntry entry : entries){\n\t\t\tClassRegistry.put(entry.getKey(), entry.getValue());\n\t\t}\n\t}",
"@Override\n <T> void add(T object);",
"public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }",
"public abstract boolean insert(Key key);",
"public HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);",
"@Override\n\tpublic void saveOrUpdate(EmpType entity) {\n\n\t}",
"void put(MongoDBEntry<K, V> entry);",
"boolean add(DishCategory dishCategory );",
"public void addEntry(Entry e) {\n entries.put(e.getName(), e);\n }",
"public void setEntryClasses(Class<?>... entryClasses) {\n int numEntries = entryClasses.length;\n HashMap<String, Class<?>> kindToEntryClassMap = this.kindToEntryClassMap;\n for (int i = 0; i < numEntries; i++) {\n Class<?> entryClass = entryClasses[i];\n ClassInfo typeInfo = ClassInfo.of(entryClass);\n Field field = typeInfo.getField(\"@gd:kind\");\n if (field == null) {\n throw new IllegalArgumentException(\"missing @gd:kind field for \" + entryClass.getName());\n }\n Object entry = Types.newInstance(entryClass);\n String kind = (String) FieldInfo.getFieldValue(field, entry);\n if (kind == null) {\n throw new IllegalArgumentException(\n \"missing value for @gd:kind field in \" + entryClass.getName());\n }\n kindToEntryClassMap.put(kind, entryClass);\n }\n }",
"public void add(String shoeType, int amount){\r\n\t\t\tShoeStorageInfo shoe=new ShoeStorageInfo(shoeType,amount,0);\r\n\t\t\tstoreMap.putIfAbsent(shoeType, shoe);\r\n\t\t\tShoeStorageInfo shoe1 = storeMap.get(shoeType);\r\n\t\t\tshoe1.addShoe(amount);\r\n\t\t}",
"public void addSong(SongEntry e)\n\t\t{\t\t\t\t\n\t\t\t\tdata.add(e);\n\t\t\t\tcount++;\n\t\t}",
"public int addAsKnight(Entity e, int x, int y) {\n e.setMapRelation(new MapKnight_Relation(this, e, x, y));\n System.out.println(e.name_);\n int error_code = this.map_grid_[y][x].addEntity(e);\n System.out.println(e.name_ + \"2\");\n if (error_code == 0) {\n this.entity_list_.put(e.name_, e);\n } else {\n e.setMapRelation(null);\n System.err.println(\"Error in entity list\");\n }\n return error_code;\n }",
"public void addObject(ObjectNode on) throws MismatchException, ChangeNotAllowedException {\r\n FactType ft = getFactType(on.getTypeName());\r\n if (ft == null) {\r\n throw new RuntimeException(\"objecttype \" + on.getTypeName() + \" is unknown at objectmodel\");\r\n }\r\n if (!ft.isObjectType()) {\r\n throw new RuntimeException(\"adding object at facttype \"\r\n + ft.getName() + \" which isn't an objecttype\");\r\n }\r\n ft.addFact(on);\r\n\r\n }",
"@Override\n\tpublic void add(Object o) {\n\t}",
"public void add(E e) {\n\t\tentities.add(e);\n\t}",
"public void add(E entity);",
"@Override\n public void saveChildrenData() {\n boats.forEach(boatDAO::save);\n }",
"protected abstract K storeEntry(PersistentEntity persistentEntity, K id, T nativeEntry);",
"void add(ObjectType object)\n throws GuacamoleException;",
"public boolean executeInsertIntoDB(final Class myClass,\n final JSONObject jsonObject,\n final Boolean appendToObject) {\n if (jsonObject == null || myClass == null) {\n return false;\n }\n if (!isValidWrite(myClass)) {\n return false;\n }\n Realm realm = DatabaseUtilities.buildRealm(this.realmConfiguration);\n try {\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n if (MiscUtilities.isBooleanNullTrueFalse(appendToObject)) {\n realm.createOrUpdateObjectFromJson(myClass, jsonObject);\n } else {\n realm.createObjectFromJson(myClass, jsonObject);\n }\n }\n });\n realm.close();\n return true;\n } catch (IllegalArgumentException e1) {\n e1.printStackTrace();\n L.m(\"A RealmObject with no PrimaryKey cannot be updated. Does \" + myClass.getName() +\n \"have a @PrimaryKey designation over something?\");\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if(!realm.isClosed()) {\n realm.close();\n }\n } catch (Exception e) {\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}",
"@Override\n\tpublic int add(Zongjie zongjie) {\n\t\treturn zongjieDao.add(zongjie);\n\t}",
"@Override\n\tpublic void add(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.save(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}",
"private Attributes addAttributesForNewEntry(String duDukeID, String netid, Attributes addAttrs) {\n\n // add object class\n Attribute addAttrOC = new BasicAttribute(\"objectClass\");\n addAttrOC.add(\"top\");\n addAttrOC.add(\"person\");\n addAttrOC.add(\"user\");\n // addAttrOC.add(\"inetOrgPerson\"); // DHE needs to *not* have IOP in the objectclass list for some of their delegated admin stuff\n addAttrOC.add(\"organizationalPerson\");\n addAttrs.put(addAttrOC);\n \n // userAccountControl\n Attribute addAttrUAC = new BasicAttribute(\"userAccountControl\");\n addAttrUAC.add(\"512\");\n addAttrs.put(addAttrUAC);\n \n // unicodePwd\n Attribute addAttrPASS = new BasicAttribute(\"unicodePwd\");\n try {\n String password = generatePassword();\n addAttrPASS.add(new String(\"\\\"\" + password + \"\\\"\").getBytes(\"UnicodeLittleUnmarked\"));\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(\"Failed to generate password while creating new entry with duLDAPKey=\" + duDukeID + \": \" + e.getMessage(), e);\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(\"Failed to encode password while creating new entry with duLDAPKey=\" + duDukeID + \": \" + e.getMessage(), e);\n }\n addAttrs.put(addAttrPASS);\n \n \n \n return addAttributesForNewNetID(duDukeID, netid, addAttrs);\n }",
"private void addArbitraryDataToDatabase() {\n\n try (Transaction tx = graphDatabaseService.beginTx()) {\n Node arbitraryNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n arbitraryNode.setProperty(\"name\", \"Colin\");\n Node otherNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n otherNode.setProperty(\"age\", 39);\n arbitraryNode.createRelationshipTo(otherNode, DynamicRelationshipType.withName(\"TEST\"));\n\n tx.success();\n }\n }",
"int insert(TDictAreas record);",
"@Override\n\tpublic void add() {\n\t\t\n\t}",
"@Override\r\n public void insertDishInfo(DishTypeBean dishTypeBean) {\r\n ContentValues contentValues = new ContentValues();\r\n contentValues.put(DishTypeBean.ID, dishTypeBean.getId());\r\n contentValues.put(DishTypeBean.NAME, dishTypeBean.getName());\r\n contentValues.put(DishTypeBean.SMALL_PICTURE_ADDRESS, dishTypeBean.getSmallPictureAddress());\r\n contentValues.put(DishTypeBean.BIG_PRICTURE_ADDRESS, dishTypeBean.getBigPictureAddress());\r\n contentValues.put(DishTypeBean.VIDEO_ADDRESS, dishTypeBean.getVideoAddress());\r\n contentValues.put(DishTypeBean.AUDIO_ADDRESS, dishTypeBean.getAudioAddress());\r\n database.insert(DishTypeBean.TABLE_NAME, DishTypeBean.ID, contentValues);\r\n }",
"protected void addEntries() {\r\n\t\t// default is to do nothing;\r\n\t}",
"int insert(Dish record);",
"private boolean createInstance( View view, final EntityInstanceImpl ei )\n {\n final EntityDef entityDef = ei.getEntityDef();\n\n // Try to set the FKs for this instance. It will fail (return false) if one the source EI\n // for one of the FKs hasn't been created yet. This means it doesn't have a key.\n if ( ! setForeignKeys( ei ) )\n return false;\n\n // If we get here than all the FK's were copied successfully and we can create this instance.\n // We'll retrieve the generated key from the DB after the row has been inserted.\n try\n {\n if ( entityDef.getDbCreatedTimestamp() != null )\n {\n AttributeInstanceImpl timestamp = ei.getAttribute( entityDef.getDbCreatedTimestamp() );\n if ( timestamp.isNull() )\n {\n ZonedDateTime now = ZonedDateTime.now();\n timestamp.setValue( now );\n\n if ( entityDef.getDbUpdatedTimestamp() != null )\n ei.getAttribute( entityDef.getDbUpdatedTimestamp() ).setValue( now );\n }\n }\n\n // We need to handle multiple entities being created.\n List<EntityInstance> list = new ArrayList<EntityInstance>();\n list.add( ei );\n dbHandler.insertEntity( view, list );\n\n AttributeDef genkey = entityDef.getGenKey();\n if ( genkey != null )\n {\n List<Object> keys = dbHandler.getKeysGeneratedByDb();\n if ( keys.size() != 1 )\n throw new ZeidonException(\"Unexpected number of keys found: %s\", keys );\n\n AttributeDef keyAttrib = entityDef.getKeys().get( 0 );\n ei.getAttribute( keyAttrib ).setInternalValue( keys.get( 0 ), false );\n }\n\n // Indicate that--for now--we won't need to update later because of a FK.\n ei.dbhForeignKey = false;\n\n // Set the dbhCreated flag for ei and all its linked instances. This\n // will prevent us from trying to insert it again.\n for ( EntityInstanceImpl linked : ei.getAllLinkedInstances() )\n {\n linked.dbhCreated = true;\n\n // If the linked instance is flagged as created then we need\n // to set its included flag on so that the *relationship*\n // is still created.\n if ( linked.isCreated() )\n linked.dbhNeedsInclude = true;\n }\n }\n catch ( Exception e )\n {\n throw ZeidonException.wrapException( e ).prependEntityInstance( ei );\n }\n\n return true;\n }",
"protected <T extends BusinessObject> T addAsChild(T object) {\n\t\tif (children == null) {\n\t\t\tchildren = new HashMap<>();\n\t\t}\n\t\tchildren.put(object.nameProperty().getValue().toLowerCase(), object);\t\t\n\t\treturn object;\n\t}",
"public void add(food entry)\n\t{\n\t\titems.add(entry);\n\t\t//updates isChanged to show changes\n\t\tisChanged = true;\n\t}",
"public static synchronized void putAll(Map<? extends Class<?>, ? extends String> map) {\n\t\tfor (Class<?> entry : ClassRegistry.primitives.keySet()){\n\t\t\tif (map.containsKey(entry))\n\t\t\t\tthrow new IllegalArgumentException(\"A primitive type cannot be added to the class dictionary.\");\n\t\t}\n\t\tClassRegistry.dictionary.putAll(map);\n\t}",
"public void addHijo(Nodo hijo){\n this.hijos.add(hijo);\n }",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"public void agregarKardex(Kardex kardex){\n\t\tgetKardexs().add(kardex);\n\t}",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\r\n public void addDomainClass(AgeClass dmCls)\r\n {\n\r\n domain.add(dmCls);\r\n }",
"@Override\n\tpublic void insert() {\n\t\t\n\t}",
"public void add(String nome, Object obj);",
"public void addIngredientRecipe(IngredientRecipePOJO ingr);",
"@Override\n\tpublic void add(Entity entity) throws Exception {\n\t\tsuper.add(entity);\n\t\tProduct prod = (Product) entity;\n\n\t\tSQLiteStatement st = db\n\t\t\t\t.prepare(\"INSERT INTO products(sessionID, name, priceMin, priceMax, quantity, category)\"\n\t\t\t\t\t\t+\"VALUES (?, ?, ?, ?, ?, ?)\");\n\t\tst.bind(1, sessionId).bind(2, prod.getName()).bind(3, prod.getPriceMin())\n\t\t\t\t.bind(4, prod.getPriceMin()).bind(5, prod.getQuantity())\n\t\t\t\t.bind(6, prod.getCategory());\n\t\tst.step();\n\t\ttotalQuantity += prod.quantity;\n\t\tif (!categoryList.containsKey(prod.getCategory())) {\n\t\t\tcategoryList.put(prod.getCategory(), new ArrayList<Product>());\n\t\t}\n\t\tcategoryList.get(prod.getCategory()).add(prod);\n\t\tif (availableProducts.get(entity.getName())==null) {\n\t\t\tavailableProducts.put(entity.getName(), \" \");\n\t\t}\n\t}",
"@Override\n\tpublic void insertar() {\n\t\t\n\t}",
"public void add(Jiaqishenqing j) throws SQLException {\n JiaqishenqingDao dao = new JiaqishenqingDao();\n dao.add(j);\n }",
"public boolean addClass(String cls) {\n\t\tContentValues newClass = new ContentValues();\n\t\tnewClass.put(DbContract.Classes.ATTRIBUTE_NAME, cls);\n\t\t\n\t\ttry {\n\t\t\ttheDb.insertOrThrow(DbContract.Classes.TABLE_NAME, null, newClass);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t\treturn false;\n\t\t}\n\t\t//Successful (supposedly)\n\t\tSystem.out.println(cls + \" added to Class table.\");\n\t\treturn true;\n\t}",
"protected abstract T createNewEntry(PersistentEntity persistentEntity);",
"public static void addKitchen(KitchenModel kitchen) {\n //Creating session\n Session session = SetupPersistence.getSession();\n //Saving object to database\n session.save(kitchen);\n //Closing session\n SetupPersistence.closeSession(session);\n }"
]
| [
"0.5894283",
"0.5839314",
"0.5604773",
"0.5598279",
"0.5553884",
"0.55477434",
"0.5503832",
"0.54978013",
"0.5484487",
"0.54091436",
"0.53811437",
"0.5265496",
"0.5256292",
"0.5229872",
"0.5201514",
"0.5195356",
"0.51788926",
"0.5170344",
"0.5169224",
"0.5127984",
"0.5109111",
"0.5101245",
"0.5093597",
"0.5077341",
"0.50718045",
"0.50678056",
"0.5063691",
"0.50489116",
"0.5042893",
"0.5041328",
"0.50367635",
"0.50313854",
"0.50310856",
"0.5012468",
"0.50113165",
"0.50031686",
"0.4999852",
"0.49951452",
"0.49863628",
"0.49747247",
"0.49614507",
"0.49593994",
"0.49563828",
"0.49491945",
"0.4940925",
"0.4926944",
"0.4919198",
"0.49154106",
"0.49146923",
"0.49130905",
"0.49106023",
"0.49101725",
"0.4904801",
"0.48937383",
"0.48797485",
"0.48796266",
"0.48761737",
"0.48746195",
"0.48682216",
"0.48652077",
"0.48609728",
"0.48578066",
"0.48505357",
"0.48489526",
"0.48471734",
"0.4838248",
"0.4838224",
"0.4829699",
"0.48290426",
"0.4823857",
"0.48190138",
"0.48164818",
"0.48097998",
"0.48091853",
"0.48028153",
"0.47928166",
"0.47909775",
"0.47884816",
"0.47857842",
"0.47849107",
"0.47845253",
"0.47836217",
"0.47760382",
"0.47755337",
"0.4775204",
"0.47688723",
"0.47651896",
"0.47608924",
"0.47515887",
"0.47485605",
"0.4743711",
"0.47365764",
"0.47361517",
"0.47358578",
"0.47357467",
"0.47342148",
"0.47268438",
"0.472113",
"0.47199872",
"0.4718072"
]
| 0.59178066 | 0 |
Prints out the Pokedex number, name, and types of every entry in the database. | public void printAllSummaries()
{
String sum = "";
for(KantoDex entry : entries)
{
sum = entry.getDexNum() + ": " + entry.getName() + " Types: " + entry.getType1();
if(!entry.getType2().equals(""))
{
sum += "/" + entry.getType2();
}
System.out.println(sum);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public void printInfo() throws IOException {\n System.out.println();\n System.out.println(\"* Current books in the database.\\n\");\n for(Book book :bookdatabase){\n System.out.println(book.getTitle());\n }\n System.out.println();\n System.out.println(\"* Current students in the database.\\n\");\n for(Student student :studentdatabase){\n System.out.println(student.getUsername());\n }\n System.out.println();\n System.out.println(\"* Current librarians in the database.\\n\");\n for(Librarian l :lib_db){\n System.out.println(l.getUsername());\n }\n\n\n\n }",
"public static void printAll() {\n // Print all the data in the hashtable\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n System.out.println(new String(iter.key()) + \"\\t=\\t\" + ByteIntUtilities.convertByteArrayToDouble(iter.value()));\n }\n\n iter.close();\n }",
"public static void main(String[] args) {\n List<Pokemon> pokemons = CRUD.findAllPokemons();\n for(Pokemon pokemon:pokemons){\n System.out.println(\"Name:\"+pokemon.getName());\n System.out.println(\"Level:\"+pokemon.getLevel());\n System.out.println(\"Types:\");\n for(Type t:pokemon.getTypes()){\n System.out.println(t.getName());\n }\n System.out.println(\"---Evolutions---:\");\n for(Evolution e:pokemon.getEvolutions()){\n System.out.println(\"Evolution's Name:\"+e.getName());\n System.out.println(\"Required Level:\"+e.getRequiredLevel());\n System.out.println(\"Evolution's Types:\");\n for(Type t:e.getTypes()){\n System.out.println(t.getName());\n }\n }\n System.out.println(\"================================\");\n }\n\n }",
"@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}",
"private void printSchema() {\n ArrayList<String> schema = sqlMngr.getSchema();\n\n System.out.println(\"\");\n System.out.println(\"------------\");\n System.out.println(\"Total number of tables: \" + schema.size());\n for (int i = 0; i < schema.size(); i++) {\n System.out.println(\"Table: \" + schema.get(i));\n }\n System.out.println(\"------------\");\n System.out.println(\"\");\n }",
"private void printLibrary() {\n dao.listAll().stream().forEach((dvd) -> {\n //for every dvd print the title plus \" id #\" and the actual id\n System.out.println(dvd.getTitle() + \" id #\" + dvd.getId());\n });\n\n }",
"public void showInfoDump() throws SQLException {\n \tString sqlDump = \"SELECT * FROM dump;\";\n \tConnectionClass connectionClass = new ConnectionClass();\n\t\tConnection connection = connectionClass.getConnection();\n\t\tStatement statement = connection.createStatement();\n\t\tResultSet rs = statement.executeQuery(sqlDump);\n\t\twhile (rs.next()) {\n\t\t\tmassSelection = rs.getString(1);\n\t\t\tmassCombo.setValue(massSelection);\n\t\t\tsmokeSelection = rs.getString(2);\n\t\t\tsmokeCombo.setValue(smokeSelection);\n\t\t\tframesText.setText(rs.getString(3));\n\t\t\tdtDevcText.setText(rs.getString(4));\n\t\t}\n }",
"public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}",
"public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}",
"@Override\r\n\tpublic String print() {\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (Entry k : array[i]) {\r\n\t\t\t\tSystem.out.println(k.name + \"\\t\" + k.initials + \"\\t\" + k.extension + \"\\n\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public void print() {\n for (int i = 0; i < table.length; i++) {\n System.out.printf(\"%d: \", i);\n \n HashMapEntry<K, V> temp = table[i];\n while (temp != null) {\n System.out.print(\"(\" + temp.key + \", \" + temp.value + \")\");\n \n if (temp.next != null) {\n System.out.print(\" --> \");\n }\n temp = temp.next;\n }\n \n System.out.println();\n }\n }",
"@Override\n public String toString() {\n return String.format(\"%-4s %-35s %-20s %-20s\\n\", this.pokeNumber, this.pokeName,\n this.pokeType_1, this.hitPoints);\n }",
"public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }",
"public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }",
"public static void printFruits() {\r\n\t\tSystem.out.println(\"\\nFruits Available in our store: \\n\");\r\n\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%10s\\t%10s\\n\", \"Id\", \"Name\", \"Quality\", \"Price\", \"Best Before Use\");\r\n\t\tfor (Fruit fruit : fruits.values()) {\r\n\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%10s\\t%10s\\n\", fruit.getId(), fruit.getName(), fruit.getQuality(),\r\n\t\t\t\t\tfruit.getPrice(), fruit.getBestBeforeUse());\r\n\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public void printAll(){\n\t\tSystem.out.println(\"Single hits: \" + sin);\n\t\tSystem.out.println(\"Double hits: \" + doub);\n\t\tSystem.out.println(\"Triple hits: \" + trip);\n\t\tSystem.out.println(\"Homerun: \" + home);\n\t\tSystem.out.println(\"Times at bat: \" + atbat);\n\t\tSystem.out.println(\"Total hits: \" + hits);\n\t\tSystem.out.println(\"Baseball average: \" + average);\n\t}",
"@Override\n public String toString() {\n String title = \"\\n#\" + mokedexNo + \" \" + name + \"\\n\";\n StringBuffer outputBuffer = new StringBuffer(title.length());\n for (int i = 0; i < title.length(); i++){\n outputBuffer.append(\"-\");\n }\n String header = outputBuffer.toString();\n String levelStats = \"\\nLevel: \" + level;\n String hpStats = \"\\nHP: \" + hp;\n String attStats = \"\\nAttack: \" + attack;\n String defStats = \"\\nDefense: \" + defense;\n String cpStats = \"\\nCP: \" + cp;\n return title + header + levelStats + hpStats + attStats + defStats + cpStats + \"\\n\";\n }",
"public void printData () {\n System.out.println (products.toString ());\n }",
"public static void printField(){\n System.out.println(\"---------\");\r\n for (char[] cell : output) {\r\n System.out.print(\"| \");\r\n for (char value : cell) {\r\n System.out.print(value + \" \");\r\n }\r\n System.out.print(\"|\\n\");\r\n }\r\n System.out.println(\"---------\");\r\n }",
"protected void printAll() {\n\t\tSystem.out.println(\"Network maps\");\n\t\tSystem.out.println(\"\tAddresses\");\n\t\ttry {\n\t\t\tPreparedStatement pstmt = \n\t\t\t\t\tthis.agent.getDatabaseManager().getConnection().prepareStatement(\n\t\t\t\t\t\t\tthis.agent.getDatabaseManager().selectAll);\n\t ResultSet rs = pstmt.executeQuery();\n\t // loop through the result set\n while (rs.next()) {\n \t System.out.printf(\"%s -> %s\\n\", rs.getString(\"username\"), rs.getString(\"address\"));\n }\n\t\t} catch (Exception e) {\n\t\t\tAgent.errorMessage(\n\t\t\t\t\tString.format(\"ERROR when trying to get all the address of the table users in the database\\n\"), e);\n\t\t}\n\t\tSystem.out.println(\"\tmapSockets\");\n\t\tfor (String u: this.mapSockets.keySet()) {\n\t\t\tSystem.out.printf(\"%s -> %s\\n\", u, this.mapSockets.get(u));\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic void print() {\r\n\t\tSystem.out.println(\"** Metadata **\");\r\n\t\tfor (final Map<String, Object> m : _data) {\r\n\t\t\tSystem.out.println(\" + ALBUM\");\r\n\t\t\tfor (final String key : m.keySet()) {\r\n\t\t\t\tfinal Object o = m.get(key);\r\n\r\n\t\t\t\t// Most stuff is string, we can just dump that out.\r\n\t\t\t\tif (o instanceof String) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \": \" + (String) o);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (o instanceof ArrayList) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \":\");\r\n\t\t\t\t\tfor (final Object oo : (ArrayList<GracenoteMetadataOET>) o) {\r\n\t\t\t\t\t\tif (oo instanceof GracenoteMetadataOET) {\r\n\t\t\t\t\t\t\tfinal GracenoteMetadataOET oet = (GracenoteMetadataOET) oo;\r\n\t\t\t\t\t\t\toet.print();\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\t}",
"public void print() {\n for (Map.Entry<String, String> entry : dictionary.entrySet()) {\r\n String key = entry.getKey();\r\n System.out.println(key + \": \" + dictionary.get(key));\r\n }\r\n }",
"public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}",
"public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(Book1.toString());\n System.out.println(Book2.toString());\n System.out.println(Book3.toString());\n System.out.println(Book4.toString());\n System.out.println(Book5.toString());\n \n System.out.println();\n \n System.out.println(\"Our Bevereges:\");\n System.out.println(Beverage1.toString());\n System.out.println(Beverage2.toString());\n System.out.println(Beverage3.toString());\n\n System.out.println();\n }",
"public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }",
"private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }",
"public void print(){\n\t\tfor (int i=0; i<_size; i++){\n\t\t\tSystem.out.print(_a[i].getKey()+\"; \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void parseAndPrintRecords() {\n ArrayList<Employee> employees;\n\n employees = parseData(data);\n\n System.out.printf(\"%10s%10s%10s\\n\", \"Last\", \"First\", \"Salary\");\n for(Employee employee : employees) {\n System.out.printf(\"%10s%10s%10d\\n\", employee.lName, employee.fName, employee.salary);\n }\n\n }",
"public void listar()\n\t{\n\t\tdatabase.list().forEach(\n\t\t\t(entidade) -> { IO.println(entidade.print() + \"\\n\"); }\n\t\t);\n\t}",
"private void print() {\r\n // Print number of survivors and zombies\r\n System.out.println(\"We have \" + survivors.length + \" survivors trying to make it to safety (\" + childNum\r\n + \" children, \" + teacherNum + \" teachers, \" + soldierNum + \" soldiers)\");\r\n System.out.println(\"But there are \" + zombies.length + \" zombies waiting for them (\" + cInfectedNum\r\n + \" common infected, \" + tankNum + \" tanks)\");\r\n }",
"public void displayDatabaseInfo() {\n SQLiteDatabase db = this.getReadableDatabase();\r\n\r\n String[] projection = {\r\n StoreEntry._ID,\r\n StoreEntry.COLUMN_PRODUCT_NAME,\r\n StoreEntry.COLUMN_PRODUCT_QUANTITY,\r\n StoreEntry.COLUMN_PRODUCT_PRICE,\r\n StoreEntry.COLUMN_PRODUCT_SUPPLIER_NAME,\r\n StoreEntry.COLUMN_PRODUCT_SUPPLIER_PHONE };\r\n\r\n Cursor cursor = db.query(\r\n StoreEntry.TABLE_NAME, // The table to query\r\n projection, // The columns to return\r\n null, // The columns for the WHERE clause\r\n null, // The values for the WHERE clause\r\n null, // Don't group the rows\r\n null, // Don't filter by row groups\r\n null); // The sort order\r\n\r\n try {\r\n\r\n int idColumnIndex = cursor.getColumnIndex(StoreEntry._ID);\r\n int nameColumnIndex = cursor.getColumnIndex(StoreEntry.COLUMN_PRODUCT_NAME);\r\n\r\n while (cursor.moveToNext()) {\r\n\r\n int currentID = cursor.getInt(idColumnIndex);\r\n String currentName = cursor.getString(nameColumnIndex);\r\n\r\n Log.v(currentID + \"\", currentName + \"\");\r\n }\r\n } finally {\r\n cursor.close();\r\n }\r\n }",
"void print() {\n\n\t\t// Print \"Sym Table\"\n\t\tSystem.out.print(\"\\nSym Table\\n\");\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tHashMap<String, Sym> M = list.get(i);\n\t\t\t// Print each HashMap in list\n\t\t\tSystem.out.print(String.format(M.toString() + \"\\n\"));\n\t\t}\n\n\t\t// Print New Line\n\t\tSystem.out.println();\n\t}",
"public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Name: \" + name + \", Short name: \" + shortName + \", WKN: \" + wkn);\r\n\t\tif(share == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Entry has no data yet. If you want to update the data use the 'IMPORT' function\\n\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\tshare.print();\r\n\t\t}\r\n\t}",
"public void listEntries() {\n\t\t// Get the entries as a linked list\n\t\tLinkedList<BookEntry> entries = new LinkedList<>(phoneBook.values());\n\t\tCollections.sort(entries); // Sort the entries\n\n\t\tfor (BookEntry entry : entries) {\n\t\t\tSystem.out.println(\"Name = \" + entry.getPerson());\n\t\t\tSystem.out.printf(\"Number =(%s) %s%n\", entry.getNumber().getAreaCode(), entry.getNumber().getPhoneNumberNotAreaCode());\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }",
"public void printTable(){ \r\n System.out.println( \"Auction ID | Bid | Seller | Buyer \"\r\n + \" | Time | Item Info\");\r\n System.out.println(\"===========================================\"\r\n + \"========================================================================\"\r\n + \"========================\");\r\n for(Auction auctions : values()){\r\n System.out.println(auctions.toString());\r\n } \r\n }",
"public void printResults() {\n\t System.out.println(\"BP\\tBR\\tBF\\tWP\\tWR\\tWF\");\n\t System.out.print(NF.format(boundaryPrecision) + \"\\t\" + NF.format(boundaryRecall) + \"\\t\" + NF.format(boundaryF1()) + \"\\t\");\n\t System.out.print(NF.format(chunkPrecision) + \"\\t\" + NF.format(chunkRecall) + \"\\t\" + NF.format(chunkF1()));\n\t System.out.println();\n }",
"public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}",
"public void print() {\n if (this.tuples == null || this.tuples.isEmpty()) return; \n\n // Initialize number of attributes.\n int attributesNumber = attributes.size();\n\n // An array storing the max length of Strings per column.\n // The Strings per column are tuple Values and attributes.\n int[] maxColumnLengthOfStrings = new int[attributesNumber];\n\n // Loop all the attributes and fill the max length array\n for (int index = 0; index < attributesNumber; index++) {\n\n // Initialize the array with the attributes name length.\n maxColumnLengthOfStrings[index] = attributes.get(index).getName().length();\n\n // Loop the values and find the longest value toString().\n for (int rowIndex = 0; rowIndex < this.tuples.size(); rowIndex++) { // Loop the rows\n String value = this.tuples.get(rowIndex).getValues().get(index).toString();\n if (value.length() > maxColumnLengthOfStrings[index]){\n maxColumnLengthOfStrings[index] = value.length();\n }\n }\n }\n\n // A set of tables whose columns are in the attributes list.\n Set<SQLTable> tablesSet = new HashSet<>();\n // The list of attributes to String format.\n String attributesList = new String();\n // A line used to separate the attributes from the data.\n String separationLine = new String();\n // Create the separation line and the attributes line.\n for (int index = 0; index < attributesNumber; index++) {\n\n // The score column has a null table. Dont search it.\n if (!this.attributes.get(index).getName().equals(\"score\"))\n tablesSet.add((this.attributes.get(index).getTable()) );\n\n\n attributesList += \"|\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index],\n this.attributes.get(index).getName(), \" \");\n separationLine += \"+\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index], \"\", \"-\");\n }\n attributesList += \"|\"; // Add the last \"|\".\n separationLine += \"+\"; // Add the last \"+\".\n\n // Print the tables which contain this tuples (HACK WAY). \n String tablesInString = new String (\"Tables joined : \");\n for (SQLTable table: tablesSet) {\n tablesInString += table.toAbbreviation() + \" |><| \";\n }\n System.out.println(tablesInString.substring(0, tablesInString.length()-5));\n\n // Print the attributes between separation lines.\n System.out.println(separationLine);\n System.out.println(attributesList);\n System.out.println(separationLine);\n\n // Print all the rows of Tuple Values.\n for (OverloadedTuple tuple: this.tuples) {\n String rowOfValues = new String();\n for (int index = 0; index < attributesNumber; index++) {\n rowOfValues += \"|\" + PrintingUtils.addStringWithLeadingChars( maxColumnLengthOfStrings[index],\n tuple.getValues().get(index).toString(), \" \");\n }\n rowOfValues += \"|\";\n System.out.println(rowOfValues);\n }\n\n // Print a separation line.\n System.out.println(separationLine);\n }",
"public static void outputRecord() {\r\n System.out.println(\"First Name: Len\");\r\n System.out.println(\"Last Name: Payne\");\r\n System.out.println(\"College: Lambton College\");\r\n }",
"public void printReport() {\n System.out.println(\"=== Product Report ===\");\n productNames.keySet().forEach(k -> {\n System.out.println(\"Name: \" + k + \"\\t\\tCount: \" + productCountMap.get(productNames.get(k)));\n });\n\n }",
"private void printFieldTypes() throws LanguageException {\n\t\tprinter.firstItem = true;\n\t\tprintFieldTypesForClasses(printer.getClasses());\n\t\tprintFieldTypesForClasses(printer.getInterfaces());\n\t}",
"private void printColSchema() {\n System.out.print(\"Table Name: \");\n String tableName = sc.nextLine();\n ArrayList<String> result = sqlMngr.colSchema(tableName);\n System.out.println(\"\");\n System.out.println(\"------------\");\n System.out.println(\"Total number of fields: \" + result.size() / 2);\n for (int i = 0; i < result.size(); i += 2) {\n System.out.println(\"-\");\n System.out.println(\"Field Name: \" + result.get(i));\n System.out.println(\"Field Type: \" + result.get(i + 1));\n }\n System.out.println(\"------------\");\n System.out.println(\"\");\n }",
"@Override\n\tpublic void printContents(SQLiteDatabase db) {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }",
"public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from product\");\n\n System.out.println(\"PRODUCT\");\n while(rs.next()){\n\n System.out.println(rs.getInt(\"id\") + \", \" + rs.getString(\"quantity\") + \", \" + rs.getString(\"productName\") + \", \" + rs.getDouble(\"price\")+ \", \" + rs.getString(\"deleted\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n\n }",
"public void print() {\n System.out.println();\n for (int level = 0; level < 4; level++) {\n System.out.print(\" Z = \" + level + \" \");\n }\n System.out.println();\n for (int row = 3; row >= 0; row--) {\n for (int level = 0; level < 4; level++) {\n for (int column = 0; column < 4; column++) {\n System.out.print(get(column, row, level));\n System.out.print(\" \");\n }\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }",
"public void print(){\n for(Recipe r : recipes){\n System.out.println(r.toString());\n }\n }",
"public void print() {\n for (Entry entry : listentries) {\n System.out.println(\"These are the tasks currently on your lists:\");\n System.out.println(\"Name of Task:\" + entry.getName());\n System.out.println(\"Status:\" + entry.getStatus());\n System.out.println(\"Due Date:\" + entry.getDueDate());\n System.out.println(\"Days Left To do Tasks:\" + entry.getDaysLeft());\n }\n }",
"public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}",
"public void showInfo() {\n\t\tfor (String key : list.keySet()) {\n\t\t\tSystem.out.println(\"\\tID: \" + key + list.get(key).toString());\n\t\t}\n\t}",
"public void print()\n\t{\n\t\tminGenes = Integer.MAX_VALUE;\n\t\tmaxGenes = 0;\n\t\tcreatureGenesQty = 0;\n\t\tfor (Creature creature : creatures)\n\t\t{\n\t\t\tminGenes = (minGenes > creature.getGenotype().size()) ? creature\n\t\t\t\t\t.getGenotype().size() : minGenes;\n\t\t\tmaxGenes = (maxGenes < creature.getGenotype().size()) ? creature\n\t\t\t\t\t.getGenotype().size() : maxGenes;\n\t\t\tcreatureGenesQty += creature.getGenotype().size();\n\t\t\t//creature.print();\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t}\n\t\tavgGenes = creatureGenesQty / ((float) size());\n\n\t\t// add some statistics\n\t\tSystem.out.println(\"Population size: \" + size());\n\t\tSystem.out.println(\"Minimum number of genes: \" + minGenes);\n\t\tSystem.out.println(\"Average number of genes: \" + avgGenes);\n\t\tSystem.out.println(\"Maximum number of genes: \" + maxGenes);\n\t\tCreatureLog.info(String.valueOf(size()) + \"\\t\" + avgGenes + \"\\t\" + minGenes + \"\\t\" +maxGenes);\n\n\t}",
"public void printPotionMap(Map<Potion,Integer> map) {\n\t\n\t\tSystem.out.println(\"**** Available Potions ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\tAmount\\tIncrease\\tAttributes\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tint id = 1;\n\t\t\n\t\tIterator<Entry<Potion, Integer>> iter = map.entrySet().iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\t Map.Entry<Potion, Integer> pair = iter.next();\n\t\t\t Potion p = pair.getKey();\n\t\t\t int amount = pair.getValue();\n\t\t\t System.out.printf(id++ + \"\\t\" + p.getName() + \"\\t\\t\" + amount + \"\\t\"+ p.getAmount()\t+ \"\\t\");\n\t\t\tfor(StatType t : p.getTypes()) {\n\t\t\t\tSystem.out.printf(t.toString() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t}",
"public <T extends RealmObject> void printOutDatabase() {\n L.m(\"Begin Printout of full Database\");\n Realm realm = DatabaseUtilities.buildRealm(this.realmConfiguration);\n final RealmQuery query = RealmQuery.createQuery(realm, MasterDatabaseObject.class);\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n //Start transaction\n RealmResults<T> results = query.findAll();\n if (results == null) {\n L.m(\"Nothing in the Database\");\n return;\n }\n for (T t : results) {\n if (t != null) {\n MasterDatabaseObject mdo = (MasterDatabaseObject) t;\n L.m(\"Object: \" + mdo.getId() + \", JSON == \"\n + mdo.getJsonString() + \"\\n\");\n }\n }\n }\n });\n\n try {\n realm.close();\n } catch (Exception e) {\n }\n L.m(\"End Printout of full Database\");\n }",
"public void dumpTable() {\n Enumeration elements = table.elements();\n while (elements.hasMoreElements()){\n SymbolTableEntry printEntry = (SymbolTableEntry) elements.nextElement();\n printName(printEntry);\n }\n }",
"public void debug()\r\n\t{\r\n\t\tfloat entriesPerSlot = (float) numEntries / (float) numFilledSlots;\r\n\r\n\t\tString result = \"Format of display is\\n\";\r\n\t\tresult += \"Slot number: data record\\n\\n\";\r\n\t\tresult += \"Current table size:\\t\\t\\t\\t\\t\\t\" + table.length + \"\\n\";\r\n\t\tresult += \"Number of elements in table:\\t\\t\\t\" + numEntries + \"\\n\";\r\n\t\tresult += \"Number of filled slots in table:\\t\\t\" + numFilledSlots + \"\\n\";\r\n\t\tresult += \"Average number of entries per slot is:\\t\" + entriesPerSlot + \"\\n\";\r\n\t\tSystem.out.println(result);\r\n\r\n\t\tfor (int i = 0; i < table.length; i++)\r\n\t\t{\r\n\t\t\t// If the current slot has a value in it\r\n\t\t\tif (table[i] != null && !table[i].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Store the key that it stores\r\n\t\t\t\tresult = \"\\n\" + i + \":\\t\" + ((i < 100) ? \"\\t\" : \"\") + \"[\" + table[i].key.toString() + \", \";\r\n\r\n\t\t\t\t// Loop through all of the entries at that key\r\n\t\t\t\tfor (V entry : table[i].value)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Store the next value at that key\r\n\t\t\t\t\tresult += \"(\" + entry.toString() + \"), \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tresult = result.substring(0, result.length() - 2) + \"]\";\r\n\t\t\t\tSystem.out.println(result);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}",
"public void display() {\n\tString tm = \"{ \";\n\tIterator it = entrySet().iterator();\n\twhile(it.hasNext()) {\n\t\ttm += it.next() + \" ,\";\n\t}\n\ttm = tm.substring(0, tm.length() - 2) + \" }\";\n\tSystem.out.println(tm);\n }",
"public void show() {\r\n\t\tSystem.out.println(\"Id \\t Name \\t Address\");\r\n\t\t\r\n\t\tfor (int index = 0; index < emp.size(); index++) {\r\n\t\t\tSystem.out.println(emp.get(index).empId + \"\\t\" + emp.get(index).name +\"\\t\" + emp.get(index).adress);\r\n\t\t}\r\n\t}",
"public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }",
"public String loopDBInfo(ResultSet rs){\n String p = \"\";\n try{\n while (rs.next()) {\n int id_col = rs.getInt(\"ID\");\n String first_name = rs.getString(\"NAME\");\n String phone = rs.getString(\"PHONE\");\n String status = rs.getString(\"STATUS\");\n String prob = rs.getString(\"PROBLEM\");\n \n \n p = p + (id_col + \" \" + first_name + \" \" + phone + \" \"+ status + \" \"+ prob + \"\\n\"); \n // System.out.println(p);\n }\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n \n } return p;\n }",
"public void printObjectList(){\n\t\tfor (int i = 0; i < gameObjectsList.size(); i++){\n\t\t\tSystem.out.println(i + \", \" + gameObjectsList.get(i).getCategory() + \" : Type:\" + gameObjectsList.get(i).getObjecttype() + \" X:\" + gameObjectsList.get(i).getX() + \" Y:\" + gameObjectsList.get(i).getY());\n\t\t}\n\t}",
"public void print(Credit[] db)\n {\n\t\n\t System.out.println(\"\\ncid Default number email Expire\");\n\t System.out.println(\"__________________________________________\");\n\t System.out.println(db.length);\n\t for (int i=0; i<db.length; i++){\n\t\tCredit mdb =db[i];\n\t\tSystem.out.println(mdb.getcid() + \" \" + mdb.getDefaultcc() + \" \" + mdb.getcc_number() + \" \"+ mdb.getemail() +\" \"+ mdb.getExpire_Date());\n\t }\n \n }",
"public void printAll() {\n \tfor (int i = 0; i < Table.size(); i++) {\n \t\tList<T> data = Table.get(i);\n \t\tdata.placeIterator();\n \t\twhile (!data.offEnd()) {\n \t\t\tSystem.out.print(data.getIterator() + \"\\n\");\n \t\t\tdata.advanceIterator();\n \t\t}\n \t\t\n \t}\n }",
"public void printMap() {\n Set<String> manufacturers = cars.keySet();\n\n for (String manufacturer : cars.keySet()) {\n System.out.println(String.format(\"The following %s models are in stock: \", manufacturer));\n System.out.println(cars.get(manufacturer));\n\n }\n }",
"public void printAll() {\n\t\tSystem.out.println(mainPot);\n\t\tcurrentPlayer.printHandAndPocket();\n\t\tcurrentPlayer.printCombos();\n\t\topponentPlayer.printCombos();\n\t\tSystem.out.println();\n\t}",
"public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }",
"public static void main(String[] args) {\n DB_Utility.createConnection(\"dev\");\n\n\n// Run query \"SELECT * FROM EMPLOYEES\"\n//\n DB_Utility.runQuery(\"select * from SPARTANS\");\n//\n//// 1. Display all data in console\n// DB_Utility.displayAllData();\n//\n//// 2. Print column count\n// System.out.println(\"DB_Utility.getColumnCNT() = \" + DB_Utility.getColumnCNT());\n//\n//// 3. Print row count\n// System.out.println(\"DB_Utility.getRowCount() = \" + DB_Utility.getRowCount());\n//\n//// 4. Print out 3rd row data as a list\n// System.out.println(\"DB_Utility.getRowDataAsList(3) = \"\n// + DB_Utility.getRowDataAsList(3));\n//\n//// 5. Print out 2nd column data as a list\n// System.out.println(\"DB_Utility.getColumnDataAsList(2) = \"\n// + DB_Utility.getColumnDataAsList(2));\n//\n//// 6, Print out Name column data as a list\n// System.out.println(\"DB_Utility.getColumnDataAsList(\\\"NAME\\\") = \"\n// + DB_Utility.getColumnDataAsList(\"NAME\"));\n//\n//// 7, Print out 4th row as a Map\n// System.out.println(\"DB_Utility.getRowMap(4) = \"\n// + DB_Utility.getRowMap(4));\n\n//// 8, Print out the data at row 5, column 1\n System.out.println(\"DB_Utility.getColumnDataAtRow(5,1) = \"\n + DB_Utility.getColumnDataAtRow(5, 1));\n\n//// 9, Print out the data at row 53, phone column\n System.out.println(\"DB_Utility.getColumnDataAtRow(53,\\\"PHONE\\\") = \"\n + DB_Utility.getColumnDataAtRow(53, \"PHONE\"));\n//\n//\n//// 10. Print out all the data as List of Map\n System.out.println(\"DB_Utility.getAllDataAsListOfMap() = \"\n + \"\\n\"+DB_Utility.getAllDataAsListOfMap()+\"\\n\");\n\n\n }",
"private void printTable(String type){\n\t\tSystem.out.println(\"\\n\\t\\t\\t\\t \" + type + \" Probing Analysis (Table size = \" + tableSize + \")\");\n\t\tSystem.out.println(\"\\t\\t ----- Inserts ------ ----------- Probes ---------- --------- Clusters ---------\");\n\t\tSystem.out.printf(\"%5s %10s %10s %10s %10s %10s %10s %10s %10s %10s\\n\", \n\t\t\t\t\"N\", \"lambda\", \"success\", \"failed\", \"total\", \"avg\", \"max\", \"number\", \"avg\", \"max\");\n\t}",
"public String printAccounts() { \n\t\t\n\t\tStringBuilder output = new StringBuilder(\"\");\n\t\t\n\t\tif(size > 0) {\n\t\t\t\n\t\t\toutput.append(\"--Listing accounts in the database--\\n\");\n\t\t\t//System.out.println(\"--Listing accounts in the database--\");\n\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\toutput.append(accounts[i].toString());\n\t\t\t\toutput.append(\"\\n\");\n\t\t\t\t//System.out.println(accounts[i].toString());\n\t\t\t}\n\t\t\t\n\t\t\toutput.append(\"--end of listing--\\n\");\n\t\t\t//System.out.println(\"--end of listing--\");\t\n\t\t\t\n\t\t}\n\n\t\telse {\n\t\t\toutput.append(\"Database is empty.\\n\");\n\t\t\t//System.out.println(\"Database is empty.\");\n\t\t}\n\t\t\n\t\treturn output.toString();\n\t}",
"private void printInfo() {\n System.out.println(\"\\nThis program reads the file lab4.dat and \" +\n \"inserts the elements into a linked list in non descending \"\n + \"order.\\n\" + \"The contents of the linked list are then \" +\n \"displayed to the user in column form.\\n\");\n }",
"private void displayDatabaseInfo() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Perform this raw SQL query \"SELECT * FROM pets\"\n // to get a Cursor that contains all rows from the pets table.\n\n String[] projection = {\n WaterEntry._ID,\n WaterEntry.COLUMN_DRINK_NAME,\n WaterEntry.COLUMN_DIURETIC_TYPE,\n WaterEntry.COLUMN_DRINK_OUNCES\n };\n\n Cursor cursor = db.query(\n WaterEntry.TABLE_NAME,\n projection,\n null,\n null,\n null,\n null,\n null);\n\n TextView displayView = (TextView) findViewById(R.id.water_view);\n\n try {\n // Create a header in the Text View that looks like this:\n //\n // The pets table contains <number of rows in Cursor> pets.\n // _id - name - breed - gender - weight\n //\n // In the while loop below, iterate through the rows of the cursor and display\n // the information from each column in this order.\n displayView.setText(\"The pets table contains \" + cursor.getCount() + \" pets.\\n\\n\");\n displayView.append(WaterEntry._ID + \" - \" +\n WaterEntry.COLUMN_DRINK_NAME + \" - \" +\n WaterEntry.COLUMN_DIURETIC_TYPE + \" - \" +\n WaterEntry.COLUMN_DRINK_OUNCES + \"\\n\");\n\n // Figure out the index of each column\n int idColumnIndex = cursor.getColumnIndex(WaterEntry._ID);\n int nameColumnIndex = cursor.getColumnIndex(WaterEntry.COLUMN_DRINK_NAME);\n int typeColumnIndex = cursor.getColumnIndex(WaterEntry.COLUMN_DIURETIC_TYPE);\n int ouncesColumnIndex = cursor.getColumnIndex(WaterEntry.COLUMN_DRINK_OUNCES);\n\n // Iterate through all the returned rows in the cursor\n while (cursor.moveToNext()) {\n // Use that index to extract the String or Int value of the word\n // at the current row the cursor is on.\n int currentID = cursor.getInt(idColumnIndex);\n String currentName = cursor.getString(nameColumnIndex);\n String currentType = cursor.getString(typeColumnIndex);\n int currentOunces = cursor.getInt(ouncesColumnIndex);\n String drinkMeasure =\" oz.\";\n // Display the values from each column of the current row in the cursor in the TextView\n displayView.append((\"\\n\" + currentID + \" - \" +\n currentName + \" - \" +\n currentType + \" - \" +\n currentOunces + drinkMeasure));\n }\n } finally {\n // Always close the cursor when you're done reading from it. This releases all its\n // resources and makes it invalid.\n cursor.close();\n }\n\n }",
"private void printAllCourseInDB(){\n\n System.out.println(\"--------------------------------------------------------------------------------------\");\n System.out.println(\"COURSE SCHOOL AU INDEX SLOT TYPE DAY TIME\");\n System.out.println(\"--------------------------------------------------------------------------------------\");\n ArrayList<String> courseIDList = courseMgr.readAllCourseIDFromDB();\n for(String courseID: courseIDList){\n System.out.print(String.format(\"%6s \", courseID));\n Course course = courseMgr.readCourseByID(courseID);\n System.out.print(String.format(\"%5s \", course.getSchool()));\n int j = 0;\n for(CourseIndex courseIndex:course.getCourseIndices()){\n if (j==0)\n System.out.print(String.format(\" %d \", courseIndex.getAu()));\n else\n System.out.print(String.format(\" \", courseIndex.getAu()));\n System.out.print(String.format(\"%6s \", courseIndex.getIndex()));\n System.out.print(String.format(\"%3d \", courseIndex.getSlot()));\n int i = 0;\n for (CourseCompo courseCompo : courseIndex.getCourseCompos()){\n if(i==0){\n System.out.print(String.format(\"%3s \", courseCompo.getCompoType()));\n System.out.print(String.format(\"%3s \", courseCompo.getDay()));\n System.out.println(String.format(\"%3s \", courseCompo.getTimeSlot()));\n }\n else{\n System.out.print(String.format(\" %3s \", courseCompo.getCompoType()));\n System.out.print(String.format(\"%3s \", courseCompo.getDay()));\n System.out.println(String.format(\"%3s \", courseCompo.getTimeSlot()));\n }\n i++;\n }\n j++;\n System.out.println(\"\");\n }\n }\n\n System.out.println(\"--------------------------------------------------------------------------------------\\n\");\n }",
"public void printSpellList(List<Spell> list) {\n\t\tSystem.out.println(\"**** Available Spells ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\t\\tDamage\\tMana Cost\\tElement\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Spell s : list) {\n\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + s.getName());\n\t\t\tfor(int i = 0; i < 24-s.getName().length(); i++) {\n\t\t\t\tSystem.out.printf(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(s.getBaseDmg() + \"\\t\" + s.getManaCost() + \"\\t\" + s.getType().toString());\n\t\t\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}",
"private void printResultSet(ResultSet rs) {\n\t\twhile(rs.hasNext()) {\t\n\t\t\tQuerySolution qs = rs.next();\n\t\t\tSystem.out.println(qs.toString());\n\t\t}\n\t\tSystem.out.println(\"------\");\n\t}",
"public void display()\n\t{\n\t\tSystem.out.println(\"Bike No.\\t\"+\n\t\t\t\t\"Phone no.\\t\"+\n\t\t\t\t\"Name\\t\"+\n\t\t\t\t\"No. of days\\t\"+\n\t\t\t\t\"Charge\");\n\t\tSystem.out.println(bno+\n\t\t\t\t\"\\t\"+phno+\n\t\t\t\t\"\\t\"+name+\n\t\t\t\t\"\\t\"+days+\n\t\t\t\t\"\\t\"+charge);\n\t}",
"private void print() {\n\t\tList<Entry<String, Double>> entries = sort();\n\t\tfor (Entry<String, Double> entry: entries) {\n\t\t\tSystem.out.println(entry);\n\t\t}\n\t}",
"public void print() {\n int rows = this.getNumRows();\n int cols = this.getNumColumns();\n\n for (int r = 0; r < rows; r++) {\n\n for (int c = 0; c < cols; c++) {\n System.out.print(this.getString(r, c) + \", \");\n }\n\n System.out.println(\" \");\n }\n }",
"@Override\n\tpublic void print() {\n\t\tSystem.out.println(\"Avaliable Media items are\");\n\t\t\n\t\tSystem.out.println(\"Identification Number number of copies title of item\");\n\n\t\t\t\tfor(int i =0; i<getTitle().length; i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(getIdentificatioNumber()[i]+\" \"\n\t\t\t\t\t+getNumberOfCopies()[i]+\" \"+getTitle()[i]);\n\t\t\t\t}\n\t\t\t}",
"public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }",
"public void printResults(ResultSet resultSet) throws SQLException {\n\t\tResultSetMetaData rsmd = resultSet.getMetaData();\n\t\tint columnsNumber = rsmd.getColumnCount();\n\t\tint count = 1;\n\t\twhile (resultSet.next()) {\n\t\t\tSystem.out.println(\"Record: \" + count);\n\t\t for (int i = 1; i <= columnsNumber; i++) {\n\t\t String columnValue = resultSet.getString(i);\n\t\t System.out.print(rsmd.getColumnName(i) + \": \" + columnValue + \", \");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t count++;\n\t\t}\n\t}",
"public String toString()\n {\n return \"PG/F: \" + PG + \", Department: \" + inspections + \", Contact Method: \" + method + \", Date: \" + date + \", Number: \" + num + \", Street: \" + street + \", Ward: \" + ward;\n }",
"public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}",
"public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }",
"void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}",
"public void print() {\r\n\t\tint size = list.size();\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"┌───────────────────────────┐\");\r\n\t\tSystem.out.println(\"│ \t\t\t성적 출력 \t\t │\");\r\n\t\tSystem.out.println(\"└───────────────────────────┘\");\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\r\n\t\t\tExam exam = list.get(i);\r\n\t\t\tint kor = exam.getKor();\r\n\t\t\tint eng = exam.getEng();\r\n\t\t\tint math = exam.getMath();\r\n\r\n\t\t\tint total = exam.total();// kor + eng + math;\r\n\t\t\tfloat avg = exam.avg();// total / 3.0f;\r\n\t\t\tSystem.out.printf(\"성적%d > 국어:%d, 영어:%d, 수학:%d\", i + 1, kor, eng, math);\r\n\t\t\tonPrint(exam);\r\n\t\t\tSystem.out.printf(\"총점:%d, 평균:%.4f\\n\", total, avg);\r\n\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"─────────────────────────────\");\r\n\r\n\t}",
"public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }",
"public void DisplayAllEmployees(){\r\n String format = \"%-20s %-20s %-9s\";\r\n System.out.println(\"\\n\");\r\n System.out.printf(format, \"|\"+\" Name \", \"|\"+\" Department \", \"|\"+\" phone number|\"+\"\\n\");\r\n System.out.println(\"----------------------------------------------------------\");\r\n for(Employee employee: listOfEmployees){\r\n System.out.format(format,\"|\"+employee.name,\"|\"+employee.departmentName,\"|\"+employee.contactNumber+\" |\"+ \"\\n\");\r\n }\r\n }",
"public void printResults() {\r\n System.out.printf(\"\\nHistory\\n\\n\");\r\n String format = \"%-25s %s from %s\\n\";\r\n Collections.sort(results);\r\n for(Data data : results) {\r\n System.out.printf(format, data.getName(),\r\n defaultFormatter.format(data.getDate()), data.getComputer());\r\n }\r\n }",
"public void printTable(){\n \tfor (int i = 0; i < Table.size(); i++) {\n \t\tList<T> data = Table.get(i);\n \t\ttry {\n \t\t\tSystem.out.println(\"Bucket: \" + i);\n \t\t\tSystem.out.println(data.getFirst());\n \t\t\tSystem.out.println(\"+ \" + (data.getLength() - 1) + \" more at this bucket\\n\\n\");\n \t\t} catch (NoSuchElementException e) {\n \t\t\tSystem.out.println(\"This bucket is empty.\\n\\n\");\n \t\t}\n \t}\n }",
"public void print(){\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ~ THREE ROOM DUNGEON GAME ~ \");\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tSystem.out.print(\":( \");\n\t\t\t\t}\n\t\t\t\telse if(this.Ari[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" ? \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\n\t}",
"private void printInfo()\n {\n if(currentRoom.getItems().size() >= 1)\n {\n System.out.println(\"\\n\" + \"Items in room are: \" );\n ArrayList<Item> items = currentRoom.getItems();\n \n for(Item i : items)\n {\n System.out.println(i.getItemName() + i.getDescription()); \n }\n \n }\n \n \n \n if(currentRoom.getWeapons().size() >= 1)\n {\n System.out.println(\"\\n\" + \"Weapons in room are: \" );\n \n ArrayList<Weapon> weapons = currentRoom.getWeapons();\n for(Weapon w : weapons)\n {\n System.out.println(w.getWeaponName() + w.getDescription());\n }\n \n }\n \n \n }",
"@Override\r\n\t\tpublic String toString() {\r\n\t\t\t\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tint langCount = 0;\r\n\t\t\tint kmerCount = 0;\r\n\t\t\tSet<Language> keys = getDb().keySet();\r\n\t\t\tfor (Language lang : keys) {\r\n\t\t\t\tlangCount++;\r\n\t\t\t\tsb.append(lang.name() + \"->\\n\");\r\n\t\t\t\t \r\n\t\t\t\t Collection<LanguageEntry> m = new TreeSet<>(getDb().get(lang).values());\r\n\t\t\t\t kmerCount += m.size();\r\n\t\t\t\t for (LanguageEntry le : m) {\r\n\t\t\t\t\t sb.append(\"\\t\" + le + \"\\n\");\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t\tsb.append(kmerCount + \" total k-mers in \" + langCount + \" languages\"); \r\n\t\t\treturn sb.toString();\r\n\t\t\t}",
"public void toStrings() {\n String output = \"\";\n output += \"Gen Price: $\" + genPrice + \"0\"+ \"\\n\";\n output += \"Bronze Price: $\" + bronzePrice +\"0\"+ \"\\n\";\n output += \"Silver Price: $\" + silverPrice +\"0\"+ \"\\n\";\n output += \"Gold Price: $\" + goldPrice +\"0\"+ \"\\n\";\n output += \"Vip Price: $\" + vipPrice +\"0\"+ \"\\n\";\n System.out.println(output);\n }",
"public void printAll() {\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"################\");\r\n\t\tSystem.out.println(\"Filename:\" +getFileName());\r\n\t\tSystem.out.println(\"Creation Date:\" +getCreationDate());\r\n\t\tSystem.out.println(\"Genre:\" +getGenre());\r\n\t\tSystem.out.println(\"Month:\" +getMonth());\r\n\t\tSystem.out.println(\"Plot:\" +getPlot());\r\n\t\tSystem.out.println(\"New Folder Name:\" + getNewFolder());\r\n\t\tSystem.out.println(\"New Thumbnail File Name:\" +getNewThumbnailName());\r\n\t\tSystem.out.println(\"New File Name:\" +getNewFilename());\r\n\t\tSystem.out.println(\"Season:\" +getSeason());\r\n\t\tSystem.out.println(\"Episode:\" +getEpisode());\r\n\t\tSystem.out.println(\"Selected:\" +getSelectEdit());\r\n\t\tSystem.out.println(\"Title:\" +getTitle());\r\n\t\tSystem.out.println(\"Year:\" +getYear());\r\n\t\tSystem.out.println(\"Remarks:\" +getRemarks());\r\n\t\tSystem.out.println(\"################\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private void printAllStudentInDB(){\n ArrayList studentInformation = AdminManager.loadDBStudentInformation();\n System.out.println(\"--------------------------------------------------------------------------------------\");\n System.out.println(\"USERNAME STUDENT NAME MATRIC NUMBER GENDER NATIONALITY\");\n System.out.println(\"--------------------------------------------------------------------------------------\");\n\n for(int i=0; i<studentInformation.size();i++){\n String st = (String)studentInformation.get(i);\n StringTokenizer star = new StringTokenizer(st, \",\");\n System.out.print(String.format(\"%7s \",star.nextToken().trim()));\n String printPassword = star.nextToken().trim();\n System.out.println(String.format(\"%20s %9s %6s %s\",star.nextToken().trim(),star.nextToken().trim(),star.nextToken().trim(),star.nextToken().trim()));\n }\n System.out.println(\"--------------------------------------------------------------------------------------\\n\");\n }",
"public static void main(String[] args) {\n\t\tSystem.out.printf(\"%10s%10s%10s\\n\",\"item\",\"count\",\"price\");\n\t\tSystem.out.printf(\"%10s%10s%10s\\n\",\"pen\",\"20\",\"100\");\n\t\tSystem.out.printf(\"%10s%10s%10s\\n\",\"note\",\"5\",\"95\");\n\t\tSystem.out.printf(\"%10s%10s%10s\\n\",\"eraser\",\"110\",\"97\");\n\t}",
"public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }",
"public String printAccounts() {\n StringBuilder result;\n result = new StringBuilder((\"--Listing accounts in the database--\\n\"));\n for (int i = 0; i < size; i++) {\n result.append(accounts[i].toString()).append(\"\\n\");\n }\n result.append(\"--end of listing--\");\n return result.toString();\n }"
]
| [
"0.6169886",
"0.6146409",
"0.6008903",
"0.5967292",
"0.5904839",
"0.58699393",
"0.58496445",
"0.58214164",
"0.5804084",
"0.58034694",
"0.5798254",
"0.57705796",
"0.5738028",
"0.57353836",
"0.57352877",
"0.5699187",
"0.56812876",
"0.5674843",
"0.5673075",
"0.560601",
"0.5601798",
"0.5600744",
"0.5599076",
"0.5596149",
"0.5594534",
"0.55903864",
"0.5575804",
"0.5549805",
"0.5546082",
"0.55442387",
"0.55404115",
"0.55389607",
"0.55196106",
"0.5513499",
"0.5477723",
"0.54770464",
"0.54724413",
"0.5471985",
"0.5469859",
"0.5463384",
"0.5462894",
"0.5455749",
"0.5446761",
"0.54327404",
"0.54301846",
"0.5424163",
"0.5414116",
"0.54131037",
"0.5408097",
"0.54043025",
"0.54034394",
"0.54029423",
"0.5399837",
"0.53971344",
"0.53964484",
"0.5390998",
"0.536325",
"0.5363223",
"0.5361877",
"0.53570443",
"0.5352602",
"0.53519166",
"0.5350306",
"0.53449386",
"0.5341106",
"0.5337795",
"0.5331656",
"0.5331116",
"0.53243023",
"0.5320177",
"0.5317658",
"0.53165936",
"0.5307125",
"0.5305982",
"0.5304843",
"0.5301284",
"0.5300783",
"0.5299491",
"0.5293661",
"0.52889407",
"0.5284883",
"0.5283819",
"0.52830476",
"0.52818364",
"0.527776",
"0.5273452",
"0.5270082",
"0.52682257",
"0.52680963",
"0.52677244",
"0.526683",
"0.52648985",
"0.52615494",
"0.52607375",
"0.5259307",
"0.5259176",
"0.52529335",
"0.5251319",
"0.52471566",
"0.524689"
]
| 0.65788144 | 0 |
Finds an entry based on its Pokedex number and prints out all its information. | public void findByDexNumber(String dexNum)
{
boolean found = false;
for(KantoDex entry : entries)
{
if(dexNum.equals(entry.getDexNum()))
{
found = true;
entry.display();
}
}
if(!found)
{
System.out.println("No entries were found with the Pokedex number '" + dexNum + "'.");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void numberLookup() {\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getNumber() == entryNumber)\n\t\t\t.forEach(n -> System.out.println(\"This is the number of \" + n.getName()));\n\t}",
"public static void searchNumber() {\n\t\t// Scanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter a number to search: \");\n\t\tint search = scan.nextInt();\n\t\t// scan.close();\n\t\tif (hl.contains(search)) {\n\t\t\tSystem.out.println(\"File contgains the number and deleted from it\");\n\t\t\thl.pop(search);\n\t\t} else {\n\t\t\tSystem.out.println(\"File does not contain the number. Adding it to the file.\");\n\t\t\thl.add(search);\n\t\t}\n\t\tint[] integerArray = hl.getAll();\n\t\tPrintWriter printWriter = null;\n\t\ttry {\n\t\t\tprintWriter = new PrintWriter(\"/home/bridgeit/Desktop/number.txt\", \"UTF-8\");\n\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor (int integer : integerArray) {\n\t\t\tprintWriter.print(integer + \" \");\n\t\t}\n\t\tprintWriter.close();\n\t}",
"public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}",
"private void findEntry() {\n String desiredId = idField.getText();\n Student student = studentHashMap.get(desiredId);\n\n try {\n if (student == null) {\n throw new NoMatchFoundException();\n } else if (this.checkInput(student) == false) {\n throw new InputMismatchException();\n } else if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"EMPLID: \" + desiredId + \"\\n\" + student.toString(),\n \"Find\",\n JOptionPane.INFORMATION_MESSAGE\n );\n } else {\n throw new NoMatchFoundException();\n }\n } catch(NoMatchFoundException ex) {\n this.displayStatusPanel(\n \"Error: Entry not found.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } catch(InputMismatchException e) {\n this.displayStatusPanel(\n \"Error: Information does not match data on file.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n }\n }",
"public List<Map<String, String>> searchByNumber(String number) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\t\t\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" + // aggregate types (seperated by semicolon) since each Pokemon can have 1-2 types\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" + \t// find Pokemon with number\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" + // image of Pokemon\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(str(?number), \\\"\" + number + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?number LIMIT 10\"; // return 10 results ordered by number\n\t\treturn runQuery(queryString);\n\t}",
"ResultSet searchNumber(int num) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE ID = \" + num;\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public void searchPerson() {\n\t\tSystem.out.println(\"*****Search a person*****\");\n\t\tSystem.out.println(\"Enter Phone Number to search: \");\n\t\tlong PhoneSearch = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneSearch) {\n\t\t\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\t\t\tSystem.out.println(details[i]);\n\t\t\t}\n\t\t}\n\t}",
"public void findByType(String type)\n {\n boolean found = false;\n for(KantoDex entry : entries)\n {\n if(entry.getTypes1().contains(type) && !type.equals(\"\"))\n {\n found = true;\n } \n }\n if(!found)\n {\n System.out.println(\"You have input a nonexistent type, or the type was not applicable to this entry.\"); \n }\n else\n {\n System.out.println(\"All Pokedex entries of type \" + type + \":\");\n for(KantoDex entry : entries)\n {\n if(entry.getType1().equals(type) || entry.getType2().equals(type))\n {\n entry.display();\n }\n }\n }\n }",
"private void printSearchToolIDMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId) == true) {\n System.out.println(itemId + \" is in the shop.\");\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException {\n\n\t\tSystem.out.println(\"Enter Number To Search\");\n\t\tint search = Utility.getInt();\n\t\tboolean b = Utility.hashingSearch(search);\n\t\tif (!b) {\n\t\t\tSystem.out.println(\"Number not found ...and now added to list\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Number found.....and deleted from list\");\n\t\t}\n\t}",
"public static void searchPhone(Contact[] myContacts, String find)\n {\n int counter = 0;\n System.out.println(\"Find results: \");\n for(int i = 0; i<myContacts.length; i++)\n {\n if(myContacts[i].getPhone().equals(find))\n {\n System.out.println(myContacts[i]);\n counter++;\n }\n }\n if(counter == 0)\n {\n System.out.println(\"There are no listings for \"+find);\n }\n else if(counter == 1)\n {\n System.out.println(\"There was \"+counter+\" listing for \"+find);\n }\n else\n {\n System.out.println(\"There were \"+counter+\" listings for \"+find);\n }\n }",
"static void searchProductDB() {\n\n int productID = Validate.readInt(ASK_PRODUCTID); // store product ID of user entry\n\n\n productDB.findProduct(productID); // use user entry as parameter for the findProduct method and if found will print details of product\n\n }",
"public void findHouse() {\n System.out.println(\"-----Search House-----\");\n System.out.println(\"enter id: \");\n int findId = Utility.readInt();\n //call service search method\n House h = houseService.searchHouse(findId);\n if (h != null) {\n System.out.println(h);\n } else {\n System.out.println(\"no designate house found\");\n }\n }",
"public BookEntry getEntry(PhoneNumber phoneNumber) {\n\t\t//Create a Set for Map.Entry<K,V> type entries\n\t\tSet<Map.Entry<Person, BookEntry>> phoneBookEntries = phoneBook.entrySet();\n\t\t//Iterate through the entry set\n\t\tfor (Map.Entry<Person, BookEntry> currentEntry : phoneBookEntries) {\n\t\t\t//Compare the PhoneNumber object referenced in current Bookentry with the target phoneNumber\n\t\t\tif (currentEntry.getValue().getNumber().equals(phoneNumber)) { //equals method to be overriden in PhoneNumber class!\n\t\t\t\t//If a match is found, return the full BookEntry by the key\n\t\t\t\treturn phoneBook.get(currentEntry.getKey());\n\t\t\t}\n\t\t}\n\t\t//If this is reached, no BookEntry with phoneNumber was found, return null\n\t\treturn null;\n\t}",
"@Override\n\tpublic void searchByID() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's ID\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static FoundObject fetchByPrimaryKey(String number) {\n\t\treturn getPersistence().fetchByPrimaryKey(number);\n\t}",
"private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}",
"public void printBookDetails(Book bookToSearch) {\n boolean exists = false;\n\n //Search if the given book exists in the library\n // There are better ways. But not with arrays!!\n for (Book element : books) {\n if (element.equals(bookToSearch)) {\n exists = true;\n }\n\n //Print book details if boook found\n if (exists) {\n System.out.print(bookToSearch.toString());\n } else {\n System.out.print(bookToSearch.toString() + \" not found\");\n }\n }\n }",
"String getPokemonByNumber(int number) throws Exception\n\t{\n\t\tString urlHalf1 = \"https://pokeapi.co/api/v2/pokemon-form/\";\n\t\tString url = urlHalf1 + number;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString jsonData = getJsonData(url);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString pokemonName = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject treeObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement name = treeObject.get(\"name\");\n\n\t\t\tpokemonName = name.getAsString();\n\t\t}\n\n\t\treturn pokemonName;\n\t}",
"public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }",
"public String searchByZipUI() {\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++++\");\n console.promptForPrintPrompt(\" + PLEASE ENTER ZIPCODE TO SEARCH BY +\");\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++++\");\n console.promptForString(\"\");\n String zip = console.promptForString(\" ZIPCODE: \");\n return zip;\n }",
"public BookEntry getEntryByPhoneKey(PhoneNumber key) {\n\t\tHashMap<PhoneNumber, BookEntry> clonedBook = this.cloneBook();\n\t\tBookEntry foundEntry = clonedBook.get(key);\n\t\treturn this.cloneBook().get(key);\n\t}",
"public void findTask() {\n System.out.println(LINEBAR);\n System.out.println(\"Below are a list of tasks matching your description\\n\");\n\n String targetDesc = userIn.substring(FIND_HEADER);\n\n int matching = 0;\n\n for (Task t : tasks.TaskList) {\n String currDesc = t.taskDescription;\n\n if (currDesc.contains(targetDesc)) {\n matching++;\n System.out.println(matching + \". \" + t);\n }\n }\n\n if (matching == 0) {\n System.out.println(\"No matches found\\n\");\n }\n System.out.println(LINEBAR);\n }",
"public static void main(String[] args) {\n\n\t\torderArray array = new orderArray(10);\n\t\tarray.insert(50);\n\t\tarray.insert(20);\n\t\tarray.insert(30);\n\t\tarray.insert(55);\n\t\tarray.insert(45);\n\t\tint searchKey = 48;\n\n\t\tif (array.find(searchKey) != array.size())\n\t\t\tSystem.out.println(\"Found \" + searchKey);\n\t\telse\n\t\t\tSystem.out.println(\"Can't find\");\n\n\t}",
"public String showFind() {\n String findMessage = \"Ain't no problem! I have found the matchin' tasks in your list:\";\n return findMessage;\n }",
"public void findByRegion(String region)\n {\n boolean found = false;\n for(KantoDex entry : entries)\n {\n if(entry.getRegion().equals(region))\n {\n found = true;\n }\n }\n if(!found)\n {\n System.out.println(\"You have input a nonexistent region.\"); \n }\n else\n {\n System.out.println(region + \" Region entries:\");\n for(KantoDex entry : entries)\n {\n if(entry.getRegion().equals(region))\n {\n entry.display();\n }\n }\n }\n }",
"public static void printFindList(ArrayList<Task> tasks, String Key) {\n \n if (tasks.isEmpty()) {\n System.out.println(\" No matching tasks in your list (search: \" + Key + \")\");\n return;\n }\n printLine();\n System.out.println(\" Here are the matching tasks in your list (search: \" + Key + \"):\");\n int i = 0;\n for (Task t : tasks) {\n System.out.println((i + 1) + \".\" + tasks.get(i).toFindString());\n i++;\n }\n printLine();\n }",
"public BookEntry getEntry(Person key) {\n\t\treturn phoneBook.get(key);\n\t}",
"public Entry findByPrimaryKey(EntryPK pk) throws FinderException, RemoteException;",
"public void search() {\n while (!done) {\n num2 = mNums.get(cntr);\n num1 = mSum - num2;\n\n if (mKeys.contains(num1)) {\n System.out.printf(\"We found our pair!...%d and %d\\n\\n\",num1,num2);\n done = true;\n } //end if\n\n mKeys.add(num2);\n cntr++;\n\n if (cntr > mNums.size()) {\n System.out.println(\"Unable to find a matching pair of Integers. Sorry :(\\n\");\n done = true;\n }\n } //end while\n }",
"public static void printf(ArrayList<Vkladi> foundVkladi) {\r\n\r\n\t\tfor (Vkladi s : foundVkladi) {\r\n\t\t\tif (s != null) {\r\n\t\t\t\tSystem.out.println(\"Vklad : \" + s.getId() + \" \" + s.getMoney() + \"$ \" + s.getProcent() + \"%\"\r\n\t\t\t\t\t\t+ \" Pribil \" + s.getPribil() + \"$\" + \" \" + s.getStat());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String search(int key);",
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }",
"@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}",
"public String printFind(TaskList findList) {\n String taskList = \"\";\n for (int i = 0; i < findList.size(); i++) {\n Task task = findList.get(i);\n taskList = taskList + (i + 1) + \".\" + task.toString() + \"\\n\";\n }\n return \"இ~இ Here are the matching task(s) in your list:\\n\"\n + taskList;\n }",
"public static void main(String[] args) throws FileNotFoundException {\n String paragraphs[]=parser(\"tomSawyer.txt\");\r\n\r\n //creates ID for each paragraph\r\n String[] ID=new String[paragraphs.length];\r\n for(int i=0;i<paragraphs.length;i++)\r\n {\r\n ID[i]=\"\"+(i);\r\n paragraphs[i]=paragraphs[i].trim();\r\n }\r\n\r\n //read ID from user\r\n System.out.println(\"Enter the ID of the paragraph you want <eg. 3> :\");\r\n Scanner scan=new Scanner(System.in);\r\n String key=scan.next();\r\n int flag=0;\r\n int pos=-1;\r\n\r\n //search ID\r\n for(int i=1;i<ID.length;i++)\r\n {\r\n if(ID[i].equalsIgnoreCase(key))\r\n {\r\n flag=1;\r\n pos=i;\r\n break;\r\n }\r\n }\r\n\r\n //if match, display corresponding para\r\n if(flag==1)\r\n {\r\n System.out.println(paragraphs[pos]);\r\n }\r\n\r\n //else error\r\n else\r\n {\r\n System.out.println(\"No such ID exists\");\r\n }\r\n}",
"POGOProtos.Rpc.PokemonDisplayProto getPokemonDisplay();",
"public void deleteEntry() throws NoSuchElementException {\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\ttry {\n\t\t\tPhoneEntry toBeDeletedEntry = phoneList\n\t\t\t\t\t.stream()\n\t\t\t\t\t.filter(n -> n.getNumber() == entryNumber)\n\t\t\t\t\t.findFirst()\n\t\t\t\t\t.get();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tphoneList.remove(toBeDeletedEntry);\n\t\t\t\twriteFile();\n\t\t\t\tSystem.out.println(\"Entry \" + toBeDeletedEntry.getName() + \" has been removed.\");\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\"An error occured while removing the contact.\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"This number does not exist.\");\n\t\t}\n\t\t\n\t}",
"public String getLexEntry(String word)\n {\n boolean found = false;\n String buff = \"\";\n String rtn = \"\";\n\n lastCount = 0.0;\n if(word.length() > 0)\n {\n buff = compactNumbers(word);\n rtn = searchLexDb(buff, true);\n if(rtn.length() > 0)\n found = true;\n\n else // try the lowercase version\n {\n buff = buff.toLowerCase();\n rtn = searchLexDb(buff, true);\n if(rtn.length() > 0)\n found = true;\n } // else\n } // fi\n\n // If not found, get the search string corresponding to the word.\n\n if(!found)\n {\n buff = searchString(word);\n\n while(!found && (buff.length() > 0))\n {\n rtn = searchLexDb(buff, false);\n if(rtn.length() > 0)\n found = true;\n else\n buff = buff.substring(1);\n } // while\n } // fi\n\n if(!found)\n System.out.println(\"word: #\" + word + \"# lex entry not found\");\n\n return(rtn.toString());\n }",
"private void viewOrder() {\r\n\r\n System.out.println();\r\n System.out.println(\" View Orders\");\r\n System.out.println();\r\n\r\n\r\n //asks user to select which variable they would like to search by\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n System.out.println(\"What would you like to search by: \");\r\n System.out.println(\" a. Product ID \\n b. Customer Email \\n c. Customer Location \\n d. Order Date \\n\");\r\n String attribute = console.next();\r\n\r\n\r\n //if a is selected, enter the product id to search for\r\n if (attribute.equals(\"a\")){\r\n System.out.println(\"Enter the product id you would like to search for: \");\r\n String searchProductId = console.next();\r\n OrderItem pIdSearchingFor = null;\r\n int count1 = 0;\r\n for (int i=0; i<orderInfo.size(); i++ ){\r\n if (searchProductId.equalsIgnoreCase(orderInfo.get(i).getProductId())) { // if product id is found print data\r\n \tpIdSearchingFor = orderInfo.get(i); \r\n \r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + pIdSearchingFor.getProductId()+ \" \"\r\n + \"Quantity: \" + pIdSearchingFor.getQuantity()+ \" \"\r\n + \"Customer Email: \" + pIdSearchingFor.getCustomerEmail()+ \" \"\r\n + \"Customer Zip Code: \" + pIdSearchingFor.getCustomerLocation()+ \" \"\r\n + \"Order Date: \" + pIdSearchingFor.getOrderDate());\r\n \r\n \r\n }\r\n \r\n else{\r\n count1++; //if product id is not found, add to count and compare to array size. If greater than or equal display product id not found\r\n if(count1 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Product ID Not Found.\");\r\n System.out.println();\r\n }\r\n}\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n\r\n }\r\n //if b is selected enter the customer email\r\n else if(attribute.equals(\"b\")) {\r\n System.out.println(\"Enter the Customer Email you would like to search for: \");\r\n String searchCustomerEmail = console.next();\r\n OrderItem custSearchingFor = null;\r\n int count2 = 0;\r\n for (int j=0; j<orderInfo.size(); j++ ){\r\n if (searchCustomerEmail.equalsIgnoreCase(orderInfo.get(j).getCustomerEmail())) { // if customer email is found print data\r\n custSearchingFor = orderInfo.get(j); \r\n\r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + custSearchingFor.getProductId()+ \" \"\r\n + \"Quantity: \" + custSearchingFor.getQuantity()+ \" \"\r\n + \"Customer Email: \" + custSearchingFor.getCustomerEmail()+ \" \"\r\n + \"Customer Zip Code: \" + custSearchingFor.getCustomerLocation()+ \" \"\r\n + \"Order Date: \" + custSearchingFor.getOrderDate());\r\n \r\n \r\n } \r\n else{\r\n count2++; //if email is not found, add to count and compare to array size. If greater than or equal display email not found\r\n if(count2 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Email Not Found.\");\r\n System.out.println();\r\n }\r\n \r\n }\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n\r\n }\r\n //if c is selected enter the customer zip code\r\n else if(attribute.equals(\"c\")) {\r\n System.out.println(\"Enter the Customer ZIP code you would like to search for: \");\r\n String searchCustomerLoc = console.next();\r\n OrderItem locSearchingFor = null;\r\n int count3 = 0;\r\n for (int j=0; j<orderInfo.size(); j++ ){\r\n if (searchCustomerLoc.equalsIgnoreCase(orderInfo.get(j).getCustomerLocation())) { // if zip code is found display data\r\n \tlocSearchingFor = orderInfo.get(j); \r\n\r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + locSearchingFor.getProductId() + \" \"\r\n + \"Quantity: \" + locSearchingFor.getQuantity() + \" \"\r\n + \"Customer Email: \" + locSearchingFor.getCustomerEmail() + \" \"\r\n + \"Customer Zip Code: \" + locSearchingFor.getCustomerLocation() + \" \"\r\n + \"Order Date: \" + locSearchingFor.getOrderDate());\r\n\r\n }\r\n \r\n \r\n else{\r\n count3++; //if zip code is not found, add to count and compare to array size. If greater than or equal display zip code not found\r\n if(count3 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Zip Code Not Found.\");\r\n System.out.println();\r\n }\r\n }\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n\r\n }\r\n\r\n //if d is selected enter the customer order date\r\n else if (attribute.equals(\"d\")){\r\n System.out.println(\"Enter the date of the order you would like to search for in the format(Year-month-day e.g. 2020-01-13): \");\r\n String searchOrderDate = console.next();\r\n OrderItem dateSearchingFor = null;\r\n int count4 = 0;\r\n for (int k=0; k<orderInfo.size(); k++ ){\r\n if (searchOrderDate.equalsIgnoreCase(orderInfo.get(k).getOrderDate())) { // if date is found display data\r\n \tdateSearchingFor = orderInfo.get(k); \r\n\r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + dateSearchingFor.getProductId()+ \" \"\r\n + \"Quantity: \" + dateSearchingFor.getQuantity() + \" \"\r\n + \"Customer Email: \" + dateSearchingFor.getCustomerEmail() + \" \"\r\n + \"Customer Zip Code: \" + dateSearchingFor.getCustomerLocation() + \" \"\r\n + \"Order Date: \" + dateSearchingFor.getOrderDate());}\r\n \r\n \r\n \r\n else{\r\n count4++; //if date is not found, add to count and compare to array size. If greater than or equal display date not found\r\n if(count4 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Order Date Not Found.\");\r\n System.out.println();\r\n }\r\n \r\n }\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n }\r\n }",
"private static void search_by_id() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project id: \");\r\n\t\t\tString project_id_str = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_id_str, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project id cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void listEntries() {\n\t\t// Get the entries as a linked list\n\t\tLinkedList<BookEntry> entries = new LinkedList<>(phoneBook.values());\n\t\tCollections.sort(entries); // Sort the entries\n\n\t\tfor (BookEntry entry : entries) {\n\t\t\tSystem.out.println(\"Name = \" + entry.getPerson());\n\t\t\tSystem.out.printf(\"Number =(%s) %s%n\", entry.getNumber().getAreaCode(), entry.getNumber().getPhoneNumberNotAreaCode());\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"private void displayByID() { \n\t\tint sic_idHolder; // declares sic_idHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC-ID of the book you would like displayed:\");\n\t\tsic_idHolder = scan.nextInt();\n\t\tscan.nextLine();\n\t\tSystem.out.println(inventoryObject.displayBySICID(sic_idHolder));\n\t\tgetUserInfo();\n\t}",
"public String search(String GoodNum) {\n\t\tBillsDataService billsData;\n\t\ttry {\n\t\t\tbillsData=RMIHelper.getDataFactory().getBillsDataFactory().getNewSendingBillsData();\n\t\t\tif(!billsData.Used(GoodNum)){\n\t\t\t\treturn \"托运单号不存在\";\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}",
"public static FoundObject findByPrimaryKey(String number)\n\t\tthrows eu.strasbourg.service.objtp.exception.\n\t\t\tNoSuchFoundObjectException {\n\n\t\treturn getPersistence().findByPrimaryKey(number);\n\t}",
"public void findbyid() throws Exception {\n try {\n IPi_per_intDAO pi_per_intDAO = getPi_per_intDAO();\n List<Pi_per_intT> listTemp = pi_per_intDAO.getByPK(pi_per_intT);\n\n pi_per_intT = listTemp.size() > 0 ? listTemp.get(0) : new Pi_per_intT();\n\n } catch (Exception e) {\n easyLogger.error(e.getMessage(), e);\n setMsg(ERROR, \"Falha ao realizar consulta!\");\n } finally {\n close();\n }\n }",
"public void searchByAccount() {\n\t\t\n\t\tlog.log(Level.INFO, \"Please Enter the account number you want to search: \");\n\t\tint searchAccountNumber = scan.nextInt();\n\t\tbankop.search(searchAccountNumber);\n\n\t}",
"private void searchTV() {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] instanceof TV) {\r\n\t\t\t\tSystem.out.println(products[i].toString());\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"TV가 없습니다.\");\r\n\t}",
"public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }",
"public void displayRecord(String companyName) {\n try {\n RandomAccessFile din = new RandomAccessFile(this.databaseName + \".data\", \"rws\");\n RandomAccessFile oin = new RandomAccessFile(this.databaseName + \".overflow\", \"rws\");\n int record = this.binarySearch(din, companyName.trim().toUpperCase());\n String recordLocation = \"normal\";\n\n if (record == -1) {\n int numOverflowRecords = Integer.parseInt(getNumberOfRecords(\"overflow\"));\n\n for (int i = 0; i < numOverflowRecords; i++) {\n String overflowRecord = getRecord(\"overflow\", oin, i);\n String recordName = overflowRecord.substring(5,45);\n recordName = recordName.trim();\n\n if (companyName.toUpperCase().equals(recordName)) {\n record = i;\n recordLocation = \"overflow\";\n break;\n }\n }\n }\n\n //if company is found display the company\n if(record != -1){\n if (recordLocation.equals(\"normal\")) {\n record = binarySearchToFindClosest(companyName.trim().toUpperCase(), 0, Integer.parseInt(getNumberOfRecords(recordLocation)));\n System.out.println(HelperFunctions.displayReadableRecord(this.getRecord(\"normal\", din, record)));\n } else {\n System.out.println(HelperFunctions.displayReadableRecord(this.getRecord(\"overflow\", oin, record)));\n }\n } \n //if not, let the user know\n else {\n System.out.println(\"NOT FOUND\");\n }\n \n din.close();\n oin.close();\n \n\n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }",
"POGOProtos.Rpc.HoloPokemonId getPokedexId();",
"POGOProtos.Rpc.HoloPokemonId getPokedexId();",
"public void findContact(){\n EtecsaDB database = new EtecsaDB(this.getContext());\n if (!database.hasDatabase()){\n Toast.makeText(this.getContext(), R.string.no_database, Toast.LENGTH_SHORT).show();\n }\n else //buscar contacto\n new Search(this.getActivity()).execute(advancedSearch);\n }",
"public String search(String query){\n Receipt receipt = receipts.get(query);\n String message;\n if(receipt != null)\n message = receipt.toString();\n else\n message = \"Receipt not found.\";\n return message;\n }",
"public String find(String key) {\n\t\t\n\t\tsearchProbe = 0;\n\t\tint h = hash(key);\n\t\twhile(table[h]!=null) {\n\t\t\t\n\t\t\tif(table[h].toString().substring(0, 19).equals(key)) {\n\t\t\t\treturn table[h].toString();\n\t\t\t}\n\t\t\tsearchProbe++;\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\t\n\t\t\n\treturn \"Not Found\";\n\t}",
"public List<Map<String, String>> findSimilar(String number) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT DISTINCT \" +\n\t\t\t\" ?number ?name \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon1 pkm:nationalNumber \" + number + \". \" + \t// find first Pokemon with number\n\t\t\t\" ?pokemon1 pkm:type ?type1. \" +\n\t\t\t\" ?pokemon1 pkm:colour ?color1. \" +\n\t\t\t\" ?pokemon1 pkm:length ?height1. \" +\n\t\t\t\" ?pokemon1 pkm:weight ?weight1. \" +\n\t\t\t\" ?pokemon2 pkm:type ?type2. \" +\n\t\t\t\" ?pokemon2 pkm:colour ?color2. \" +\n\t\t\t\" ?pokemon2 pkm:length ?height2. \" +\n\t\t\t\" ?pokemon2 pkm:weight ?weight2. \" +\n\t\t\t\" ?pokemon2 pkm:nationalNumber ?number. \" +\n\t\t\t\" ?pokemon2 <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" FILTER (?pokemon2 != ?pokemon1) \" + // pokemon2 is different than pokemon 1\n\t\t\t\" FILTER (?weight2 < ?weight1 * 1.5) \" +\n\t\t\t\" FILTER (?weight2 > ?weight1 / 1.5) \" +\n\t\t\t\" FILTER (?height2 < ?height1 * 1.5) \" +\n\t\t\t\" FILTER (?height2 > ?height1 / 1.5) \" +\n\t\t\t\" FILTER (?color2 = ?color1 || ?type2 = ?type1) \" + // either color or type matches\n\t\t\t\"} \" +\n\t\t\t\"ORDER BY RAND() LIMIT 1\"; // return a random result\n\t\treturn runQuery(queryString);\n\t}",
"public void okFindITEM1()\n {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPQuery q;\n int headrowno;\n\n q = trans.addQuery(hse_safety_eque_ldger_1_blk);\n q.addWhereCondition(\"PROJ_NO = ? AND ID = ?\");\n q.addParameter(\"PROJ_NO\", headset.getValue(\"PROJ_NO\"));\n q.addParameter(\"ID\", headset.getValue(\"ID\"));\n q.includeMeta(\"ALL\");\n headrowno = headset.getCurrentRowNo();\n mgr.querySubmit(trans,hse_safety_eque_ldger_1_blk);\n headset.goTo(headrowno);\n }",
"public static void main(String[] args) {\n PhoneBook p1 = new PhoneBook();\r\n // Import scanner for user input \r\n Scanner scan_me = new Scanner(System.in);\r\n // Set the switch for the while loop to stop\r\n boolean on = true;\r\n // Set up the text interface for the user to see \r\n System.out.println(\"Welcome to the PhoneBook Program.\");\r\n System.out.println(\"Enter 1 to add a contact. \");\r\n System.out.println(\"Enter 2 to search for a contact. \");\r\n System.out.println(\"Enter 3 to change or delete an entry. \");\r\n System.out.println(\"Enter 4 to list all of the contacts. \");\r\n System.out.println(\"Enter 5 to close the program. \");\r\n // Begin while loop to run the program\r\n while(on){\r\n System.out.println();\r\n System.out.println(\"Awaiting user input... \");\r\n if(scan_me.hasNextInt()){int user_input = scan_me.nextInt();\r\n //Switch cases for the different user options\r\n switch(user_input){\r\n case 1:\r\n // Add a Contact to the List \r\n System.out.println(\"Enter the contact number. \");\r\n int number = scan_me.nextInt();\r\n scan_me.nextLine();\r\n System.out.println(\"Enter the contact name. \");\r\n String namer = scan_me.nextLine();\r\n //scan_me.next();\r\n //Create new Contact \r\n Contact newContact = new Contact(number,namer);\r\n //Add new contact to phonebook\r\n String key = newContact.Name;\r\n p1.put(key, number);\r\n //Show the user what they have done\r\n System.out.println(\"You have added \"+namer+\" to the Phonebook. Their number is \"+number+\".\"); \r\n break;\r\n case 2:\r\n // Search for a number by the persons name\r\n scan_me.nextLine();\r\n System.out.println(\"Enter persons name to be searched for: \");\r\n String Name_boi = scan_me.nextLine();\r\n System.out.print(Name_boi+\"'s number is \"+p1.getByName(Name_boi));\r\n System.out.println();\r\n break;\r\n case 3:\r\n // Change or delete a directory entry \r\n scan_me.nextLine();\r\n // Allow user to choose to change number or delete contact.\r\n System.out.println(\"Enter C to change a number or D to delete a contact: \");\r\n String choice = scan_me.next();\r\n if(choice.equals(\"C\")||choice.equals(\"c\")){\r\n scan_me.nextLine();\r\n System.out.println(\"Enter persons name to be updated: \");\r\n String old_name = scan_me.nextLine();\r\n System.out.println(\"Enter new number: \");\r\n int new_num = scan_me.nextInt();\r\n p1.replace(old_name,new_num);\r\n System.out.println(old_name+\"'s number has been changed to \"+new_num+\".\");\r\n }\r\n else if(choice.equals(\"D\")||choice.equals(\"d\")){\r\n scan_me.nextLine();\r\n System.out.println(\"Enter persons name to be deleted: \");\r\n String deleted_name = scan_me.nextLine();\r\n String namest = deleted_name;\r\n p1.remove(deleted_name);\r\n System.out.print(\"You have removed the contact \"+namest+\".\");\r\n System.out.println();\r\n }\r\n break;\r\n case 4:\r\n // List all contacts \r\n Iterator it = p1.entrySet().iterator();\r\n // create an iterator to move through your mappings\r\n System.out.println(\"All of the Phonebook contacts are as follows: \");\r\n while(it.hasNext()){\r\n Map.Entry pair = (Map.Entry)it.next();\r\n // define the key and value for each iteration advancement\r\n System.out.println(pair.getKey() + \" = \" + pair.getValue());\r\n // print out the key and value for each value in the hashmap\r\n }\r\n break;\r\n case 5:\r\n // Close the program \r\n on = false;\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public void LookupPatient(View v){\n\t\tEditText HealthCardNum = (EditText) findViewById(R.id.p_HID);\n\t\tString healthcard_ID = HealthCardNum.getText().toString();\n\t\n\t\t//check the empty case of edittext\n\t\tif (healthcard_ID.length() == 0){\n\t\t\tMissHCNBox(v);\n\t\t}else if(! physician.HavePatient(healthcard_ID)){\n\t\t\t//if the input health card number does not exist\n\t\t\tPatientNoExist(v);\n\t\t}else{\n\t\t\t\n\t\t\tpatient = physician.getByHealthCard(healthcard_ID);\n\t\t\t//item will be passed to alert box to display the successful work\n\t\t\titem = patient.getName() + \" \" + healthcard_ID;\n\t\t\t\n\t\t\t//show the layout and display the information for user\n\t\t\tprescriptionlayout.setVisibility(View.VISIBLE);\n\t\t\tpatientinfodisplay.setVisibility(View.VISIBLE);\n\t\t\t\n\t\t\t//get target patient's information and display\n\t\t\tString display = patient.showInfo();\n\t\t\tviewdisplay.setText(display);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Name: \" + name + \", Short name: \" + shortName + \", WKN: \" + wkn);\r\n\t\tif(share == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Entry has no data yet. If you want to update the data use the 'IMPORT' function\\n\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\tshare.print();\r\n\t\t}\r\n\t}",
"public static Book find(String callNum) {\r\n\t\t \treturn books.get(callNum);\r\n\t\t}",
"public List<Map<String, String>> searchByName(String name) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" +\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" +\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(?name, \\\"\" + name + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?name LIMIT 10\"; // return 10 results ordered by name\n\t\treturn runQuery(queryString);\n\t}",
"private void displayByTitle() {\n\t\tString titleHolder; // declares titleHolder\n\t\t\n\t\tSystem.out.println(\"Please enter title of the book you would like displayed:\");\n\t\ttitleHolder = scan.next();\n\t\tscan.nextLine();\n\t\tSystem.out.println(inventoryObject.displayByTitle(titleHolder));\n\t\tgetUserInfo();\n\t}",
"@Listen(\"onClick=#findEntryButton\")\n public void findEntryButtonOnClick(){\n String stringToFind = findFieldTextbox.getValue();\n List<Entry> entries;\n if (stringToFind.isEmpty()){\n entries = DAO.getAllEntryEntities();\n } else {\n entries = DAO.findEntities(stringToFind);\n }\n\n Listbox listbox = (Listbox) phonePageWindow.getFellow(\"entriesListbox\", true);\n ListboxComposer composer = (ListboxComposer) listbox.getAttribute(\"$composer\");\n composer.refreshModel(entries);\n }",
"public static void main (String[] args) {\n\t\t\n\t\tint[] array = new int[] {2, 4, 1, 6, 5, 40, -1};\n\t\tint[] result = search(array);\n\t\t\n\t\tif (result != null) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tSystem.out.println(result[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No results found\");\n\t\t}\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n\t\tScanner keyboard= new Scanner(System.in);\n\t\t\n\t\t//creation of variables to manage user input\n\t\tboolean loop=true;\n\t\tchar operation;\n\t\tString first, last, phone;\n\t\tint position, amtLookups=0, amtReverseLookups=0;\n\t\tPhonebook[] phonebook= new Phonebook[100];\n\t\tint size = 0;\n\t\ttry {\n\t\t\tsize = open(phonebook);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\twhile(loop) \n\t\t{\n\t\t\tSystem.out.println(\"lookup, reverse-lookup, quit?(l/r/q/)\");\n\t\t\toperation=keyboard.next().charAt(0); //returns the char at string's O\n\t\t\tswitch(operation)\n\t\t\t{\n\t\t\tcase 'L':\n\t\t\tcase 'l':\n\t\t\t\tSystem.out.println(\"last name?\");\n\t\t\t\tlast=keyboard.next();\n\t\t\t\tSystem.out.println(\"first name?\");\n\t\t\t\tfirst=keyboard.next();\n\t\t\t\tposition=lookup(first,last,phonebook,size);\n\t\t\t\tif(position!=-1) {\n\t\t\t\t\tSystem.out.println(phonebook[position].getName()+\"\\'s phone number is \"+phonebook[position].getPhone());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"-- Name not found\");\n\t\t\t\t}\n\t\t\t\tamtLookups++;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'R':\n\t\t\tcase 'r':\n\t\t\t\tSystem.out.println(\"phone number (nnn-nnn-nnnn)?\");\n\t\t\t\tphone=keyboard.next();\n\t\t\t\tposition=reverseLookup(phone,phonebook,size);\n\t\t\t\tif(position!=-1) {\n\t\t\t\t\tSystem.out.println(phonebook[position].getPhone()+\" belongs to \"+phonebook[position].getName());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"-- Phone number not found\");\n\t\t\t\t}\n\t\t\t\tamtReverseLookups++;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'Q':\n\t\t\tcase 'q':\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(amtLookups+\" lookups performed\");\n\t\t\t\tSystem.out.println(amtReverseLookups+\" reverse lookups performed\");\n\t\t\t\tloop=false;// ends the loop, allows program to stop running.\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//catch invalid input\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error 404: Wrong input detected.\");\n\t\t\t\tSystem.out.println(operation+ \" is Invalid Input.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tkeyboard.close();\t\n}",
"public PhoneBookEntry getEntry(String name) throws NotPresentException {\n\t\tString key = name.toUpperCase();\n\t\trequireKeyExists(key);\n\t\treturn entries.get(key);\n\t}",
"private String getLabel(int address) {\n int key = Arrays.binarySearch(addresses, address);\n if (key >= 0) {\n return \"(\" + symbols[key] + \")\";\n }\n return \"\";\n }",
"public T getEntry(int givenPosition);",
"private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }",
"public String searchByIndex(int index){\n if(hashMap.containsKey(index))\n return hashMap.get(index).toString();\n else\n return \"Cannot Find index given\";\n }",
"public void searchAndWriteQueryResultsToOutput() {\n\n List<String> queryList = fu.textFileToList(QUERY_FILE_PATH);\n\n for (int queryID = 0; queryID < queryList.size(); queryID++) {\n String query = queryList.get(queryID);\n // ===================================================\n // 4. Sort the documents by the BM25 scores.\n // ===================================================\n HashMap<String, Double> docScore = search(query);\n List<Map.Entry<String, Double>> rankedDocList =\n new LinkedList<Map.Entry<String, Double>>(docScore.entrySet());\n Collections.sort(rankedDocList, new MapComparatorByValues());\n\n // ===================================================\n // 5. Write Query Results to output\n // =================================================== \n String outputFilePath =\n RANKING_RESULTS_PATH + \"queryID_\" + (queryID + 1) + \".txt\";\n StringBuilder toOutput = new StringBuilder();\n // display results in console\n System.out.println(\"Found \" + docScore.size() + \" hits.\");\n int i = 0;\n for (Entry<String, Double> scoreEntry : rankedDocList) {\n if (i >= NUM_OF_RESULTS_TO_RETURN)\n break;\n String docId = scoreEntry.getKey();\n Double score = scoreEntry.getValue();\n String resultLine =\n (queryID + 1) + \" Q0 \" + docId + \" \" + (i + 1) + \" \" + score + \" BM25\";\n toOutput.append(resultLine);\n toOutput.append(System.getProperty(\"line.separator\"));\n System.out.println(resultLine);\n i++;\n }\n fu.writeStringToFile(toOutput.toString(), outputFilePath);\n }\n }",
"public String printInfo()\r\n {\r\n String info;\r\n \r\n info = \"Inputed number = \" + mark;\r\n \r\n return info;\r\n }",
"void detallePokemon(){\n System.out.println(numero+\" - \"+nombre);\n }",
"public static void main(String[] args) {\n Inventory inventory = new Inventory();\n initializeInventory(inventory);\n\n GuitarSpec test = \n new GuitarSpec(\"b\", \"b\", \"b\", \"b\");\n List matchingGuitars = inventory.search(test);\n if (!matchingGuitars.isEmpty()) {\n System.out.println(\"搜索结果----\");\n for (Iterator i = matchingGuitars.iterator(); i.hasNext(); ) {\n Guitar guitar = (Guitar)i.next();\n GuitarSpec spec = guitar.getSpec();\n System.out.println(\"你搜索的这款吉他:品牌为\" +spec.getBuilder() + \"--型号为\" + spec.getModel() + \"--类型为\" +\n spec.getType() + \"--材质为\" +spec.getWood() + \"--价格为¥\" +\n guitar.getPrice()+\"--ID为\"+guitar.getID());\n }\n } else {\n System.out.println(\"Sorry, 我们没有这一款吉他.\");\n }\n }",
"private void inspectItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"The item is: \" + itemFound.getTitle());\n System.out.println(\"Description of the item: \" + itemFound.getDescription());\n System.out.println(\"Item Weight: \" + itemFound.getWeight());\n System.out.println(\"Room item was found in: \" + itemFound.getLocation().getTitle());\n }\n }",
"public static void main(String[] args)\n\t{\n\t\tMapTester myContacts = new MapTester();\n\t\t\n\t\t// add some entries\n\t\tmyContacts.enterNumber(\"Richard Stallman\", \"1234567890\");\n\t\tmyContacts.enterNumber(\"Donald Ervin Knuth\", \"1123581321\");\n\t\t\n\t\t// lookup for the numbers\n\t\tSystem.out.println(myContacts.lookupNumber(\"Richard Stallman\"));\n\t\tSystem.out.println(myContacts.lookupNumber(\"Donald Ervin Knuth\"));\n\t\t\n\t\tif(myContacts.checkForKey(\"Richard Stallman\")){\n\t\t\tSystem.out.println(\"Yep, he's in your phonebook!\");\n\t\t} else{\n\t\t\tSystem.out.println(\"Nope, he's not in your phonebook!\");\n\t\t}\n\t}",
"void FindLstn (int boardID, short[] addrlist, short[] results, int limit);",
"public static void main(String[] args) {\n\t\tint arr[] = {4, 5, 6, 7, 8, 9, 1, 2, 3};\n int n = arr.length;\n int key = 6;\n \n int i = search(arr, 0, n-1, key);\n if (i != -1) \n System.out.println(\"Index: \" + i);\n else\n System.out.println(\"Key not found\");\n\t}",
"private void handleSearchPoiResult(MKPoiResult mkPoiResult) {\n if (mkPoiResult.getCurrentNumPois() > 0) {\n // Display all the poi points\n SearchPoiOverlay overlay = new SearchPoiOverlay(getActivity(),\n mMapView, mSearch);\n overlay.setData(mkPoiResult.getAllPoi());\n Bundle bundle = new Bundle();\n bundle.putString(CheckinActivity.KEY_POI_PROVINCE, mProvince);\n overlay.setExtra(bundle);\n // Clear old overlays and add new\n mMapView.getOverlays().clear();\n mMapView.getOverlays().add(overlay);\n mMapView.refresh();\n\n // Move to the first not null info\n List<MKPoiInfo> infoList = mkPoiResult.getAllPoi();\n for (MKPoiInfo info : infoList) {\n // info.pt is null when info.ePoiType == 2 or 4\n if (info.pt != null) {\n mMapView.getController().animateTo(info.pt);\n break;\n }\n }\n// // The typed poi is found in other cities rather than this\n } else if (mkPoiResult.getCityListNum() > 0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Found in \");\n for (int i = 0, sz = mkPoiResult.getCityListNum(); i < sz; i++) {\n sb.append(mkPoiResult.getCityListInfo(i).city);\n sb.append(\" \");\n }\n // TODO: make it more elegant\n Toast.makeText(getActivity(), sb.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"public void searchPerson() {\r\n\r\n\t/*get values from text filed*/\r\n\tname = tfName.getText();\r\n\r\n\t/*clear contents of arraylist if there are any from previous search*/\r\n\tpersonsList.clear();\r\n\r\n // intialize recordNumber to zero\r\n\trecordNumber = 0;\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to search.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*get an array list of searched persons using PersonDAO*/\r\n\t\tpersonsList = pDAO.searchPerson(name);\r\n\r\n\t\tif(personsList.size() == 0)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No record found.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/*downcast the object from array list to PersonInfo*/\r\n\t\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\t\ttfName.setText(person.getName());\r\n\t\t\ttfAddress.setText(person.getAddress());\r\n\t\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\t\ttfEmail.setText(person.getEmail());\r\n\t\t}\r\n\t}\r\n\r\n }",
"public void getATitle() {\n System.out.println(\"Give any title: \");\n String key = input.next();\n for (Card s: cards) {\n if (s.titleOfBook.equals(key)) {\n System.out.println(s.titleOfBook + \" \" + s.autherOfBook + \" \" + s.subjectOfBook);\n } \n }\n System.out.println(\"not Found\");\n }",
"public void search() {\n boolean validate = true;\n code = \"\";\n Node<Product> p = null;\n System.out.print(\"Product code to search: \");\n while (validate) {\n code = s.nextLine();\n if (Validation.validateString(code)) {\n p = tree.search(code);\n validate = false;\n } else {\n System.err.println(\"Code must be required!\");\n System.err.print(\"Enter product code again: \");\n\n }\n }\n if (p != null) {\n System.out.println(\"Information of product code \" + p.info.getCode());\n tree.visit(p);\n } else {\n System.err.println(\"The product code \" + code + \" is not exist!\");\n }\n }",
"public EmployeeInfo searchFromTable(int employeeNum){\r\n \r\n int targetBucket = calcBucket(employeeNum);\r\n \r\n\t\tfor(int i = 0 ; i < buckets[targetBucket].size(); i++) {\r\n\t\t\tif (buckets[targetBucket].get(i).getEmpNum() == employeeNum) {\r\n EmployeeInfo locatedEmployee = buckets[targetBucket].get(i);\r\n return locatedEmployee;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n \r\n }",
"static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}",
"public void findHouse() {\n\t\tSystem.out.println(\"找房子\");\n\t}",
"public static void main(String[] args) {\n Inventory inventory = new Inventory();\n DB.initializeInventory(inventory);\n\n Map properties = new HashMap();\n \n Scanner scan = new Scanner(System.in);\t\n \n properties.put(\"builder\", Builder.GIBSON);\n properties.put(\"backWood\", Wood.MAPLE);\n InstrumentSpec whatBryanLikes = new InstrumentSpec(properties);\n\n List matchingInstruments = inventory.search(whatBryanLikes);\n \n if (!matchingInstruments.isEmpty()) {\n System.out.println(\"Mister, you might like these instruments:\");\n for (Iterator i = matchingInstruments.iterator(); i.hasNext(); ) {\n Instrument instrument = (Instrument)i.next();\n InstrumentSpec spec = instrument.getSpec();\n System.out.println(\"We have a \" + spec.getProperty(\"instrumentType\") +\n \" with the following properties:\");\n for (Iterator j = spec.getProperties().keySet().iterator(); \n j.hasNext(); ) {\n String propertyName = (String)j.next();\n if (propertyName.equals(\"instrumentType\"))\n continue;\n System.out.println(\" \" + propertyName + \": \" +\n spec.getProperty(propertyName));\n } \n System.out.println(\" You can have this \" + \n spec.getProperty(\"instrumentType\") + \" for $\" + \n instrument.getPrice() + \"\\n---\");\n }\n } else {\n System.out.println(\"Sorry, Bryan, we have nothing for you.\");\n }\n }",
"private void searchDisplay()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------ Search Menu ----------------\");\r\n System.out.println(\"(1) By Registration Number\");\r\n System.out.println(\"(2) By Car Make and Car Model\");\r\n System.out.println(\"(3) By Age\");\r\n System.out.println(\"(4) By Price (range)\");\r\n System.out.println(\"(5) Back to Main Menu\");\r\n }",
"private void printSearchToolNameMenu(Shop shop) {\n System.out.println(\"What is the name of the tool you would like to look up?\");\n String toolName = this.userInput.nextLine();\n if (shop.searchInventory(toolName.toLowerCase())) {\n System.out.println(toolName + \" is in the shop.\");\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }",
"public static void main(String[] args) {\n\t\tHashMap<String, String> hp =new HashMap<String, String>();\r\n\t\thp.put(\"2\",\"abc\");\r\n\t\thp.put(\"3\", \"def\");\r\n\t\thp.put(\"4\", \"ghi\");\r\n\t\thp.put(\"5\", \"jkl\");\r\n\t\thp.put(\"6\",\"mno\");\r\n\t\thp.put(\"7\", \"pqrs\");\r\n\t\thp.put(\"8\", \"tuv\");\r\n\t\thp.put(\"9\", \"wxyz\");\r\n\t\tScanner sf = new Scanner(System.in);\r\n\t\tString num = sf.next();\r\n\t\tArrayList<String> al = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < num.length(); i++) {\r\n\t\t\t\r\n\t\t}\r\n\t\tfinder1(num,hp,al);\r\n\t\tfor (int i = 0; i < al.size(); i++) {\r\n\t\t\r\n\t\t\tSystem.out.println(al.get(i));}\r\n\t\t\r\n\t\tsf.close();\r\n\t}",
"private String numberToString(String num, Context ctx){\n\t\t\tUri contactUri = Uri.withAppendedPath(\t\t\t\t// URI for the ContactsContract\n\t\t\t\t\tContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(num));\t\t\t\n\t\t\tCursor cursor = ctx.getContentResolver().query(\t\t// cursor for traversing\n\t\t\t\t\tcontactUri, new String[]{ContactsContract.PhoneLookup.DISPLAY_NAME}, \n\t\t\t\t\tnull, null, null);\n\t\t\t// if there is a cursor with soethign in it\n\t\t\tif(cursor.moveToFirst())\n\t\t\t\tif(!cursor.isAfterLast())\n\t\t\t\t\treturn cursor.getString(cursor.getColumnIndex(ContactsContract.PhoneLookup.DISPLAY_NAME));\t// retunr the name\n\t\t\treturn null;\n\t\t}",
"public CommandResult execute() {\n int i = 0;\n int found = 0;\n for (Task task : Duke.taskList) {\n i++;\n if (task.description.contains(keyword)) {\n System.out.println(i + \".[\" + task.getTaskID() + \"]\" +\n \"[\" + task.getStatusIcon() +\n \"] \" + task.description + \" \" + task.getDate());\n found++;\n }\n }\n if (found == 0) {\n return new CommandResult(\"No results found :(\");\n } else {\n return new CommandResult(System.lineSeparator() + found + \" results found!\");\n }\n }",
"public Pokemon(String name, int number) {\r\n this.name = name;\r\n this.number = number;\r\n }",
"public static void main(String[] args) {\n\t\tFindNearestNum fnn = new FindNearestNum();\r\n\t\tSystem.out.println(fnn.findNearestNumber(\"52413\"));\r\n\t}",
"public static void main(String[] args){\n\t\tArrayList<Pets> petList = new ArrayList<Pets>();\n\t\tpetList.add(new Pets(\"Dog\", \"Ace\", 5)); // initializes objects with properties: species=\"Dog\",name=\"Ace\", and ID=5.\n\t\tpetList.add(new Pets(\"Cat\", \"Betty\", 8));\n\t\tpetList.add(new Pets(\"Snake\", \"Creepy\", 4));\n\t\tpetList.add(new Pets(\"Bird\", \"Diana\", 6));\n\t\tpetList.add(new Pets(\"Ant\", \"Elaine\", 1));\n\t\t\n\t\t// sort the list by the desired attribute, in this case by ID.\n\t\tArrayList<Pets> sortedPets = sortArrayList(petList);\n\t\t\n\t\t// prints list of pets\n\t\tfor (int j = 0; j < petList.size(); j++) {\n\t\t\tSystem.out.println(sortedPets.get(j));\n\t\t}\n\t\t\n\t\t// prints out results using the iterative binary search.\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i<=8; i++){\n\t\t\tSystem.out.println(\"The pet with id:\"+i+\" is at index \"+iterativeBinarySearch(sortedPets,i));\n\t\t}\n\n\t\t// prints out results using the recursive binary search.\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i<=8; i++){\n\t\t\tSystem.out.println(\"The pet with id:\"+i+\" is at index \"+ recursiveBinarySearch(sortedPets,i, 0, sortedPets.size()-1));\n\t\t}\n\t\n\t}",
"public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }",
"private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}",
"public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint [][] input = {\r\n\t\t\t\t{1,2,3},\r\n\t\t\t\t{4,5,6},\r\n\t\t\t\t{7,8,9}\t\t\t\t\r\n\t\t};\r\n\t\tSystem.out.println(Find(input,13));\r\n\r\n\t}",
"public int find(int p) {\r\n return id[p];\r\n }"
]
| [
"0.6366916",
"0.58567053",
"0.58319247",
"0.5658806",
"0.5609068",
"0.55580115",
"0.5503341",
"0.5487861",
"0.5445751",
"0.5344605",
"0.52897185",
"0.52390224",
"0.52149206",
"0.5188234",
"0.51590073",
"0.51529413",
"0.51093704",
"0.5102075",
"0.5055341",
"0.50224197",
"0.502058",
"0.50174177",
"0.5001003",
"0.4997873",
"0.49784845",
"0.49719873",
"0.49527383",
"0.49457482",
"0.49418706",
"0.49349236",
"0.49264604",
"0.49187067",
"0.49181205",
"0.49161646",
"0.48901096",
"0.48825416",
"0.4880837",
"0.48704937",
"0.485124",
"0.4849665",
"0.48486376",
"0.4844772",
"0.48335785",
"0.48283798",
"0.48188794",
"0.4813754",
"0.48127162",
"0.48106772",
"0.48085326",
"0.47947973",
"0.4788233",
"0.4788233",
"0.477592",
"0.47757834",
"0.47741643",
"0.47706285",
"0.47632435",
"0.47620475",
"0.47547376",
"0.4745206",
"0.4744562",
"0.4728803",
"0.4728258",
"0.4728114",
"0.47271183",
"0.4723938",
"0.47140303",
"0.4712736",
"0.47077975",
"0.47020265",
"0.46990752",
"0.46986985",
"0.46965623",
"0.4694714",
"0.46923205",
"0.4687442",
"0.46862108",
"0.4682927",
"0.46820918",
"0.46807277",
"0.46765134",
"0.46761087",
"0.46745127",
"0.46665293",
"0.46604332",
"0.46486086",
"0.4646539",
"0.46325767",
"0.4628747",
"0.46283478",
"0.46221152",
"0.46190286",
"0.46141493",
"0.45952767",
"0.4593837",
"0.4588302",
"0.45836112",
"0.45798728",
"0.45757127",
"0.4570454"
]
| 0.69174486 | 0 |
Finds all of the entries under a specific type and prints out all their information. | public void findByType(String type)
{
boolean found = false;
for(KantoDex entry : entries)
{
if(entry.getTypes1().contains(type) && !type.equals(""))
{
found = true;
}
}
if(!found)
{
System.out.println("You have input a nonexistent type, or the type was not applicable to this entry.");
}
else
{
System.out.println("All Pokedex entries of type " + type + ":");
for(KantoDex entry : entries)
{
if(entry.getType1().equals(type) || entry.getType2().equals(type))
{
entry.display();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"private static void printArticlesByType(List<Article> articles) {\n\t\tMap<String,List<Article>> catMap= articles.stream().collect(Collectors.groupingBy(p->p.getType()));\r\n\t\tSet<String> keys=catMap.keySet();\r\n\t\tfor (String string : keys) {\r\n\t\t\t//List<Article> a = catMap.get(string);\r\n\t\t\tSystem.out.println(string+\":\"+catMap.get(string).size());\r\n\t\t}\r\n\t}",
"@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}",
"public void logAllPossibleKeysWithType() {\n log.info(\"Log all possible keys with type:\");\n Map<String, Class> keysWithType = context.entrySet().stream()\n .collect(toMap(Entry::getKey, entry -> entry.getValue().getClass()));\n log.info(mapToString(keysWithType));\n }",
"private void printCommonList(String type, List<Entry<String, Integer>> list) {\r\n System.out.println(type + \": \");\r\n if (list.isEmpty()) {\r\n System.out.println(\"Nothing common found.\");\r\n } else {\r\n list.stream().forEach((entry) -> {\r\n System.out.println(entry.getKey() + \" - \" + entry.getValue());\r\n });\r\n }\r\n System.out.println();\r\n }",
"public List<Type> getAll();",
"private void printFieldTypes() throws LanguageException {\n\t\tprinter.firstItem = true;\n\t\tprintFieldTypesForClasses(printer.getClasses());\n\t\tprintFieldTypesForClasses(printer.getInterfaces());\n\t}",
"private void printList(String type) {\n switch(type) {\n case \"unordered\":\n System.out.println(\"Printing unordered list\");\n\n Iterator<PlanarShape> unorderedListIterator = unorderedList.iterator();\n\n while(unorderedListIterator.hasNext()) {\n System.out.println(\"\\t\" + unorderedListIterator.next());\n }\n\n break;\n case \"ordered\":\n System.out.println(\"Printing ordered list\");\n\n Iterator<PlanarShape> orderedListIterator = orderedList.iterator();\n\n while(orderedListIterator.hasNext()) {\n System.out.println(\"\\t\" + orderedListIterator.next());\n }\n\n break;\n default: break;\n }\n }",
"public static void main(String[] args) {\n for (FamilyType type : FamilyType.values()) {\n System.out.println(\"Current Type: \" + type);\n ArrayList<String> names = RunXilinxTools.getPartNames(type.toString().toLowerCase(), false);\n if (names == null) continue;\n for (String name : names) {\n System.out.println(\" \" + name + \" \" + getExactFamilyTypeFromPart(name));\n }\n }\n\n String[] testPartNames = {\"xs6slx4ltqg144\", \"xs6slx4tqg144\",\n \"xc7v285tffg484\", \"xc7vh290tffg1155\", \"xc7k30tsbg324\", \"xc7a20cpg236\", \"xc7a175tcsg324\",\n \"xq7v285tffg484\", \"xq7vh290tffg1155\", \"xq7k30tsbg324\", \"xq7a20cpg236\", \"xq7a175tcsg324\",\n \"xqr7v285tffg484\", \"xqr7vh290tffg1155\"};\n for (String name : testPartNames) {\n System.out.println(\" \" + name + \" \" + getExactFamilyTypeFromPart(name));\n }\n }",
"public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }",
"private void printTable(String type){\n\t\tSystem.out.println(\"\\n\\t\\t\\t\\t \" + type + \" Probing Analysis (Table size = \" + tableSize + \")\");\n\t\tSystem.out.println(\"\\t\\t ----- Inserts ------ ----------- Probes ---------- --------- Clusters ---------\");\n\t\tSystem.out.printf(\"%5s %10s %10s %10s %10s %10s %10s %10s %10s %10s\\n\", \n\t\t\t\t\"N\", \"lambda\", \"success\", \"failed\", \"total\", \"avg\", \"max\", \"number\", \"avg\", \"max\");\n\t}",
"@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}",
"List<ReportType> findTypes();",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic void print() {\r\n\t\tSystem.out.println(\"** Metadata **\");\r\n\t\tfor (final Map<String, Object> m : _data) {\r\n\t\t\tSystem.out.println(\" + ALBUM\");\r\n\t\t\tfor (final String key : m.keySet()) {\r\n\t\t\t\tfinal Object o = m.get(key);\r\n\r\n\t\t\t\t// Most stuff is string, we can just dump that out.\r\n\t\t\t\tif (o instanceof String) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \": \" + (String) o);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (o instanceof ArrayList) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \":\");\r\n\t\t\t\t\tfor (final Object oo : (ArrayList<GracenoteMetadataOET>) o) {\r\n\t\t\t\t\t\tif (oo instanceof GracenoteMetadataOET) {\r\n\t\t\t\t\t\t\tfinal GracenoteMetadataOET oet = (GracenoteMetadataOET) oo;\r\n\t\t\t\t\t\t\toet.print();\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\t}",
"<T> void lookupAll(Class<T> type, Collection<T> out);",
"public List findRecords(String informationType, String queryString) throws DatabaseException;",
"public void showProperties(Class type);",
"public List<SecTyp> getAllTypes();",
"public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}",
"private String findMappedPrinter(String type) {\n logger.trace(\"findMappedPrinter::\" + type);\n return settingService.getSetting().getPrinters().get(type);\n }",
"public static void printStructure(Class<?> someClass) {\n ClassVisitorUtils.Visitor visitor = new ClassVisitorUtils.Visitor();\n List<String> list = visitor.visit(someClass, true);\n for (String s : list) {\n System.out.println(s);\n }\n }",
"public void printToScreen() {\n String type = \"\";\n switch (this.type) {\n case 1:\n type = \"Fashion\";\n break;\n case 2:\n type = \"Electronic\";\n break;\n case 3:\n type = \"Consumable\";\n break;\n case 4:\n type = \"Household appliance\";\n break;\n }\n// System.out.println(\"Type : \" + type);\n System.out.printf(\"%6d%15s%6f%20s\\n\", id, name, price, type);\n }",
"public void print(){\n for(Recipe r : recipes){\n System.out.println(r.toString());\n }\n }",
"@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}",
"@Override\n\tpublic List<Food> findFood(int typeid) {\n\t\treturn fb.findFood(typeid);\n\t}",
"private void searchTV() {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] instanceof TV) {\r\n\t\t\t\tSystem.out.println(products[i].toString());\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"TV가 없습니다.\");\r\n\t}",
"private static void types() {\n\t\ttry {\n\t\t\tScanner handicaps = new Scanner(new FileInputStream(\"handicaps.txt\"));\n\t\t\tSystem.out.println(\"\\nAvailable Boat Types\");\n\t\t\tSystem.out.println(\"--------------------\");\n\t\t\twhile(handicaps.hasNextLine()) {\n\t\t\t\tSystem.out.println(handicaps.nextLine().split(\":\")[0]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\thandicaps.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"\\n\\nSEVERE ERROR: CRUCIAL FILE HANDICAPS.TXT NOT FOUND\\n\\n\");\n\t\t\tSystem.err.println(\"Attempting to re-create file....\");\n\t\t\tgenerateHandicaps();\n\t\t\tSystem.err.println(\"Success!\\nTry command again.\\n\");\n\t\t}\n\n\t}",
"private static void ListAnimalByType() {\n\t\t\n\t\tshowMessage(\"Choose one type to list:\\n\");\n showMessage(\"1 - Dog\");\n showMessage(\"2 - Cat\");\n showMessage(\"3 - Bird\");\n showMessage(\"4 - Hamster\");\n showMessage(\"5 - Rabbit\");\n showMessage(\"6 - Back to previous menu.\");\n \n int option = getUserAnimalByType();\n /** switch case option start below */\n\t\tswitch (option){\n\n case 1 : ToScreen.listAnimal(animals.getDogList(), true); ListAnimalByType();\n break;\n case 2 : ToScreen.listAnimal(animals.getCatList(), true); ListAnimalByType();\n break;\n case 3 : ToScreen.listAnimal(animals.getBirdList(), true); ListAnimalByType();\n \tbreak;\n case 4 : ToScreen.listAnimal(animals.getHamsterList(), true); ListAnimalByType();\n \tbreak;\n case 5 : ToScreen.listAnimal(animals.getRabbitList(), true); ListAnimalByType();\n \tbreak;\n case 6 : main();\n \tbreak;\n \n default: ListAnimalByType();\n\n\t\t}\n\t\t\n\t}",
"private void printFieldTypes(Enumeration e) throws LanguageException {\n\t\twhile (e.hasMoreElements()) {\n\t\t\tAField f = (AField) e.nextElement();\n\t\t\tprintFieldType(f);\n\t\t}\n\t}",
"public void listEntries() {\n\t\t// Get the entries as a linked list\n\t\tLinkedList<BookEntry> entries = new LinkedList<>(phoneBook.values());\n\t\tCollections.sort(entries); // Sort the entries\n\n\t\tfor (BookEntry entry : entries) {\n\t\t\tSystem.out.println(\"Name = \" + entry.getPerson());\n\t\t\tSystem.out.printf(\"Number =(%s) %s%n\", entry.getNumber().getAreaCode(), entry.getNumber().getPhoneNumberNotAreaCode());\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"private static void printAll(Class cls, PersistenceManager pm) {\n Extent extent = pm.getExtent(cls, true);\n Iterator itr = extent.iterator();\n printCollection(\"All \" + cls.getName() + \" instances:\", itr);\n extent.close(itr);\n }",
"public void printInfo() throws IOException {\n System.out.println();\n System.out.println(\"* Current books in the database.\\n\");\n for(Book book :bookdatabase){\n System.out.println(book.getTitle());\n }\n System.out.println();\n System.out.println(\"* Current students in the database.\\n\");\n for(Student student :studentdatabase){\n System.out.println(student.getUsername());\n }\n System.out.println();\n System.out.println(\"* Current librarians in the database.\\n\");\n for(Librarian l :lib_db){\n System.out.println(l.getUsername());\n }\n\n\n\n }",
"public static void main(String[] args) {\n List<Pokemon> pokemons = CRUD.findAllPokemons();\n for(Pokemon pokemon:pokemons){\n System.out.println(\"Name:\"+pokemon.getName());\n System.out.println(\"Level:\"+pokemon.getLevel());\n System.out.println(\"Types:\");\n for(Type t:pokemon.getTypes()){\n System.out.println(t.getName());\n }\n System.out.println(\"---Evolutions---:\");\n for(Evolution e:pokemon.getEvolutions()){\n System.out.println(\"Evolution's Name:\"+e.getName());\n System.out.println(\"Required Level:\"+e.getRequiredLevel());\n System.out.println(\"Evolution's Types:\");\n for(Type t:e.getTypes()){\n System.out.println(t.getName());\n }\n }\n System.out.println(\"================================\");\n }\n\n }",
"void printPlaceArtifacts()\r\n\t{\r\n\t\tfor( Map.Entry <String, Artifact> entry : artPlace.entrySet()) \r\n\t\t{\r\n\t\t\t String key = entry.getKey();\r\n\t\t\t Artifact value = entry.getValue();\r\n\t\t\t \r\n\t\t\t // System.out.println(\"Place Name: \" + this.name());\r\n\t\t\t \r\n\t\t\t System.out.println(\" Artifact Name----->\" + value.getName());\r\n\t\t\t System.out.println(\"Size-----> \" + value.getSize());\r\n\t\t\t System.out.println(\"Value-----> \" + value.getValue() + \" \\n\");\t\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic String print() {\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (Entry k : array[i]) {\r\n\t\t\t\tSystem.out.println(k.name + \"\\t\" + k.initials + \"\\t\" + k.extension + \"\\n\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }",
"<T> Set<T> lookupAll(Class<T> type);",
"private TreeObject find(String name, int type) {\n\t return widgetRoots[type - 1].find(name);\n\t}",
"@Override\r\n\tpublic List<AsxDataVO> findByType(int type) {\n\t\treturn mongoTemplate.find(new Query(Criteria.where(\"type\").is(type)), AsxDataVO.class);\r\n\t}",
"ResultSet searchType(String type) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * \"\n \t\t\t+ \"FROM Pokemon AS P, Types AS T \"\n \t\t\t+ \"WHERE (P.Type1=T.TypeID OR P.Type2 = T.TypeID) AND \"\n \t\t\t+ \"T.name = \" + \"'\" + type + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }",
"@Test\n\tpublic void findTypeList() {\n\t}",
"@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}",
"public static void print(TreeMap tm) {\n\t Set<Entry<String, Integer>> set = tm.entrySet();\n\t Iterator iterator = set.iterator();\n\t while(iterator.hasNext()) {\n\t Map.Entry mentry = (Map.Entry)iterator.next();\n\t System.out.println(mentry.getKey().getClass());\n\t if (mentry.getKey() instanceof sampleObject) {\n\t \t System.out.print(\"key is: \"+ ((sampleObject)mentry.getKey()).id + \"--\" +\n\t \t\t\t ((sampleObject)mentry.getKey()).username + \" & Value is: \");\n\t }else{\n\t \t System.out.print(\"key is: \"+ mentry.getKey() + \" & Value is: \");\n\t }\n\t System.out.println(mentry.getValue());\n\t }\n\t}",
"private void printFieldTypesForClasses(Enumeration e)\n\t\tthrows LanguageException {\n\t\twhile (e.hasMoreElements()) {\n\t\t\tBClass c = (BClass) e.nextElement();\n\t\t\tprintFieldTypes(c.getAc().getFields());\n\t\t}\n\t}",
"void printFilteredItems();",
"void startEntry(String type);",
"@Override\n\tpublic List<TypeDocument> findAll() {\n\t\treturn typeDocumentRepository.findAll();\n\t}",
"public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }",
"public static void main(String[] args) {\n\n\t\tPerson P1 = new Person(\"18\",\"Jose\",\"SoftDev\");\n\t\tPerson P2 = new Person(\"20\",\"Kiki\",\"Cleaner\");\n\t\t\n\t\t\n\t\t//print results using the tostring method\n\t\t//System.out.println(P1.toString()) ;\n\t\t//System.out.println(P2.toString()) ; //no longer needed\n\t\t\n\t\t\n\t\t//add to arraylist\n//\t\tPerson.peopleinfo.add(P1); //no longer needed as its incorporated in person class\n//\t\tPerson.peopleinfo.add(P2);\n\t\t\n\t\t//using for loop to output people:\n\t\t\n\t\tfor(Person person:Person.peopleinfo) {// Person = data type, person: ref var (placeholder), \n\t\t\tSystem.out.println(person);// person.name if u onl want name\n\t\t}\n\n\t\t// no need for static methods\n\t\tRunner_Person l = new Runner_Person();// you do this to create an instance of search within the main so that static is not reqd\n\t\tSystem.out.println(l.search(\"Jose\"));\n\n\t}",
"public void printAll(){\n\t\tSystem.out.println(\"Single hits: \" + sin);\n\t\tSystem.out.println(\"Double hits: \" + doub);\n\t\tSystem.out.println(\"Triple hits: \" + trip);\n\t\tSystem.out.println(\"Homerun: \" + home);\n\t\tSystem.out.println(\"Times at bat: \" + atbat);\n\t\tSystem.out.println(\"Total hits: \" + hits);\n\t\tSystem.out.println(\"Baseball average: \" + average);\n\t}",
"private void searchDisplay()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------ Search Menu ----------------\");\r\n System.out.println(\"(1) By Registration Number\");\r\n System.out.println(\"(2) By Car Make and Car Model\");\r\n System.out.println(\"(3) By Age\");\r\n System.out.println(\"(4) By Price (range)\");\r\n System.out.println(\"(5) Back to Main Menu\");\r\n }",
"private void printSummary()\n {\n List<DataTypeInfo> dtiList = myDataTypesSupplier.get();\n if (!dtiList.isEmpty())\n {\n List<DataTypeInfoDisplayNameProxy> proxyList = dtiList.stream().map(s -> new DataTypeInfoDisplayNameProxy(s))\n .collect(Collectors.toList());\n Collections.sort(proxyList, (o1, o2) -> o1.toString().compareTo(o2.toString()));\n\n Object selected = JOptionPane.showInputDialog(null, CHOOSE_DATA_TYPE, CHOOSE_DATA_TYPE, JOptionPane.QUESTION_MESSAGE,\n null, proxyList.toArray(), proxyList.get(0));\n\n if (selected != null)\n {\n final DataTypeInfoDisplayNameProxy fStyle = (DataTypeInfoDisplayNameProxy)selected;\n\n TextViewDialog dvd = new TextViewDialog(myToolbox.getUIRegistry().getMainFrameProvider().get(),\n \"DataTypeInfo Summary: \" + fStyle.toString(), fStyle.getItem().toString(), false,\n myToolbox.getPreferencesRegistry());\n dvd.setLocationRelativeTo(myToolbox.getUIRegistry().getMainFrameProvider().get());\n dvd.setVisible(true);\n }\n }\n }",
"@Override\n\tpublic void searchByID() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's ID\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void print() {\n for (Entry entry : listentries) {\n System.out.println(\"These are the tasks currently on your lists:\");\n System.out.println(\"Name of Task:\" + entry.getName());\n System.out.println(\"Status:\" + entry.getStatus());\n System.out.println(\"Due Date:\" + entry.getDueDate());\n System.out.println(\"Days Left To do Tasks:\" + entry.getDaysLeft());\n }\n }",
"public List<T> findAll() {\n\n\t\tConnection dbConnection = ConnectionFactory.getConnection();\n\t\tPreparedStatement findStatement = null;\n\t\tResultSet rs = null;\n\t\tString findStatementString = \"SELECT * FROM \" + type.getSimpleName();\n\n\t\ttry {\n\t\t\tfindStatement = dbConnection.prepareStatement(findStatementString);\n\t\t\trs = findStatement.executeQuery();\n\t\t\treturn createObjects(rs);\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:findAll\" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionFactory.close(rs);\n\t\t\tConnectionFactory.close(findStatement);\n\t\t\tConnectionFactory.close(dbConnection);\n\t\t}\n\t\treturn null;\n\t}",
"List<Type> getAllTypeList();",
"@Override\n public String toString ()\n {\n return \"type = \" + type;\n }",
"@Override\n\tpublic List<Record> getRecordsByType(Type type) {\n\t\tSession session=HibernateSessionFactory.getSession();\n\t\tTransaction tx=session.beginTransaction();\n\t\tList<Record> list=new ArrayList<Record>();\n\t\tRecordDAO recordDAO=new RecordDAO();\n\t\t\n\t\ttry{\n\t\t\tlist=recordDAO.getRecordsByType(type);\n\t\t\ttx.commit();\n\t\t}catch(RuntimeException e){\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}",
"public void printType() {\n System.out.println(\"Type: \" + objRef.getClass().getName());\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn name + \" \" + Arrays.toString(types);\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tEarth earth = new Earth();\n\t\tCountry country = new Country();\n\t\tCiti citi = new Citi();\n\t\t\n\t\tbuild(earth);\n\t\tbuild(country);\n\t\tbuild(citi); // subtypes, build takes Earth parameters but since country and citi extends Earth,it works \n\t\t //we know list doesnt support subtypes or substitutions\n\t\t//it can be solved by wildcards\n\t\t\n\t\tList <Earth> earths = new ArrayList();\n\t\tearths.add(new Earth());\n\t\tearths.add(new Country());\n\t\tearths.add(new Citi());\n\t\t\n\t\tList <Country> countries = new ArrayList();\n\t\tcountries.add(new Country());\n\t\tcountries.add(new Country());\n\t\tcountries.add(new Country());\n\t\t\n\t\twildPrintStuffs(countries); //using wildcards we can use subtypes and substitution concept in java\n\t\t\n\t\t\n\t\tList <Citi> cities = new ArrayList();\n\t\tcities.add(new Citi());\n\t\tcities.add(new Citi());\n\t\tcities.add(new Citi());\n\t\t\n\t\twildPrintStuffs(cities); //using wildcards we can use subtypes and substitution concept in java\n\t\t\n\t\twildPrintCities(earths); // though the method takes citi type parameters, we can pass earth type parameters because of wildcards\n\t\t\n\t\t\n\t}",
"public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public static void main(String[] args) {\n List<Map<String, Object>> data = queryMemoGroupByName(\"' or 1=1 or name='\");\n\n for (Map<String, Object> item : data) {\n System.out.println(item);\n }\n }",
"public static int showFoods(String cuisin, String type){\r\n int check=0;\r\n for(int i=0;i<foods.size();i++){\r\n if(foods.get(i).getCousin().toLowerCase().equals(cuisin.toLowerCase())\r\n && foods.get(i).getType().toLowerCase().equals(type)){\r\n System.out.println(i+\".-\"+foods.get(i).getName()+\" --> \"+foods.get(i).getDescription()+\" --> \"+foods.get(i).getPrice());\r\n check=1;\r\n }\r\n }\r\n if(check==0)\r\n System.out.println(\"There are not food in this category\");\r\n return check;\r\n }",
"public void printType(){\n\t\tSystem.out.println(\"X Type : \"+objXReff.getClass().getName());\n\t\tSystem.out.println(\"Y Type : \"+objYReff.getClass().getName());\n\t}",
"@Override\n public List<BaiseeClazz> findAllClazzInfo() {\n return claMapper.findAllClazzInfo();\n }",
"public EntryType getType() {\n return type;\n }",
"public void showBookType(int typeOfBook) {\n\t\tfor (int i = 0; i < bookList.size(); i++) {\n\t\t\tif (typeOfBook - 1 == bookType(bookList.get(i).getIsbn())) { // 0=ChildernsBook 1=cookBook 2=paperback\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 3=Periodic\n\t\t\t\tSystem.out.println(bookList.get(i));\n\t\t\t}\n\t\t}\n\t}",
"public void showInfo() {\n\t\tfor (String key : list.keySet()) {\n\t\t\tSystem.out.println(\"\\tID: \" + key + list.get(key).toString());\n\t\t}\n\t}",
"public List<Resource> findByType(ResourceType type) {\n\t\tMap<String, Object> typeFilter = new HashMap<>(1);\n\n\t\ttypeFilter.put(\"type\", new ValueParameter(type));\n\n\t\treturn this.filter(typeFilter);\n\t}",
"private String createFindAll() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT \");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\treturn sb.toString();\n\t}",
"public static String printType(ASTType type) {\n // TODO ArcTypes?!\n return TypesPrinter.printType(type);\n }",
"SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;",
"public static void printAll() {\n // Print all the data in the hashtable\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n System.out.println(new String(iter.key()) + \"\\t=\\t\" + ByteIntUtilities.convertByteArrayToDouble(iter.value()));\n }\n\n iter.close();\n }",
"public static void printResults() {\n System.out.println(\" Results: \");\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> System.out.println(keyWord + \" : \" + hitsNumber + \";\"));\n System.out.println(\" Total hits: \" + Crawler.getTotalHits());\n\n }",
"@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }",
"public List findRecordsFrom(String informationType, Date date) throws DatabaseException;",
"public List<MarketStateEntry> entries(final MarketEntry.Type type) {\n\t\treturn entries.all(type);\n\t}",
"public static void printUsersInfo(List<User> users, String userType) {\n if (users == null || users.isEmpty()) {\n System.out.println(String.format(\"%n Sorry, at the moment there are no %s to display.\", userType));\n return;\n }\n System.out.println(String.format(\"%nPlease see below a list of available %s. %n\", userType));\n for (User user : users) {\n System.out.println(String.format(\"ID: %s Username: %s\", user.getId(), user.getUsername()));\n }\n }",
"void printList() {\n Entry<T> node = header;\n while(node!=null){\n System.out.print(node.element+\" \");\n node = node.next;\n }\n }",
"public static void showMaterialsType (String[] materialsName, String[] materialsType, String type, int materialsAmount){\n\t\t\n\t\tArrayList<String> result = Budget.materialsType(materialsName, materialsType, type, materialsAmount);\n\t\t\n\t\tSystem.out.println(\"Materiales de \" + type + \":\");\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t\t\n\t}",
"private void displayAll()\n {\n for (int i = 0; i < cache.size(); ++i)\n {\n Record r = cache.get(i); \n System.out.println(r.key() + \" \" + r.value());\n }\n }",
"public static void main(String[] args) {\n ReadMappings rs = new ReadMappings();\n try {\n Hashtable result = rs.getMappingsFromFile();\n Enumeration en = result.elements();\n while(en.hasMoreElements()) {\n System.out.println(en.nextElement());\n }\n\n System.out.println(\"Pons:\"+result.get(\"Pons\"));\n System.out.println(\"Hypothalamus:\"+result.get(\"Hypothalamus\"));\n System.out.println(\"Medulla:\"+result.get(\"Medulla\"));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"private void printInfo()\n {\n if(currentRoom.getItems().size() >= 1)\n {\n System.out.println(\"\\n\" + \"Items in room are: \" );\n ArrayList<Item> items = currentRoom.getItems();\n \n for(Item i : items)\n {\n System.out.println(i.getItemName() + i.getDescription()); \n }\n \n }\n \n \n \n if(currentRoom.getWeapons().size() >= 1)\n {\n System.out.println(\"\\n\" + \"Weapons in room are: \" );\n \n ArrayList<Weapon> weapons = currentRoom.getWeapons();\n for(Weapon w : weapons)\n {\n System.out.println(w.getWeaponName() + w.getDescription());\n }\n \n }\n \n \n }",
"@Override\n\tpublic String toString() {\n\t\treturn type;\n\t}",
"private void printSchema() {\n ArrayList<String> schema = sqlMngr.getSchema();\n\n System.out.println(\"\");\n System.out.println(\"------------\");\n System.out.println(\"Total number of tables: \" + schema.size());\n for (int i = 0; i < schema.size(); i++) {\n System.out.println(\"Table: \" + schema.get(i));\n }\n System.out.println(\"------------\");\n System.out.println(\"\");\n }",
"@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}",
"private void printAllItems() {\n Set<ClothingItem> items = ctrl.getAllItems();\n items.stream().forEach(System.out::println);\n }",
"public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}",
"public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }",
"public ShowTablesByTypeResponse showTablesByType(ShowTablesByTypeRequest request) throws GPUdbException {\n ShowTablesByTypeResponse actualResponse_ = new ShowTablesByTypeResponse();\n submitRequest(\"/show/tables/bytype\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public List<PlanNode> findAllAtOrBelow( Type typeToFind ) {\n return findAllAtOrBelow(EnumSet.of(typeToFind));\n }",
"void printFieldType(AField f) {\n\t\tif (f.garbage) {\n\t\t\t// ignore fields which do not appear in lemmas\n\t\t\treturn;\n\t\t}\n\n\t\t// get the type of the field\n\t\tType t = f.getType();\n\n\t\t// ignore double and long field\n\t\tif (t.getTag() == Type.T_DOUBLE || t.getTag() == Type.T_LONG)\n\t\t\treturn;\n\n\t\t// ignore static final fields that are expanded\n\t\tif (f.isExpanded())\n\t\t\treturn;\n\n\t\tstream.print(\",\\n\" + f.getBName());\n\t}",
"public static <T> void queryAll() {\n\t\tString sql = \"SELECT * FROM LIBRARY ORDER BY BID \";\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tClass<T> clazz = (Class<T>) Lib.class;\n\t\tSystem.out.println(\"All books info is displayed below: \");\n\t\ttry {\n\t\t\tList<T> eleList = dao.queryData(sql, clazz);\n\t\t\tfor (T ele : eleList) {\n\t\t\t\tSystem.out.println(\"\\t\"+ele);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public ArrayList< LocationHandler >getAllLocationByType (int type){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_location + \" WHERE \" + key_type + \" LIKE \" + \"'\"+ type +\",\"+\"%'\" + \" ORDER BY \" + key_date_entry ; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6)); \n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\tdb.close();\n\t\treturn locationList;\n\t}",
"public void getByPropertyStudyType(String textToFind){\n\t\tStudyTypeResult studyTypeResult = getJerseyClient().resource(getBaseUrl() + \"/study_type/search/\"+textToFind).get(StudyTypeResult.class);\r\n\t\tfor (StudyTypeDTO c : studyTypeResult.getStudies()) {\r\n\t\t\tSystem.out.println(c.getName());\r\n\t\t\tSystem.out.println(c.getDescription());\r\n\t\t}\r\n\t}",
"@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getAll(Class<T> type) {\n\t\treturn super.getSessionFactory().getCurrentSession().createQuery(\"from \"+type.getName()+\"\").list();\r\n\t}"
]
| [
"0.66501987",
"0.5996399",
"0.5763644",
"0.5711053",
"0.56916755",
"0.56723917",
"0.5616846",
"0.5591749",
"0.55623317",
"0.55426514",
"0.5483274",
"0.5416164",
"0.5407632",
"0.53999054",
"0.5394636",
"0.53861654",
"0.5362366",
"0.5334432",
"0.5329408",
"0.53151137",
"0.5314623",
"0.53134793",
"0.52916414",
"0.5246615",
"0.5244325",
"0.5231278",
"0.5225758",
"0.5205653",
"0.51997465",
"0.5196534",
"0.51654226",
"0.51528656",
"0.5145233",
"0.5139143",
"0.51365346",
"0.51285243",
"0.511131",
"0.51041055",
"0.51007706",
"0.5081048",
"0.50803024",
"0.50732577",
"0.50729823",
"0.506583",
"0.5062652",
"0.5060569",
"0.5059426",
"0.50528085",
"0.50458395",
"0.50402945",
"0.5040173",
"0.5034918",
"0.50288296",
"0.502403",
"0.5005787",
"0.49995998",
"0.49934795",
"0.49904832",
"0.49902228",
"0.49851122",
"0.49819896",
"0.49734807",
"0.49671388",
"0.49627826",
"0.49596843",
"0.4948936",
"0.4948002",
"0.49457192",
"0.49409083",
"0.4938237",
"0.49380085",
"0.4937777",
"0.49376512",
"0.49372292",
"0.4934549",
"0.49318823",
"0.492355",
"0.49223933",
"0.49209514",
"0.49127737",
"0.49122006",
"0.49116492",
"0.49113077",
"0.49043167",
"0.4900423",
"0.4888378",
"0.48857114",
"0.488285",
"0.48762742",
"0.4870983",
"0.4864091",
"0.4861315",
"0.48521143",
"0.48470044",
"0.48386905",
"0.48375762",
"0.4837405",
"0.48361787",
"0.48319134",
"0.48265564"
]
| 0.7827927 | 0 |
Finds all entries from a specific region and prints out all their information. | public void findByRegion(String region)
{
boolean found = false;
for(KantoDex entry : entries)
{
if(entry.getRegion().equals(region))
{
found = true;
}
}
if(!found)
{
System.out.println("You have input a nonexistent region.");
}
else
{
System.out.println(region + " Region entries:");
for(KantoDex entry : entries)
{
if(entry.getRegion().equals(region))
{
entry.display();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printRegionsNames() {\n for (int i = 0; i < regionList.length; i++) {\n System.out.println(\"Region #\" + (i + 1) + \": \" + regionList[i].getRegionName());\n }\n }",
"public void printRegionStatus() {\n for (int i = 0; i < numRegions; i++) {\n System.out.print(regionList[i].getRegionName() + \" is \");\n if (regionList[i].checkOpen()) {\n System.out.println(\"open. :D\");\n } else {\n System.out.println(\"closed. D:\");\n }\n }\n }",
"public static void printAllAreas() {\r\n\t for (int i = 0; i <= 2967; i++) {\r\n\t System.out.println(\"Load Shedding Inforamtion: \" + LSItemsArray[i].getInformation()\r\n + \": Corresponding Areas: \" + LSItemsArray[i].getAreas());\r\n\r\n\t }\r\n\t }",
"public void printAllRegionsEarnings() {\n for (int i = 0; i < numRegions; i++) {\n System.out.println(\"The earning of \" + regionList[i].getRegionName() + \" is $\" + regionList[i].calcEarnings());\n } //hey we need to change the double with the good proper formatting\n }",
"public static void printAreas(String information) {\r\n //String information = stage + \"_\" + day + \"_\" + startTime;\r\n boolean bool = false;\r\n for (int i = 0; i <= 2976; i ++) {\r\n opCount++;\r\n if (LSItemsArray[i].getInformation().equals(information)){\r\n System.out.println(\"Load Shedding Inforamtion: \" + LSItemsArray[i].getInformation()\r\n + \": Corresponding Areas: \" + LSItemsArray[i].getAreas());\r\n bool = true;\r\n break;\r\n }\r\n\r\n }\r\n if (bool == false)\r\n System.out.println(\"Areas not found\");\r\n }",
"@Test\n\tpublic void getAllByRegion() {\n\t\tList<String> consequenceTypeList = new ArrayList<String>();\n\t\tconsequenceTypeList.add(\"2KB_upstream_variant\");\n\t\tconsequenceTypeList.add(\"splice_region_variant\");\n\t\tList<Snp> snps = snpDBAdaptor.getAllByRegion(new Region(\"1\", 10327, 12807), consequenceTypeList);\n\t\tthis.printSNPList(\"getAllByRegion\", snps, 50);\n\t}",
"private static void mostrarRegiones (List<Regions> list)\n\t{\n\t\tIterator<Regions> it = list.iterator();\n\t\tRegions rg;\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\trg = it.next();\n\t\t\tSystem.out.println(rg.getRegionName() + \" \" +rg.getRegionId());\n\t\t\tSet<Countries> paises = rg.getCountrieses();\n\t\t\tSystem.out.println(\"PAISES\");\n\t\t\tIterator<Countries> it_paises = paises.iterator();\n\t\t\t\n\t\t\twhile (it_paises.hasNext())\n\t\t\t{\n\t\t\t\tCountries country = it_paises.next();\n\t\t\t\tSystem.out.println(country.getCountryName());\n\t\t\t}\n\t\t}\n\t}",
"public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }",
"private void loadSearchRegions() {\n showProgress(ApplicationConstants.DIALOG_HEADER, \"Please wait while we retrieve matching results.\");\n String authToken = ShPrefManager.with(getActivity()).getToken();\n RestClient.getAPI().getRegions(authToken, new RestCallback<RegionsResponse>() {\n @Override\n public void failure(RestError restError) {\n hideProgress();\n OpenHomeUtils.showToast(getActivity().getApplicationContext(), restError.getErrorMessage(), Toast.LENGTH_LONG);\n }\n\n @Override\n public void success(RegionsResponse regionsResponse, Response response) {\n hideProgress();\n if (regionsResponse.getMessage().size() > 0) {\n regionsList = regionsResponse.getMessage();\n for (RegionsResponse.Regions region : regionsList) {\n listingsCount += region.getListingsCount();\n if (region.getParentId() == 0)\n adapterList.add(region);\n }\n regionsAdapter = new RegionsAdapter(getActivity(), adapterList, 0);\n mRecyclerView.setAdapter(regionsAdapter);\n currentAdapter = \"R\";\n listingsCountDisplayTextView.setText(listingsCount + \" Listings\");\n currentDisplayingParentId = 0;\n\n } else {\n String message = \"No results to display. Please modify the search criteria and try again.\";\n CustomDialogFragment regSuccessDialogFragment = CustomDialogFragment.newInstance(R.string.try_again,\n message, ApplicationConstants.BUTTON_OK, 0);\n regSuccessDialogFragment.show(getActivity().getFragmentManager(), \"SearchRegionsFragment\");\n }\n }\n });\n }",
"public void currentSiteInfo(ArrayList regions){\n\t\t// For loop to get each region\n\t\t\t\tfor (int f = 0; f < regions.size(); f++) {\n\t\t\t\t\tRegion current_region = (Region) regions.get(f);\n\t\t\t\t\t// For loop to get each site\n\t\t\t\t\tfor (int i = 0; i < current_region.get_size(); i++) {\n\t\t\t\t\t\tSite current_site = current_region.get_site(i);\n\t\t\t\t\t\tSystem.out.println(current_site);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\n\t}",
"protected void printAll() {\n\t\tSystem.out.println(\"Network maps\");\n\t\tSystem.out.println(\"\tAddresses\");\n\t\ttry {\n\t\t\tPreparedStatement pstmt = \n\t\t\t\t\tthis.agent.getDatabaseManager().getConnection().prepareStatement(\n\t\t\t\t\t\t\tthis.agent.getDatabaseManager().selectAll);\n\t ResultSet rs = pstmt.executeQuery();\n\t // loop through the result set\n while (rs.next()) {\n \t System.out.printf(\"%s -> %s\\n\", rs.getString(\"username\"), rs.getString(\"address\"));\n }\n\t\t} catch (Exception e) {\n\t\t\tAgent.errorMessage(\n\t\t\t\t\tString.format(\"ERROR when trying to get all the address of the table users in the database\\n\"), e);\n\t\t}\n\t\tSystem.out.println(\"\tmapSockets\");\n\t\tfor (String u: this.mapSockets.keySet()) {\n\t\t\tSystem.out.printf(\"%s -> %s\\n\", u, this.mapSockets.get(u));\n\t\t}\n\t}",
"public void display(){\n\t\tfor (Entry<String, Map<String, Integer>> entry : collocationMap.entrySet()){\n\t\t for (Entry<String, Integer> subEntry : entry.getValue().entrySet()){\n\t\t\t System.out.println(entry.getKey() + \" \" + subEntry.getKey() + \": \" + subEntry.getValue());\n\t\t }\n\t\t}\n\t}",
"public void print () {\r\n System.out.println(\"Place \"+name+\": lat \"+lat+\" lon \"+lon+\r\n \" elevation \"+ele);\r\n }",
"private void printMap() {\n\t\tfor(Integer key: location.keySet()){\n\t\t\tString val= location.get(key).toString();\n\t\t\tSystem.out.println(\"(\" + key.toString() + \", \" + val+ \")\");\n\t\t}\n\t}",
"private void printInfo() {\n for (Coordinate c1 : originCells) {\n System.out.println(\"Origin: \" + c1.toString());\n }\n for (Coordinate c2 : destCells) {\n System.out.println(\"destination: \" + c2.toString());\n }\n for (Coordinate c3 : waypointCells) {\n System.out.println(\"way point: \" + c3.toString());\n }\n }",
"void printPlaceArtifacts()\r\n\t{\r\n\t\tfor( Map.Entry <String, Artifact> entry : artPlace.entrySet()) \r\n\t\t{\r\n\t\t\t String key = entry.getKey();\r\n\t\t\t Artifact value = entry.getValue();\r\n\t\t\t \r\n\t\t\t // System.out.println(\"Place Name: \" + this.name());\r\n\t\t\t \r\n\t\t\t System.out.println(\" Artifact Name----->\" + value.getName());\r\n\t\t\t System.out.println(\"Size-----> \" + value.getSize());\r\n\t\t\t System.out.println(\"Value-----> \" + value.getValue() + \" \\n\");\t\r\n\t\t}\r\n\t}",
"protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }",
"private void searchDisplay()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------ Search Menu ----------------\");\r\n System.out.println(\"(1) By Registration Number\");\r\n System.out.println(\"(2) By Car Make and Car Model\");\r\n System.out.println(\"(3) By Age\");\r\n System.out.println(\"(4) By Price (range)\");\r\n System.out.println(\"(5) Back to Main Menu\");\r\n }",
"public void scanCurrentPlace()\r\n\t{\r\n\t\tSystem.out.println(this.getCurrentPlace().toString());\r\n\t\tSystem.out.println(\"The place contains these objects: \");\r\n\t\tSystem.out.println(this.getCurrentPlace().getItems().toString());\r\n\t}",
"public static java.util.List<de.fraunhofer.fokus.movepla.model.Region> findAll()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findAll();\n }",
"public void printAllCities()\n { // to be implemented in part (d) }\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void printVisiblePermitcCards(int region, PermitCard[] permits);",
"public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}",
"private void logFindAll(String ip) {\n\t\tRetailUnitOfMeasureController.logger.info(\n\t\t\t\tString.format(RetailUnitOfMeasureController.FIND_ALL_LOG_MESSAGE,\n\t\t\t\t\t\tthis.userInfo.getUserId(), ip));\n\t}",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public com.apatar.cdyne.ws.demographix.SummaryInformation getLocationInformationByAddress(java.lang.String addressLine1, java.lang.String city, java.lang.String stateAbbrev, java.lang.String zipCode, java.lang.String licenseKey) throws java.rmi.RemoteException;",
"private static void printLocations(Collection<ProcessModel> processModels) {\n processModels.stream()\n .filter(Automaton.class::isInstance)\n .map(Automaton.class::cast)\n .map(a -> \"Owners for \" + a.getId() + \" are: \" + a.getOwners())\n .forEach(System.out::println);\n }",
"public static String[] getRegion(String dataType, String region){\r\n String line = \"\"; \r\n try{ \r\n BufferedReader br = new BufferedReader(new FileReader(\"dataSets//Continents.csv\")); \r\n while ((line = br.readLine()) != null){\r\n String[] lineArr= line.split(\",\"); \r\n if(lineArr[0].equals(region)){\r\n String[] rez= new String[lineArr.length-1];\r\n for(int i=0; i!=rez.length; i++){\r\n rez[i]=lineArr[i+1];\r\n }\r\n return rez;\r\n }\r\n }\r\n }\r\n catch (IOException e){} \r\n return new String[]{\"Error404\"};\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"void printFilteredItems();",
"public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}",
"public void searchInRegion(final String[] toSearch, final int limit) throws IOException, ParseException {\n final IndexSearcher indexSearcher = new IndexSearcher(reader);\n\n BooleanQuery bq = new BooleanQuery();\n\n BooleanQuery bq1 = new BooleanQuery();\n final QueryParser queryParser = new QueryParser(\"region\", new RussianAnalyzer());\n\n for(int i = 0; i < toSearch.length; i++) {\n\n final Query query = queryParser.parse(toSearch[i]);\n bq1.add((query), BooleanClause.Occur.SHOULD);\n\n System.out.println(toSearch[i]);\n\n }\n\n bq.add((bq1), BooleanClause.Occur.MUST);\n\n final QueryParser queryParser1 = new QueryParser(\"title\", new RussianAnalyzer());\n final Query query = queryParser1.parse(\"Тима\");\n bq.add((query), BooleanClause.Occur.MUST);\n\n Query q2 = new ConstantScoreQuery(bq);\n\n final TopDocs search = indexSearcher.search(q2, limit);\n final ScoreDoc[] hits = search.scoreDocs;\n showHits(hits);\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void printContents() {\n\t\t\n//\t\tCollections.sort(finalized);\n\t\t\n\t\tSystem.out.print(\"Register Status:\");\n\t\t\n\t\tint i = 0;\n\t\tfor (; i < finalized.length - 1; i++) {\n\t\t\tSystem.out.println(\"Reg \" + i + \": \" + finalized[i].toString());\n\t\t}\n\t\tSystem.out.print(\"Reg \" + i + \": \" + finalized[finalized.length - 1].toString() + \"\\n\");\n\t}",
"public static void main(String[] args) {\n ReadMappings rs = new ReadMappings();\n try {\n Hashtable result = rs.getMappingsFromFile();\n Enumeration en = result.elements();\n while(en.hasMoreElements()) {\n System.out.println(en.nextElement());\n }\n\n System.out.println(\"Pons:\"+result.get(\"Pons\"));\n System.out.println(\"Hypothalamus:\"+result.get(\"Hypothalamus\"));\n System.out.println(\"Medulla:\"+result.get(\"Medulla\"));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tZoneId.getAvailableZoneIds()\r\n\t\t\t .stream()\r\n\t\t\t .filter( s -> s.startsWith(\"Asia\") )\r\n\t\t\t .sorted()\r\n\t\t\t .forEach( s -> System.out.println(s) );\r\n\t}",
"public ArrayList<EHVSS> getByRegion(String region,String startIndex,String pageSize){\n\t\tArrayList<EHVSS> ehvssNames=null;\n\t\ttry {\n\t\t\tConnection connection = DatabaseConnection.getConnection(\"mms_new\");\n\t\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT * FROM ehvss where region=? limit \"+startIndex+\",\"+pageSize);\n\t\t\tps.setString(1,region);\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\tehvssNames=new ArrayList<EHVSS>();\n\t\t\tresultSetParserForJtable(rs,ehvssNames);\n\t\t\trs.close();\n\t\t\tps.close();\n\t\t\t//System.out.println(\"Number of Ehvss Locations for region :\"+region+\" is :\"+ehvssNames.size());\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByRegion]\"+e);\n\t\t}catch (Exception exp) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByRegion]\"+exp);\n\t\t}\n\t\treturn ehvssNames;\n\t}",
"IRegion getLineInformation(int line) throws BadLocationException;",
"public List<Region> listRegions() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Region.class);\n\t}",
"public static void main (String[] args) {\n\t\t\n\t\tint[] array = new int[] {2, 4, 1, 6, 5, 40, -1};\n\t\tint[] result = search(array);\n\t\t\n\t\tif (result != null) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tSystem.out.println(result[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No results found\");\n\t\t}\n\t}",
"public List<Region> find(Object data) {\r\n return rdao.searchByRegions(data);\r\n }",
"@Override\n\tpublic void printFilteredMap() {\n\t\tthis.result.forEach((k, v )-> v.forEach((ke,ve) -> ve.forEach((s) -> System.out.println(k + \" : \"+ ke + \" : \"+ s))));\n\n\t}",
"public void searchAreaFull(Connection connection, String city, String state, int zip) throws SQLException{\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ? AND state = ? AND zip = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setState(state);\n pStmt.setString(2, getState());\n setZip(zip);\n pStmt.setInt(3, getZip());\n\n try {\n\n System.out.println(\" Hotels in area:\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }",
"public void printMap() {\n Set<String> manufacturers = cars.keySet();\n\n for (String manufacturer : cars.keySet()) {\n System.out.println(String.format(\"The following %s models are in stock: \", manufacturer));\n System.out.println(cars.get(manufacturer));\n\n }\n }",
"public ArrayList<EHVSS> getByRegion(String region){\n\t\tArrayList<EHVSS> ehvssNames=null;\n\t\ttry {\n\t\t\tConnection connection = DatabaseConnection.getConnection(\"mms_new\");\n\t\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT * FROM ehvss where region=?\");\n\t\t\tps.setString(1,region);\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\tehvssNames=new ArrayList<EHVSS>();\n\t\t\tresultSetParser(rs,ehvssNames);\n\t\t\trs.close();\n\t\t\tps.close();\n\t\t\t//System.out.println(\"Number of Ehvss Locations for region :\"+region+\" is :\"+ehvssNames.size());\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByRegion]\"+e);\n\t\t}catch (Exception exp) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByRegion]\"+exp);\n\t\t}\n\t\treturn ehvssNames;\n\t}",
"public String toString() {\n String output = \"\";\n for (int i = 0; i < numRegions; i++) {\n if (regionList[i] instanceof Arctic) \n output += (i+1) + \". \" + ((Arctic)regionList[i]).toString();\n else if (regionList[i] instanceof Aquarium) \n output += (i+1) + \". \" + ((Aquarium)regionList[i]).toString();\n else if (regionList[i] instanceof AmazonRainforest) \n output += (i+1) + \". \" + ((AmazonRainforest)regionList[i]).toString();\n }\n return output;\n }",
"IRegion getLineInformationOfOffset(int offset) throws BadLocationException;",
"private static List<ProtectedRegion> getRegionsInRegion(ProtectedRegion inputRegion, World world) {\n\t\t\n\t\tList<ProtectedRegion> regionsInsideRegion = new ArrayList<ProtectedRegion>();\n\t\t\n\t\tRegionManager regionManager = Mcc.worldGuard.getRegionManager(world);\n\t\tList<ProtectedRegion> regionList = new ArrayList<ProtectedRegion>(regionManager.getRegions().values());\n\t\tfor(ProtectedRegion region: regionList){\n\t\t\tif(inputRegion.containsAny(region.getPoints())){\n\t\t\t\tregionsInsideRegion.add(region);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\treturn regionsInsideRegion;\n\t}",
"void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\tSystem.out.println(\" name : \" + person.getName());\n\t\t\t\t\tSystem.out.println(\" phone : \" + person.getPhone());\n\t\t\t\t\tSystem.out.println(\" email : \" + person.getEmail());\n\t\t\t\t\tSystem.out.println(\" school : \" + person.getSchool());\n\t\t\t\t\tSystem.out.println(\" college : \" + person.getCollege() + \"\\n\");\n\t\t\t\t\t\tfor(String interest:person.getInterests()){\n\t\t\t\t\t\t\tSystem.out.println(\" interest in : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If entity is organization */\n\t\t\t\telse {\n\t\t\t\t\tOrganization organization=(Organization)entity;\n\t\t\t\t\tif(organization.getName().equalsIgnoreCase(name)){\n\t\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\t\tSystem.out.println(\" name : \" + organization.getName());\n\t\t\t\t\t\tSystem.out.println(\" phone : \" + organization.getPhone());\n\t\t\t\t\t\tSystem.out.println(\" email : \" + organization.getEmail());\n\t\t\t\t\t\tfor(String interest:organization.getCourses()){\n\t\t\t\t\t\t\tSystem.out.println(\" courses are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getFaculty()){\n\t\t\t\t\t\t\tSystem.out.println(\" Faculties are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getPlacements()){\n\t\t\t\t\t\t\tSystem.out.println(\" Placements are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(i>=Processing.nodeSet.size()) {//if no such name exist\n\t\t\t\tSystem.out.println(name+\" does not exist\");\n\t\t\t}\n\t}",
"public void interestCachePrint(){\n\t\tlog(Level.INFO,\"Printing the interest cache.\");\n\t\tfor(InterestCacheEntry entry: interestCache.values()){ \n\t\t\tentry.printInterestEntry() ;\n\t\t}\n\t}",
"public static void printAvailableMaps() {\n \tFile folder = new File(\"./examples/\");\n \tFile[] listOfFiles = folder.listFiles();\n \tSystem.out.println(\"Available maps (choose one and start game with command 'game map_name' ) : \");\n\n \t for (int i = 0; i < listOfFiles.length; i++) {\n \t if (listOfFiles[i].isFile()) {\n \t System.out.println(\"\\t\"+listOfFiles[i].getName());\n \t } \n \t }\n }",
"public void printTiles() {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n System.out.println(\"//\");\n System.out.println(\"ROW: \" + tiles[i][k].getRow());\n System.out.println(\"COL: \" + tiles[i][k].getColumn());\n System.out.println(\"TER: \" + tiles[i][k].getTerrain().getName());\n }\n }\n }",
"private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}",
"private void loadSearchRegions() {\n showProgress(ApplicationConstants.DIALOG_HEADER, \"Please wait while we retrieve regions from server.\");\n String authToken = ShPrefManager.with(getActivity()).getToken();\n RestClient.getAPI().getRegions(authToken, new RestCallback<RegionsResponse>() {\n @Override\n public void failure(RestError restError) {\n OpenHomeUtils.showToast(getActivity().getApplicationContext(), \"Could not load regions from the server.\", Toast.LENGTH_LONG);\n }\n\n @Override\n public void success(RegionsResponse regionsResponse, Response response) {\n if (regionsResponse.getMessage().size() > 0) {\n regionsList = regionsResponse.getMessage();\n setOnClickListeners();\n populateRegions();\n } else {\n String message = \"There is an error loading data. Please contact administrator..\";\n CustomDialogFragment regSuccessDialogFragment = CustomDialogFragment.newInstance(R.string.try_again,\n message, ApplicationConstants.BUTTON_OK, 0);\n regSuccessDialogFragment.show(getActivity().getFragmentManager(), \"AddPropertyFragment\");\n }\n }\n });\n\n getAllHazards();\n }",
"public void printFlagPositions()\n {\n for (Integer[] flagLocation: flagLocations)\n {\n System.out.printf(\"{%d, %d}\\n\", flagLocation[0], flagLocation[1]);\n }\n }",
"public void printInfo() {\n String s = \"\";\n if (map.isEmpty()) {\n s += \"not keeping any entries\\n\";\n } else {\n s += \"This Node stores a range of \" + map.size() + \" keys :\\n from:\" + map.firstKey() + \" up to: \" + map.lastKey() + \"\\n\";\n }\n s += \"node key:\\t\" + nodeKey + \"\\n\";\n s += \"previous key:\\t\" + predKey + \"\\n\";\n\n window.getKeysInfoText().setText(s);\n }",
"public void printResults(){\n\t\tSystem.out.println(\"The area of the triangle is \" + findArea());\n\t\tSystem.out.println(\"The perimeter of the triangle is \"+ findPerimeter());}",
"void examine() {\n\t\t\tif (!isItEmpty()){\n\t\t\t\tprintItemDescriptions();\n\t\t\t\tSystem.out.println(\"\\nWhat's in \" + this.locationName + \": \");\n\t\t\t\texamineItems(); //calls the examine items method.\n\t\t\t\texamineContainers(); //calls the examine containers method.\n\t\t\t\tSystem.out.println(\"\");}\n\t\t}",
"@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}",
"public void printRegistrationPlates(){\n for(RegistrationPlate plates: this.registrationList.keySet()){\n System.out.println(plates);\n }\n }",
"public void printLocationInfo()\n {\n System.out.println(currentRoom.getLongDescription());\n System.out.println();\n }",
"public String showLocationContent() {\n\t\tContent content = null;\n printHeader();\n \n\t\tfor (Map.Entry<Integer, List<Content>> entry : contentMap.entrySet()) {\n\t\t\tList<Content> contentLst = entry.getValue();\n\n\t\t\tfor (int i = 0; i < contentListCapacity; i++) {\n\t\t\t\tif (contentLst == null)\n\t\t\t\t\tprintEmptyPlaceHolder(contentListCapacity);\n\t\t\t\telse {\n\t\t\t\t\tcontent = i < contentLst.size() ? contentLst.get(i) : null;\n\t\t\t\t\tif (content == null)\n\t\t\t\t\t\tSystem.out.printf(\"%5s\",\"\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\"%5s\",content.getBarcode() );\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn \" Smart Robot Arm! \";\n\n\t}",
"public static void main(String[] args) {\n\t\tString [] cities = {\"New York\", \"San Francisco\", \"Miami\", \"Malmö\" };\n\t\tSystem.out.println(cities[0]);\n\t\tSystem.out.println(cities[1]);\n\t\tSystem.out.println(cities[2]);\n\t\tSystem.out.println(cities[3]);\n\t\t\n //Declare array\n String[] countries;\n \n // Define the array\n countries = new String[3];\n countries[0] = \"USA\";\n countries[1] = \"Denmark\";\n countries[2] = \"Sweden\";\n System.out.println(countries[2]);\n \n System.out.println(\"**********\");\n \n\t\t//Declare & define the array (only size)\n\t\tString[] states = new String [5];\n states [0] = \"California\";\n states [1] = \"Ohio\";\n states [2] = \"New Jersay\";\n states [3] = \"Texas\";\n states [4] = \"Skåne\";\n int i = 0;\n \n // Do Loop: enters the loop THEN tests condition\n do {\n System.out.println(\"STATE \" + states[i]);\n i = i + 1;\n } while (i < 5);\n \n // While Loop: tests condition first then enters loop\n int n = 0;\n boolean stateFound = false;\n while (!stateFound) {\n \t String state = states[n];\n \t System.out.println(state);\n \t if (state == \"Texas\") {\n \t\t System.out.println(\"STATE FOUND!\");\n \t\t stateFound = true;\n \t }\n \tn++;\n }\n System.out.println(\"\\nPRINTING WITH FOR LOOP\");\n // For Loop: Best structure for iterating through an array\n for (int x = 0; x < 5; x++ ) {\n \tSystem.out.println(states[x]);\n }\n }",
"public void print(){\n for(Recipe r : recipes){\n System.out.println(r.toString());\n }\n }",
"protected void displayPopulation() {\n \n /**/println(\"\\nDisplaying population:\", 0);\n for(int i = 0; i < population_size; i++) {\n println(\"i = \" + i, 1);\n if(population[i] == null) {\n //System.exit(0);\n }\n displayChromosome(population[i], 0);\n }\n }",
"private void printSolution(int[] dist){\r\n System.out.println(\"Ride Distance from Entrance/Exit\");\r\n System.out.println(\"\\nMedieval Zone: \");\r\n for(int i =1; i < rideCount; i ++){\r\n if(rides.get(i).getTheme().equals(\"Medieval\")){\r\n System.out.println(String.format(\"%-30s %-5d\", rides.get(i).getName(), dist[i]));\r\n }\r\n }\r\n\r\n System.out.println(\"\\nFuturistic Zone: \");\r\n for (int i=1; i< rideCount; i++){\r\n if(rides.get(i).getTheme().equals(\"Futuristic\")){\r\n System.out.println(String.format(\"%-30s %-5d\", rides.get(i).getName(), dist[i]));\r\n }\r\n }\r\n\r\n System.out.println(\"\\nJurassic Zone: \");\r\n for (int i=1; i< rideCount; i++){\r\n if(rides.get(i).getTheme().equals(\"Jurassic\")){\r\n System.out.println(String.format(\"%-30s %-5d\", rides.get(i).getName(), dist[i]));\r\n }\r\n }\r\n\r\n System.out.println(\"\\nIndustrial Zone: \");\r\n for (int i=1; i< rideCount; i++){\r\n if(rides.get(i).getTheme().equals(\"Industrial\")){\r\n System.out.println(String.format(\"%-30s %-5d\", rides.get(i).getName(), dist[i]));\r\n }\r\n }\r\n }",
"public void search(File file) throws IOException {\n Scanner in = new Scanner(new FileInputStream(file));\n int lineNumber = 0;\n while(in.hasNextLine()){\n lineNumber++;\n String line = in.nextLine();\n if(line.contains(keyword)){\n System.out.printf(\"%s [line: %d]: %s%n\", file.getPath(), lineNumber, line);\n }\n }\n in.close();\n }",
"public static void main(String[] args) {\n\t\tint [][] input = {\r\n\t\t\t\t{1,2,3},\r\n\t\t\t\t{4,5,6},\r\n\t\t\t\t{7,8,9}\t\t\t\t\r\n\t\t};\r\n\t\tSystem.out.println(Find(input,13));\r\n\r\n\t}",
"public static void displayWorld() {\n\t//First row\n\t\tSystem.out.print(\"+\");\n\t\tfor (int i = 0; i < Params.world_width; i++) {\n\t\t\tSystem.out.print(\"-\");\n\t\t}\n\t\tSystem.out.println(\"+\");\n\t//Grid\n\t\tfor (int row = 0; row < Params.world_height; row++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tList<Critter> crittersInRow = new java.util.ArrayList<Critter>();\n\t\t\tfor (Critter c: population) {\n\t\t\t\tif (c.y_coord == row) {\n\t\t\t\t\tcrittersInRow.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int col = 0; col < Params.world_width; col++) {\n\t\t\t\tboolean critterExists = false;\t\t\t//Becomes true if we find critter in the location\n\t\t\t\tfor (Critter c2: crittersInRow) {\n\t\t\t\t\tif (c2.x_coord == col) {\n\t\t\t\t\t\tif (!critterExists) {\t\t\t//Solves problem of more than 1 critter in location after adding but before stepping\n\t\t\t\t\t\t\tSystem.out.print(c2.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcritterExists = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!critterExists) {\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//Last row\n\t\tSystem.out.print(\"+\");\n\t\tfor (int i = 0; i < Params.world_width; i++) {\n\t\t\tSystem.out.print(\"-\");\n\t\t}\n\t\tSystem.out.println(\"+\");\n\t}",
"public void searchPerson() {\n\t\tSystem.out.println(\"*****Search a person*****\");\n\t\tSystem.out.println(\"Enter Phone Number to search: \");\n\t\tlong PhoneSearch = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneSearch) {\n\t\t\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\t\t\tSystem.out.println(details[i]);\n\t\t\t}\n\t\t}\n\t}",
"public void setRegion(String region);",
"private void readLandmarks() {\n landmarks.readBathrooms();\n landmarks.readCampsTSV();\n landmarks.readFavoritesTSV();\n System.out.println();\n }",
"@GET(\"/sight/list_by_region\")\n\t\tvoid getSightsByRegion(@Query(\"region\") String region, @Query(\"type\") String type, @Query(\"offset\") int start, @Query(\"limit\") int limit, Callback<List<Long>> callback);",
"public static String showAll(){\n return resultsMap.toString();\n }",
"public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }",
"String regionName();",
"String regionName();",
"String regionName();",
"String regionName();",
"@RequestLine(\"GET /geoip/territories?codes={codes}\")\n Collection<Collection<Region>> getAvailableRegions(@Param(\"codes\") String codes);",
"public void printContents(){\n System.out.println(this);\n System.out.println(\"Occupied by: \" + pieceAtVertex + \"\\n Neighbors:\" + neighbors);\n }",
"public void printMap(){\n\n for (Tile [] tile_row : this.layout)\n {\n for (Tile tile : tile_row)\n {\n if (tile.isShelf()){\n System.out.print(\" R \");\n }\n else if (tile.isDP()){\n System.out.print(\" D \");\n }\n\n else {\n System.out.print(\" * \");\n }\n\n }\n System.out.println();\n }\n\n }",
"public Vector findRegionList(\n String searchBy,\n String name,\n Boolean isAllSupregs,\n Integer supregid,\n Integer order)\n throws Exception {\n\n DebugSupport.printlnTest(\"!!RegionObject findRegionList name=\"+name);\t\n Query query = new Query();\n query.append(\n \"SELECT r.regionid regionid, r.regname regname, r.supregid supregid, sr.supregname supregname\");\n query.append(\"FROM Regions r, Superregions sr\");\n query.append(\"WHERE r.supregid=sr.supregid\");\n\n if (searchBy.equals(SearchConstants.SEARCHBY_NAME)) {\n query.append(\"AND r.regname matches upper(?)\", name);\n }\n if (!isAllSupregs.booleanValue()) {\n query.append(\"AND r.supregid=?\", supregid);\n }\n query.append(\"ORDER BY\");\n if (order.intValue() == ORDER_BY_CODE_ASC) {\n query.append(\"1\");\n }else if (order.intValue() == ORDER_BY_CODE_DESC) {\n query.append(\"1 DESC\");\n }else if (order.intValue() == ORDER_BY_SUPREGNAME_ASC) {\n query.append(\"4,2\");\n }else if (order.intValue() == ORDER_BY_SUPREGNAME_DESC) {\n query.append(\"4 DESC,2 DESC\");\n }else if (order.intValue() == ORDER_BY_REGNAME_ASC) {\n query.append(\"2\");\n }else if (order.intValue() == ORDER_BY_REGNAME_DESC) {\n query.append(\"2 DESC\");\n }\n return findVector(query);\n}",
"public Page<HeritageRegionName> findAll(Pageable pageable);",
"public void printInfo() throws IOException {\n System.out.println();\n System.out.println(\"* Current books in the database.\\n\");\n for(Book book :bookdatabase){\n System.out.println(book.getTitle());\n }\n System.out.println();\n System.out.println(\"* Current students in the database.\\n\");\n for(Student student :studentdatabase){\n System.out.println(student.getUsername());\n }\n System.out.println();\n System.out.println(\"* Current librarians in the database.\\n\");\n for(Librarian l :lib_db){\n System.out.println(l.getUsername());\n }\n\n\n\n }",
"public void printAll()\n {\n r.showAll();\n }",
"private void dumpResultMapping ()\r\n {\r\n for (Entry<Result, Set<Candidate>> entry : connection.getResultMap().\r\n entrySet()) {\r\n logger.debug(\"Result: {}\", entry.getKey());\r\n\r\n for (Candidate candidate : entry.getValue()) {\r\n logger.debug(\"* candidate: {}\", candidate);\r\n }\r\n }\r\n }",
"@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}",
"@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}",
"public void printOwners(){\n ArrayList<String> ownerList = new ArrayList<String>();\n\n for(RegistrationPlate plates: this.registrationList.keySet()){\n if(!ownerList.contains(this.registrationList.get(plates)))\n ownerList.add(this.registrationList.get(plates));\n }\n\n printAllOwners(ownerList);\n }",
"public Gel_BioInf_Models.File getRelevantRegions() {\n return relevantRegions;\n }",
"public List getZonasRegion(String feriadoRegion);",
"public void listEntries() {\n\t\t// Get the entries as a linked list\n\t\tLinkedList<BookEntry> entries = new LinkedList<>(phoneBook.values());\n\t\tCollections.sort(entries); // Sort the entries\n\n\t\tfor (BookEntry entry : entries) {\n\t\t\tSystem.out.println(\"Name = \" + entry.getPerson());\n\t\t\tSystem.out.printf(\"Number =(%s) %s%n\", entry.getNumber().getAreaCode(), entry.getNumber().getPhoneNumberNotAreaCode());\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"private void printElasticSearchInfo() {\n\n LOGGER.info(\"-- ElasticSearch Store info --\");\n\n Client client = persistenceConfig.elasticsearchTemplate().getClient();\n Map<String, String> asMap = client.settings().getAsMap();\n\n asMap.forEach((k, v) -> {\n LOGGER.info(\" \" +k + \" = \" + v);\n });\n LOGGER.info(\"-- --\");\n }"
]
| [
"0.64973235",
"0.6199453",
"0.60407406",
"0.593492",
"0.565898",
"0.5641847",
"0.5619484",
"0.5487579",
"0.54695195",
"0.543306",
"0.54149956",
"0.5397453",
"0.5315487",
"0.5312071",
"0.52832234",
"0.52764064",
"0.5262888",
"0.5244633",
"0.5223212",
"0.5204192",
"0.5196366",
"0.5176674",
"0.516971",
"0.5132345",
"0.5128518",
"0.5121018",
"0.5111016",
"0.5111016",
"0.5111016",
"0.51086336",
"0.5098818",
"0.5094743",
"0.5093468",
"0.5093468",
"0.5093468",
"0.50925404",
"0.50847024",
"0.50801647",
"0.5076783",
"0.5059918",
"0.5056431",
"0.5052497",
"0.5049749",
"0.50467294",
"0.5043811",
"0.50316316",
"0.50134605",
"0.50034976",
"0.49994355",
"0.49978873",
"0.49834898",
"0.4977844",
"0.49614453",
"0.49598175",
"0.49536204",
"0.49487114",
"0.49366888",
"0.493607",
"0.4935486",
"0.49336115",
"0.4930402",
"0.49273628",
"0.49187833",
"0.49181697",
"0.4909031",
"0.4907652",
"0.4905508",
"0.4904921",
"0.4887125",
"0.48672947",
"0.48645955",
"0.4861038",
"0.48607898",
"0.48582014",
"0.48553333",
"0.48528048",
"0.48525414",
"0.48489615",
"0.48463947",
"0.4841778",
"0.48405153",
"0.48384815",
"0.48384815",
"0.48384815",
"0.48384815",
"0.48354742",
"0.48272955",
"0.48266795",
"0.48103097",
"0.48045385",
"0.48040983",
"0.48010802",
"0.4799943",
"0.47966003",
"0.47950527",
"0.4792866",
"0.47843128",
"0.47842067",
"0.4780955",
"0.47759867"
]
| 0.7723575 | 0 |
getter and setter methods zone | public Text getIdAttachHolder()
{
return idAttachHolder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"public Zone getZone() {\n/* 4808 */ return this.zone;\n/* */ }",
"public void get() {\n }",
"@Override\n public void get() {}",
"public int getx(){\r\n return z;\r\n}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"double setz(double z) {\nreturn this.z;\n }",
"public String get();",
"public void setdat()\n {\n }",
"public Address getAddress() { return address; }",
"public abstract String get();",
"public Object get()\n {\n return m_internalValue;\n }",
"public int getlife(){\r\n return life;\r\n}",
"public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }",
"public void getCity(){\n }",
"public V get() {\n return value;\n }",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"String setValue();",
"@Override\n String get();",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"@Test\n\tpublic void testGetters() {\n\t\tEngine engine = new Engine(20);\n\t\tCoordinate point = new Coordinate(5,5);\n\t\tCoordinate playerLocation = engine.getMoveableObject(0).getLocation();\n\t\tint playerX = playerLocation.getX();\n\t\tint playerY = playerLocation.getY();\n\t\tassertEquals(\"failure - didn't create coordinate x-val\", 5, point.getX(), 0.0);\n\t\tassertEquals(\"failure - didn't create coordinate y-val\", 5, point.getY(), 0.0);\n\t\tassertEquals(\"failure - didn't get player's x coordinate correctly\", 3, playerX, 0.0);\n\t\tassertEquals(\"failure - didn't get player's y coordinate correctly\", 3, playerY, 0.0);\n\t\t}",
"public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }",
"public double getLoZ() {\r\n\treturn fieldLoZ;\r\n}",
"public int getAge() {return age;}",
"@Test\n public void setAndGetTest() {\n GameEntity t2 = new GameEntity(new Rectangle(10.0, 10.0));\n\n //Set and getting temp node\n t2.getView().setTranslateX(5.0);\n t2.getView().setTranslateY(5.0);\n Circle temp = new Circle(4);\n t2.setView(temp);\n assertEquals(\"Expected view to be changed\", temp, t2.getView());\n\n //Testing the alive and dead of the object\n t2.setAlive(false);\n assertEquals(\"Expected the object state to be set to dead.\", false, t2.isAlive());\n assertEquals(\"Expected the reverse of object state to be set to alive.\", true, t2.isDead());\n }",
"public T get() {\n return object;\n }",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"boolean get();",
"public int getValue() {\n/* 450 */ return this.value;\n/* */ }",
"String get();",
"String get();",
"protected T getManusia(){\r\n return Manusia;\r\n }",
"public int getX(){return this.x;}",
"public int getAge(){\n return age;\n }",
"private Get() {}",
"private Get() {}",
"public int getf(){\r\n return f;\r\n}",
"public int geti(){\r\n return i;\r\n}",
"public java.lang.String getObservacion(){\n return localObservacion;\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"public Object getNewValue()\n {\n return newValue;\n }",
"protected abstract String getZ();",
"public String getSetter() {\n return \"set\" + getCapName();\n }",
"public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"@Test\n public void testSetAddress() {\n System.out.println(\"setAddress\");\n Member instance = member;\n \n String address = \"10 New Road, Hackney, London\";\n instance.setAddress(address);\n \n String expResult = address;\n String result = instance.getAddress();\n \n assertEquals(expResult,result);\n }",
"protected Object getTableValue()\n\t\t{\n\t\t\treturn Value ;\n\t\t}",
"public Object getValue(){\n \treturn this.value;\n }",
"public ReadLociSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"public Object getValue() { return _value; }",
"double get();",
"public int getValue() { return 42; }",
"public int getArmadura(){return armadura;}",
"public int getPoint(){\n return point;\n }",
"private void assignment() {\n\n\t\t\t}",
"double sety(double y) {\nreturn this.y;\n }",
"public Location location()\n {\n return myLoc;\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Test\n public void testSetLocation() {\n System.out.println(\"Animal.setLocation\");\n animal1.setLocation(101);\n animal2.setLocation(202);\n assertEquals(101, animal1.getLocation());\n assertEquals(202, animal2.getLocation());\n }",
"public double getLongitude_() { \n return longitude_; \n }",
"public int getAge()\r\n {\r\n return age;\r\n }",
"public T set(T obj);",
"public Bounds get() {\n\treturn bounds;\n }",
"public int getSet() {\n return set;\n }",
"public double getHiZ() {\r\n\treturn fieldHiZ;\r\n}",
"public int\t\tget() { return value; }",
"public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }",
"public Ship getShip(){\n return this.ship;\n }",
"@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }",
"@Override\n Derived get();",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"public abstract String getCity();",
"double getz() {\nreturn this.z;\n }",
"public String getAddress()\n{\n return this.address;\n}",
"Place getPlace();",
"public interface IOffset {\nfloat getOffsetX();\n\nvoid setOffsetX(float offsetX);\n\nfloat getOffsetY();\n\nvoid setOffsetY(float offsetY);\n}",
"public final Object get() {\n return getValue();\n }",
"protected byte[] getZoneChangeSetting() {return null;}",
"public void setX(int x) { loc.x = x; }",
"double gety() {\nreturn this.y;\n }",
"public abstract void set(DataType x, DataType y, DataType z);",
"public double getMontoSolicitado(){\n return localMontoSolicitado;\n }",
"public Student getStudent() { return student; }",
"@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}",
"public PC getPC() {return _pc;}",
"public Room getLocalisation(){return this.aLocalisation;}",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"public void setDataGetter(Object instance, Method method) {\n this.instance = instance;\n this.method = method;\n }",
"public Ship getShip (){\n \treturn this.ship;\n }",
"public double getA(){\n return a;\n }",
"@Test\n public void setGetPosition() {\n final CourseType courseType = new CourseType();\n final Integer POSITION = 5;\n courseType.setPosition(POSITION);\n\n assertSame(POSITION, courseType.getPosition());\n }",
"public int somemethod(){\n return this.data;\n }",
"private Element get() {\n return new MockElement();\n }",
"public Object getValue()\n {\n\treturn value;\n }",
"public double getLatitude_() { \n return latitude_; \n }",
"public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public void setAge(int age) { this.age = age; }",
"public int getAge()\n {\n return age;\n }"
]
| [
"0.63166136",
"0.61737466",
"0.61150026",
"0.6077099",
"0.59894294",
"0.5955144",
"0.5944922",
"0.5903446",
"0.5903446",
"0.57830113",
"0.57808983",
"0.5780694",
"0.5774641",
"0.57501763",
"0.57383037",
"0.5736331",
"0.5719467",
"0.5710807",
"0.5706233",
"0.5669176",
"0.5663363",
"0.5634971",
"0.55883765",
"0.5576443",
"0.5566702",
"0.5564158",
"0.5541571",
"0.55228585",
"0.54995704",
"0.5487594",
"0.5481913",
"0.547326",
"0.5470343",
"0.5470343",
"0.5466436",
"0.54551804",
"0.5445727",
"0.54445523",
"0.54445523",
"0.54437494",
"0.54418623",
"0.5437536",
"0.54374737",
"0.54308367",
"0.54287565",
"0.542795",
"0.5418186",
"0.5390732",
"0.5377532",
"0.53763485",
"0.53745663",
"0.53710407",
"0.53705287",
"0.53647953",
"0.5362382",
"0.5358945",
"0.5358845",
"0.5357697",
"0.5355841",
"0.5349811",
"0.5347195",
"0.5347077",
"0.5346129",
"0.5344275",
"0.5343645",
"0.53404325",
"0.53369653",
"0.5322113",
"0.5322066",
"0.53190196",
"0.5314165",
"0.53128695",
"0.53109914",
"0.5304238",
"0.53021646",
"0.5300427",
"0.5299013",
"0.5288351",
"0.52852535",
"0.52849317",
"0.52833205",
"0.5281806",
"0.5278073",
"0.5277587",
"0.52755183",
"0.52710754",
"0.52680284",
"0.52678317",
"0.5264716",
"0.5264047",
"0.52629644",
"0.5261971",
"0.52592885",
"0.525793",
"0.5257564",
"0.52446246",
"0.5241874",
"0.52368426",
"0.52268803",
"0.52265453",
"0.52223766"
]
| 0.0 | -1 |
Active la serrure sans objet | public void activer() throws ActivationImpossibleException {
throw new ActivationImpossibleException("Serrure non activable sans objet, faut pas jouer au plus malin avec moi.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public boolean getActive();",
"public boolean getActive();",
"public void activate();",
"void activate();",
"void activate();",
"public boolean activate();",
"@Override\n public void useActive(Archipelago myArchipelago) {\n }",
"public void activate(){\r\n\r\n\t}",
"boolean isActive();",
"boolean isActive();",
"boolean isActive();",
"public boolean isActive() { return true; }",
"public void activar(){\n\n }",
"public void setActive() {\n\t\tactive = true;\n\t}",
"@Override\n public boolean isActive() {\n return true;\n }",
"public void activate()\n {\n }",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public abstract void activate();",
"public abstract void activate();",
"public boolean isActive(){\n return active;\n }",
"public boolean isActive(){\n return active;\n }",
"@Override\n public boolean isActive() {\n return active;\n }",
"public abstract boolean isActive();",
"public static boolean isActive(){\n return active;\n }",
"public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }",
"public boolean active(){\r\n\t\treturn active;\r\n\t}",
"boolean hasActive();",
"public void activated() \r\n\t{\r\n\t\t\r\n\t}",
"public void setActive(boolean active) { \n this.active = active;\n }",
"int isActive();",
"public boolean isActive(){\n\t\treturn active;\n\t}",
"public boolean isActive(){\r\n\t\treturn active_;\r\n\t}",
"public Boolean getActive()\r\n/* */ {\r\n/* 200 */ return this.active;\r\n/* */ }",
"public void activate() {\n\t\tactivated = true;\n\t}",
"public Boolean isActive();",
"public void setActive( boolean tof ) {\n\t\tthis.active = tof;\n\t}",
"public boolean isActivo()\r\n/* 173: */ {\r\n/* 174:318 */ return this.activo;\r\n/* 175: */ }",
"@Override\r\n public boolean isActive() {\r\n return m_active;\r\n }",
"public abstract Boolean isActive();",
"public void setActive(boolean active) {\r\n this.active = active;\r\n }",
"public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}",
"public void setActive(boolean active) {\r\n this.active = active;\r\n }",
"@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}",
"@Override\n\tpublic void activate() {\n\t\t\n\t}",
"public void setActive(Boolean active) {\n this.active = active;\n }",
"public void setActive(boolean active)\n {\n this.active = active;\n }",
"public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}",
"public void setActive(boolean active) {\n this.active = active;\n }",
"public void setActive(boolean active) {\n this.active = active;\n }",
"public void setActive(boolean active) {\n this.active = active;\n }",
"public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }",
"public boolean getActive()\n {\n return this.active;\n }",
"@Override\n public void activate() {\n \n }",
"public boolean isActive()\n {\n return active;\n }",
"public java.lang.Boolean getActive() {\n return active;\n }",
"public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}",
"public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }",
"public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public boolean isActive( ) {\n\t\treturn active;\n\t}",
"@Override\n public void activate() {\n\n }",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void activate() {\n\t}",
"@Override\n\tpublic void activate() {\n\t}",
"@Override\n public boolean active() {\n return false;\n }",
"@Override\n public boolean isActive() {\n return isActive;\n }",
"public static boolean isActive() {\n\t\treturn activated;\n\t}",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean isActive() \n {\n return this.active;\n }",
"public Boolean getActive() {\n\t\treturn this.Active;\n\t}",
"public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void activateObject(Object arg0, Object arg1) throws Exception {\r\n\t\t//log.info(\"激活对象\");\r\n\t\tsuper.activateObject(arg0, arg1);\r\n\t}",
"public void setActive(java.lang.Boolean active) {\n this.active = active;\n }",
"public void activate(){\n active = true;\n state = State.cleaving;\n }",
"public void setActive(boolean active);",
"public void setActive(boolean active);",
"public void setActive(boolean active);",
"@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}",
"@Override\n public boolean isActive() {\n return amIActive;\n }",
"@Override\n public boolean isActive() {\n return amIActive;\n }",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean isActive() {\r\n return active;\r\n }",
"public void setActiveStatus(Boolean active){ this.status = active; }",
"public void setActive() {\n setState(true);\n }",
"public boolean isActive() {\r\n\t\treturn active;\r\n\t}",
"public void setActive(boolean active) {\n _isActive = active;\n }"
]
| [
"0.7233304",
"0.71083957",
"0.71083957",
"0.7102727",
"0.7066203",
"0.7066203",
"0.70432067",
"0.7031604",
"0.70266134",
"0.6996955",
"0.6996955",
"0.6996955",
"0.692915",
"0.68876076",
"0.6873721",
"0.6752684",
"0.6742787",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6699371",
"0.6699371",
"0.6647629",
"0.6647629",
"0.6642383",
"0.66302997",
"0.6622184",
"0.6617421",
"0.66118294",
"0.6609253",
"0.65660006",
"0.6557808",
"0.65547055",
"0.6550576",
"0.65332425",
"0.6532192",
"0.65243435",
"0.65238804",
"0.6503835",
"0.6502399",
"0.65012777",
"0.64944077",
"0.6493347",
"0.64883953",
"0.64831656",
"0.6471204",
"0.6456131",
"0.64534473",
"0.64404076",
"0.64285886",
"0.64275265",
"0.64275265",
"0.64275265",
"0.64248294",
"0.64155555",
"0.64149344",
"0.6409285",
"0.6403712",
"0.6397418",
"0.637978",
"0.6372271",
"0.636756",
"0.63674796",
"0.63629586",
"0.63629586",
"0.63569957",
"0.63569957",
"0.63503206",
"0.63358694",
"0.6333625",
"0.63282007",
"0.63276446",
"0.63268524",
"0.63220805",
"0.6320174",
"0.6319012",
"0.6318998",
"0.6309014",
"0.6309014",
"0.6309014",
"0.6307776",
"0.6301211",
"0.6301211",
"0.6300771",
"0.6300771",
"0.6290527",
"0.62855786",
"0.6281302",
"0.6277943"
]
| 0.0 | -1 |
/ Tests that the current selection button is the default option on the Set Equate dialog if there is a range of addresses selected. | @Test
public void testApplyToOptions_SetEquate_Selection() {
// put the cursor on a scalar
putCursorOnOperand(0x1004bbd, 0);
// make a selection containing the scalar above.
makeSelection(tool, program, addr("1004bbd"), addr("1004bc5"));
SetEquateDialog d = showSetEquateDialog();
JRadioButton applyToCurrentButton =
(JRadioButton) findComponentByName(d.getComponent(), "applyToCurrent");
final JRadioButton applyToSelectionButton =
(JRadioButton) findComponentByName(d.getComponent(), "applyToSelection");
final JRadioButton applyToAllButton =
(JRadioButton) findComponentByName(d.getComponent(), "applyToAll");
JCheckBox overwriteExistingEquatesButton =
(JCheckBox) findComponentByName(d.getComponent(), "Overwrite");
//change as of 7.0 - dialog should come up with "current location" enabled.
assertNotNull(applyToCurrentButton);
assertTrue(applyToCurrentButton.isEnabled());
assertFalse(applyToCurrentButton.isSelected());
//have selection in this case so should be enabled but not selected
assertNotNull(applyToSelectionButton);
assertTrue(applyToSelectionButton.isEnabled());
assertTrue(applyToSelectionButton.isSelected());
//entire program should be enabled but not selected
assertNotNull(applyToAllButton);
assertTrue(applyToAllButton.isEnabled());
assertFalse(applyToAllButton.isSelected());
//overwrite existing should be visible and enabled, but not selected
assertTrue(overwriteExistingEquatesButton.isVisible());
assertTrue(overwriteExistingEquatesButton.isEnabled());
assertFalse(overwriteExistingEquatesButton.isSelected());
//select applyToSelection and verify that the other buttons respond accordingly
applyToSelectionButton.setSelected(true);
runSwing(
() -> applyToSelectionButton.getActionListeners()[0].actionPerformed(null));
program.flushEvents();
waitForSwing();
assertFalse(applyToAllButton.isSelected());
assertFalse(applyToCurrentButton.isSelected());
assertTrue(applyToSelectionButton.isSelected());
assertTrue(overwriteExistingEquatesButton.isEnabled());
assertFalse(overwriteExistingEquatesButton.isSelected());
close(d);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }",
"protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }",
"public abstract boolean hasSelection();",
"public boolean validateDefaultRadioButtonSelection() {\n\n\t\tboolean b = AttDefaultShowRadioBtn.isSelected();\n\t\tSystem.out.println(\"VISHNU its getting value as:...........\"+b);\n\t\tif(b){\n\t\t\treturn true;\n\t\t}else {\n\t\t\tSystem.out.println(\"Invalid Default redio button selection\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean forceSelection();",
"public boolean isSelectionEmpty() {\n return selectionEmpty;\n }",
"private static boolean hasSelectionListener( Text text ) {\n Button defButton = text.getShell().getDefaultButton();\n // TODO [rst] On GTK, the SelectionListener is also off when the default\n // button is invisible or disabled. Check with Windows and repair.\n boolean hasDefaultButton = defButton != null && defButton.isVisible();\n return !hasDefaultButton && SelectionEvent.hasListener( text );\n }",
"public boolean isSelectionEmpty() {\n\t\t\treturn tablecolselectmodel.isSelectionEmpty();\n\t\t}",
"@Test\n \tpublic void testTargetLocationAlwaysSelected() {\n \t\tComputerPlayer player = new ComputerPlayer();\n \t\tplayer.setLastVistedRoom('L');\n \t\tint enteredRoom = 0;\n \t\tboard.calcTargets(6, 7, 4);\n \t\t//pick location with at least one room as a target\n \t\tfor(int i = 0; i < 100; i++) {\n \t\t\tBoardCell selected = player.pickLocation(board.getTargets());\n \t\t\tif (selected == board.getRoomCellAt(4, 6))\n \t\t\t\tenteredRoom++;\n \t\t}\n \t\t//ensure room is taken every time\n \t\tAssert.assertEquals(enteredRoom, 100);\n \t}",
"@Override\r\n\t\t\t\t\tpublic boolean shouldSelectCell(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}",
"public void testLeadAnchorAfterClearSelection() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 5;\n viewSelectionModel.setSelectionInterval(selected, selected);\n assertEquals(selected, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(selected, viewSelectionModel.getLeadSelectionIndex());\n viewSelectionModel.clearSelection();\n int anchor = selected;\n assertTrue(viewSelectionModel.isSelectionEmpty());\n assertEquals(anchor, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(anchor, viewSelectionModel.getLeadSelectionIndex());\n \n }",
"boolean applicable(Selection selection);",
"public boolean canSelectionChange() {\n return true;\n }",
"private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}",
"public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\tProposal proposal = (Proposal) e.item.getData();\n\t\t\t\tif (proposal != null) {\n\t\t\t\t\tacceptCurrentProposal(true);\n\t\t\t\t} else {\n\t\t\t\t\tproposalTable.deselectAll();\n\t\t\t\t}\n\t\t\t}",
"private boolean isIntervalSelected(Date startDate, Date endDate)\n/* */ {\n/* 133 */ if (isSelectionEmpty()) return false;\n/* 134 */ return (((Date)this.selectedDates.first()).equals(startDate)) && (((Date)this.selectedDates.last()).equals(endDate));\n/* */ }",
"public boolean isSelectionChanged();",
"private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"private boolean selectContactInRowSet() {\r\n int index = getContactSelection().getMinSelectionIndex();\r\n if (index != -1) {\r\n try {\r\n rowSet.absolute(index+1);\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n return (index != -1);\r\n }",
"boolean beforeMasterSelectionChange();",
"private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}",
"public boolean isMaskSelected() {\n return false;\n }",
"public void alertSelection() {\n JOptionPane.showMessageDialog(gui.getFrame(),\n \"`Please select a choice.\",\n \"Invalid Selection Error\",\n JOptionPane.ERROR_MESSAGE);\n }",
"public boolean isMaskSelected() {\n return (this.mActivity.getCameraAppUI().getCurrSelect() == null || this.mActivity.getCameraAppUI().getCurrSelect() == \"\") ? false : true;\n }",
"public boolean checkValidSelection(Point start, Point end){\n \t\tboolean flag = false;\n \t\tif (start.x == end.x) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if (start.y == end.y) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x - start.y) == (end.x - end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x + start.y) == (end.x + end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\treturn flag;\n \t}",
"public boolean isValidDefaultCombo(int id)\n {\n return isValidCombo(id) && id < (1 << (Click.BITS * comboSize)) && id >= (1 << (Click.BITS * (comboSize - 1)));\n }",
"@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }",
"public boolean isDefaultChoice()\r\n\t{\r\n\t\treturn defaultChoice;\r\n\t}",
"public void setMenuDefault() {\n if (disableAll.isSelected()) {\n disableAll.doClick();\n }\n\n if (!(observability.isSelected())) {\n observability.doClick();\n }\n\n if (!(remaining.isSelected())) {\n remaining.doClick();\n }\n\n if (!(allocation.isSelected())) {\n allocation.doClick();\n }\n\n if (!(zoneOfAvoidance.isSelected())) {\n zoneOfAvoidance.doClick();\n }\n }",
"public void setSelection(int start, int stop) {\n/* 89 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void verifyHomeItemIsSelectedByDefault() {\n\t\tmoveToElement(ActiveHome);\n\t\tAssert.assertTrue(isElementPresent(ActiveHome));\n\t\treportInfo();\t\t\n\t}",
"@Override\n public boolean shouldSelectCell(EventObject anEvent){\n return false;\n }",
"public abstract String getSelectedAddressType();",
"void setSelection(int from, int to);",
"@Override\r\n\tpublic boolean shouldSelectCell(EventObject anEvent) {\n\t\treturn true;\r\n\t}",
"@Test\n\tpublic void initialSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] emptySelecion = {};\n\n\t\t// do a selection\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selectionController.getSelection(), selection);\n\t\tassertTrue(\"There was something selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"Incorrect count of elements\", 6, selectionController.getSelectedCount());\n\n\t\t// reset the selection\n\t\tselectionController.reset();\n\t\tassertArrayEquals(\"Selection was different\", selectionController.getSelection(), emptySelecion);\n\t\tassertFalse(\"There was nothing selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"Incorrect count of elements\", 0, selectionController.getSelectedCount());\n\t}",
"@Override\r\n\tpublic boolean forceSelection() {\r\n\t\treturn false;\r\n\t}",
"private boolean checkAddSelectPoint(float x, float y) {\n mLastTouchX = x;\n mLastTouchY = y;\n for (int i = 0; i < mRectFPointList.size(); i++) {\n RectF rect = mRectFPointList.get(i);\n float mOuterOvalRadius = Math.max(mNormalOvalRadius, mSelectOvalRadius);\n if (mOuterOvalRadius < DEFAULT_NORMAL_OVAL_RADIUS) {\n mOuterOvalRadius = DEFAULT_NORMAL_OVAL_RADIUS;\n }\n if (getDistance(rect.centerX(), rect.centerY(), x, y) <= mOuterOvalRadius) {\n // valid distance\n if (!mRectFSelectPointList.contains(rect)) {\n mRectFSelectPointList.add(rect);\n mInputPassword.add(i + 1);\n return true;\n }\n return false;\n }\n }\n return false;\n }",
"protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }",
"@Override\n\t\t\t\tprotected void operationSelectRange(PlaneXY planeXY) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void widgetDefaultSelected(SelectionEvent arg0) {\n\n }",
"public boolean select() {\n\n // The applet declines to be selected\n // if the pin is blocked.\n if ( pin.getTriesRemaining() == 0 )\n return false;\n\n return true;\n\n }",
"public void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t}",
"public boolean hasSelectionLimit()\n {\n return (this.getSelectionLimit() > 0L);\n }",
"protected void testPickAabb(QueryCallback callback) {\n\ttestPickAabb(callback, Editor.PICK_SIZE_DEFAULT);\n}",
"public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}",
"public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}",
"public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}",
"public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}",
"public boolean isSelectionListener() {\n return true;\n }",
"@Override\r\n public boolean getDefaultAnswer() {\n return true;\r\n }",
"public void testSynchLeadSelection() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 0;\n viewSelectionModel.setSelectionInterval(selected, selected);\n FilterPipeline pipeline = null; //new FilterPipeline();\n // pipeline.assign(ascendingModelAdapter);\n SelectionMapper selectionMapper = new SelectionMapper(pipeline, viewSelectionModel);\n int anchor = selected;\n int lead = selected;\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n anchor = 2;\n viewSelectionModel.setValueIsAdjusting(true);\n viewSelectionModel.setAnchorSelectionIndex(anchor);\n viewSelectionModel.setValueIsAdjusting(false);\n // pipeline.flush();\n assertAnchorLeadSynched(anchor, lead, viewSelectionModel, selectionMapper);\n \n }",
"public void toggleAutoRange() {\n/* 350 */ this.autoRange = this.autoRangeCheckBox.isSelected();\n/* 351 */ if (this.autoRange) {\n/* 352 */ this.minimumRangeValue.setText(Double.toString(this.minimumValue));\n/* 353 */ this.minimumRangeValue.setEnabled(false);\n/* 354 */ this.maximumRangeValue.setText(Double.toString(this.maximumValue));\n/* 355 */ this.maximumRangeValue.setEnabled(false);\n/* */ } else {\n/* */ \n/* 358 */ this.minimumRangeValue.setEnabled(true);\n/* 359 */ this.maximumRangeValue.setEnabled(true);\n/* */ } \n/* */ }",
"public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\n\t}",
"public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n/* 269 */ String command = event.getActionCommand();\n/* 270 */ if (command.equals(\"GridStroke\")) {\n/* 271 */ attemptGridStrokeSelection();\n/* */ }\n/* 273 */ else if (command.equals(\"GridPaint\")) {\n/* 274 */ attemptGridPaintSelection();\n/* */ }\n/* 276 */ else if (command.equals(\"AutoRangeOnOff\")) {\n/* 277 */ toggleAutoRange();\n/* */ }\n/* 279 */ else if (command.equals(\"MinimumRange\")) {\n/* 280 */ validateMinimum();\n/* */ }\n/* 282 */ else if (command.equals(\"MaximumRange\")) {\n/* 283 */ validateMaximum();\n/* */ }\n/* 285 */ else if (command.equals(\"AutoTickOnOff\")) {\n/* 286 */ toggleAutoTick();\n/* */ }\n/* */ else {\n/* */ \n/* 290 */ super.actionPerformed(event);\n/* */ } \n/* */ }",
"public boolean shouldSelectCell(EventObject event) {\n\treturn realEditor.shouldSelectCell(event);\n }",
"boolean isSetControlPosition();",
"public boolean isAutoRange() { return this.autoRange; }",
"@Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n }",
"boolean isPickEnabled();",
"public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }",
"public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }",
"public void setPriceFilterButtonSelection(int selection) {\n SearchMetaData homesMetadata = ExploreHomesFiltersFragment.this.dataController.getHomesMetadata();\n if (homesMetadata != null && homesMetadata.getSearch() != null && homesMetadata.getPriceHistogram() != null && !ListUtils.isEmpty((Collection<?>) homesMetadata.getPriceHistogram().getSymbolRanges()) && homesMetadata.getPriceHistogram().getSymbolRanges().size() == 2) {\n this.priceButtonsModel.selection(selection);\n ExploreHomesFiltersFragment.this.searchFilters.setPriceFilterSelection(selection);\n int minPriceLow = ((Integer) homesMetadata.getPriceHistogram().getSymbolRanges().get(0)).intValue();\n int midPriceHigh = ((Integer) homesMetadata.getPriceHistogram().getSymbolRanges().get(1)).intValue();\n switch (selection) {\n case 1:\n ExploreHomesFiltersFragment.this.searchFilters.setMinPrice(0);\n ExploreHomesFiltersFragment.this.searchFilters.setMaxPrice(minPriceLow);\n return;\n case 2:\n ExploreHomesFiltersFragment.this.searchFilters.setMinPrice(minPriceLow);\n ExploreHomesFiltersFragment.this.searchFilters.setMaxPrice(midPriceHigh);\n return;\n case 3:\n ExploreHomesFiltersFragment.this.searchFilters.setMinPrice(midPriceHigh);\n ExploreHomesFiltersFragment.this.searchFilters.setMaxPrice(0);\n return;\n default:\n return;\n }\n }\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}",
"private void checkAddress() {\n\t\t// if \"Set Address\" has not been performed then give the message to set\n\t\t// it first\n\t\tif (null == oscPort) {\n\t\t\tshowError(\"Please set an address first\");\n\t\t}\n\t}",
"private void defaultSelectedFilterOption() {\n activeSelectBtn.setChecked(true);\n upcomingSelectBtn.setChecked(true);\n inProgressSelctBtn.setChecked(true);\n yettoJoinSelctBtn.setChecked(true);\n bookmarkedSelctBtn.setChecked(false);\n category1SelectBtn.setChecked(true);\n category2SelectBtn.setChecked(true);\n category3SelectBtn.setChecked(true);\n category4SelectBtn.setChecked(true);\n category5SelectBtn.setChecked(true);\n category6SelectBtn.setChecked(true);\n category7SelectBtn.setChecked(true);\n category8SelectBtn.setChecked(true);\n category9SelectBtn.setChecked(true);\n category10SelectBtn.setChecked(true);\n }",
"@Override\r\n @Test\r\n public void testSelectedOnClearItemsRange() {\r\n int start = 2;\r\n int end = 5;\r\n getSelectionModel().selectRange(start, end);\r\n TreeItem parent = getSelectedItem().getParent();\r\n clearItems();\r\n if (getSelectionModel().isEmpty()) {\r\n assertEquals(null, getSelectedItem());\r\n assertEquals(-1, getSelectedIndex());\r\n assertEquals(\"selectedItems must be empty\", 0, getSelectedItems().size());\r\n assertTrue(\"\", getSelectedIndices().isEmpty());\r\n// assertEquals(\"focus must be cleared\", -1, getFocusModel()\r\n// .getFocusedIndex());\r\n } else {\r\n assertEquals(0, getSelectedItems().indexOf(parent));\r\n assertEquals(\"parent selected after clearing children\", parent,\r\n getSelectedItem());\r\n }\r\n }",
"public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }",
"public boolean requiresSelectVarious() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }",
"@Override\n\tpublic boolean shouldSelectCell(EventObject anEvent) {\n\t\tcomboBox.requestFocus();//获取焦点数据\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"shouldSelectCell\\t\"+\n\t\t\t\ttable.getEditingRow()+\",\"+table.getEditingColumn());\n\t\treturn false;\n\t}",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public void testSumAtSelectionOnOthersAccount() {\r\n addAccount();\r\n addAccount2();\r\n solo.pressSpinnerItem(0, 1);\r\n addOp();\r\n tools.printCurrentTextViews();\r\n assertTrue(solo.getText(FIRST_SUM_AT_SEL_IDX).getText().toString().contains(Formater.getSumFormater().format(2000.50 - 10.50)));\r\n }",
"public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}",
"public void onYesButtonClicked() {\n changeAfterClientPick();\n }",
"@Override\n\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\n\t}",
"@Test\n public void supportsNullSelection() throws Exception {\n listView.select(null);\n verify(listener, only()).onItemSelection((Set) argThat(empty()));\n }",
"private boolean selectionFound(JTextPane pane) {\r\n\t\tfinal int selectionStart = pane.getSelectionStart();\r\n\t\tfinal int selectionEnd = pane.getSelectionEnd();\r\n\t\treturn selectionStart != selectionEnd;\r\n\t}",
"private void cmdExcelReportWidgetSelected() {\n\n\t}",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, \"您沒有選擇任何藍牙裝置。\", Toast.LENGTH_LONG).show();\n\t\t\t}",
"public void clearSelection()\n/* */ {\n/* 166 */ if (isSelectionEmpty()) return;\n/* 167 */ clearSelectionImpl();\n/* 168 */ fireValueChanged(DateSelectionEvent.EventType.SELECTION_CLEARED);\n/* */ }",
"public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }",
"@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }",
"@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }",
"@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }",
"@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }",
"@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }",
"@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }",
"private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}",
"protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}"
]
| [
"0.6097894",
"0.5930597",
"0.5841824",
"0.57236296",
"0.57144326",
"0.5565184",
"0.5536705",
"0.55242145",
"0.5517325",
"0.54729337",
"0.54333735",
"0.54189974",
"0.5392081",
"0.5386499",
"0.53720355",
"0.5364088",
"0.53171676",
"0.5315013",
"0.5311373",
"0.52990603",
"0.5283527",
"0.52798915",
"0.52501994",
"0.52441204",
"0.52356637",
"0.52180505",
"0.52017635",
"0.52005804",
"0.5191511",
"0.5171731",
"0.5170289",
"0.5169493",
"0.5144794",
"0.5137329",
"0.5126977",
"0.510466",
"0.5101441",
"0.51014405",
"0.5086546",
"0.50844777",
"0.5081501",
"0.50811774",
"0.5079623",
"0.50784886",
"0.50700694",
"0.5069527",
"0.50662076",
"0.50662076",
"0.50662076",
"0.50662076",
"0.50597185",
"0.50569606",
"0.5053698",
"0.5051782",
"0.5048388",
"0.5047554",
"0.50471854",
"0.50160605",
"0.50158775",
"0.500009",
"0.49874473",
"0.49869496",
"0.4983078",
"0.4964011",
"0.49571633",
"0.4955926",
"0.49558094",
"0.49462935",
"0.49459636",
"0.49459323",
"0.4944522",
"0.4943925",
"0.494037",
"0.493464",
"0.4924063",
"0.49213895",
"0.49208817",
"0.49140528",
"0.4912718",
"0.49124253",
"0.49067953",
"0.49005514",
"0.49001268",
"0.4897932",
"0.48967916",
"0.48967916",
"0.48967916",
"0.48967916",
"0.48967916",
"0.48967916",
"0.48922896",
"0.48919982",
"0.48919982",
"0.48919982",
"0.4886417",
"0.48849198",
"0.48849198",
"0.48849198",
"0.48849198",
"0.48849198"
]
| 0.6507489 | 0 |
Notice b is before a, since we pop b first | private int operation(int b, char op, int a) {
switch (op) {
case '+': return a + b;
case '-': return a - b;
case '*': return a * b;
case '/': return a / b; //assume b is not 0
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void addBack(T b) {\r\n head = head.addBack(b);\r\n }",
"public O before(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != 0) //is defined and not first\r\n return get(index-1);\r\n else return null;\r\n }",
"private static int leftBump(int[] a) {\n for (int i = 2; i <= a.length; i++) {\n if (a[i] < a[i - 1]) {\n return i - 1;\n }\n }\n return -1;\n }",
"public void pop() {\n// \tSystem.out.println(s2.empty());\n \tint l1 = s1.size();\n \tfor(int i=0;i<l1;i++){\n \ts2.push(s1.pop());\n }\n// \tSystem.out.println(s1.empty());\n// \tSystem.out.println(s2.pop());\n \tint l2 = s2.size();\n \tfor(int i=0;i<l2;i++){\n \ts1.push(s2.pop());\n }\n }",
"@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if (index < arr.length) {//popping the delete function unneeded push\n delete(index);\n stack.pop();\n stack.pop();\n }\n System.out.println(\"backtracking performed\");\n }\n }",
"void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }",
"public void swapB(ListUtilities temp){\n\t\t//make temp point to b\n\t\ttemp = this.prevNum;\n\t\t\n\t\t//if b is not first, make \n\t\tif(temp.prevNum != null){\n\t\t\t//make a next be c\n\t\t\ttemp.prevNum.nextNum = this;\n\t\t\t//make c prev be a\n\t\t\tthis.prevNum = temp.prevNum;\n\t\t}else{\n\t\t\t//else make it point at nothing\n\t\t\tthis.prevNum = null;\n\t\t}\n\t\t//if c is not last\n\t\tif(this.nextNum != null){\n\t\t\t//make b next be d\n\t\t\ttemp.nextNum = this.nextNum;\n\t\t\t//make d prev be b\n\t\t\tthis.nextNum.prevNum = temp;\n\t\t}else{\n\t\t\t//else have 1 point at nothing\n\t\t\tthis.nextNum = null;\n\t\t}\n\t\t\n\t\t//make 1 prev be 2\n\t\tthis.nextNum = temp;\n\t\t//make 2 next be 1\n\t\ttemp.prevNum = this;\n\t}",
"private void pop() {\r\n pop( false );\r\n }",
"@Test\n\tpublic void testPopBack2() {\n\t\tcircularlist.pushBack(4);\n\t\tcircularlist.pushBack(12);\n\t\tcircularlist.pushBack(7);\n\t\tcircularlist.pushBack(9);\n\t\t\n\t\tcircularlist.popBack();\n\t\tcircularlist.popBack();\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : 4 12\\r\\n\", Actualout.toString());\n\t}",
"private void push(int b) {\n\n\t\tmemory[--sp] = b;\n\t}",
"public void uncheckedPushBack(IClause c) {\n back++;\n if (back >= tab.length)\n back = 0;\n tab[back] = c;\n\n assert back + 1 != front\n && (front != 0 || back != tab.length - 1) : \"Deque is full !\";\n }",
"public void uncheckedPushFront(IClause c) {\n tab[front--] = c;\n if (front < 0)\n front = tab.length - 1;\n\n assert back + 1 != front\n && (front != 0 || back != tab.length - 1) : \"Deque is full !\";\n }",
"public void copyGreaterToLess(Data a, Data b)\r\n\t\t{\r\n\t\t\tif ((a == null) || (b == null))\r\n\t\t\t\treturn;\r\n\r\n\t\t\tTreeNode dataGT = a.getGT(); //get a's Greater Than tree\r\n\t\t\tTreeNode dataLT = b.getLT(); //get b's Less Than tree\r\n\r\n\t\t\tif (dataGT != null)\r\n\t\t\t{\r\n\t\t\t\tData fill = dataGT.popData(); //pop all of the greater data\r\n\t\t\t\twhile (fill != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tdataLT.insert(fill); //insert it into the less data\r\n\t\t\t\t\tfill = dataGT.popData();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}",
"public void pop();",
"static void hardDrop(Block b) {\n int[] pos = b.pos;\n char[][] piece = b.piece;\n\n while (canPlace(pos[0] + 1, pos[1], piece))\n pos[0]++;\n\n place(pos[0], pos[1], piece);\n }",
"@Test\n\tpublic void testPopFront2() {\n\t\tcircularlist.pushBack(4);\n\t\tcircularlist.pushBack(12);\n\t\tcircularlist.pushBack(7);\n\t\tcircularlist.pushBack(9);\n\t\t\n\t\tcircularlist.popFront();\n\t\tcircularlist.popFront();\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : 7 9\\r\\n\", Actualout.toString());\n\t}",
"public void shiftUp() {\n\t\tif (next == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" up because it is already at the top\");\n\t\t}\n\t\tDependencyElement n = next;\n\t\tDependencyElement nn = next.next;\n\t\tif (nn != null) {\n\t\t\tnn.prev = this;\n\t\t\tnext = nn;\n\t\t}\n\t\telse {\n\t\t\tnext = null;\n\t\t}\n\t\tn.next = this;\n\t\tn.prev = prev;\n\t\tprev = n;\n\t}",
"public int pop() {\n if(queueA.isEmpty() && queueB.isEmpty()){\n return -1;\n }\n if(!queueA.isEmpty()){\n while(queueA.size()!=1){\n queueB.add(queueA.poll());\n }\n return queueA.poll();\n }else{\n while(queueB.size()!=1){\n queueA.add(queueB.poll());\n }\n return queueB.poll();\n }\n }",
"abstract void pop();",
"@Override\r\n public void addFront(T b) {\r\n head = head.addFront(b);\r\n }",
"public void pushBack(IClause c) {\n back++;\n if (back >= tab.length)\n back = 0;\n tab[back] = c;\n\n if (back + 1 == front || (front == 0 && back == tab.length - 1))\n throw new BufferOverflowException();\n }",
"@Override\r\n public void remove(T b) {\r\n head = head.remove(b);\r\n }",
"@Test\n\tpublic void test2() {\n\t\tassertEquals(-1,b.removeNode(500));\n\t\t\n\t\t//Borro una hoja\n\t\tassertEquals(0,b.removeNode(3));\n\t\tassertEquals(\"1:FB=0\\t2:FB=0\\t7:FB=0\\t10:FB=1\\t13:FB=1\\t15:FB=0\\t20:FB=-1\\t23:FB=0\\t30:FB=0\\t40:FB=0\\t43:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=-1\\t90:FB=0\\t100:FB=0\\t110:FB=0\\t230:FB=0\\t\",b.inOrder());\n\n\t\t//Borra un elemento con un hijo\n\t\tassertEquals(0,b.removeNode(110));\n\t\tassertEquals(\"1:FB=0\\t2:FB=0\\t7:FB=0\\t10:FB=1\\t13:FB=1\\t15:FB=0\\t20:FB=-1\\t23:FB=0\\t30:FB=0\\t40:FB=0\\t43:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=-1\\t90:FB=0\\t100:FB=1\\t230:FB=0\\t\",b.inOrder());\n\t\t//Borra un elemento con dos hijos\n\t\tassertEquals(0,b.removeNode(90));\n\t\tassertEquals(\"1:FB=0\\t2:FB=0\\t7:FB=0\\t10:FB=1\\t13:FB=1\\t15:FB=0\\t20:FB=-1\\t23:FB=0\\t30:FB=0\\t40:FB=0\\t43:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=1\\t100:FB=1\\t230:FB=0\\t\",b.inOrder());\t\n\t\t\n\t\t//Borra la raiz (30)\n\t\tassertEquals(0,b.removeNode(30));\n\t\tassertEquals(\"1:FB=0\\t2:FB=0\\t7:FB=0\\t10:FB=0\\t13:FB=0\\t15:FB=0\\t20:FB=0\\t23:FB=1\\t40:FB=0\\t43:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=1\\t100:FB=1\\t230:FB=0\\t\",b.inOrder());\n\t\t\n\t\t//Borro 1\\t7\\t13\n\t\tassertEquals(0,b.removeNode(1));\n\t\tassertEquals(0,b.removeNode(7));\n\t\tassertEquals(0,b.removeNode(13));\n\t\tassertEquals(\"2:FB=0\\t10:FB=1\\t15:FB=1\\t20:FB=0\\t23:FB=1\\t40:FB=0\\t43:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=1\\t100:FB=1\\t230:FB=0\\t\",b.inOrder());\n\t\t\n\t\t//Borro 20. RSD 2,0\n\t\tassertEquals(0,b.removeNode(20));\n\t\t\n\t\t\n\t\t\n\t\tassertEquals(\"2:FB=0\\t10:FB=0\\t15:FB=0\\t23:FB=1\\t40:FB=0\\t43:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=-1\\t65:FB=0\\t70:FB=1\\t100:FB=1\\t230:FB=0\\t\",b.inOrder());\n\t\t\n\t\t//Borro el 230. RDI -2, 1\n\t\tassertEquals(0,b.removeNode(230));\n\t\tassertEquals(\"2:FB=0\\t10:FB=0\\t15:FB=0\\t23:FB=-1\\t40:FB=0\\t43:FB=0\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=0\\t100:FB=0\\t\",b.inOrder());\n\t\t\n\t\t//Borro 23\n\t\tassertEquals(0,b.removeNode(23));\n\t\tassertEquals(\"2:FB=0\\t10:FB=-1\\t15:FB=-1\\t40:FB=0\\t43:FB=0\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=0\\t100:FB=0\\t\",b.inOrder());\n\t\t\n\t\t//Borro 43 (raiz) y RSI sobre el nodo 15\n\t\tassertEquals(0,b.removeNode(43));\n\t\tassertEquals(\"2:FB=0\\t10:FB=0\\t15:FB=0\\t40:FB=1\\t49:FB=1\\t50:FB=0\\t60:FB=0\\t65:FB=0\\t70:FB=0\\t100:FB=0\\t\",b.inOrder());\n\t\t\n\t}",
"@Test\n\tpublic void testPopBack1() {\n\t\tcircularlist.pushBack(1);\n\t\t\n\t\tcircularlist.popBack();\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : Empty List.\\r\\n\", Actualout.toString());\n\t}",
"public void pop() {\n\t List<Integer> temp = new ArrayList<>();\n\t Integer last = null;\n\t first = null;\n\t \n\t do{\n\t last = s.pop();\n\t if(s.isEmpty()){\n\t break;\n\t }\n\t first = last;\n\t temp.add(last);\n\t \n\t }while (true);\n\t \n\t for(int i = temp.size()-1; i >=0; i--){\n\t s.push(temp.get(i));\n\t }\n\t \n\t}",
"@Override\r\n\tprotected String doBackward(List<Emotion> b) {\n\t\treturn null;\r\n\t}",
"public final void sub() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue - topMostValue);\n\t\t}\n\t}",
"private void swap(int a, int b) {\n Node newB = aHeap.get(a);\n Node newA = aHeap.get(b);\n aHeap.remove(a);\n aHeap.add(a, newA);\n itemMap.put(aHeap.get(a).getItem(), a);\n aHeap.remove(b);\n aHeap.add(b, newB);\n itemMap.put(aHeap.get(b).getItem(), b);\n }",
"E pop();",
"E pop();",
"E pop();",
"@Test\n public void removeLastItem() {\n ard.addLast(\"a\");\n //front should be 0\n ard.addLast(\"b\");\n //front should be 0\n ard.addLast(\"c\");\n //front = 0\n ard.removeFirst();\n //front = 1\n assertEquals(2, ard.size());\n ard.removeFirst();\n //front = 2\n assertEquals(1, ard.size());\n ard.removeFirst();\n //front = 3\n assertEquals(0, ard.size());\n ard.addFirst(\"front was 2, now is 1\");\n String[] expect = {null, null, \"front was 2, now is 1\", null, null, null, null, null, null, null, null};\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n\n ard = new ArrayDeque<String>();\n ard.addFirst(\"c\");\n //front should be -1\n ard.addFirst(\"b\");\n //front should be -2\n ard.addFirst(\"a\");\n //front = -3\n ard.removeLast();\n //front = -3\n assertEquals(2, ard.size());\n ard.removeLast();\n //front = -3\n assertEquals(1, ard.size());\n ard.removeLast();\n //front = -3\n assertEquals(0, ard.size());\n ard.addFirst(\"front was -3, now is -4\");\n expect = new String[]{null, null, null, null, null, null, null, \"front was -3, now is -4\", null, null, null};\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n }",
"public static void balanceHeaps()\n {\n // add your code here\n if(Math.abs(s.size()-g.size()) > 1){\n if(s.size() > g.size()){\n g.add(s.poll());\n }\n else {\n s.add(g.poll());\n }\n }\n }",
"public void shiftDown() {\n\t\tif (prev == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" down because it is already at the bottom\");\n\t\t}\n\t\tDependencyElement p = prev;\n\t\tDependencyElement pp = prev.prev;\n\t\tif (pp != null) {\n\t\t\tpp.next = this;\n\t\t\tprev = pp;\n\t\t}\n\t\telse {\n\t\t\tprev = null;\n\t\t}\n\t\tp.prev = this;\n\t\tp.next = next;\n\t\tnext = p;\n\t}",
"Object pop();",
"static void pop() {\n\t\t\tif (q1.isEmpty()) \n\t\t\t\treturn; \n\t\t\tq1.remove(); \n\t\t\tcurr_size--; \n\t\t}",
"@Override\r\n\tpublic void entferneBeobachter(Beobachter b) {\n\t\tint i = beobachter.indexOf(b);\r\n\t\tif(i >= 0)\r\n\t\t\tbeobachter.remove(i);\r\n\t}",
"private static void merge(int[] a, int[] b) {\n\t\tint aI = a.length-1;\r\n\t\tint bI = b.length-1;\r\n\t\tint posI=a.length-b.length-1;\r\n\t\t\r\n\t\r\n\t\twhile (aI>=0 ) {\r\n\t\t\tif(a[posI]> b[bI]) {//missing the test for posI>=0 see mergeInPlace(int a[],int b[])\r\n\t\t\t\ta[aI]=a[posI];\r\n\t\t\t\tposI--;\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\r\n\t\t\t\ta[aI]=b[bI];\r\n\t\t\t\tbI--;\r\n\r\n\t\t\t}\r\n\t\t\taI--;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int x:a) {\r\n\t\t\tSystem.out.println(x);\r\n\t\t}\r\n\t}",
"protected void sPopBack() {\n if (head == tail)\n return;\n mMyArray[tail] = null;\n tail--;\n }",
"public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }",
"public Item popLeft(){\n if(isEmpty()) throw new NoSuchElementException(\"Underflow\");\n\n Item item = first.item;\n first = first.next;\n n--;\n return item;\n }",
"public static KittyNode commAns(KittyNode a, KittyNode b){\n KittyNode trava,travb;\n trava = a;\n travb = b;\n if(trava == null)\n return travb;\n else if(travb == null)\n return trava;\n while(trava.prev != null || travb.prev != null){\n if(trava.lvl == travb.lvl){\n if(trava.prev == travb.prev)\n return trava.prev;\n trava = trava.prev;\n travb = travb.prev;\n }\n else if(trava.lvl > travb.lvl){\n if(trava.prev == travb)\n return travb;\n trava = trava.prev;\n }else if(trava.lvl < travb.lvl){\n if(trava == travb.prev)\n return trava;\n travb = travb.prev;\n }\n }\n if(trava != null)\n return trava;\n else\n return travb;\n }",
"public O after(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != size()-1) //is defined and not last\r\n return get(index+1);\r\n else return null;\r\n }",
"private int[] fader(int[] a, int[] b) {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(a[i] > b[i]) {\n\t\t\t\ta[i] = a[i]-1;\n\t\t\t} else if(a[i] < b[i]) {\n\t\t\t\ta[i] = a[i]+1;\n\t\t\t}\n\t\t}\n\n\t\treturn a;\n\t}",
"private static List<Integer> reverseFibonnaci(int a, int b){\n List<Integer> res = new ArrayList<Integer>();\n Deque<Integer> stack = new ArrayDeque<Integer>();\n\n int prev2 = a;\n int prev1 = b;\n stack.push(prev2);\n stack.push(prev1);\n for(int i = 0; i < 10; i++){\n int sum = prev1 + prev2;\n stack.push(sum);\n prev2 = prev1;\n prev1 = sum;\n }\n\n while(!stack.isEmpty()){\n res.add(stack.pop());\n }\n\n\n return res;\n }",
"Runnable popBottom() {\n // is the queue empty?\n if (bottom == 0) // empty\n return null;\n bottom--;\n Runnable r = tasks[bottom];\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n // no conflict with thieves\n if (bottom > oldTop)\n return r;\n // possible conflict: try to pop it ourselves\n if (bottom == oldTop)\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n // queue is empty, reset bottom and top to 0\n bottom = 0;\n top.set(0, newStamp);\n return null;\n }",
"private void backObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToBack();\n }\n\t}",
"@Test\n\tpublic void testPopFront1() {\n\t\tcircularlist.pushBack(1);\n\t\t\n\t\tcircularlist.popFront();\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : Empty List.\\r\\n\", Actualout.toString());\n\t}",
"private void pushBack() {\n\t\tbufferLocal.insertarEnCabeza(listaTokens.get(listaTokens.size()-1));\n\t}",
"public void pop() throws StackUnderflowException;",
"public int peek() {\n \tint l1 = s1.size();\n \tfor(int i=0;i<l1;i++){\n \ts2.push(s1.pop());\n }\n \tint s = s2.peek();\n \tint l2 = s2.size();\n \tfor(int i=0;i<l2;i++){\n \ts1.push(s2.pop());\n }\n \treturn s;\n }",
"public void pushFront(IClause c) {\n tab[front--] = c;\n if (front < 0)\n front = tab.length - 1;\n\n if (back + 1 == front || (front == 0 && back == tab.length - 1))\n throw new BufferOverflowException();\n }",
"static int[] removeElement(int[] a, int b){\n int newSize = a.length - countElement(a,b);\n // create an empty array with the new size\n int[] newArray = new int[newSize];\n // we need a index to know at what position in the new array we need to\n // put first element\n // logically, the first position is 0\n int tempIndex = 0;\n // we go through all elements of old array to find\n // those which need to be put in the new array\n for(int i = 0; i < a.length; i++){\n // once we find one\n if(b != a[i]){\n // we add it to the new array at new index\n newArray[tempIndex] = a[i];\n // increment the index so that the next element we find\n // we put it at the next index, otherwise\n // we'd put everything in position 0\n tempIndex++;\n }\n }\n return newArray;\n }",
"public void pop()\n {\n this.top = this.top.getNext();\n }",
"public void popToPointer() {\n while (this.size() > undoPointer + 1) {\n super.pop();\n }\n }",
"@Test\n public void getLast() {\n //getFirst and getLast are also relied on for the majority of this Junit.\n //if these are broken you can probably figure that out elsewhere\n String[] expect = new String[ArrayDeque.INITIAL_CAPACITY];\n //check first addFirst. should go to last index in arr\n expect[0] = \"a\";\n expect[1] = \"b\";\n expect[2] = \"c\";\n expect[3] = \"d\";\n expect[4] = \"e\";\n ard.addLast(\"a\");\n ard.addLast(\"b\");\n ard.addLast(\"c\");\n ard.addLast(\"d\");\n ard.addLast(\"e\");\n\n //getFirst and getLast are also relied on for the majority of this Junit.\n //if these are broken you can probably figure that out elsewhere\n assertEquals(\"e\", ard.getLast());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n ard.removeLast();\n expect[4] = null;\n assertEquals(\"d\", ard.getLast());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n ard.addFirst(\"before\");\n expect[10] = \"before\";\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n for (int i = 0; i < 5; i++) {\n ard.addFirst(\"more before\");\n expect[9 - i] = \"more before\";\n }\n assertEquals(\"d\", ard.getLast());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n }",
"@Test\n public void getFirst() {\n //getFirst and getLast are also relied on for the majority of this Junit.\n //if these are broken you can probably figure that out elsewhere\n String[] expect = new String[ArrayDeque.INITIAL_CAPACITY];\n //check first addFirst. should go to last index in arr\n expect[0] = \"a\";\n expect[1] = \"b\";\n expect[2] = \"c\";\n expect[3] = \"d\";\n expect[4] = \"e\";\n ard.addLast(\"a\");\n ard.addLast(\"b\");\n ard.addLast(\"c\");\n ard.addLast(\"d\");\n ard.addLast(\"e\");\n\n //getFirst and getLast are also relied on for the majority of this Junit.\n //if these are broken you can probably figure that out elsewhere\n assertEquals(\"a\", ard.getFirst());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n ard.removeFirst();\n expect[0] = null;\n assertEquals(\"b\", ard.getFirst());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n ard.addLast(\"after\");\n expect[5] = \"after\";\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n for (int i = 0; i < 5; i++) {\n ard.addLast(\"more after\");\n expect[6 + i] = \"more after\";\n }\n assertEquals(\"b\", ard.getFirst());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n }",
"public boolean isBefore(Book b1, Book b2);",
"public Item pop(Item item){\n\nif(isEmpty()) throw new NoSuchElementException(\"Stack undervflow\"); \n Item item =top.item;\n top = top.next;\n N--;\n return item;\n}",
"public Object pop();",
"@Override\n\tpublic Position<E> before(Position<E> p) throws IllegalArgumentException {\n\t\tif (this.first() == p) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn convert(p).prev;\n\t}",
"public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }",
"public static WordFrq[] sort(WordFrq b[]){\n WordFrq temp;\n int i=0;\n while (i < 3) {\n for (i = 1; i < 3; i++) {\n if (b[i-1].count > b[i].count) {\n temp = b[i];\n b[i] = b[i-1];\n b[i-1] = temp;\n break;\n }\n }\n }\n\n\n return b;\n\n\n\n\n\n }",
"public void remove(){\n if(!isAfterNext)//flag false so next has not been called\n {\n throw new IllegalStateException();\n \n }\n if(position == first){\n removeFirst();//calls LL method because we re an inner class\n \n }\n else{\n previous.next = position.next;// move ref of previou to node after me \n }\n position = previous; \n isAfterNext= false;\n //first call to remove the current position reverts to the predecessor \n //of remove element thus predecessor is no longer known \n }",
"public void pop() {\n int size = q.size();\n for(int i = 1; i<size;i++){\n q.offer(q.poll());\n }\n q.poll();\n }",
"public boolean isBefore(Group3Date b) {\n\t\t\treturn compareTo(b) < 0;\n\t\t}",
"int pop() \r\n {\n if(top < 0)\r\n {\r\n System.out.println(\"Stack Underflow Occurred!\");\r\n return -1;\r\n }\r\n //Write your code here\r\n int p = a[top];\r\n top--;\r\n return p; \r\n }",
"@Test\n public void revertBackTest() {\n stack.revertBack(stack2);\n assertEquals(stack2.toString(), stack.toString());\n\n ResourceStack stack3 = new ResourceStack(99,99,99,99);\n stack2.revertBack(stack3);\n assertEquals(stack3.toString(), stack2.toString());\n }",
"public abstract Object pop();",
"public final synchronized void b(SyncQueueItem syncQueueItem) {\n if (this.a == null) {\n this.a = syncQueueItem;\n return;\n }\n SyncQueueItem syncQueueItem2 = this.a;\n while (syncQueueItem2.j != null) {\n syncQueueItem2 = syncQueueItem2.j;\n }\n syncQueueItem2.j = syncQueueItem;\n }",
"@Override\n\tpublic void decrementPop(int x) {\n\t\t\n\t}",
"public static void sortStack2(Stack s){\n Stack ordered = new Stack();\n while(s.isEmpty() == false){\n Node top = s.pop();\n while(ordered.isEmpty() == false && ordered.peek() >= top.data){\n s.push(ordered.pop());\n }\n ordered.push(top);\n }\n while(ordered.isEmpty()==false){\n s.push(ordered.pop());\n }\n }",
"public void pop() {\n // Write your code here\n if (!queue1.isEmpty()) {\n while (queue1.size() > 1) {\n queue2.offer(queue1.poll());\n }\n queue1.poll();\n } else if (!queue2.isEmpty()) {\n while (queue2.size() > 1) {\n queue1.offer(queue2.poll());\n }\n queue2.poll();\n }\n }",
"public static void main(String[] args) {\n\t\tint a = 2;\n\t\tint b= 3;\n\t\tSystem.out.println(\"brfore a and \"+a);\n\t\tSystem.out.println(\"before b is \"+b);\n\t\tint temp;\n\t\t\n\t//move from a to temp\n\t\ttemp =a;\n\t\ta=b;\n\t\tb=temp;\n\t\tSystem.out.println(\"after a and \"+a);\n\t\tSystem.out.println(\"after b is \"+b);\n\t\t\n\t\t\n\n\t}",
"public void pop() {\n \tint size = s.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts2.push(s.pop());\n \t}\n s2.pop();\n }",
"@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }",
"public void pop() {\n \n q1.poll();\n }",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"private boolean complementsBlockBuffer(Block b) {\n for (Block i : blockBuffer) {\n if (b.prevHash.equals(i.hash)) {\n return true;\n }\n }\n return false;\n }",
"protected static void swapReferences(List<?> array, int a, int b){\n Collections.swap(array, a, b);\n }",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"private Proof implLeftWeakness(Expression b, Proof p) {\n Proof axm1 = axm1(p.lastExpr(), b); //a -> b -> a\n return mpBack(axm1, p); //b -> a\n }",
"public E popTop() {\n // FILL IN\n }",
"@Override\n\tpublic int pop() {\n\t\treturn 0;\n\t}",
"public int pop() { return 0; }",
"public void pushBack (O o)\r\n {\r\n //create new VectorItem\r\n VectorItem<O> vi = new VectorItem<O> (o,last, null);\r\n if (isEmpty()) \r\n {\r\n last = vi;\r\n first = vi;\r\n }\r\n else \r\n {\r\n last.setNext(vi);\r\n last = vi;\r\n }\r\n count++;\r\n }",
"Position<T> before(Position<T> p) throws IllegalStateException;",
"private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }",
"public void pop() {\n one.poll();\n \n }",
"public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }",
"public void insertReorderBarrier() {\n\t\t\n\t}",
"@Test\r\n public void testInsertBefore()\r\n {\r\n // test non-empty list\r\n DoublyLinkedList<Integer> testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1);\r\n testDLL.insertBefore(1,2);\r\n testDLL.insertBefore(2,3);\r\n\r\n testDLL.insertBefore(0,4);\r\n \r\n assertEquals( \"Checking insertBefore to a list containing 3 elements at position 0\", \"4,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(1,5);\r\n assertEquals( \"Checking insertBefore to a list containing 4 elements at position 1\", \"4,5,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(2,6); \r\n assertEquals( \"Checking insertBefore to a list containing 5 elements at position 2\", \"4,5,6,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(-1,7); \r\n assertEquals( \"Checking insertBefore to a list containing 6 elements at position -1 - expected the element at the head of the list\", \"7,4,5,6,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(7,8); \r\n assertEquals( \"Checking insertBefore to a list containing 7 elemenets at position 8 - expected the element at the tail of the list\", \"7,4,5,6,1,2,3,8\", testDLL.toString() );\r\n testDLL.insertBefore(700,9); \r\n assertEquals( \"Checking insertBefore to a list containing 8 elements at position 700 - expected the element at the tail of the list\", \"7,4,5,6,1,2,3,8,9\", testDLL.toString() );\r\n\r\n // test empty list\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position 0 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(10,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position 10 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(-10,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position -10 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n }",
"public void popAll()\r\n {\n this.top = null;\r\n }",
"@Override\n\tpublic void backspace()\n\t{\n\t\tif (!isAtStart()) left.pop();\n\t}",
"@Override\n public AmortizedDeque<T> pushBack(T t) {\n return new AmortizedDeque<>(head, tail.pushFront(t));\n }",
"@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}",
"void findNextGreaterOnRight(int a[]) {\n\t\tStack<Integer> stack = new Stack<>();\n\t\tstack.push(a[0]);\n\t\tfor(int i = 1; i < a.length; i++) {\n\t\t\twhile(stack.size() > 0 && a[i] > stack.peek()) {\n\t\t\t\tSystem.out.println(stack.pop() + \" -> \" + a[i]);\n\t\t\t}\n\t\t\tstack.push(a[i]);\n\t\t}\n\t\twhile(stack.size() != 0) {\n\t\t\tSystem.out.println(stack.pop() + \" -> -1\");\n\t\t}\n\t}",
"@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}",
"private void compressLeftSingleTonPairs(final S a) {\n Function<Pair<S, S>, Consumer<GPairRecord<S, S>>> consumerFunction = p -> new ArrayList<>()::add;\n Predicate<S> leftPredicate = nonTerminal -> doLeftPop(nonTerminal, head -> head.isTerminal() && !head.equals(a));\n Predicate<S> rightPredicate = nonTerminal -> doRightPop(nonTerminal, tail -> tail.isTerminal() && tail.equals(a));\n pop(phase + 1, leftPredicate, rightPredicate, consumerFunction);\n List<GPairRecord<S, S>> records = getPairs(p -> p.a.equals(a) && !p.b.equals(a));\n sortPairs(records);\n compressNonCrossingPairs(records);\n }",
"public void pop() {\n s2.pop();\n temp = (Stack<Integer>) s2.clone();\n s1.clear();\n while (!temp.isEmpty()) {\n s1.push(temp.pop());\n }\n }",
"static void sortStack(Stack<Integer> s)\n\t{\n\t\t// If stack is not empty\n\t\tif (!s.isEmpty()) \n\t\t{\n\t\t\t// Remove the top item\n\t\t\tint x = s.pop();\n\n\t\t\t// Sort remaining stack\n\t\t\tsortStack(s);\n\n\t\t\t// Push the top item back in sorted stack\n\t\t\tsortedInsert(s, x);\n\t\t}\n\t}"
]
| [
"0.6341844",
"0.6043025",
"0.5920433",
"0.5909741",
"0.5879814",
"0.5823406",
"0.5770422",
"0.5769018",
"0.5742887",
"0.57392156",
"0.5737959",
"0.5686352",
"0.56742305",
"0.5646252",
"0.56454134",
"0.5622701",
"0.5614487",
"0.56018776",
"0.5581031",
"0.55753136",
"0.5562698",
"0.5561877",
"0.5557685",
"0.55391747",
"0.55346924",
"0.5517314",
"0.55128515",
"0.5509254",
"0.5506824",
"0.5506824",
"0.5506824",
"0.5495825",
"0.5486362",
"0.5485509",
"0.546625",
"0.546485",
"0.54596174",
"0.5449669",
"0.5441622",
"0.5436847",
"0.5435753",
"0.54042256",
"0.5401072",
"0.53883964",
"0.53837883",
"0.53830445",
"0.5369529",
"0.53548974",
"0.5351549",
"0.53494275",
"0.5340459",
"0.5337999",
"0.5325625",
"0.5325073",
"0.53241456",
"0.5323586",
"0.53176856",
"0.53160495",
"0.5315982",
"0.53141373",
"0.53141224",
"0.53138655",
"0.5312611",
"0.5309384",
"0.5308764",
"0.53078985",
"0.5304367",
"0.5294081",
"0.52937335",
"0.52927774",
"0.5292482",
"0.52885884",
"0.52857435",
"0.52844894",
"0.52768093",
"0.52749103",
"0.5273957",
"0.52604854",
"0.52583593",
"0.52559924",
"0.5255461",
"0.52529734",
"0.52520895",
"0.5238916",
"0.5235675",
"0.5235405",
"0.52352864",
"0.52340245",
"0.52336454",
"0.5226936",
"0.5212436",
"0.5210018",
"0.52081615",
"0.52008",
"0.5196512",
"0.51925343",
"0.5191456",
"0.51893926",
"0.5189292",
"0.5185721",
"0.5184995"
]
| 0.0 | -1 |
helper function to check precedence of the uppermost operator in the ops stack and current operator | private boolean hasPrecedence(char op1, char op2) {
if (op1 == '(' || op1 == ')') {
return false;
}
if ((op1 == '+' || op1 == '-') && (op2 == '*' || op2 == '/')) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getPrecedence(char operator)\r\n\t{\r\n\t\tswitch (operator)\r\n\t\t{\r\n\t\tcase '(': case ')': return 0;\r\n\t\tcase '+': case '-': return 1;\r\n\t\tcase '*': case '/': return 2;\r\n\t\tcase '^':\t\t\treturn 3;\r\n\t\tcase '.': return 4;\r\n\t\t} // end switch\r\n\r\n\t\treturn -1;\r\n\t\t\r\n\t}",
"private boolean precedence(String input) {\n\t\tboolean complies = true;\n\t\t\n\t\tif(((input.equals(\"+\")) || (input.equals(\"-\"))) && (operationStack.empty() == false))\n\t\t{\n\t\t\tif((operationStack.peek().equals(\"*\")) || (operationStack.peek().equals(\"/\")))\n\t\t\t{\n\t\t\t\tcomplies = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn complies;\n\t}",
"private static boolean checkPrecedence(String operator1, String operator2){\n\n\t\tif((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public int precedence() {\n return 1;\n }",
"@Override\n public int precedence() {\n return 1;\n }",
"public int getPrecedence() {\n switch (operator) {\n case AND:\n return 2;\n case OR:\n default:\n return 1;\n }\n }",
"@Override\n public int precedence() {\n return op.precedence();\n }",
"public int getPrecedence(char operator) {\n switch (operator) {\n case '+':\n case '-':\n return 1;\n case '*':\n case '/':\n return 2;\n case '^':\n return 3;\n }\n\n return -1;\n }",
"private boolean peekedHasPrecedence(\tchar peeked,\r\n\t\t\t\t\t\t\t\t\t\t\tchar current )\r\n\t{\r\n\t\tif ( ( peeked == '+' || peeked == '-' ) && ( current == '*' || current == '/' ) )\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}//end if\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}//end else\r\n\t}",
"@Override public int precedence() {\n return precedence;\n }",
"abstract public int getPrecedence();",
"private static boolean check_precedence_low(char c, char top)\n { \n\t\tif( ((c==')')||(c=='('))&& ((top=='*') || (top=='/') || (top=='^')|| (top=='r')|| \n \t\t(top=='s')|| (top=='c')|| (top=='t')|| (top=='+')||(top=='-') || (top=='*')|| (top=='/')||(top=='l')))\n \t\t{\n \t return false; \n \t\t}\n\t\telse if ((c=='+') && ((top=='*') || (top=='/') || (top=='^')|| (top=='r')|| (top=='s')|| (top=='c')|| (top=='t')))\n \t\t{\n \t return true;\n \t}\n else if((c=='-') && ((top=='*')||(top=='/') || (top=='^')|| (top=='r')|| (top=='s')|| (top=='c')|| (top=='t')))\n\t\t{\n \t return true;\n \t\t}\n else if(c=='*' && top=='^' || (top=='r')|| (top=='s')|| (top=='c')|| (top=='t'))\n {\n \t return true;\n }\n else if(c=='/' && top=='^'|| (top=='r')|| (top=='s')|| (top=='c')|| (top=='t'))\n {\n \t return true;\n }\n \n \n \n else return false;\n }",
"boolean hasOperator();",
"@Override\n public int precedence() {\n return 2;\n }",
"@Override\n public int precedence() {\n return 2;\n }",
"public abstract int getPrecedence();",
"private boolean postFixEvalution(char operator) throws ArithmeticException{\n //Pre: Validar que el stack no este vacio y que los operandos sean numeros.\n //Post: Realizar la operacion indicada\n try{\n if(!stack.empty()){\n //Se obtienen los dos operandos mas recientes del stack.\n Integer op2 = stack.pop();\n Integer op1 = stack.pop();\n\n //Se determina la operacion por hacer.\n if(op1 != null && op2 != null){\n switch (operator){\n case '+':\n stack.push(op1 + op2);\n break;\n case '-':\n stack.push(op1 - op2);\n break;\n case '*':\n stack.push(op1 * op2);\n break;\n case '/':\n stack.push(op1 / op2);\n break;\n }\n return true;\n }\n else\n return false;\n }\n else{\n return false;\n }\n }\n catch (ArithmeticException e){\n String ex = \"Error: Division por 0\";\n throw new ArithmeticException(ex);\n }\n }",
"private boolean isSymbolOperatorAhead() {\r\n\t\treturn expression[currentIndex] == '*' || expression[currentIndex] == '+' || expression[currentIndex] == '!'\r\n\t\t\t\t|| (currentIndex + 2 < expression.length && expression[currentIndex] == ':'\r\n\t\t\t\t\t\t&& expression[currentIndex + 1] == '+' && expression[currentIndex + 2] == ':');\r\n\t}",
"private boolean keepEvaluating(Stack<Operator> pOperatorStack, Operator pOperator) {\n if (pOperatorStack.isEmpty()) {\n return false;\n } else {\n return pOperatorStack.peek().stackPrecedence() >= pOperator.precedence();\n }\n }",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }",
"private void topEval(Stack<Operator> pOperatorStack, Stack<Operand> pOperandStack) {\n Operand right = pOperandStack.pop();\n Operator operator = pOperatorStack.pop();\n if (operator instanceof UnaryOperator) {\n pOperandStack.push(((UnaryOperator)operator).evaluate(right));\n } else {\n Operand left = pOperandStack.pop();\n pOperandStack.push(((BinaryOperator)operator).evaluate(left, right));\n }\n }",
"private static Integer getPrecedence(Character c) {\n Integer precedence = operatorMap.get(c);\n return precedence == null ? 6 : precedence;\n }",
"public static int getOperatorPrecedence(Tree.Kind kind) {\n switch (kind) {\n case AND:\n return BITWISE_AND;\n case BITWISE_COMPLEMENT:\n return UNARY;\n case CONDITIONAL_AND:\n return LOGICAL_AND;\n case CONDITIONAL_EXPRESSION:\n return TERNARY;\n case CONDITIONAL_OR:\n return LOGICAL_OR;\n case DIVIDE:\n return MULTIPLICATIVE;\n case EQUAL_TO:\n return EQUALITY;\n case GREATER_THAN:\n return RATIONAL;\n case INSTANCE_OF:\n return RATIONAL;\n case LEFT_SHIFT:\n return SHIFT;\n case LESS_THAN:\n return RATIONAL;\n case LESS_THAN_EQUAL:\n return RATIONAL;\n case LOGICAL_COMPLEMENT:\n return UNARY;\n case MINUS:\n return ADDITIVE;\n case MULTIPLY:\n return MULTIPLICATIVE;\n case NOT_EQUAL_TO:\n return EQUALITY;\n case OR:\n return BITWISE_INCLUSIVE_OR;\n case PLUS:\n return ADDITIVE;\n case POSTFIX_DECREMENT:\n return POSTFIX;\n case POSTFIX_INCREMENT:\n return POSTFIX;\n case PREFIX_DECREMENT:\n return UNARY;\n case PREFIX_INCREMENT:\n return UNARY;\n case REMAINDER:\n return MULTIPLICATIVE;\n case RIGHT_SHIFT:\n return SHIFT;\n case UNARY_MINUS:\n return UNARY;\n case UNARY_PLUS:\n return UNARY;\n case UNSIGNED_RIGHT_SHIFT:\n return SHIFT;\n case XOR:\n return BITWISE_EXCLUSIVE_OR;\n default:\n return 14;\n }\n }",
"private static int precedence(Element element1, Element element2) {\r\n\t\tif (element1.isLeftParenthesis()) {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\tif (element1.isPlusSign() || element1.isMinusSign()) {\r\n\t\t\tif (element2.isTimesSign() || element2.isDividedBySign()) {\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"Object findOperatorNeedCheck();",
"public static boolean precedenceOrder(char op1, char op2) {\n\t\t\n\t\tif (op2 == '(' || op2 == ')')\n\t\t\treturn false;\n\t\t// if the second operator is a + or - than it does not get higher precendence\n\t\t// over the * and /\n\t\tif ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-'))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public static boolean hasPrecedence(char op1, char op2) {\n\n\t\tif (op2 == '(' || op2 == ')') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-')){\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean isSmallerPrecedenceThan(/*const*/ Token T){\n\t\tassert(isOprUner() || isOprBiner());\n\t\tassert(T.isOprUner() || T.isOprBiner());\n\t\t\n\t\treturn getRank() < T.getRank();\n\t}",
"private static int precedence(char c) {\n if (c == '-' || c == '+') {\n return 1;\n } else if (c == '*' || c == '/') {\n return 2;\n }\n return -1;\n }",
"private void processOperator(String operator){\n if (numStack.size() <2){\n System.out.println(\"Stack underflow.\");\n }\n else if (dividingByZero(operator)){\n System.out.println(\"Divide by 0.\"); \n }\n else{\n int num1 = numStack.pop();\n int num2 = numStack.pop();\n int result = performCalculation(num1, num2, operator);\n numStack.push(result);\n }\n\n }",
"public boolean isHigher(Operator o){\n if(indent > o.indent){\n return true;\n }else{\n return prec > o.prec;\n }\n }",
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"private int precedenceOf(char x) {\n final int EXPONENT_PRECEDENCE = 2;\n final int MULTIPLY_PRECEDENCE = 1;\n final int ADDITION_PRECEDENCE = 0;\n\n int precedence = -1;\n if (x == '^') precedence = EXPONENT_PRECEDENCE;\n if (x == '*' || x == '/') precedence = MULTIPLY_PRECEDENCE;\n if (x == '+' || x == '-') precedence = ADDITION_PRECEDENCE;\n return precedence;\n }",
"protected boolean checkOperators()\n {\n Object loLeft ;\n Object loRight ;\n Object loOperator ;\n Object loConditionType ;\n boolean lboolOK = true ;\n\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n loLeft = getData( \"AND_COND_LHS_\" + liCtr ).getObject() ;\n loConditionType = getData( \"AND_COND_TYP_\" + liCtr ).getObject() ;\n loOperator = getData( \"AND_COND_OPR_\" + liCtr ).getObject() ;\n loRight = getData( \"AND_COND_RHS_\" + liCtr ).getObject() ;\n if ( ( loLeft != null ) && ( loOperator == null ) )\n {\n lboolOK = false ;\n raiseException( \"An operator is required for Condition \" + liCtr ) ;\n } /* end if ( ( loLeft != null ) && ( loOperator == null ) ) */\n\n if (loConditionType == null)\n {\n if(loLeft != null)\n {\n lboolOK = false ;\n raiseException( \"%c:Q0150,v: Condition Type for Condition \" +\n liCtr + \",v: Left Hand Side is %\" ) ;\n }\n if(loRight != null)\n {\n lboolOK = false ;\n raiseException( \"%c:Q0150,v: Condition Type for Condition \" +\n liCtr + \",v: Right Hand Side is %\" ) ;\n }\n } /* end if (loConditionType == null) */\n } /* end for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ ) */\n return lboolOK ;\n }",
"java.lang.String getOperator();",
"public boolean isOperator() {\n\t\treturn (letter == '+') || (letter == '*') ||\n\t\t\t (letter == '%') || (letter == '-') ? true : false;\n\t}",
"private boolean isOperator(String s) {\n\t\treturn (s.equals(\"+\") || s.equals(\"-\") || s.equals(\"*\") || s.equals(\"/\") || s.equals(\"^\"));\n\t}",
"static boolean binaryOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"binaryOperator\")) return false;\n boolean r;\n r = multiplicativeOperator(b, l + 1);\n if (!r) r = additiveOperator(b, l + 1);\n if (!r) r = shiftOperator(b, l + 1);\n if (!r) r = relationalOperator(b, l + 1);\n if (!r) r = consumeToken(b, EQ_EQ);\n if (!r) r = bitwiseOperator(b, l + 1);\n return r;\n }",
"public boolean isOperator(){\n return true;\n }",
"private boolean isOperator(char input) {\n\t\tboolean isOperator = false;\n\t\t\n\t\tif((input == '+') || (input == '-') || (input == '*') || (input == '/'))\n\t\t{\n\t\t\tisOperator = true;\n\t\t}\n\t\t\n\t\treturn isOperator;\n\t}",
"public boolean validOperator(char op){\n switch(op){\n case '+':\n case '-':\n case '*':\n case '/':\n case '^':\n case ')':\n case '(':\n return true;\n }\n\n return false;\n }",
"public int precedence(String c){\n if(c.equals(\"+\")) return 1;\r\n if(c.equals(\"-\")) return 1;\r\n if(c.equals(\"*\")) return 2;\r\n if(c.equals(\"/\")) return 2;\r\n return -1;\r\n }",
"private boolean isOperator(String value) {\r\n return value.equals(\"*\") || value.equals(\"/\") || value.equals(\"-\") || value.equals(\"+\") || value.equals(\"(\") || value.equals(\")\");\r\n }",
"private static boolean isOperator(String token) {\n\t\treturn OPERATORS.containsKey(token);\n\t}",
"private boolean isOperator(String operator)\n {\n switch(operator)\n {\n case \"+\":\n case \"-\":\n case \"*\":\n case \"/\":\n case \"%\":\n return true;\n default:\n return false;\n }\n }",
"private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }",
"String getOperator();",
"public int precedence(String c){\n if(c.equals(\"+\")) return 1;\n if(c.equals(\"-\")) return 1;\n if(c.equals(\"*\")) return 2;\n if(c.equals(\"/\")) return 2;\n return -1;\n }",
"private boolean isOperator(char ch)\n {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')\n//returns true if either of the operator is found\n return true;\n//else returns false\n return false;\n }",
"public static boolean isOperator(String token) {\n if (Connective.getValueFromSymbol(token) == null) {\n return false;\n } else {\n return true;\n }\n }",
"private boolean isOperator(char x) {\n return (x == '^' ||\n x == '*' ||\n x == '/' ||\n x == '+' ||\n x == '-');\n }",
"private static boolean isOperator(String value){\r\n\t\tif (value.equals(\"+\") ||value.equals(\"-\")|| value.equals(\"*\")|| value.equals(\"/\"))\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"private static boolean check_if_operator(char c)\n {\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'|| c == 'r'\n || c == '(' || c == ')'|| c == 's' || c == 'c' || c == 't' || c == 'l';\n }",
"public boolean isOperator(char c){\n char[] operator = { '+', '-', '*', '/','^', ')', '(' };\r\n int temp = 0;\r\n for (int i = 0; i < operator.length; i++) {\r\n if (c == operator[i])\r\n temp +=1;\r\n }\r\n return temp != 0;\r\n }",
"public Precedence precedence() {\n\treturn this.precedence;\n }",
"public boolean isOperator(char operator) {\r\n \tif (operator == '+' || operator == '-' ||\r\n \t\t\t\toperator == '*' || operator == '/' || \r\n \t\t\t\toperator == '^' || operator == '%') {\r\n \t\t\r\n \t\treturn true;\r\n \t} else {\r\n \t\treturn false;\r\n \t}\r\n \r\n }",
"private boolean isOperator(char c) {\n\t\treturn c == '<' || c == '=' || c == '>' || c == '!';\n\t}",
"public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }",
"public static boolean isOperator(char c){\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '%' \n || c == '(' || c == ')';\n }",
"public void operator(String str) {\n if (!(emptyStack()) && (OperatorOperand.operatorPrecedence(str)\n <= OperatorOperand.operatorPrecedence(expStack.lastElement()))) {\n String stackTop = expStack.lastElement();\n while ((!(stackTop.equals(\"(\"))) || (OperatorOperand.operatorPrecedence(str)\n <= OperatorOperand.operatorPrecedence(expStack.lastElement()))) {\n postFix.add(stackTop);\n expStack.pop();\n if (!(emptyStack())) {\n stackTop = expStack.lastElement();\n continue;\n }\n break;\n }\n }\n expStack.push(str);\n }",
"private static boolean isOperator(String c)\n\t\t{\t\n\t\t\tif (c.equals(\"+\") || c.equals(\"-\") || c.equals(\"*\") || c.equals(\"/\") ) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//holds the previous token type as a string\n\t\tString previousTokenType = \"first token\";\n\t\t\n\t\t//Iterate over all tokens in expression\n\t\twhile(getToken.hasNext()){\n\t\t\tcurToken = getToken.next();\n\t\t\t\n\t\t\t//if the token is an operand (meaning it is an integer), add to postfix expression\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\t//if the token sequence is valid, add the current token to the psotfix expression\n\t\t\t\tif(checkValidTokenSequence(\"operand\", previousTokenType)){\n\t\t\t\t\tpostfix += (curToken + \" \");\n\t\t\t\t\tpreviousTokenType = \"operand\";\n\t\t\t\t}\n\t\t\t\telse{ //otherwise throw an exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is a left bracket check that the token sequence is valid and push the\n\t\t\t//token on the stack\n\t\t\telse if(curToken.equals(\"(\")){\n\t\t\t\tif(checkValidTokenSequence(\"left bracket\", previousTokenType)){\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"left bracket\";\n\t\t\t\t}\n\t\t\t\telse{//if the token sequence is invalid throw and exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the token is an operator, check sequence validity\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\t//if the token is an operator and it is the first token, the expression is invalid\n\t\t\t\tif(previousTokenType.equals(\"first token\")){\n\t\t\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t\t\t}\n\t\t\t\t//if the token sequence is valid, add all operator on stack with lower or equal precedence to\n\t\t\t\t//to the prefix expression\n\t\t\t\tif(checkValidTokenSequence(\"operator\", previousTokenType)){\n\t\t\t\t\twhile(!operatorStack.empty() && checkPrecedence(operatorStack.peek(),curToken)){\n\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\t//push the current token on the operator stack\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"operator\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the token sequence is invalid, throw exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is a right bracket, check that token sequence is valid\n\t\t\telse if(curToken.equals(\")\")){\n\t\t\t\t\n\t\t\t\t//if the token sequence is valid, add all operators on operator stack \n\t\t\t\t//to the prefix expression until the matching left bracket is reached\n\t\t\t\tif(checkValidTokenSequence(\"right bracket\", previousTokenType)){\n\t\t\t\t\tboolean hasMatchingBracket = false;\n\t\t\t\t\t\n\t\t\t\t\twhile(!operatorStack.empty()){\n\t\t\t\t\t\tif(!operatorStack.peek().equals(\"(\")){\n\t\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\toperatorStack.pop();\n\t\t\t\t\t\t\thasMatchingBracket = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the right bracket does not have a matching left bracket, throw an exception\n\t\t\t\t\tif(!hasMatchingBracket){\n\t\t\t\t\t\tthrow new PostFixException(\"Missing left bracket\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpreviousTokenType = \"right bracket\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the token sequence is invalid throw an exception\n\t\t\t\telse{\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is not a valid token, throw an exception\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check to see if the last token was an operator, if so throw an exception\n\t\tif(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t}\n\t\t\n\t\t//while there operator stack is not empty, pop whatever is in the stack and append\n\t\twhile(!operatorStack.empty()){\n\t\t\t//if there is a bracket left in the stack, then the infix expression is invalid\n\t\t\tif(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\")){\n\t\t\t\tthrow new PostFixException(\"Bracket mismatch\");\n\t\t\t}\n\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//return the postfix expression\n\t\treturn postfix;\n\t}",
"protected void operation(String op) {\n \tint value;\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tint second = stack.pop();\n \t // handles when only one value in stack\n \t\tif (stack.empty()) {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tstack.push(second);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tcurrent = second *-1;\n \t\t\t\tstack.push(current);\n \t\t\t\tshow(stack.peek());\n \t\t\t\tcurrent = 0;\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t}\n \t // handles the other cases\n \t\telse {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tvalue = second + stack.pop();\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tvalue = stack.pop() - second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tvalue = stack.pop() * second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tvalue = stack.pop() / second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t}\n \t}\n }",
"public int getPriority(char operator){\n switch(operator){\n case '^':\n return 3;\n case '*':\n case '/':\n return 2;\n case '+':\n case '-':\n return 1;\n }\n\n return 0;\n }",
"public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}",
"private boolean isOperator(String input) {\n return new String(this.operator).contains(input);\n }",
"private static boolean isOperator(char c) {\n return c == '+' ||\n c == '-' ||\n c == '*' ||\n c == '/';\n }",
"public int getOperandCount()\n {\n if (_operator != null) \n {\n int operandCount = _operator.getOperandCount();\n if (operandCount != -1)\n return operandCount;\n }\n return 1;\n }",
"public static boolean isOperator(String name) {\n if (name.length() == 0) {\n return false;\n }\n // Pieced together from various sources (JsYaccLexer, DefaultJsParser, ...)\n switch (name.charAt(0)) {\n case '+':\n return name.equals(\"+\") || name.equals(\"+@\");\n case '-':\n return name.equals(\"-\") || name.equals(\"-@\");\n case '*':\n return name.equals(\"*\") || name.equals(\"**\");\n case '<':\n return name.equals(\"<\") || name.equals(\"<<\") || name.equals(\"<=\") || name.equals(\"<=>\");\n case '>':\n return name.equals(\">\") || name.equals(\">>\") || name.equals(\">=\");\n case '=':\n return name.equals(\"=\") || name.equals(\"==\") || name.equals(\"===\") || name.equals(\"=~\");\n case '!':\n return name.equals(\"!=\") || name.equals(\"!~\");\n case '&':\n return name.equals(\"&\") || name.equals(\"&&\");\n case '|':\n return name.equals(\"|\") || name.equals(\"||\");\n case '[':\n return name.equals(\"[]\") || name.equals(\"[]=\");\n case '%':\n return name.equals(\"%\");\n case '/':\n return name.equals(\"/\");\n case '~':\n return name.equals(\"~\");\n case '^':\n return name.equals(\"^\");\n case '`':\n return name.equals(\"`\");\n default:\n return false;\n }\n }",
"static boolean isOperator(char c) {\n return \"+\\u2212\\u00d7\\u00f7/*\".indexOf(c) != -1;\n }",
"private int findExpression(List<Operator> ops, int offset, int length) {\n \n Operator op = ops.get(offset);\n if (op instanceof BinaryOperator) {\n \n // Invalid\n throw new RuntimeException(\"Expression must not start with binary operator\");\n } else if (op instanceof UnaryOperator) {\n \n // Just a unary operator\n return 1;\n \n } else if (op instanceof PrecedenceOperator) {\n \n PrecedenceOperator pop = (PrecedenceOperator)op;\n \n if (!pop.begin) {\n \n // Invalid\n throw new RuntimeException(\"Invalid paranthesis\");\n \n } else {\n \n // Find closing bracket\n int open = 1;\n for (int i=offset+1; i<length; i++){\n if (ops.get(i) instanceof PrecedenceOperator){\n pop = (PrecedenceOperator)ops.get(i);\n if (pop.begin) open++;\n else open--;\n if (open == 0){\n return i-offset+1;\n }\n }\n }\n // Invalid\n throw new RuntimeException(\"Missing closing paranthesis\");\n }\n } else {\n \n // Invalid\n throw new RuntimeException(\"Unknown operator\");\n }\n }",
"public boolean isOp ( ) {\n\t\treturn extract ( handle -> handle.isOp ( ) );\n\t}",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"public boolean isValidOperator(String op)\n {\n return (normalizeOperator(op) != null);\n }",
"private boolean isArithOp() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isRelation())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.PLUS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isArithOp())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(theNextToken.TokenType == TokenType.MINUS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isArithOp())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"operations(StringBuilder input, int currentMode)\n\t{\n\t\t\n\t\tchar tempVal = ' ';\n\t\t\n\t\tif(isPair(input) == true) {\n\t\t\t\n\t\t\t// determining which mode the input is set to and converting to decimal to make it easier \n\t\t\t\n\t\t\tif(currentMode == 1)\n\t\t\t{\n\t\t\t\tinput = hexConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 3)\n\t\t\t{\n\t\t\t\tinput = binConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 4)\n\t\t\t{\n\t\t\t\tinput = octConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode != 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input mode\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length(); i++)\n\t\t\t{\n\t\t\t\ttempVal = input.charAt(i);\n\t\t\t\t\n\t\t\t\t\tif(isNumber(input.charAt(i)) == true)\n\t\t\t\t\t{\n\t\t\t\t\t\tevalulateQueue.add(Character.toString(tempVal));\n\t\t\t\t\t}\n\t\t\t\t\telse if((isOperator(input.charAt(i)) == true) || (isLeftParen(input.charAt(i)) == true) || (isRightParen(input.charAt(i)) == true))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isLeftParen(input.charAt(i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ((isRightParen(input.charAt(i))) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (operationStack.empty() == false)\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\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(temp.equals(\"(\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t\t\toperationStack.pop();\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\toperationStack.pop();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(precedence(Character.toString(tempVal)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\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\twhile(precedence(Character.toString(tempVal)) == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t}\n\t\t\n\t\t// moving operation stack to evaluation queue\n\t\t\n\t\twhile(operationStack.empty() != true)\n\t\t{\n\t\t\tString movingVal = operationStack.peek();\n\t\t\tevalulateQueue.add(movingVal);\n\t\t\toperationStack.pop();\n\t\t}\n\t\t\n\t\t// test \n\t\t\n\t\tSystem.out.println(\"$$$$$$$$$$\");\n\t\tfor(String item: evalulateQueue) {\n\t\t\tSystem.out.print(item);\n\t\t}\n\t\tSystem.out.println(\"\\n$$$$$$$$$$\");\n\t\t\n\t\t// converting post-fix notation to the final result\n\t\t\n\t\twhile(evalulateQueue.isEmpty() != true)\n\t\t{\n\t\t\tString currentNum = evalulateQueue.peek();\n\t\t\tSystem.out.println(currentNum);\n\t\t\t\n\t\t\t// if its an operator, popping two numbers from evaluate stack to evaluate\n\t\t\tif((isOperator(currentNum.charAt(0))) && (evaluateStack.size() > 0))\n\t\t\t{\n\t\t\t\tString firstNum = evaluateStack.pop();\n\t\t\t\tString secondNum = evaluateStack.pop();\n\t\t\t\tdouble addedRes;\n\t\t\t\t\n\t\t\t\t// evaluating and pushing into the final queue\n\t\t\t\t\n\t\t\t\tswitch (currentNum) {\n\t\t\t\t\tcase \"+\": \n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) + Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\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\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) - Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\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\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) * Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\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\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) / Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\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\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Error, invalid operation\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if its a number, pushing it on the evaluate stack to be operated on\n\t\t\telse if (isNumber(currentNum.charAt(0)))\n\t\t\t{\n\t\t\t\tevaluateStack.push(currentNum);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input into final queue\");\n\t\t\t}\n\t\t\t\n\t\t\t// removing the last item in the queue\n\t\t\t\n\t\t\tevalulateQueue.remove();\n\t\t\t\n\t\t}\n\t}",
"private IMathExpr parseOperator(String expr, MathBinOper operator,\r\n boolean processLeft2Right) throws InvalidMathExprException {\r\n int startPos, endPos, step;\r\n \r\n if (processLeft2Right) { // Parse expression forwards.\r\n startPos = 0;\r\n endPos = expr.length();\r\n step = 1;\r\n } else { // Parse expression backwards.\r\n startPos = expr.length() - 1;\r\n endPos = -1; // Going backwards, even 0 index counts.\r\n step = -1;\r\n }\r\n \r\n int i = startPos;\r\n while (i != endPos) {\r\n if (this.isOutsideOfBracket(expr, i)) {\r\n char c = expr.charAt(i);\r\n \r\n if (c == operator.getSign()) {\r\n IMathExpr left = new MathExpr(expr.substring(0, i));\r\n IMathExpr right = new MathExpr(expr.substring(i + 1,\r\n expr.length()));\r\n \r\n return MathBinOper.buildBinaryOper(operator, left, right);\r\n }\r\n }\r\n \r\n i += step;\r\n }\r\n \r\n return null;\r\n }",
"boolean operator(Character input){\r\n //detects operands\r\n if(input == '^'||input == '-'||input == '+'||input == '/'||input == '*'|| input =='('|| input ==')'){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }",
"boolean isOp();",
"public static String getrp(String s){\n char[] arr = s.toCharArray();\n int len = arr.length;\n String out = \"\";\n\n for(int i = 0; i < len; i++){\n char ch = arr[i];\n if(ch == ' ') continue;\n\n // if is operand, add to\n // the output stream directly\n if(ch >= '0' && ch <= '9') {\n out+=ch;\n continue;\n }\n\n //if is '(', push to the stack directly\n if(ch == '(') op.push(ch);\n\n //if is '+' or '-', pop the operator\n // from the stack until '(' and add to\n // the output stream\n //push the operator to the stack\n if(ch == '+' || ch == '-'){\n while(!op.empty() && (op.peek() != '('))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is '*' or '/', pop the operator stack and\n // add to the output stream\n // until lower priority or '('\n //push the operator to the stack\n if(ch == '*' || ch == '/'){\n while(!op.empty() && (op.peek() == '*' || op.peek() == '/'))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is ')' pop the operator stack and\n // add to the output stream until '(',\n // pop '('\n if(ch == ')'){\n while(!op.empty() && op.peek() != '(')\n out += op.pop();\n op.pop();\n continue;\n }\n }\n while(!op.empty()) out += op.pop();\n return out;\n }",
"public final SymbolNode getOperator() { return this.operator; }",
"private final boolean IsBinaryOp(String expression, String symbol, String leftExpression, String rightExpression) {\r\n boolean isBinaryOp = false;\r\n if (expression.contains(symbol)) {\r\n int openParanthesisCount = 0;\r\n int closeParanthesisCount = 0;\r\n for (int i = 0; (i < expression.length()); i++) {\r\n String currentChar = expression.substring(i, 1);\r\n if ((currentChar.equals(symbol) \r\n && (openParanthesisCount == closeParanthesisCount))) {\r\n leftExpression = expression.substring(0, i);\r\n rightExpression = expression.substring((i + 1), (expression.length() - (i - 1)));\r\n isBinaryOp = true;\r\n break;\r\n }\r\n else if (currentChar.equals(\"(\")) {\r\n openParanthesisCount++;\r\n }\r\n else if (currentChar.equals(\")\")) {\r\n closeParanthesisCount++;\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return isBinaryOp;\r\n }",
"private void rightParen() {\n reduce();\n getDispenser().advance();\n if (getDispenser().tokenIsEOF()) setState(State.END);\n else if (getDispenser().tokenIsOperator()) setState(State.OPERATOR);\n else if (getDispenser().tokenIsRightParen()) setState(State.RIGHT_PAREN);\n else if (getDispenser().tokenIsLeftParen()) syntaxError(OP);\n else syntaxError(OP_OR_END);\n \n }",
"public boolean isOperator(char ch) {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^' || ch == '(' || ch == ')') {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean isOperator(char character) {\n\t\tfor (int index= 0; index < JAVA_OPERATORS.length; index++) {\n\t\t\tif (JAVA_OPERATORS[index] == character)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public java.lang.Short getPrecedence() {\r\n return precedence;\r\n }",
"private boolean isOperator(char ch) {\r\n\t\treturn (ch == '+' || ch == '-' || ch == '*' || ch == '/');\r\n\t}",
"public String getOperator()\r\n {\r\n return operator;\r\n }",
"public java.lang.Integer getOperator() {\n\treturn operator;\n}",
"public void checkOperator (TextView tv){\n String s = tv.getText().toString().substring(tv.getText().length() - 1);\n if (s.equals(\")\") || s.equals(\"!\")) {\n //int a = 1;\n isOperator = false;\n } else if (Character.isDigit(tv.getText().toString().charAt(tv.getText().toString().length() - 1)))\n isOperator = false;\n else\n isOperator = true;\n }",
"private Token negationCheck(Token pToken, Token pPrevToken) {\n if (pPrevToken == null || pPrevToken instanceof BinaryOperator || pPrevToken instanceof LeftParen) {\n pToken = new NegOperator();\n }\n return pToken;\n }",
"public OperatorBuilder precedence(int precedence) {\n return new OperatorBuilder(this.unaryOp, this.binaryOp, this.symbol, precedence, this.type);\n }",
"public static int evalPostfix(String postfix) throws PostFixException{\n\t\t//MyStack instance to store results of evaluation\n\t\tStack<Integer> result = new Stack<Integer>();\n\t\t\n\t\t//Scanner instance to scan tokens\n\t\tScanner getToken = new Scanner(postfix);\n\t\t\n\t\twhile(getToken.hasNext()){\n\t\t\t\n\t\t\tString curToken = getToken.next();\n\t\t\t//if the token is a valid operator, push it onto stack as a Double object\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\tresult.push(Integer.parseInt(curToken));\n\t\t\t}\n\t\t\t\n\t\t\t//if the current token is an operator\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\ttry{\n\t\t\t\t\t//Get the operands from the stack\n\t\t\t\t\tint operand2 = result.pop().intValue();\n\t\t\t\t\tint operand1 = result.pop().intValue();\n\t\t\t\t\t\n\t\t\t\t\t//find the operator and perform the arithmetic\n\t\t\t\t\tswitch(curToken){\n\t\t\t\t\t\tcase \"+\": result.push(operand1 + operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"-\": result.push(operand1 - operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"*\": result.push(operand1 * operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"/\": result.push(operand1 / operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tdefault: throw new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//if the stack is empty when attempting to pop, throw a PostFixException\n\t\t\t\tcatch(EmptyStackException e){\n\t\t\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t\t\t}\n\t\t\t\t//If there is an ArithMetic Exception, rethrow it\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tthrow new ArithmeticException(\"Divide by 0\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is not an operand or operator it is invalid,\n\t\t\t//throw a PostFixException\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//if the result is not in the stack\n\t\tif(result.empty()){\n\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t}\n\t\t\n\t\tint resultNum = result.pop().intValue();\n\t\t\n\t\t//If there are still operands in the stack\n\t\tif(!result.empty()){\n\t\t\tthrow new PostFixException(\"Too many operands\");\n\t\t}\n\t\t\n\t\treturn resultNum;\n\t}",
"static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }",
"private boolean isOperator (String s){ \n for (int i = 0; i<operators.length; i++){\n if (s.equals(operators[i])){\n return true;\n }\n }\n return false;\n }",
"private Operation expression1(Scope scope, Vector queue)\r\n {\r\n follower.add(Keyword.QUESTIONMARKSY);\r\n Operation op = expression2(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n\r\n if (nextSymbol == Keyword.QUESTIONMARKSY)\r\n {\r\n Operation a = new Operation();\r\n a.operator = nextSymbol;\r\n a.right = conditionalExpr(scope, queue);\r\n a.left = op;\r\n op = a;\r\n }\r\n\r\n return op;\r\n }",
"@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }",
"public boolean isOperator(final char ch) {\n return (ch == '+' || ch == '-' \n || ch == '*' || ch == '/' \n || ch == '^');\n }"
]
| [
"0.71332574",
"0.70664996",
"0.69280034",
"0.6806658",
"0.6806658",
"0.6789137",
"0.6789046",
"0.6787614",
"0.676314",
"0.6709789",
"0.6669511",
"0.6647187",
"0.6640957",
"0.66386944",
"0.66386944",
"0.65712434",
"0.6419263",
"0.64113194",
"0.6408598",
"0.6398397",
"0.639378",
"0.6374505",
"0.6362557",
"0.6313177",
"0.6312138",
"0.63004756",
"0.62968946",
"0.6251158",
"0.6238693",
"0.6189957",
"0.6186241",
"0.61101955",
"0.6096497",
"0.6081571",
"0.60568625",
"0.6056588",
"0.60015196",
"0.5998089",
"0.5993532",
"0.5987003",
"0.5969459",
"0.59546894",
"0.59442204",
"0.59376764",
"0.59139687",
"0.5911687",
"0.5910571",
"0.5899618",
"0.5877926",
"0.5870508",
"0.5865666",
"0.5855679",
"0.58554256",
"0.58506066",
"0.58429563",
"0.5813985",
"0.5748213",
"0.5740868",
"0.5739094",
"0.57344025",
"0.5731929",
"0.57206506",
"0.57055855",
"0.57005596",
"0.5695045",
"0.5685867",
"0.56730926",
"0.5665723",
"0.56638247",
"0.56454605",
"0.5640096",
"0.56245476",
"0.5616493",
"0.56048083",
"0.55969435",
"0.55941117",
"0.55796206",
"0.5575512",
"0.5571326",
"0.5562504",
"0.55539626",
"0.5541206",
"0.5529622",
"0.5517934",
"0.55174154",
"0.55143654",
"0.549889",
"0.5488697",
"0.5482145",
"0.54784656",
"0.5471014",
"0.54700947",
"0.54583406",
"0.5456662",
"0.5455855",
"0.54474854",
"0.542555",
"0.5418482",
"0.54112256",
"0.5382054"
]
| 0.6768376 | 8 |
this implements Start button | public void start() {
isRunning = true;
Thread thread = new myThread();
thread.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startClick() {\n if(!isRunning){\n startButton.setText(\"Pause\");\n isRunning = true;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.play();\n }else{\n startButton.setText(\"Start\");\n isRunning = false;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.pause();\n }\n }",
"@Override\n public void onClick(View v) {\n start();\n }",
"public void starting();",
"private void startButtonAction(){\n scoreboard.setStartAction(event->initControl());\n }",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstart_click(e);\r\n\t\t\t}",
"public void start(){\n }",
"public void start( )\n {\n // Implemented by student.\n }",
"public void start() {\n\t\t setVisible(true);\n\t}",
"public void start() {}",
"public void start() {}",
"protected abstract boolean start();",
"public boolean start();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}",
"public void start() {\n\r\n }",
"public void start() {\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclose();\n\t\t\t\tstart s = new start();\n\t\t\t\ts.setVisible(true);\n\t\t\t\t\n\t\t\t}",
"public static void clickStartBtn() {\t\n\t\tdriver.findElement(By.id(\"startB\")).click();\t\n\t}",
"public void start() {\n\t\t\n\t}",
"public void start() {\n\t\t\n\t}",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void moveToStart();",
"public void start()\n {}",
"public void start() {\n }",
"public void start() {\n\n\t}",
"public Component startButton() {\n startButton = new JButton(\"Start\");\n setFocusable(false);\n return startButton;\n }",
"public void Start();",
"private void StartActionPerformed(final java.awt.event.ActionEvent evt) {\n\t\t\tif (!started) {\n\t\t\t\tlog(\"Starting...\");\n\t\t\t\tchangeActionPerformed(evt);\n\t\t\t\tstarted = true;\n\t\t\t\tStart.setText(\"Stop Script\");\n\t\t\t\tlog(\"Successfully started! Here we go!\");\n\t\t\t} else {\n\t\t\t\tlog(\"Stopped script.\");\n\t\t\t\tloggingOut = false;\n\t\t\t\tquit = true;\n\t\t\t}\n\t\t}",
"private void start() {\n\n\t}",
"public void setStart(){\n\t\tthis.isStart=true;\n\t}",
"Start createStart();",
"public abstract void start();",
"public abstract void start();",
"public abstract void start();",
"public abstract void start();",
"public abstract void start();",
"public void start() {\n\n /*\n Set up the button\n */\n\n //Instantiate button\n JButton button = new JButton();\n //set up the centroid and dimension of button\n button.setBounds(90, 65, 300, 300);\n //add button to the components for an action event\n button.addActionListener(this);\n //use lambda expression to print \"Hello User!\"\n button.addActionListener(e -> System.out.println(\"Hello User!\"));\n //set button's title to \"Click me\"\n button.setText(\"Click me\");\n //hide text focus on button\n button.setFocusable(false); //to hide border around the text in button\n //set up the font\n button.setFont(new Font(\"Comic Sans\", Font.BOLD, 45));\n\n /*\n Set up the frame\n */\n\n //add button into the frame\n this.add(button);\n //Instantiate icon\n ImageIcon icon = new ImageIcon(\"src/main/resources/gui/icon.png\");\n //add icon to frame\n this.setIconImage(icon.getImage());\n //set exit condition to the frame\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //set window's title\n this.setTitle(\"Click the button\");\n //set frame size (width 500, height 500)\n this.setSize(500, 500);\n //set frame layout (null)\n this.setLayout(null);\n //set window show up in the middle of screen\n this.setLocationRelativeTo(null);\n //set frame visibility (true)\n this.setVisible(true);\n\n }",
"public void start()\n {\n }",
"public void start(){\n return;\n }",
"public void start() {\n\t\tdata = new SharedData(output, input); // handles all shared data\n\t\ttimer = new Thread(new TimeHandler(data)); \n\t\tbuttons = new Thread(new ButtonHandler(input, data, signal));\n\n\t\ttimer.start();\n\t\tbuttons.start();\n\t}",
"@Override\r\n\tpublic void start() {\n\t\t\r\n\t}",
"@Override\r\n public void start() {\r\n }",
"public void updateStartButton(){\n if (getPrimHasRun() == true){\n startButton.setAlpha(0.5f);\n startButton.setClickable(false);\n } else {\n startButton.setAlpha(1f);\n startButton.setClickable(true);\n }\n }",
"private void onStartClickEvent() {\n\t\tmBtnStart.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tLog.d(TAG, \"onStartClickEvent\");\n\n\t\t\t\t//initViewConfig();\n\n//\t\t\t\tAVCom.start();\n\t\t\t\tavcom.Start();\n\t\t\t\tLog.d(TAG, \"onStartClickEvent done.\");\n\n\n\t\t\t}\n\t\t});\n\t}",
"public void start(){\n //Set pausing to false\n pausing = false;\n next();\n }",
"public abstract void started();",
"abstract public void start();",
"void start ();",
"private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {\n theController.switchToStart();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == startButton) {\n\t\t\tinit();\n\t\t}\n\t}",
"void startView();",
"protected void start() {\n }",
"public void start()\r\n\t{\n\tSystem.out.println(\"normal start method\");\r\n\t}",
"public Start() {\n initComponents();\n }",
"public Start() {\n initComponents();\n }",
"@Override\n public void start() { }",
"@Override\n protected void Start() {\n }",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\r\n\tpublic void start() {\n\t\tthis.controller.start();\r\n\t}",
"@Override\n public void start() {}",
"@Override\n\tpublic void start() {\n\n\t}",
"public void handleStart()\n {\n }",
"public void start() {\r\n message = \"Now I'm starting up...\";\r\n repaint();\r\n }",
"void start() {\n }",
"public JButton getStartButton() {\n\t\treturn this.btnStartSystem;\n\t}",
"protected abstract void doStart();",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }"
]
| [
"0.77655184",
"0.74780446",
"0.7453772",
"0.7417218",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.7380345",
"0.7334621",
"0.72529453",
"0.72464144",
"0.7242559",
"0.7242559",
"0.723362",
"0.7227118",
"0.72097445",
"0.71940374",
"0.7191404",
"0.71874654",
"0.71867067",
"0.71852654",
"0.71852654",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71749514",
"0.71731406",
"0.7157424",
"0.71556157",
"0.71440893",
"0.7138735",
"0.7136498",
"0.71280116",
"0.712186",
"0.71108675",
"0.71057576",
"0.71042687",
"0.71042687",
"0.71042687",
"0.71042687",
"0.71042687",
"0.70939404",
"0.7089792",
"0.7073121",
"0.7070776",
"0.70524526",
"0.70421404",
"0.7029549",
"0.70171916",
"0.7001104",
"0.700086",
"0.6981532",
"0.69759387",
"0.6974868",
"0.6972866",
"0.69679475",
"0.69586223",
"0.6955689",
"0.6952928",
"0.6952928",
"0.69382817",
"0.6937989",
"0.693095",
"0.693095",
"0.693095",
"0.693095",
"0.6930946",
"0.69241613",
"0.69146365",
"0.69086707",
"0.69074005",
"0.6901293",
"0.68926716",
"0.6872918",
"0.68679744",
"0.68679744",
"0.68679744",
"0.68679744",
"0.68679744",
"0.68679744",
"0.68679744"
]
| 0.0 | -1 |
this implements Stop button | public void stop() {
isRunning = false;
System.out.println("Stop sim");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stopPressed() {\n // display\n TextLCD.print(STOP);\n // reset\n reset();\n }",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop() {}",
"public void stop(){\n\t\t\n\t}",
"@Override\r\n public void stop() {\r\n\r\n }",
"@Override\r\n public void stop() {\r\n }",
"@Override\r\n public void stop() {\r\n }",
"@Override\n public void stop() {}",
"public void stop(){\n }",
"@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}",
"@Override public void stop () {\n }",
"public void stop() {\n\t\t\n\t}",
"public void stop() {\n }",
"public void stop() {\n }",
"public void stop()\n {\n }",
"@Override\n public void stop() {\n }",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\t\n\t}",
"abstract public void stop();",
"@Override public void stop() {\n }",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"void stop();",
"public void stop(){\n return;\n }",
"public boolean stop();",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}",
"public abstract void stop();",
"public abstract void stop();",
"public abstract void stop();",
"public abstract void stop();",
"public abstract void stop();",
"@Override\n\tpublic void stop()\n\t\t{\n\t\t}",
"public void stop() {\n\t}",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"@Override\n public void stop() {\n\n }",
"@Override\n\tpublic void stop() {\n\t}",
"@Override\n\tpublic void stop() {\n\t}",
"public void stopped();",
"@Override\n public void stop() {\n }",
"@Override\n\t\tpublic void stop() {\n\t\t\t// Nothing to do for now\n\t\t}",
"public void stop(){\n stop = true;\n }",
"public abstract void stopped();",
"public void stopping();",
"void stop() {\n }",
"public void stop() {\n\t\tthis.stopper = true;\n\t}",
"@Override public void stop() {\n\t\t_active = false;\n\t}",
"public void stop() {\n stop = true;\n }",
"public void stop() {\n m_enabled = false;\n }",
"public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void stop() {\n\t\tsuper.stop();\n\t}",
"@Override\n\tpublic void stop() {\n\t\tsuper.stop();\n\t}",
"public void stop()\n\t{\n\t\tupdateState( MotorPort.STOP);\n\t}",
"public void stop() {\n setClosedLoopControl(false);\n }",
"@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }",
"boolean isStop();",
"private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}"
]
| [
"0.80652934",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.7979612",
"0.7947305",
"0.7869009",
"0.78591377",
"0.78591377",
"0.78574556",
"0.78490293",
"0.7839751",
"0.7835143",
"0.7823222",
"0.7804836",
"0.7804836",
"0.77905005",
"0.777383",
"0.777036",
"0.777036",
"0.777036",
"0.777036",
"0.777036",
"0.777036",
"0.777036",
"0.777036",
"0.77621424",
"0.77441597",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7743035",
"0.7740042",
"0.7739924",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7728337",
"0.7723719",
"0.77128017",
"0.77128017",
"0.77128017",
"0.77128017",
"0.77128017",
"0.77052003",
"0.7673265",
"0.7667565",
"0.7664207",
"0.7649187",
"0.7649187",
"0.76420283",
"0.76252794",
"0.7597378",
"0.7548221",
"0.7542235",
"0.7534696",
"0.7503176",
"0.7501044",
"0.7492413",
"0.7459225",
"0.74126613",
"0.7394677",
"0.739387",
"0.739387",
"0.7382241",
"0.7381062",
"0.73688793",
"0.73238015",
"0.73149484"
]
| 0.0 | -1 |
getter for H x coordinate | public int getHorX() {
return horX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getXh() {\n return xh;\n }",
"public int getXh() {\r\n return localXh;\r\n }",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public float getX() { return xCoordinate;}",
"protected Number getX() {\n return this.xCoordinate;\n }",
"public int getX() {\n return xCoord;\n }",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"public double getXPixel()\n {\n return xPixel;\n }",
"public int getX() {\n return this.coordinate.x;\n }",
"float getX();",
"float getX();",
"float getX();",
"float getX();",
"float getX();",
"float getX();",
"public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }",
"double getXPosition();",
"public double getX() {\r\n\t\t return this.xCoord;\r\n\t }",
"Float getX();",
"public int getXPoint() {\r\n return this.x;\r\n }",
"public int x() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getXCoordinate ()\n {\n return xCoordinate;\n }",
"@Override\n\tpublic float getX() \n\t{\n\t\treturn _x;\n\t}",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"double getX();",
"public float getX() {\r\n return x;\r\n }",
"@Override\n\tpublic float getX() {\n\t\treturn this.x;\n\t}",
"protected int getxCoord() {\n\t\treturn xCoord;\n\t}",
"public double getX() { return x; }",
"public double getXCoordinates() { return xCoordinates; }",
"public float getX() {\n return x;\n }",
"public float getX() {\n return x;\n }",
"public float getX() {\n return x;\n }",
"public int getX() { \n\t\treturn x;\n\t}",
"public float getX() {\n return this.x;\n }",
"public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }",
"public int getX()\r\n {\r\n return xLoc;\r\n }",
"public int getX(){\n\t\treturn this.x_location;\n\t}",
"public float getX() {\n return x_;\n }",
"public int getX()\n\t{\n\t\treturn mX;\n\t}",
"long getX();",
"public int getX()\r\n\t{\r\n\t\treturn x;\r\n\t}",
"public int getX() {\n return x;\r\n }",
"public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}",
"int getX_coordinate(){\n return x_coordinate;\n }",
"public int getX()\n {\n return this.x;\n }",
"public double getX() {\n return x;\r\n }",
"public int getX()\r\n\t{\r\n\t\treturn (int)x;\r\n\t}",
"public int getX() {\n return this.x;\n }",
"public float getX() {\n return this.x;\n }",
"public int getX() {\r\n return x;\r\n }",
"public int getX() {\r\n return x;\r\n }",
"public int getX() {\r\n\t\treturn this.x;\r\n\t}",
"@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}",
"public int getX() {\r\n return this.x;\r\n }",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn this.x;\n\t}",
"public int getX()\n\t{\n\t\treturn this.x;\n\t}",
"public int getX() {\n\treturn baseXCoord;\n}",
"public float getX();",
"public float getX();",
"public double getX() {\r\n return x;\r\n }",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\n\t\treturn this.x;\n\t}",
"public int getX() {\n\t\treturn this.x;\n\t}",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\n return x;\n }",
"public int getX() {\r\n return xpos;\r\n }",
"float getXEntry();"
]
| [
"0.8129076",
"0.7693596",
"0.7375631",
"0.7329211",
"0.7311245",
"0.72636724",
"0.7247999",
"0.72120655",
"0.7207875",
"0.7178341",
"0.7178341",
"0.7178341",
"0.7178341",
"0.7178341",
"0.7178341",
"0.71594846",
"0.7134336",
"0.7130578",
"0.7112398",
"0.71000713",
"0.709731",
"0.7092855",
"0.708429",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.70536906",
"0.7046591",
"0.7046298",
"0.70454115",
"0.703596",
"0.7035113",
"0.70318687",
"0.70318687",
"0.70318687",
"0.703086",
"0.7028527",
"0.7028456",
"0.70222324",
"0.7013979",
"0.70111746",
"0.7010095",
"0.70091045",
"0.70043784",
"0.6999448",
"0.6994117",
"0.69940317",
"0.69903606",
"0.6987633",
"0.69866204",
"0.6982524",
"0.6979108",
"0.6974725",
"0.6974725",
"0.69718397",
"0.69670236",
"0.6966099",
"0.6964046",
"0.6964046",
"0.6964046",
"0.6964046",
"0.6964046",
"0.6964044",
"0.6964044",
"0.69556445",
"0.69522816",
"0.69522816",
"0.69513583",
"0.6949738",
"0.6949738",
"0.6949738",
"0.6949738",
"0.6949738",
"0.6949738",
"0.6949738",
"0.6941366",
"0.6941366",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6940963",
"0.6938273",
"0.6935897"
]
| 0.74540037 | 2 |
setter for H x coordinate | public void setHorX(int horX) {
this.horX = horX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setXh(int param) {\r\n this.localXh = param;\r\n }",
"public void setXh(String xh) {\n this.xh = xh == null ? null : xh.trim();\n }",
"public void setH(int h) {\n this.H = h;\n\n }",
"public void setH(int h) {\n\t\tthis.H = h;\n\t}",
"public void setH(double h) {\n this.h = h;\n }",
"public void setH(Double h);",
"public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}",
"public void setH(double value) {\n this.h = value;\n }",
"public String getXh() {\n return xh;\n }",
"public static void setH(double set_h) {\r\n\t\th = set_h;\t\r\n\t\t}",
"public void setX(int x) {\n\tbaseXCoord = x;\n}",
"public void setX(int x){ xPosition = x; }",
"public void setX(double val) {\r\n\t\t this.xCoord = val;\r\n\t }",
"public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}",
"public int getXh() {\r\n return localXh;\r\n }",
"void setX(int x) {\n position = position.setX(x);\n }",
"@Override\n\tpublic void setX(int x) {\n\t\t\n\t}",
"@Override\n\tpublic void setX(int x) {\n\n\t}",
"@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}",
"public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }",
"public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }",
"public void setX(int x) {\n this.x = x;\r\n }",
"void setX(float x) {\n _x = x;\n }",
"public int getHorX() {\r\n return horX;\r\n }",
"public void setX(int x){\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setXCoordinate(int newValue)\n {\n x = newValue;\n }",
"public void setX(int x)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate\n\t}",
"protected void setX(final Number x) {\n this.xCoordinate = x;\n }",
"public void setX(double x) {\n this.x = x;\r\n }",
"public void setX(int x) {\n this.x = x;\n }",
"public void setX(int x) {\n this.x = x;\n }",
"public void setX(double value) {\n this.x = value;\n }",
"@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}",
"public void setX(double d) {\n\t\tthis.x = (int)d;\n\t}",
"@Override\n\tpublic void setX(float x) {\n\n\t}",
"public void setX(int x) {\n\t\tthis.X = x;\n\t}",
"void setX(int newX) {\n this.xPos = newX;\n }",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(double x){\n this.x = x;\n }",
"public void setX(double x){\n this.x = x;\n }",
"void setX(double x){\r\n\t\tthis.x=x;\r\n\t}",
"public void setX(float x) {\r\n\t\tleft = x - width / 2;\r\n\t}",
"public void setPixelX(int x) {\n // from AddEventHandler - leave empty\n }",
"public void setX(int x)\n {\n this.x = x;\n }",
"public void setX(int x)\r\n {\r\n this.x = x;\r\n }",
"public void setX(double x)\n {\n this.x = x;\n }",
"public void setX(double d) {\n\t\tthis.x = d;\n\t}",
"public void setHours(int x, double h) {\r\n hours[x] = h;\r\n }",
"public void setX(int x) { this.x=x; }",
"public void setX(double x) {\n this.x = x;\n }",
"public void setX(double x) {\n this.x = x;\n }",
"public void setX(double x) {\n this.x = x;\n }",
"public void setX(double value) {\n\t\tthis.x = value;\n\t}",
"public void setXCoordinates(double newX) { this.xCoordinates = newX; }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"@Override\n\tpublic void setX(float x) \n\t{\n\t\t_x = x;\n\t}",
"public void setX(double value) {\n\t\t\t\tthis.x = value;\n\t\t\t}",
"public void setX(final int x) {\n\n this.x = x;\n }",
"@Override\n public void setX(int x) {\n this.x=x;\n }",
"public void setX(int x ){\n if(x>0){\n this.x=x;\n }\n \n }",
"final void setX(double d) {\n x = d;\n }",
"public void setX(float x) {\n this.x = x;\n }",
"public void setX(double pX) {\n mX = pX;\n }",
"public void setXhat(int row, double value) {\n m_xHat.set(row, 0, value);\n }",
"public void setX(int x);",
"public void setX(int x) { loc.x = x; }",
"public void setStuff(int x, int y, int w, int h)\n {\n\t xPos = x;\n\t yPos = y;\n\t width = w;\n\t height = h;\n }",
"public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(double x) {\n\t\tthis.x = x;\n\t}",
"public void setX(double x)\n\t{\n\t\tthis.x = x;\n\t}",
"public void setxCoord(Location l) {\n\t\t\n\t}",
"public void setStartX(double x)\n {\n startxcoord=x; \n }",
"public void setX(double value) {\n origin.setX(value);\n }",
"public void setX(float x){\n hitBox.offsetTo(x,hitBox.top);\n //this.x=x;\n }",
"public void setX(int x)\n\t{\n\t\tgetWorldPosition().setX(x);\n\t}",
"public void setX(Double x);",
"public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}",
"public float getX() { return xCoordinate;}",
"public void setEndX(double x)\n {\n endxcoord=x; \n }",
"public void setX(int newX)\n {\n x = newX;\n }",
"private int get_x() {\n return center_x;\n }",
"public void setHP(int h)\n\t{\n\t\tiHP = h;\n\t\t\n\t}",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"public void setX(int xcoord) {\n\t\tx = xcoord;\n\t}",
"public void setX (int index, int x) { coords[index][0] = x; }",
"public void setRayonH(int rayon){\r\n\t\trayonH = rayon;\r\n\t}",
"public void setX(double X)\r\n {\r\n curX = X;\r\n }",
"public void setX(int xs)\r\n\t{\r\n\t\tx = xs;\r\n\t}",
"public void setX(long x){\n this.x = x;\n }"
]
| [
"0.7778175",
"0.7483183",
"0.7315682",
"0.72596985",
"0.7188847",
"0.71704996",
"0.7147077",
"0.7060791",
"0.6984487",
"0.69819814",
"0.6863614",
"0.67645097",
"0.6711059",
"0.67108935",
"0.6708689",
"0.6652715",
"0.6617996",
"0.6595963",
"0.65689343",
"0.65594566",
"0.65407234",
"0.6537516",
"0.6526128",
"0.6524433",
"0.65236896",
"0.6521244",
"0.6521244",
"0.6521244",
"0.6521244",
"0.651366",
"0.64904696",
"0.6477561",
"0.6469165",
"0.6464683",
"0.6464683",
"0.6451744",
"0.6447404",
"0.6439104",
"0.6437554",
"0.64309794",
"0.64182264",
"0.64147526",
"0.64147526",
"0.64147526",
"0.64147526",
"0.64147526",
"0.6406855",
"0.6406855",
"0.64059913",
"0.63997775",
"0.6398244",
"0.63940233",
"0.6390087",
"0.6383394",
"0.63607424",
"0.6355485",
"0.63541925",
"0.6346924",
"0.6346924",
"0.6346924",
"0.634671",
"0.6345201",
"0.6339338",
"0.6339338",
"0.6339338",
"0.6339338",
"0.63335115",
"0.63303655",
"0.63053757",
"0.63015074",
"0.62824833",
"0.6279075",
"0.627568",
"0.626815",
"0.6257092",
"0.6233447",
"0.622966",
"0.6227764",
"0.61982393",
"0.61815953",
"0.61801344",
"0.6176763",
"0.6146467",
"0.61459035",
"0.613459",
"0.6120877",
"0.61148417",
"0.61032504",
"0.609842",
"0.6097121",
"0.60939753",
"0.60918033",
"0.60847414",
"0.60821676",
"0.60723",
"0.6070177",
"0.6069946",
"0.6067257",
"0.60651183",
"0.6059159"
]
| 0.6771182 | 11 |
getter for H y coodinate | public int getHorY() {
return horY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getH();",
"int getCoorY();",
"public float getHlado() {\r\n return (this.lado);\r\n }",
"public double getH() {\n return h;\n }",
"public double getH() {\n return h;\n }",
"public int getY ()\n {\n return coY;\n }",
"public double getH_() {\n\t\treturn h_;\n\t}",
"public int gety() {\n return y;\n }",
"public double getHiY() {\r\n\treturn fieldHiY;\r\n}",
"public int getHzyf() {\n\t\treturn this.hzyf;\n\t}",
"float getH() {\n return _h;\n }",
"public int getY()\n {\n return rettangoloY; \n }",
"public double y() { return _y; }",
"public double y() { return y; }",
"public double getY() { return y; }",
"double getEndH();",
"double getY(){\r\n\t\treturn y;\r\n\t}",
"double gety() {\nreturn this.y;\n }",
"public int Gety(){\n\t\treturn y;\n\t}",
"public float getCeny() {\n return cen.y;\n }",
"public int getProgresionY(){\n return this.ubicacion.y;\n }",
"public abstract double getY();",
"public double getY(){\r\n return y;\r\n }",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"public double getY(){\n return y;\n }",
"public double getY(){\n return this.y;\n }",
"public double getY()\n {\n return y;\n }",
"public double getY()\n\t\t{\n\t\t\treturn this.y[0];\n\t\t}",
"public int y() {\n\t\treturn _y;\n\t}",
"double getY() { return pos[1]; }",
"long getY();",
"abstract double getOrgY();",
"public double getY() {\n return y;\n }",
"public int y() {\n\t\treturn y;\n\t}",
"public double y() {\n return _y;\n }",
"public double y() {\n return _y;\n }",
"public double getY() {\n return y;\r\n }",
"public int y() {\n\t\treturn this.y;\n\t}",
"public double y() {\r\n return this.y;\r\n }",
"public int getY() { return (int)y; }",
"public int getY() {\n\t\treturn this.y_indice * DIM_CASE;\n\t}",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"public int getY() {\n return (int) this.ty;\n }",
"public double getY();",
"public Integer getCocYy() {\n\t\treturn cocYy;\n\t}",
"@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}",
"public double getY2()\n\t{\n\t\treturn this.y[2];\n\t}",
"public int getY()\n {\n \t return _y;\n }",
"public double getY(){\n\t\treturn y;\n\t}",
"public double getY()\n\t{\n\t\treturn y;\n\t}",
"private int getY() {\n\t\treturn 0;\r\n\t}",
"public int y() {\n return y;\n }",
"int getY();",
"int getY();",
"int getY();",
"int getY();",
"int getY();",
"public C0285h m1184y() {\n return this.kg;\n }",
"public String getYxbh() {\n return yxbh;\n }",
"float getY() {\n return _y;\n }",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public double getY1()\n\t{\n\t\treturn this.y[1];\n\t}",
"public final int getY()\n{\n\treturn _y;\n}",
"public double getY() {\r\n return y;\r\n }",
"public int getHoras() {\r\n\t\treturn super.getHoras()*2;\r\n\t}",
"public double getY() {\n\t\treturn point[1];\n\t}",
"public double GetY(){\n return this._Y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\r\n return this.y;\r\n }",
"@Override\r\n\tpublic double getY2() {\n\t\treturn 0;\r\n\t}",
"public int getY() {return y;}",
"public int getY()\r\n {\r\n return myY;\r\n }",
"public double calcHypo(double x,double y){\n\t\tdouble h = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n\t\treturn h;\n\t}",
"public double getPH() {\n return pH;\n }",
"public int getY() { return y;}",
"public int getY() { return y;}",
"abstract double getDirY();",
"public abstract ParamNumber getParamY();",
"public double getY() {\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\treturn pY;\n\t}",
"public double getY() {\n return this.y;\n }",
"public double getY() {\n return this.y;\n }",
"public double getY() {\n return this.y;\n }",
"public double getY() {\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\treturn pY;\r\n\t}",
"double getStartH();"
]
| [
"0.73604375",
"0.7308537",
"0.7036172",
"0.6987983",
"0.6987983",
"0.69386244",
"0.6824759",
"0.6817235",
"0.6753732",
"0.6743464",
"0.67378724",
"0.6736415",
"0.671157",
"0.67105526",
"0.6683743",
"0.6682238",
"0.6678499",
"0.66781306",
"0.6655024",
"0.6644701",
"0.6643076",
"0.6626164",
"0.66165495",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65958935",
"0.65957284",
"0.6595137",
"0.6585419",
"0.6579705",
"0.65786016",
"0.65762043",
"0.6566929",
"0.65625596",
"0.6562349",
"0.65411794",
"0.6539298",
"0.6539298",
"0.65350163",
"0.65333337",
"0.65301025",
"0.65274394",
"0.65187144",
"0.65177643",
"0.65177643",
"0.65177643",
"0.65155023",
"0.6514246",
"0.6506472",
"0.65026134",
"0.6501905",
"0.6491858",
"0.6483921",
"0.6467898",
"0.6462388",
"0.64612746",
"0.6459945",
"0.6459945",
"0.6459945",
"0.6459945",
"0.6459945",
"0.64571667",
"0.645658",
"0.64467305",
"0.64459646",
"0.64459646",
"0.6439767",
"0.6436944",
"0.64339983",
"0.6432567",
"0.6431453",
"0.64249474",
"0.64239925",
"0.64239925",
"0.64239925",
"0.64239925",
"0.64239925",
"0.64239925",
"0.641679",
"0.64156055",
"0.64115584",
"0.6410853",
"0.64093363",
"0.6406542",
"0.64002734",
"0.64002734",
"0.6400249",
"0.63968694",
"0.6394503",
"0.63925314",
"0.63925314",
"0.63925314",
"0.6392497",
"0.63897175"
]
| 0.6688074 | 14 |
setter for H y coodinate | public void setHorY(int horY) {
this.horY = horY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setH(Double h);",
"public void setH(double h) {\n this.h = h;\n }",
"public void setH(double value) {\n this.h = value;\n }",
"public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}",
"public static void setH(double set_h) {\r\n\t\th = set_h;\t\r\n\t\t}",
"public void setH(int h) {\n this.H = h;\n\n }",
"public void setH(int h) {\n\t\tthis.H = h;\n\t}",
"void setY(double y){\r\n\t\tthis.y=y;\r\n\t}",
"public void setY(int theY)\r\n {\r\n y = theY;\r\n }",
"public void setY(double y){\n this.y = y;\n }",
"public void setY(double y){\n this.y = y;\n }",
"public void setY(int y) { this.y=y; }",
"void setY(float y) {\n _y = y;\n }",
"public void setY(double y)\n {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\r\n }",
"public void setY(Double y);",
"public void setY(int y) {\r\n this.y = (short) y;\r\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\n }",
"void setY(int y) {\n this.y = y;\n }",
"double sety(double y) {\nreturn this.y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y ){\n if(y>0){\n this.y=y;\n }\n \n }",
"public void setY(int y)\n {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\r\n }",
"public void setY1()\n\t{\n\t\tdouble h;\n\t\th = Math.pow(this.length, 2) - Math.pow((this.length/2), 2);\n\t\th = Math.sqrt(h);\n\t\tthis.y[1] = this.y[0] - h;\n\t}",
"@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}",
"public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}",
"public void setY( double Y)\r\n {\r\n curY = Y;\r\n }",
"@Override\n public void setY(int y) {\n this.y=y;\n }",
"public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(long y){\n this.y = y;\n }",
"public void SetY2()\n\t{\n\t\tdouble h;\n\t\th = Math.pow(this.length, 2) - Math.pow((this.length/2), 2);\n\t\th = Math.sqrt(h);\n\t\tthis.y[2] = this.y[0] - h;\n\t}",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(float y){\n this.y = y;\n }",
"public void setY(double y) {\n\t\tthis.y = y;\n\t}",
"public void y(double y) {\n _y = y;\n }",
"public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}",
"public void setY(final int y) {\n\n this.y = y;\n }",
"@Override\n\tpublic void setY(float y) {\n\n\t}",
"public void setHOB(float hob);",
"@Override\n\tpublic void setY(int y) {\n\t\t\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void changeHeight(double y)\r\n {\n }",
"public void setY(double newY) {\r\n y = newY;\r\n }",
"@Override\n\tpublic void setY(float y) \n\t{\n\t\t_y = y;\n\t}",
"public void setY(int ys)\r\n\t{\r\n\t\ty = ys;\r\n\t}",
"@Override\n\tpublic void setY(int y) {\n\n\t}",
"public void setY(int y) {\n\t\tthis.Y = y;\n\t}",
"public void setY(int y) {\n\tbaseYCoord = y;\n}",
"public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",
"public void setY(Double y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setH(boolean h) {\n\tthis.h = h;\n }",
"final void setY(double d) {\n y = d;\n }",
"public void setY(float y) {\n this.y = y;\n }",
"public void setHeight(double height){\n h=height;\r\n }",
"public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}",
"public void setY(double value) {\n this.y = value;\n }",
"public void setHigh(int H)\t\n\t{\t//start of setHigh method\n\t\tHIGH_NUM = H;\n\t}",
"public void setHeight(int h) {\n this.H = h;\n }",
"public void setY(double pY) {\n mY = pY;\n }",
"public void setY(float y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int value) {\n this.y = value;\n }",
"public void NewY(double y){\n\t\tthis.y = y;\n\t}",
"public void setY(int y) { loc.y = y; }",
"public void setStandardY(double y)\n {\n standardy=y; \n }",
"public double getH_() {\n\t\treturn h_;\n\t}",
"private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }",
"public double getH() {\n return h;\n }",
"public double getH() {\n return h;\n }",
"public void setY(int y){\n\t\tthis.y_location = y;\n\t}",
"public void setHosucr(Float hosucr) {\r\n this.hosucr = hosucr;\r\n }",
"protected void setAy(double ay) {\n\t\tif (isValidAy(ay))\n\t\t\tthis.ay = ay;\t\t\n\t\telse \n\t\t\tthis.ay = 0;\t\t\n\t}",
"public void setY(Float y) {\n\t\tthis.y = y;\n\t}",
"public void setHP(int h)\n\t{\n\t\tiHP = h;\n\t\t\n\t}",
"public void setYmultiplier(double sety)\n {\n ymultiplier = sety;\n }",
"public void setEndY(double y)\n {\n endycoord=y; \n }",
"default void setY(double y)\n {\n getAxis().setY(y);\n }",
"void setY(final Number y) {\n this.yCoordinate = y;\n }",
"public void setHeuristic(int h) {\n\t\t\tthis.heuristique = h;\n\t\t}",
"public PlotPosition setY( double y )\n {\n return setY( y, 1 );\n }",
"public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}",
"public void setY(double d) {\n\t\tthis.y = (int)d;\n\t}",
"public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }",
"public void setHeight(int h)\n {\n height = h;\n }",
"public void setY(double d) {\n\t\tthis.y = d;\n\t}",
"public void setY(int y){ yPosition = y; }",
"public void setY(double value) {\n origin.setY(value);\n }"
]
| [
"0.7611601",
"0.7535073",
"0.7482035",
"0.73950046",
"0.73062307",
"0.72653395",
"0.7120586",
"0.71047175",
"0.7043358",
"0.6994793",
"0.6994793",
"0.6972397",
"0.69616675",
"0.69474304",
"0.6927818",
"0.6870073",
"0.6833595",
"0.68269473",
"0.68269473",
"0.68269473",
"0.68221915",
"0.68155724",
"0.6789033",
"0.6789033",
"0.6789033",
"0.67770153",
"0.67745215",
"0.6773067",
"0.6757165",
"0.6755341",
"0.6752842",
"0.6714085",
"0.6702132",
"0.6701947",
"0.66983265",
"0.668716",
"0.6682886",
"0.6682886",
"0.6682886",
"0.6677367",
"0.6671429",
"0.6660871",
"0.66497284",
"0.663996",
"0.66148615",
"0.6602769",
"0.6587896",
"0.65731114",
"0.65731114",
"0.65731114",
"0.65731114",
"0.6560465",
"0.65538627",
"0.6553102",
"0.6551806",
"0.65488327",
"0.6536312",
"0.65271115",
"0.65269613",
"0.6501707",
"0.6495966",
"0.6495966",
"0.6495966",
"0.6495966",
"0.64809716",
"0.64806426",
"0.6478547",
"0.6459796",
"0.6458776",
"0.6445838",
"0.64423376",
"0.64418906",
"0.64346576",
"0.64257365",
"0.6413755",
"0.641203",
"0.6409741",
"0.63938713",
"0.63484794",
"0.63385546",
"0.632012",
"0.632012",
"0.6292258",
"0.6290961",
"0.62753624",
"0.62591267",
"0.6253514",
"0.6247971",
"0.62446415",
"0.62321985",
"0.6230094",
"0.6229829",
"0.6227775",
"0.6218802",
"0.6210411",
"0.620633",
"0.62053686",
"0.6194268",
"0.6190906",
"0.61894983"
]
| 0.6458366 | 69 |
getter for street x | public int getHorSTX() {
return horSTX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getStreet();",
"public String getStreet()\n {\n return street;\n }",
"public String getStreet(){\n return street;\n }",
"public String getStreet() {\n return this.street;\n }",
"public String getStreet() {\n return street;\n }",
"public String getStreet() {\n return street;\n }",
"public int getStreet() {\n\t\treturn street;\n\t}",
"public java.lang.String getStreet() {\n return street;\n }",
"public java.lang.String getStreet() {\n return street;\n }",
"@Override\n\tpublic String getStreet() {\n\t\treturn this.street;\n\t}",
"public String getStreet() {\r\n\t\treturn street;\r\n\t}",
"public String getStreet() {\r\n\t\treturn street;\r\n\t}",
"public String getStreetName() {\r\n return streetName;\r\n }",
"public String getStreetName() {\r\n return streetName;\r\n }",
"public String getStreetName() {\n return streetName;\n }",
"public String getStreetName()\n \t{\n \t\treturn this.streetName;\n \t}",
"public String getStreetAddress() {\n return this.streetAddress;\n }",
"public String getName () {\n\t return (streetName) ;\n }",
"public String getStreetAddress() {\n return address;\n }",
"public int getStreetNo() {\n return streetNo;\n }",
"@Override\n\tpublic java.lang.String getStreet1() {\n\t\treturn _candidate.getStreet1();\n\t}",
"public String getStreetNum()\r\n {\r\n\treturn streetNum;\r\n }",
"protected abstract String getAddressPropertyName();",
"public int getStreetNumber()\n \t{\n \t\treturn this.streetNumber;\n \t}",
"public String getAddress()\n\t{\n\t\treturn streetAddress;\n\t}",
"public Integer getStreetNumber() {\n return streetNumber;\n }",
"public String getStreetAddress() {\r\n\t\treturn streetAddress;\r\n\t}",
"public String getStreetNr() {\r\n return streetNr;\r\n }",
"java.lang.String getHotelAddress();",
"public Street getHeadingStreet()\r\n\t{\r\n\t\treturn this.aCity.lookForStreet(this.currentPlace, this.currentDirection);\r\n\t}",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"String getAddress();",
"String getAddress();",
"public String getAddress();",
"@Override\n\tpublic java.lang.String getStreet2() {\n\t\treturn _candidate.getStreet2();\n\t}",
"public java.lang.String getSTREET()\n {\n \n return __STREET;\n }",
"public List<String> getStreet() {\n return (List<String>) get(\"street\");\n }",
"public StringFilter getStreetAddress() {\n\t\treturn streetAddress;\n\t}",
"public String getContactStreet() {\n return contactStreet;\n }",
"public Street getClosedStreet()\r\n {\r\n return closed_street;\r\n }",
"public abstract String getAddressLine1();",
"public CustomerAddressQuery street() {\n startField(\"street\");\n\n return this;\n }",
"@Test\n public void getStreetNameTest()\n {\n Location test = new Location(\"Guy Fieri\", \"fun st\", \"flavor town\");\n String str = _city.getStreetName(test, 1);\n assertEquals(str, \"flavor town\");\n }",
"public abstract String getAddressLine2();",
"public String getStreetFieldName() {\n return getStringProperty(STREET_FIELD_NAME_KEY);\n }",
"public String getStreetType() {\r\n return streetType;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn zip + \"-\" + street;\n\t}",
"public abstract LinphoneAddress getAddress();",
"@Override\n\tpublic java.lang.String getStreet3() {\n\t\treturn _candidate.getStreet3();\n\t}",
"String getAddress(int type);",
"public String getNearestStreet() {\n String nearestStreet = \"null\";\n CollisionResults results = new CollisionResults();\n float closestDistance = 101f;\n for(float xDir = -1; xDir <= 1; xDir += .1f) {\n for(float yDir = -1; yDir <= 1; yDir += .1f) {\n for(float zDir = -1; zDir <= 1; zDir += .1f) { \n Ray ray = new Ray(loc, new Vector3f(xDir, yDir, zDir));\n world.collideWith(ray, results);\n for (int i = 0; i < results.size(); i++) {\n float dist = results.getCollision(i).getDistance();\n String name = results.getCollision(i).getGeometry().getParent().getName();\n if (name.startsWith(\"R_\") && dist <= 100 && dist < closestDistance) {\n nearestStreet = name;\n closestDistance = dist;\n }\n }\n }\n }\n }\n\n return nearestStreet;\n \n }",
"public String getAddress() {return address;}",
"@Override\n\tpublic String getStreetCode() {\n\t\treturn null;\n\t}",
"public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }",
"public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }",
"public String getAddress()\n{\n return this.address;\n}",
"public org.apache.xmlbeans.XmlString xgetAddress()\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(ADDRESS$2);\n return target;\n }\n }",
"public String getStreetSuffix() {\r\n return streetSuffix;\r\n }",
"public String toString()\n \t{\n \t\tString fullStreet = this.streetNumber + \" \" + this.streetName;\n \t\treturn fullStreet;\n \t}",
"public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}",
"public int getLat();",
"public String getExternalAddress();",
"public String getNatAddress();",
"ShippingPointStructure getShipFrom();",
"public List<Street> getStreetsMap()\r\n {\r\n return streets_map;\r\n }",
"public String getAddress(){\r\n return address;\r\n }",
"public Address getAddress() { return address; }",
"public ArrayList getStreets() {\n\t if(assertZipCodeMap()) {\n\t\t return CSVReader.getStreets(zipCodeMap, zipcode, street);\n\t }\n\t return new ArrayList();\n }",
"public void setStreet(String street) {\n this.street = street;\n }",
"public java.lang.String getStreetAddress( EAIMMCtxtIfc theCtxt) throws EAIException ;",
"public Address getPrimaryContactParsed();",
"@Override\n public Adress getAdress() {\n return adress;\n }",
"public String getAddress(){\n return address;\n\n }",
"public int getAddress()\n {\n return address;\n }",
"@Test\n public void iPAddressGeolocateStreetAddressTest() throws Exception {\n String value = null;\n GeolocateStreetAddressResponse response = api.iPAddressGeolocateStreetAddress(value);\n\n // TODO: test validations\n }",
"Place getPlace();",
"public String getAddress() throws JAXRException{\n return address;\n }",
"public String getAddress() {\n return definition.getString(ADDRESS);\n }",
"public String getAddress(){\n return address;\n }",
"public String getAddress(){\n return address;\n }",
"public String getAddress(){\n return address;\n }",
"protected void streetLoc(LatLng latLng) {\n if (latLng == null) {\n return;\n }\n TencentSearch tencentSearch = new TencentSearch(this);\n //还可以传入其他坐标系的坐标,不过需要用coord_type()指明所用类型\n //这里设置返回周边poi列表,可以在一定程度上满足用户获取指定坐标周边poi的需求\n Geo2AddressParam geo2AddressParam = new Geo2AddressParam(latLng).getPoi(true)\n .setPoiOptions(new Geo2AddressParam.PoiOptions()\n// .setRadius(1000).setCategorys(\"面包\")\n .setPolicy(Geo2AddressParam.PoiOptions.POLICY_O2O));\n tencentSearch.geo2address(geo2AddressParam, new HttpResponseListener<BaseObject>() {\n\n @Override\n public void onSuccess(int arg0, BaseObject arg1) {\n if (arg1 == null) {\n return;\n }\n Geo2AddressResultObject obj = (Geo2AddressResultObject)arg1;\n StringBuilder sb = new StringBuilder();\n sb.append(\"逆地址解析\");\n sb.append(\"\\n地址:\" + obj.result.address);\n sb.append(\"\\npois:\"+obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n// provinceMap.put()\n province1 = provinceMap.get(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n if(province1 == null) {\n provinceMap.put(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district,obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n getStreet(obj.result.address_component.province, obj.result.address_component.city, obj.result.address_component.district);\n }\n\n// for (Poi poi : obj.result.pois) {\n// sb.append(\"\\n\\t\" + poi.title);\n// tencentMap.addMarker(new MarkerOptions()\n// .position(poi.latLng) //标注的位置\n// .title(poi.title) //标注的InfoWindow的标题\n// .snippet(poi.address) //标注的InfoWindow的内容\n// );\n// }\n// Log.e(\"test\", sb.toString());\n }\n\n @Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n Log.e(\"test\", \"error code:\" + arg0 + \", msg:\" + arg1);\n }\n });\n }",
"public java.lang.String getAddress() {\n\treturn address;\n}",
"public java.lang.String getAddress() {\n\treturn address;\n}",
"public void setStreet(String street) {\r\n\t\tthis.street = street;\r\n\t}",
"public int getX() { return loc.x; }",
"public String getAccountStreetAddress() {\n return accountStreetAddress;\n }",
"public int getAddress() {\n return address;\n }",
"public Integer getShip_address() {\n return ship_address;\n }",
"public String getAddress(){\n\t\treturn this.address;\n\t}",
"public String getAddress() {\n return m_Address;\n }",
"public String getAddress() {\n return address;\n }",
"public String getAddress() {\n return address;\n }",
"public java.lang.String getAddress()\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(ADDRESS$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getAddress()\n {\n \treturn address;\n }",
"@Test\n\tpublic void testIndividualGettersAddress() {\n\t\tassertTrue(beanTester.testGetterForField(\"zipcode\"));\n\t}"
]
| [
"0.80160445",
"0.7370268",
"0.72826385",
"0.7237447",
"0.7226345",
"0.7226345",
"0.7158945",
"0.7154065",
"0.7154065",
"0.71275693",
"0.7124637",
"0.7124637",
"0.69876176",
"0.69876176",
"0.6933485",
"0.6918002",
"0.682293",
"0.67801845",
"0.67796946",
"0.67787933",
"0.6771543",
"0.66774756",
"0.66732717",
"0.66600597",
"0.66026324",
"0.65903884",
"0.65723056",
"0.65410364",
"0.64923656",
"0.6463758",
"0.64566433",
"0.64566433",
"0.64566433",
"0.64566433",
"0.64566433",
"0.64566433",
"0.64561415",
"0.64561415",
"0.6442774",
"0.6415838",
"0.63993263",
"0.63974506",
"0.63409257",
"0.63315135",
"0.6246894",
"0.6208508",
"0.6191426",
"0.6173184",
"0.6168149",
"0.61637664",
"0.6155494",
"0.61396897",
"0.6082663",
"0.60797155",
"0.60711735",
"0.6042079",
"0.6024194",
"0.59917337",
"0.5974638",
"0.5974638",
"0.5916043",
"0.5899868",
"0.58882564",
"0.5865121",
"0.5854166",
"0.58382165",
"0.58276397",
"0.57675105",
"0.57665527",
"0.57637507",
"0.57577974",
"0.57548606",
"0.5752825",
"0.5748846",
"0.57323563",
"0.5729171",
"0.5709412",
"0.5677687",
"0.5677157",
"0.5676363",
"0.5665996",
"0.5656056",
"0.56531256",
"0.565218",
"0.565218",
"0.565218",
"0.5646745",
"0.5636414",
"0.5636414",
"0.5631009",
"0.56250346",
"0.56205356",
"0.56114894",
"0.56106496",
"0.5607964",
"0.56039244",
"0.5598488",
"0.5598488",
"0.5587273",
"0.55843765",
"0.5575045"
]
| 0.0 | -1 |
getter for street y | public int getHorSTY() {
return horSTY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getStreet();",
"java.lang.String getY();",
"public final double getY() { return location.getY(); }",
"public String getYx() {\n return yx;\n }",
"@Override\n\tpublic java.lang.String getStreet2() {\n\t\treturn _candidate.getStreet2();\n\t}",
"protected Number getY() {\n return this.yCoordinate;\n }",
"public String getStreet(){\n return street;\n }",
"public String getStreet()\n {\n return street;\n }",
"public int getY() {\n return this.coordinate.y;\n }",
"public double getY() {\n\t\treturn point[1];\n\t}",
"public int getLocY ()\n {\n return locY;\n }",
"public int getStreet() {\n\t\treturn street;\n\t}",
"public int getYCoordinate ()\n {\n return yCoordinate;\n }",
"public int getPlacesY()\n {\n return this.placesY;\n }",
"double getY() { return pos[1]; }",
"public double getY() { return y; }",
"long getY();",
"public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}",
"public double getyCoordinate() {\n return yCoordinate;\n }",
"public int getLocY() {\n return locY;\n }",
"public int getyCoordinate() {\n return yCoordinate;\n }",
"public int getyCoordinate() {\n return yCoordinate;\n }",
"public int getY()\n {\n return rettangoloY; \n }",
"@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}",
"@Basic\n\tpublic double getYCoordinate() {\n\t\treturn this.y;\n\t}",
"public String getStreet() {\n return street;\n }",
"public String getStreet() {\n return street;\n }",
"public int getStreetNo() {\n return streetNo;\n }",
"public int getY() { return loc.y; }",
"public double getY();",
"public double getYCoordinates() { return yCoordinates; }",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"public int gety() {\n return y;\n }",
"public java.lang.String getStreet() {\n return street;\n }",
"public java.lang.String getStreet() {\n return street;\n }",
"public double getY() {\n return y;\n }",
"public String getStreet() {\n return this.street;\n }",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public double getY(){\r\n return y;\r\n }",
"int getY();",
"int getY();",
"int getY();",
"int getY();",
"int getY();",
"@java.lang.Override\n public godot.wire.Wire.Vector2 getY() {\n return y_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : y_;\n }",
"public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}",
"public Street getClosedStreet()\r\n {\r\n return closed_street;\r\n }",
"abstract double getOrgY();",
"int getY_coordinate(){\n return y_coordinate;\n }",
"public int getY()\r\n {\r\n return yLoc;\r\n }",
"public double getY() {\n return y;\r\n }",
"public int getLocY() {\n return locY;\n }",
"public double getY(){\n return y;\n }",
"public String getStreet() {\r\n\t\treturn street;\r\n\t}",
"public String getStreet() {\r\n\t\treturn street;\r\n\t}",
"public final int getY()\n{\n\treturn _y;\n}",
"public int getY()\n {\n \t return _y;\n }",
"public double getY()\n {\n return y;\n }",
"public double getY() {\n\t\treturn ny;\n\t}",
"public double getY(){\n return this.y;\n }",
"@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}",
"public int getY() {return y;}",
"public int getY() { return y;}",
"public int getY() { return y;}",
"public int getY()\r\n {\r\n return yCoord;\r\n }",
"public int getLocationY() {\r\n\t\treturn y;\r\n\t}",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"public double getY2()\n {\n return m_Y2;\n }",
"public abstract double getY();",
"@java.lang.Override\n public godot.wire.Wire.Vector2OrBuilder getYOrBuilder() {\n return getY();\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public double getY() {\r\n return y;\r\n }",
"@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}",
"public SVGLength getY() {\n return y;\n }",
"public String gety()\n\t{\n\t\treturn y.getText();\n\t}",
"public double getY() {\r\n return this.y;\r\n }",
"public double getY() {\r\n\t\t return this.yCoord;\r\n\t }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public double getY() {\n return y;\n }",
"public int getY() {\n return y;\r\n }",
"double getY(){\r\n\t\treturn y;\r\n\t}",
"@Override\n\tpublic String getStreet() {\n\t\treturn this.street;\n\t}",
"public double getYCoordinate() {\n return yCoordinate;\n }",
"public int getYCoordinate()\n\t{\n\t\treturn yCoordinate;\n\t}",
"public double getY() {\n return this.y;\n }"
]
| [
"0.6773571",
"0.6661512",
"0.634264",
"0.6322395",
"0.63118786",
"0.6297155",
"0.62715983",
"0.6270863",
"0.6221554",
"0.6220598",
"0.62104124",
"0.62007517",
"0.61817706",
"0.6148292",
"0.61472327",
"0.6146244",
"0.61421746",
"0.61381084",
"0.6135638",
"0.6130195",
"0.6128821",
"0.6128821",
"0.61207986",
"0.6112961",
"0.6106759",
"0.61065805",
"0.61065805",
"0.6099346",
"0.6065951",
"0.60582614",
"0.6055862",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6047386",
"0.6046885",
"0.6032328",
"0.6032328",
"0.60253626",
"0.602487",
"0.6023262",
"0.6023262",
"0.60208696",
"0.60110104",
"0.60110104",
"0.60110104",
"0.60110104",
"0.60110104",
"0.6006901",
"0.6005686",
"0.6003033",
"0.6001462",
"0.60007894",
"0.59942955",
"0.5986865",
"0.5986303",
"0.5974289",
"0.59730643",
"0.59730643",
"0.59654105",
"0.59588903",
"0.59581715",
"0.5957504",
"0.5952682",
"0.5951322",
"0.5947099",
"0.5946318",
"0.5946318",
"0.5946004",
"0.5940862",
"0.5940238",
"0.5940238",
"0.5940238",
"0.5930129",
"0.59266514",
"0.5925938",
"0.5925465",
"0.5925465",
"0.59188545",
"0.59159267",
"0.59140545",
"0.5910058",
"0.5898043",
"0.5897965",
"0.58966386",
"0.58966386",
"0.58966386",
"0.58966386",
"0.58966386",
"0.58966386",
"0.5896288",
"0.5894953",
"0.5894323",
"0.5885664",
"0.5885642",
"0.58805513"
]
| 0.0 | -1 |
my thread this runs simulation | public void run() {
System.out.println("Start sim");
for (; isRunning;) {
//int horLaneNum = optView.getUserHorNum();
//if (horLaneNum == 1) {
horX++;
horSTX = horSTX;
horSTY = horSTY;
verY++;
view.repaint();
try {
Thread.sleep(10);
}
catch (InterruptedException e) {
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"public void run()\r\n/* 201: */ {\r\n/* 202:161 */ while (this.active) {\r\n/* 203:162 */ synchronized (this)\r\n/* 204: */ {\r\n/* 205:163 */ ConsoleAI.this.game.updateSimFrame();\r\n/* 206: */ }\r\n/* 207: */ }\r\n/* 208: */ }",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void run() {\n\t\ttry {\n\t\t\tcurrentTime = System.currentTimeMillis();\n\t\t\twhile (distanciaAtual < distanciaTotal) {\n\t\t\t\tsteps++;\n\t\t\t\tRandom gerador = new Random();\n\t\t\t\tint passo = gerador.nextInt(6);\n\t\t\t\tdistanciaAtual += passo;\n\t\t\t\tif (steps % 10 == 0) {\n\t\t\t\t\tSystem.out.println(\"A Tartaruga Número \" + idTartaruga + \" deu: \" + steps + \" passos. E andou: \" + distanciaAtual + \" centímetros.\");\n\t\t\t\t}\n\t\t\t\tThread.sleep(gerador.nextInt(4));\n\t\t\t}\n\t\t\tdouble completedTime = System.currentTimeMillis() - currentTime;\n\t\t\tcorrida.setTempoPassosGasto(idTartaruga, completedTime, steps);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void run() {\n\t\twhile(true) {\n\t\t\tserpiente();\n\t\t\tescenario.limpiarSerpiente(serpiente);\n\t\t\tSystem.out.println(\"has muerto Boot\");\n//\t\t\tint x = (int) (Math.random() );\n//\t\t\tint y = (int) (Math.random() );\n//\t\t\tx = x - (x % 20)+15;\n//\t\t\ty = y - (y % 20)+15;\n\t\t\tint x = ThreadLocalRandom.current().nextInt(2, 30 - 2);///min es 2 por la longitud con la que se crea\n\t\t\tint y = ThreadLocalRandom.current().nextInt(2, 24 - 2);\n\t\t\tserpiente.getCabeza().setPosicion(x, y);\n\t\t\tserpiente.revivir();\n\t\t\tserpiente();\n\t\t\t}\n\t\t\t// serpiente.getCabeza().setPosicion(15, 15);\n\t\t\t// serpiente.revivir();\n\t\t\n\t}",
"public void run() {\n // Main loop:\n // Perform simulation steps of 64 milliseconds\n // and leave the loop when the simulation is over\n while (step(64) != -1) {\n // Read the _distanceSensors:\n // Enter here functions to read sensor data, like:\n // double val = distanceSensor.getValue();\n\n // Process sensor data here\n\n // Enter here functions to send actuator commands, like:\n // led.set(1);\n };\n }",
"@Override\r\n public void run() {\r\n while(true){\r\n // para cada peça necessária para um agente montar um produto faça\r\n for(Peca peca: pecasNecessarias){\r\n System.out.println(\"\\nRetirar Peça: \"+peca.getNome());\r\n // retira peça do estoque\r\n int pecasEmEstoque = estoque.retirarPecas(peca, peca.getQuantidadeEmEstoque());\r\n // se não há peças em estoque atraza a produção e ela para\r\n if(pecasEmEstoque <= 0) {\r\n System.exit(0);\r\n }\r\n if(ConfigAgents.TEMPO_MONGAGEM > 0) { // desativa simulação se valor 0 ou negativo\r\n try {\r\n // simulação do agente montando o produto com a peça\r\n sleep(ConfigAgents.TEMPO_MONGAGEM);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(AgenteLinhaDeProducao.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void run() {\n\t\t\n\t}",
"public void run()\n\t\t{\n\t\t}",
"public void run() {\n\t\t\t\t\t\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}",
"public void run() {\n }",
"public void run() {\n\n }",
"@Override\n public void simulationPeriodic() {\n }",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"@Override\n\tpublic void run() {\n\t\ttry\n\t\t{\n\t\t\twhile(true)\n\t\t\t{\t\n\t\t\t\tThread.sleep(10);\n\t\t\t\tSystem.out.println(\"INicioooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\");\n\t\t\t\trobot1.tomarPiezaImput(GdeMonitor);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(this.nome + \"iniciada\");\r\n\t\tint soma = somador.somaArray(this.nums);\r\n\t\tSystem.out.println(\"Resultado da soma para thread \"+this.nome + \" é: \"+ soma);\r\n\t\tSystem.out.println(this.nome + \"terminada\");\r\n\t}",
"public void run() {\n\t\t\t while (!stopnow) {\n\t\t\t\t if (!stopnow) {\n\t\t\t\t\t ArrayList<Cell> ng = gol.evolve(gridPane.getSeed());\n\t\t\t\t\t gridPane.setSeed(ng);\n\t\t\t\t\t tickCount++;\n\t\t\t\t\t genCountLabel.setText(\"Generation: \"+tickCount); //Update Counter \n\t\t\t\t\t try \n\t\t\t\t\t {\n\t\t\t\t\t Thread.sleep(TIMER_DELAY);\n\t\t\t\t\t } \n\t\t\t\t\t catch(InterruptedException ex) \n\t\t\t\t\t {\n\t\t\t\t\t Thread.currentThread().interrupt();\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\twhile(!Thread.interrupted()){\n\t\t\t\t\t//thread safe\n\t\t\t\t\tList<Body> bodys = new ArrayList<Body>(bodyList);\n\t\t\t\t\tfor(Body body:bodys){\n\t\t\t\t\t\tif(body.isMovable()){\n\t\t\t\t\t\t\taddWorldFTo(body);\n\t\t\t\t\t\t\tbody.update();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdetection.test(getBorderShape(),bodys,new ArrayList<Area>(areaList),contact);\n\t\t\t\t\t//调用监视器 并用contact作为联系人\n\t\t\t\t\t\n\t\t\t\t\tList<Timer> timers = new ArrayList<Timer>(timerList);\n\t\t\t\t\tfor(Timer timer:timers){\n\t\t\t\t\t\tif(timer.sendMessage()){\n\t\t\t\t\t\t\t//send time over event\n\t\t\t\t\t\t\tPhysicsTimeoverEvent event = new PhysicsTimeoverEvent(timer);\n\t\t\t\t\t\t\tcontact.sendPhysicsEvent(event);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimer.run(roundDelayTime_MS);\n\t\t\t\t\t}\n\t\t\t\t\t//更新维护定时器\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(roundDelayTime_MS);\n\t\t\t\t}\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t//e.printStackTrace();\n\t\t\t\t//it's not a exception that exit when thread sleep\n\t\t\t}\n\t\t}",
"@Override\r\n public void runSimulation(){\r\n initialize();\r\n initialRun();\r\n initialize(\"square\");\r\n initialRun();\r\n initialize(\"circle\");\r\n initialRun();\r\n initialize(\"crack\");\r\n initialRun(); \r\n initialize(\"cross\");\r\n initialRun();\r\n }",
"public void run() {\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\r\n\t\t\t\tfor(int i=0;i<15;i++){\r\n\t\t\t\t\tSystem.out.println(\"inside the run method of thread\"+\r\n\t\t\t\t\t\t\tThread.currentThread().getName() +\",i is\"+i);\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(InterruptedException e){\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\r\n\t\t\t\tfor(int i=0;i<15;i++){\r\n\t\t\t\t\tSystem.out.println(\"inside the run method of thread\"+\r\n\t\t\t\t\t\t\tThread.currentThread().getName() +\",i is\"+i);\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(InterruptedException e){\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\r\n\t\t\t\tfor(int i=0;i<15;i++){\r\n\t\t\t\t\tSystem.out.println(\"inside the run method of thread\"+\r\n\t\t\t\t\t\t\tThread.currentThread().getName() +\",i is\"+i);\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(InterruptedException e){\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void run() {\n\n\t\t/* Indefinitely do the following */\n\t\twhile(true){\n\n\t\t\t/* Gains control of this jframe's object monitor */\n\t\t\tsynchronized (this) {\n\t\t\t\t\n\t\t\t\t/* Until the system is unpaused */\n\t\t\t\twhile (paused){\n\t\t\t\t\t\n\t\t\t\t\t/* Keep pausing the thread if it wakes up (releasing the jframe's monitor when asleep) \n\t\t\t\t\t * This will cause the thread to continue IFF it has been unpaused and then woken up */\n\t\t\t\t\ttry {\n\t\t\t\t\t\twait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Store whether we wish to repeat the test over and over */\n\t\t\tboolean loop=false;\n\t\t\tif(repeat.isSelected()){\n\t\t\t\tloop=true;\n\t\t\t}\n\n\t\t\t/* Guarantees that the test is done at least once (in case loop is false) */\n\t\t\tboolean once=true;\n\n\t\t\t/* Reset the counter that tracks how many times the test has been done */\n\t\t\tcompleted=0;\n\n\t\t\t/* Loop is true or if we haven't done it at least once yet */\n\t\t\twhile(loop || once){\n\n\t\t\t\t/* Give the thread chance to stop if requested */\n\t\t\t\tif(isPaused()){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t/* Variables for deciding which cell to attempt a transition on */\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\n\t\t\t\t/* Prepare's the difference matrix and difference counter, and sets\n\t\t\t\t * the configuration of the STCA to the initial configuration */\n\t\t\t\tprepare();\n\n\t\t\t\t/* While the STCA's current configuration is different from the final\n\t\t\t\t * configuration, AND the system has not received the request to pause/stop */\n\t\t\t\twhile(differences>0 && !isPaused()){\n\n\t\t\t\t\t/* If the system is not in exhaustive mode */\n\t\t\t\t\tif(exhaust==0){\n\n\t\t\t\t\t\t/* Decide the cell coordinates randomly */\n\t\t\t\t\t\tfloat random1=GlobalAttributes.random.nextFloat();\n\t\t\t\t\t\tfloat random2=GlobalAttributes.random.nextFloat();\n\t\t\t\t\t\tfloat randomX=random1 * (float)(GlobalAttributes.xCells);\n\t\t\t\t\t\tfloat randomY=random2 * (float)(GlobalAttributes.yCells);\n\t\t\t\t\t\tx=(int)randomX;\n\t\t\t\t\t\ty=(int)randomY;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Else increment the cell column number, but if the cell\n\t\t\t\t\t * is the last in the column, then increment the row number\n\t\t\t\t\t * and select the cell from the left most column */\n\t\t\t\t\telse{\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x==GlobalAttributes.xCells){\n\t\t\t\t\t\t\tx=0;\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Assume that the cell is not updated until otherwise */\n\t\t\t\t\tboolean updated=false;\n\n\t\t\t\t\t/* Only execute transition if not a bordering cell */\n\t\t\t\t\tif(x>0 && x<GlobalAttributes.xCells-1 && y>0 && y<GlobalAttributes.yCells-1){\n\t\t\t\t\t\tupdated=ApplyRule.executeTransition(x,y,grid);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Used for debugging */\n\t\t\t\t\tif(output==1){\n\t\t\t\t\t\tSystem.out.println(\"got through section 1\");\n\t\t\t\t\t}\n\n\t\t\t\t\t/* If a cell update has occurred */\n\t\t\t\t\tif(updated){\n\n\t\t\t\t\t\t/* Used for debugging */\n\t\t\t\t\t\tif(output==1){\n\t\t\t\t\t\t\tSystem.out.println(\"a cell was updated - comparing\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* If the cell is now in the same state as the final configuration */\n\t\t\t\t\t\tif(target[x][y].topSubcellValue==grid[x][y].topSubcellValue &&\n\t\t\t\t\t\t\t\ttarget[x][y].bottomSubcellValue==grid[x][y].bottomSubcellValue &&\n\t\t\t\t\t\t\t\ttarget[x][y].leftSubcellValue==grid[x][y].leftSubcellValue &&\n\t\t\t\t\t\t\t\ttarget[x][y].rightSubcellValue==grid[x][y].rightSubcellValue){\n\n\t\t\t\t\t\t\t/* But was different before */\n\t\t\t\t\t\t\tif(different[x][y]){\n\n\t\t\t\t\t\t\t\t/* Modify the difference matrix and decrement the difference\n\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\tdifferent[x][y]=false;\n\t\t\t\t\t\t\t\tdifferences--;\n\n\t\t\t\t\t\t\t\t/* Used for debugging */\n\t\t\t\t\t\t\t\tif(output==1){\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"cells are the same but were different before\");}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Else if the cell is now different from the final configuration */\n\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t/* But was the same before */\n\t\t\t\t\t\t\tif(!different[x][y]){\n\n\t\t\t\t\t\t\t\t/* Modify the difference matrix and increment the difference\n\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\tdifferent[x][y]=true;\n\t\t\t\t\t\t\t\tdifferences++;\n\n\t\t\t\t\t\t\t\t/* Used for debugging */\n\t\t\t\t\t\t\t\tif(output==1){\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"cells are now different but were the same before\");}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Used for debugging */\n\t\t\t\t\t\tif(output==1){\n\t\t\t\t\t\t\tSystem.out.println(\"updating left neighbour\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* If the current cell has a left neighbour */\n\t\t\t\t\t\tif(x>0){\n\n\t\t\t\t\t\t\t/* And the left neighbour cell is now the same as the final configuration */\n\t\t\t\t\t\t\tif(target[x-1][y].rightSubcellValue==grid[x-1][y].rightSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x-1][y].bottomSubcellValue==grid[x-1][y].bottomSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x-1][y].leftSubcellValue==grid[x-1][y].leftSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x-1][y].topSubcellValue==grid[x-1][y].topSubcellValue){\n\n\t\t\t\t\t\t\t\t/* But was different before */\n\t\t\t\t\t\t\t\tif(different[x-1][y]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and decrement the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x-1][y]=false;\n\t\t\t\t\t\t\t\t\tdifferences--;\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Else if the left neighbour cell is now different from the final configuration */\n\t\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t\t/* But was the same before */\n\t\t\t\t\t\t\t\tif(!different[x-1][y]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and increment the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x-1][y]=true;\n\t\t\t\t\t\t\t\t\tdifferences++;\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\n\t\t\t\t\t\t/* If the current cell has a right neighbour */\n\t\t\t\t\t\tif(x<GlobalAttributes.xCells-1){\n\n\t\t\t\t\t\t\t/* And the right neighbour cell is now the same as the final configuration */\n\t\t\t\t\t\t\tif(target[x+1][y].leftSubcellValue==grid[x+1][y].leftSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x+1][y].bottomSubcellValue==grid[x+1][y].bottomSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x+1][y].topSubcellValue==grid[x+1][y].topSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x+1][y].rightSubcellValue==grid[x+1][y].rightSubcellValue){\n\n\t\t\t\t\t\t\t\t/* But was different before */\n\t\t\t\t\t\t\t\tif(different[x+1][y]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and decrement the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x+1][y]=false;\n\t\t\t\t\t\t\t\t\tdifferences--;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Else if the right neighbour cell is now different from the final configuration */\n\t\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t\t/* But was the same before */\n\t\t\t\t\t\t\t\tif(!different[x+1][y]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and increment the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x+1][y]=true;\n\t\t\t\t\t\t\t\t\tdifferences++;\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\n\t\t\t\t\t\t/* If the current cell has a top neighbour */\n\t\t\t\t\t\tif(y>0){\n\n\t\t\t\t\t\t\t/* And the top neighbour cell is now the same as the final configuration */\n\t\t\t\t\t\t\tif(target[x][y-1].bottomSubcellValue==grid[x][y-1].bottomSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x][y-1].topSubcellValue==grid[x][y-1].topSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x][y-1].leftSubcellValue==grid[x][y-1].leftSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x][y-1].rightSubcellValue==grid[x][y-1].rightSubcellValue){\n\n\t\t\t\t\t\t\t\t/* But was different before */\n\t\t\t\t\t\t\t\tif(different[x][y-1]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and decrement the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x][y-1]=false;\n\t\t\t\t\t\t\t\t\tdifferences--;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Else if the top neighbour cell is now different from the final configuration */\n\t\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t\t/* But was the same before */\n\t\t\t\t\t\t\t\tif(!different[x][y-1]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and increment the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x][y-1]=true;\n\t\t\t\t\t\t\t\t\tdifferences++;\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\n\t\t\t\t\t\t/* If the current cell has a bottom neighbour */\n\t\t\t\t\t\tif(y<GlobalAttributes.yCells-1){\n\n\t\t\t\t\t\t\t/* And the bottom neighbour cell is now the same as the final configuration */\n\t\t\t\t\t\t\tif(target[x][y+1].topSubcellValue==grid[x][y+1].topSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x][y+1].topSubcellValue==grid[x][y+1].topSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x][y+1].leftSubcellValue==grid[x][y+1].leftSubcellValue &&\n\t\t\t\t\t\t\t\t\ttarget[x][y+1].rightSubcellValue==grid[x][y+1].rightSubcellValue){\n\n\t\t\t\t\t\t\t\t/* But was different before */\n\t\t\t\t\t\t\t\tif(different[x][y+1]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and decrement the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x][y+1]=false;\n\t\t\t\t\t\t\t\t\tdifferences--;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Else if the bottom neighbour cell is now different from the final configuration */\n\t\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t\t/* But was the same before */\n\t\t\t\t\t\t\t\tif(!different[x][y+1]){\n\n\t\t\t\t\t\t\t\t\t/* Modify the difference matrix and increment the difference\n\t\t\t\t\t\t\t\t\t * counter */\n\t\t\t\t\t\t\t\t\tdifferent[x][y+1]=true;\n\t\t\t\t\t\t\t\t\tdifferences++;\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\n\t\t\t\t\t\t/* A successful update means set the failed transition counter to 0 */\n\t\t\t\t\t\tstall=0;\n\n\t\t\t\t\t\t/* And if the system is in exhaustive mode then set it back to normal mode */\n\t\t\t\t\t\tif(exhaust==1){\n\t\t\t\t\t\t\texhaust=0;\n\t\t\t\t\t\t\tresult.setText(\"Update occurred: returning to random selection\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* If an update has NOT occurred */\n\t\t\t\t\telse{\n\n\t\t\t\t\t\t/* And the system is not in exhaustive mode */\n\t\t\t\t\t\tif(exhaust==0){\n\n\t\t\t\t\t\t\t/* Increment the failed transition counter */\n\t\t\t\t\t\t\tstall++;\n\n\t\t\t\t\t\t\t/* If the failed transition threshold has been reached */\n\t\t\t\t\t\t\tif(stall==maxStalls){\n\n\t\t\t\t\t\t\t\t/* Set the system to exhaustive mode */\n\t\t\t\t\t\t\t\texhaust=1;\n\t\t\t\t\t\t\t\tresult.setText(\"No updates after 100000 transitions: attempting iterative approach\");\n\t\t\t\t\t\t\t\tx=0; y=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Else if the system is in exhaustive mode, and the bottom-right-most cell\n\t\t\t\t\t\t * has failed to update */\n\t\t\t\t\t\telse if(x==GlobalAttributes.xCells-1 && y==GlobalAttributes.yCells-1){\n\n\t\t\t\t\t\t\t/* Then there is a definite deadlock of the STCA and execution can stop */\n\t\t\t\t\t\t\tresult.setText(\"Deadlock\");\n\t\t\t\t\t\t\tpause();\n\t\t\t\t\t\t\tx=0; y=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Used for debugging */\n\t\t\t\t\tif(output==1){\n\t\t\t\t\t\tSystem.out.println(\"loop finished\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* If the current configuration is identical to the target configuration */\n\t\t\t\tif(differences==0){\n\n\t\t\t\t\t/* Stop the test if the user only wishes to run it once */\n\t\t\t\t\tif(!loop){\n\t\t\t\t\t\tresult.setText(\"Target reached\");\n\t\t\t\t\t\tpause();\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Otherwise continue and run the test again (loops back around) while incrementing\n\t\t\t\t\t * the counter of successful tests */\n\t\t\t\t\telse{\n\t\t\t\t\t\tcompleted++;\n\t\t\t\t\t\tresult.setText(completed+\" runs match target\");\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Set this to false to ensure that the test doesn't occur again\n\t\t\t\t\t * if the user only wishes a single test */\n\t\t\t\t\tonce=false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void run(){\n\t}",
"public void run()\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n public void initialRun(){\r\n tProcess = parser.nextSimProcessTime();\r\n System.out.println();\r\n boolean goRun=true;\r\n while(goRun){\r\n\r\n if(currentTime == tProcess){\r\n mc = parser.simProcess(mc);\r\n tProcess = parser.nextSimProcessTime();\r\n }\r\n mc.doOneStep();\r\n\r\n if(makeVideo){\r\n if(currentTime%FrameRate ==0){\r\n\r\n vid.addLatticeFrame(mc.getSimSystem().getSystemImg());\r\n makeVideo = vid.isWritten();\r\n }\r\n }\r\n\r\n if((currentTime % 10) ==0){System.out.println(\"t:\"+currentTime+\" M:\"+mc.getM());}\r\n currentTime++;\r\n\r\n\r\n goRun = !(mc.nucleated());\r\n if(mc.getM()<0 && currentTime> 300){goRun=false;}\r\n if(currentTime > maxT){goRun= false;}\r\n }\r\n\r\n if(makeVideo){\r\n vid.writeVideo();\r\n }\r\n }",
"public void run() {\n\t\tLooper.prepare();\n\t\tThread.currentThread().setName(\"Guidance\");\n\t\tThread.currentThread().setPriority(Thread.MAX_PRIORITY);\n\t\tcreateHandler();\n\t\t//mHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\treceiveMessage(\"DIRECT:0:0:0:0\", null);\n\t\tLooper.loop();\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\tint time=0;\n\t\twhile(true)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tswitch (this.direct) {\n\t\t\tcase 0:\n\t\t\t\t\n\t\t\t\t//设置for循环是为了不出现幽灵坦克\n\t\t\t\t//使得坦克有足够长的时间走动,能看得清楚\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{ \n\t\t\t\t\t//判断是否到达边界\n\t\t\t\t\tif(y>0 && !this.isTouchEnemyTank() && !this.isTouchJinshuWall &&!this.isTouchTuWall){\n\t\t\t\t\t\ty-=speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\tif(x<MyRules.panelX-35 && !this.isTouchEnemyTank() && !this.isTouchJinshuWall &&!this.isTouchTuWall)\n\t\t\t\t\t{\n\t\t\t\t\t\tx+=speed;\n\t\t\t\t\t}\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(y<MyRules.panelY-35 && !this.isTouchEnemyTank()&& !this.isTouchJinshuWall &&!this.isTouchTuWall)\n\t\t\t\t\t{\n\t\t\t\t\t\ty+=speed;\n\t\t\t\t\t}try {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(x>0 && !this.isTouchEnemyTank()&& !this.isTouchJinshuWall &&!this.isTouchTuWall){\n\t\t\t\t\t\tx-=speed;\n\t\t\t\t\t}try {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t//走动之后应该产生一个新方向\n\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\n\t\t\t\n\t\t\ttime++;\n\t\t\tif(time%2==0)\n\t\t\t{\n\t\t\t\t//判断敌人坦克是否需要添加子弹\n\t\t\t\tif(this.state)\n\t\t\t\t{\n\t\t\t\t\tBullet enBullet=new Bullet();\n\t\t\t\t\t//每个坦克每次可以发射炮弹的数目\n\t\t\t\t\tif(enbu.size()<5)\n\t\t\t\t\t{\n\t\t\t\t\t\tenBullet.setDirect(direct);\n\t\t\t\t\t\tswitch (enBullet.direct) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+9);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()-6);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\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\tenBullet.setX(this.getX()+31);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+8);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\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\tenBullet.setX(this.getX()+8);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+31);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()-6);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+9);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t Thread thread=new Thread(enBullet);\n\t\t\t\t\t\t\t thread.start();\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}//if(time%2==0)\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//判断坦克是否死亡\n\t\t\tif(this.state==false)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}//whlie\n\t}",
"public void run() {\n }",
"public void run(){\n try{\n while (true) {\n if (Running && step==1) {\n if (pause_before) {\n Thread.sleep(speed);\n pause_before = false;\n }\n handler1.sendEmptyMessage(1);\n setStep(2);\n Thread.sleep(750);//time pause for 0.75s, allow the screen to stay in no mole for 0.75s\n\n }\n if (Running && step==2) {\n if (pause_before) {\n Thread.sleep(750);\n pause_before = false;\n }\n next = (int) (Math.random() * 9) + 1;\n handler2.sendEmptyMessage(1);\n if (random)\n speed = (int) (Math.random() * 751) + 250;\n setStep(1);\n Thread.sleep(speed);//time pause for 0.75s, by default, allow the screen to stay in mole for 0.75s\n next = 0;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n\n }",
"@Override\n public void simulationPeriodic() {\n }",
"@Override\n public void run (){\n System.out.println(\"soy \" +Thread.currentThread().getName());\n Recurso.uso();\n try {\n Thread.sleep( 2000 );\n } catch (InterruptedException e) {\n };\n }",
"void run();",
"void run();",
"void run();",
"void run();",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\t}",
"@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}",
"public void run() {\r\n\t\tnotifyViews();\r\n\t\tfor (int i = 0; i < 100000; i++) {\r\n\t\t\ttick();\r\n\t\t}\r\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run()\n {\n \t long sec = System.nanoTime()/1000000000;\n System.out.println(sec);\n \n while(running){\n try{\n \t //\tune fois qu'il a tourne met le thread en pause pendant 1 sec, necessaire sinon le programme bouffe trop de ram\n Thread.sleep(1);\n }\n catch(InterruptedException ie){\n System.out.println(ie.getMessage());\n }\n // malgres le sleep il faut verifier qu'il est bien synchro on recupere donc le temps et verifie qu'il s'est ecoule une sec\n if(System.nanoTime()/1000000000>sec){\n actualiser();\n sec = System.nanoTime()/1000000000;\n }\n //si le nombre de secondes est = a 0 il y a une erreur donc on sort\n else if(sec == 0)\n break;\n }\n \n }",
"public void run() \n\t{\n\t\tif(isRunning == true)\n\t\t{\n\t\t\tsimulation.tick();\n\t\t\tthis.updateStats();\n\t\t}\n\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"public void run() {\n try {\n Thread.sleep(1000000);\n } catch (InterruptedException ie) {\n }\n }",
"public void run() {\n\n while (true) {\n System.out.println(this);\n // updateGraph takes in seconds and this.TIMEBETWEENFRAMES is given in milliseconds.\n this.updateBoard(this.TIMEBETWEENFRAMES / 1000);\n try {\n Thread.sleep((long) (this.TIMEBETWEENFRAMES));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n checkRep();\n }\n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\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}\r\n\t}",
"private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"@Override\n public void run()\n {\n }",
"@Override\n public void run()\n {\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\t\t\t\t\t\n\t}",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"public void run() {\r\n }",
"public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }",
"public void run() {\n\t}",
"public void run() {\n\t}",
"@Override\n\tpublic void run()\n\t{\n\t\tRandom random = new Random();\n\t\tfor(int i = 0; i < nIteraciones; i++)\n\t\t{\n\t\t\tInteger contenido = random.nextInt();\n\t\t\tString titulo = \"Thread \" + idThread + \", Mensaje \" + i;\n\t\t\tMensaje<Integer> mensaje = new Mensaje<Integer>(contenido,titulo);\n\t\t\tboolean exito = false;\n\t\t\twhile(!exito)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"Thread \" + idThread + \" almacenando, intento: \" + iteracionActual);\n\t\t\t\t\tbuffer.almacenar(mensaje);\n\t\t\t\t\texito = true;\n\t\t\t\t\titeracionActual++;\n\t\t\t\t} catch (ExceptionFullBuffer e) {\n\t\t\t\t\tSystem.err.println(\"Thread: \" + idThread + \", \" + e.getMessage());\n\t\t\t\t\tThread.yield();\n\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\tbuffer.retirarThreadActivo(idThread);\n\t\tSystem.out.println(\"Termino Thread: \" + idThread);\n\t}"
]
| [
"0.71208715",
"0.7084906",
"0.70410967",
"0.7039409",
"0.7039409",
"0.7002645",
"0.6997677",
"0.6997677",
"0.69408154",
"0.69345766",
"0.6906219",
"0.6861377",
"0.6858809",
"0.6851947",
"0.68495005",
"0.6847131",
"0.68410724",
"0.68268627",
"0.6823546",
"0.68209624",
"0.68209624",
"0.68209624",
"0.6820699",
"0.68106586",
"0.68106586",
"0.68106586",
"0.6808608",
"0.67947626",
"0.67934567",
"0.67873025",
"0.67857087",
"0.67857087",
"0.6784713",
"0.67838466",
"0.67766076",
"0.6775066",
"0.6775066",
"0.6775066",
"0.67748576",
"0.67748576",
"0.6768796",
"0.676526",
"0.67646116",
"0.67644846",
"0.67644846",
"0.6760965",
"0.6752871",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67466646",
"0.67387146",
"0.6738173",
"0.67360336",
"0.6733659",
"0.67323613",
"0.67243284",
"0.67243284",
"0.67243284",
"0.67243284",
"0.6721608",
"0.6707764",
"0.67033243",
"0.6702283",
"0.66978574",
"0.66978574",
"0.66964746",
"0.66952324",
"0.66926944",
"0.66870165",
"0.66868776",
"0.6680924",
"0.6677503",
"0.6675265",
"0.6675265",
"0.6675265",
"0.6675265",
"0.6675265",
"0.66726583",
"0.6671031",
"0.6667108",
"0.6667108",
"0.6663719",
"0.66548353",
"0.66548353",
"0.66548353",
"0.66548353",
"0.66548353",
"0.66548353",
"0.66517997",
"0.6649256",
"0.66400415",
"0.66385895",
"0.66385895",
"0.66333133"
]
| 0.70301986 | 5 |
Allows selecting tests for execution | @Incubating
public interface TestSelection {
/**
* Includes given test in execution.
*
* @param testClass test class name
* @param testMethod test method name
* @return this selection object
* @since 1.10
*/
TestSelection includeTest(String testClass, String testMethod);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}",
"TestSelection includeTest(String testClass, String testMethod);",
"@Test\n public void selectAll(){\n }",
"@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }",
"@Test\n public void testSelectAll() {\n }",
"TestClassExecutionResult assertTestsExecuted(TestCase... testCases);",
"public boolean runTest(int which) {\n \n TestStubs.testStartPrint(\"Running Test \" + which);\n \n boolean test = false;\n \n switch(which) {\n case 0:\n test = test0();\n break;\n case 1:\n test = test1();\n break;\n case 2:\n test = test2();\n break;\n case 3:\n test = test3();\n break;\n case 4:\n test = test4();\n break;\n case 5:\n test = test5();\n break;\n case 6:\n test = test6();\n break;\n case 7:\n test = test7();\n break;\n case 8:\n test = test8();\n break;\n case 9:\n test = test9();\n break;\n case 10:\n test = test10();\n break;\n case 11:\n test = test11();\n break;\n case 12:\n test = test12();\n break;\n case 13:\n test = test13();\n break;\n case 14:\n test = test14();\n break;\n case 15:\n test = test15();\n break;\n case 16:\n test = test16();\n break; \n case 17:\n test = test17();\n break; \n case 18:\n test = test18();\n break; \n case 19:\n test = testLOTS();\n break;\n default:\n TestStubs.debugPrint(\"NO SUCH TEST - \" + which);\n }\n \n printSettings();\n \n \n \n if (test)\n TestStubs.testDonePrint(\"Test \" + which + \" SUCCESS\\n\\n\");\n else\n TestStubs.testDonePrint(\"Test \" + which + \" FAIL\\n\\n\");\n return test;\n }",
"TestClassExecutionResult assertTestsExecuted(String... testNames);",
"@Test\n public void testSelectAll() throws Exception {\n\n }",
"private static void setupCommandTests(Application application) {\n\t\tapplication.addTest(\"Load secret command\", new SelectLoadSecretCommandOptionListener());\n\n\t\tapplication.addTest(\"Run command\", new SelectRunCurrentCommandOptionListener(DriverFeature.getDriverManager()));\n\n\t}",
"@Test\n public void SelectCount(){\n\n }",
"public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}",
"@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"public void run(TestCase testCase) {\n }",
"public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }",
"@Test\n public void functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }",
"@Test\n void one() {\n System.out.println(\"Executing Test 1.\");\n }",
"public static void main(String args[])\n {\n junit.textui.TestRunner.run(suite());\n }",
"protected abstract void executeTests() throws BuilderException;",
"@Test\n public void test3(){\n }",
"public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\n public void testFitnessProportionateSelection()\n {\n }",
"@Test\n void displayAllTasks() {\n }",
"@Test\n public void testSelectByNew() throws Exception{\n }",
"void runTestSuites() throws InterruptedException {\n // all test suites are located under this directory\n String testSuiteDirectory = config.getTestSuiteDirectoryPathString();\n if (!testSuiteDirectory.endsWith(Constants.FILE_SEPARATOR)) {\n testSuiteDirectory += Constants.FILE_SEPARATOR;\n }\n\n String programNames = options.getValueFor(Constants.PROGRAMS_OPTION);\n String[] programNamesSeparated = programNames.split(Constants.COLON);\n\n // Find test subdirectories that match program names\n List<String> matchingDirectories;\n for (String programName : programNamesSeparated) {\n Path path = Paths.get(programName);\n String fname = path.getFileName().toString();\n programName = fname;\n DirectoryNameMatcher directoryFinder = new DirectoryNameMatcher(programName);\n try {\n Files.walkFileTree(Paths.get(testSuiteDirectory), directoryFinder);\n matchingDirectories = directoryFinder.getMatchingDirectories();\n if (matchingDirectories.isEmpty()) {\n Log.warn(messages.get(\"WRN001\", programName, testSuiteDirectory));\n }\n } catch (IOException ioException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR019\", programName));\n }\n\n for (String matchingDirectory : matchingDirectories) {\n TestSuiteConcatenator concatenator =\n new TestSuiteConcatenator(config, options);\n testSuite = concatenator.concatenateTestSuites(matchingDirectory);\n\n // Create READER for the Cobol source program to be tested\n StringBuilder cobolSourceInPath = new StringBuilder();\n cobolSourceInPath.append(System.getProperty(\"user.dir\"));\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n cobolSourceInPath.append(config.getApplicationSourceDirectoryPathString());\n if (!cobolSourceInPath.toString().endsWith(Constants.FILE_SEPARATOR)) {\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n }\n cobolSourceInPath.append(programName);\n\n List<String> applicationFilenameSuffixes = config.getApplicationFilenameSuffixes();\n for (String suffix : applicationFilenameSuffixes) {\n Log.debug(\"Driver looking for source file <\" + cobolSourceInPath.toString() + suffix + \">\");\n if (Files.isRegularFile(Paths.get(cobolSourceInPath.toString() + suffix))) {\n cobolSourceInPath.append(suffix);\n Log.debug(\"Driver recognized this file as a regular file: <\" + cobolSourceInPath.toString() + \">\");\n break;\n }\n }\n String cobolSourceInPathString = adjustPathString(cobolSourceInPath.toString());\n\n try {\n cobolSourceIn = new FileReader(cobolSourceInPathString);\n } catch (IOException cobolSourceInException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR018\", programName));\n }\n\n // Create WRITER for the test source program (copy of program to be tested plus test code)\n StringBuilder testSourceOutPath = new StringBuilder();\n testSourceOutPath.append(new File(Constants.EMPTY_STRING).getAbsolutePath());\n testSourceOutPath.append(Constants.FILE_SEPARATOR);\n testSourceOutPath.append(\n config.getString(Constants.TEST_PROGRAM_NAME_CONFIG_KEY,\n Constants.DEFAULT_TEST_PROGRAM_NAME));\n\n Log.debug(\"Driver.runTestSuites() testSourceOutPath: <\" + testSourceOutPath.toString() + \">\");\n\n try {\n testSourceOut = new FileWriter(testSourceOutPath.toString());\n } catch (IOException testSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR016\", programName));\n }\n\n mergeTestSuitesIntoTheTestProgram();\n try {\n testSourceOut.close();\n } catch (IOException closeTestSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR017\", programName));\n }\n\n // Compile and run the test program\n String processConfigKeyPrefix;\n ProcessLauncher launcher = null;\n switch (PlatformLookup.get()) {\n case LINUX :\n Log.debug(\"Driver launching Linux process\");\n processConfigKeyPrefix = \"linux\";\n launcher = new LinuxProcessLauncher(config);\n break;\n case WINDOWS :\n Log.debug(\"Driver launching Windows process\");\n processConfigKeyPrefix = \"windows\";\n launcher = new WindowsProcessLauncher(config);\n break;\n case OSX :\n Log.debug(\"Driver launching OS X process\");\n processConfigKeyPrefix = \"osx\";\n //launcher = new OSXProcessLauncher(config);\n break;\n case ZOS :\n Log.debug(\"Driver launching z/OS process\");\n processConfigKeyPrefix = \"zos\";\n //launcher = new ZOSProcessLauncher(config);\n break;\n default :\n Log.debug(\"Driver launching default process\");\n processConfigKeyPrefix = \"unix\";\n launcher = new LinuxProcessLauncher(config);\n break;\n }\n String processConfigKey = processConfigKeyPrefix + Constants.PROCESS_CONFIG_KEY;\n String processName = config.getString(processConfigKey);\n if (isBlank(processName)) {\n String errorMessage = messages.get(\"ERR021\", processConfigKey);\n Log.error(errorMessage);\n throw new PossibleInternalLogicErrorException(errorMessage);\n }\n if (launcher != null){\n Process process = launcher.run(testSourceOutPath.toString());\n int exitCode = 1;\n// try {\n exitCode = process.waitFor();\n// } catch (InterruptedException interruptedException) {\n// exitCode = 1;\n// }\n Log.info(messages.get(\"INF009\", processName, String.valueOf(exitCode)));\n }\n }\n }\n }",
"@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }",
"public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }",
"@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}",
"public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(ActorUtilTest.suite());\n suite.addTest(AddActionTest.suite());\n suite.addTest(AddActorActionTest.suite());\n suite.addTest(AddExtendActionTest.suite());\n suite.addTest(AddIncludeActionTest.suite());\n suite.addTest(AddSubsystemActionTest.suite());\n suite.addTest(AddUseCaseActionTest.suite());\n suite.addTest(CopyActionTest.suite());\n suite.addTest(CopyActorActionTest.suite());\n suite.addTest(CopyExtendActionTest.suite());\n suite.addTest(CopyIncludeActionTest.suite());\n suite.addTest(CopySubsystemActionTest.suite());\n suite.addTest(CopyUseCaseActionTest.suite());\n suite.addTest(CutActionTest.suite());\n suite.addTest(CutActorActionTest.suite());\n suite.addTest(CutExtendActionTest.suite());\n suite.addTest(CutIncludeActionTest.suite());\n suite.addTest(CutSubsystemActionTest.suite());\n suite.addTest(CutUseCaseActionTest.suite());\n suite.addTest(ExtendUtilTest.suite());\n suite.addTest(IncludeUtilTest.suite());\n suite.addTest(InvalidDataContentExceptionTest.suite());\n suite.addTest(ModelTransferTest.suite());\n suite.addTest(PasteActionTest.suite());\n suite.addTest(PasteActorActionTest.suite());\n suite.addTest(PasteExtendActionTest.suite());\n suite.addTest(PasteIncludeActionTest.suite());\n suite.addTest(PasteSubsystemActionTest.suite());\n suite.addTest(PasteUseCaseActionTest.suite());\n suite.addTest(RemoveActionTest.suite());\n suite.addTest(RemoveActorActionTest.suite());\n suite.addTest(RemoveExtendActionTest.suite());\n suite.addTest(RemoveIncludeActionTest.suite());\n suite.addTest(RemoveSubsystemActionTest.suite());\n suite.addTest(RemoveUseCaseActionTest.suite());\n suite.addTest(SubsystemUtilTest.suite());\n suite.addTest(UsecaseToolUtilTest.suite());\n suite.addTest(UsecaseUndoableActionTest.suite());\n suite.addTest(UseCaseUtilTest.suite());\n\n suite.addTest(Demo.suite());\n\n return suite;\n }",
"public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}",
"public static void main(String[] args) {\n\ttest(tests);\n }",
"@TestProperties(name = \"5.2.4.22 press add test, when no test is selected\")\n\tpublic void testAddTestWithNoTestSelected() throws Exception{\n\t\tjsystem.launch();\n\t\tString scenarioName = jsystem.getCurrentScenario();\n\t\tScenarioUtils.createAndCleanScenario(jsystem, scenarioName);\n\t\tjsystem.addTest(\"testShouldPass\", \"GenericBasic\", true);\n\t\tjsystem.moveCheckedToScenarioTree();\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tjsystem.checkNumberOfTestExecuted(1);\n\t}",
"public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}",
"@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }",
"private void handleSearchButtonSelected() {\n\t\tShell shell = getShell();\n\t\tIProject project = getProject(editorLocal.getProjectName());\n\t\tIJavaProject javaProject = JavaCore.create(project);\n\t\tIType[] types = new IType[0];\n\t\tboolean[] radioSetting = new boolean[2];\n\t\ttry {\n\t\t\t// fix for Eclipse bug 66922 Wrong radio behaviour when switching\n\t\t\t// remember the selected radio button\n\t\t\tradioSetting[0] = mTestRadioButton.getSelection();\n\t\t\tradioSetting[1] = mTestContainerRadioButton.getSelection();\n\t\t\ttypes = TestSearchEngine.findTests(getLaunchConfigurationDialog(), javaProject, getTestKind());\n\t\t} catch (InterruptedException e) {\n\t\t\tsetErrorMessage(e.getMessage());\n\t\t\treturn;\n\t\t} catch (InvocationTargetException e) {\n\t\t\tLOG.error(\"Error finding test types\", e);\n\t\t\treturn;\n\t\t} finally {\n\t\t\tmTestRadioButton.setSelection(radioSetting[0]);\n\t\t\tmTestContainerRadioButton.setSelection(radioSetting[1]);\n\t\t}\n\t\tSelectionDialog dialog = new TestSelectionDialog(shell, types);\n\t\tdialog.setTitle(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_title);\n\t\tdialog.setMessage(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_message);\n\t\tif (dialog.open() == Window.CANCEL) {\n\t\t\treturn;\n\t\t}\n\t\tObject[] results = dialog.getResult();\n\t\tif ((results == null) || (results.length < 1)) {\n\t\t\treturn;\n\t\t}\n\t\tIType type = (IType) results[0];\n\t\tif (type != null) {\n\t\t\tmTestText.setText(type.getFullyQualifiedName('.'));\n\t\t}\n\t}",
"@Test\n public void should_find_one_test_unit_for_one_feature_available_in_classpath_using_subclassed_runner() throws Exception {\n \tList<TestUnit> testUnits = finder.findTestUnits(HideFromJUnit.Pepino.class);\n \t\n \t// then\n \tassertThat(testUnits).hasSize(1);\n \tDescription description = testUnits.get(0).getDescription();\n \tassertThat(description.getFirstTestClass()).contains(HideFromJUnit.Pepino.class.getSimpleName());\n \tassertThat(description.getName()).containsIgnoringCase(\"Shopping\").containsIgnoringCase(\"change\");\n }",
"@Test\n public void test8(){\n\n }",
"private static void setupPresetTests(Application application) {\n\t\tSelectTestFigureOptionListener selectTestFigureOptionListener = new SelectTestFigureOptionListener(\n\t\t\t\tDriverFeature.getDriverManager());\n\t\tSelectTestFigure2OptionListener selectTestFigure2OptionListener = new SelectTestFigure2OptionListener(\n\t\t\t\tDriverFeature.getDriverManager());\n\n\t\tapplication.addTest(\"Figure Joe 1\", selectTestFigureOptionListener);\n\t\tapplication.addTest(\"Figure Joe 2\", selectTestFigure2OptionListener);\n\t}",
"public AllTests() {\n\t\taddTest(new TestSuite(TestSuiteTest.class));\n\t}",
"@Override\r\n\tpublic ITestResult[] runAllTests(TestInput ti) {\r\n\t\tint[] tids = getTestCaseIds();\r\n\t\tITestResult[] all = new ITestResult[0];\r\n\t\tfor (int t : tids) {\r\n\t\t\tITestResult[] tr = runTestCase(t, ti);\r\n\t\t\tif (tr != null)\r\n\t\t\t\tall = concat(all, tr);\r\n\t\t}\r\n\r\n\t\treturn all;\r\n\t}",
"public void runIndividualSpreadsheetTests() {\r\n\r\n\t\t// Make a list of files to be analyzed\r\n\t\tString[] inputFiles = new String[] {\r\n//\t\t\t\t\"salesforecast_TC_IBB.xml\",\r\n//\t\t\t\t\"salesforecast_TC_2Faults.xml\",\r\n//\t\t\t\t\t\t\t\"salesforecast_TC_2FaultsHeavy.xml\",\r\n\t\t\t\t\"SemUnitEx1_DJ.xml\",\r\n\t\t\t\t\"SemUnitEx2_1fault.xml\",\r\n\t\t\t\t\"SemUnitEx2_2fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_1fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_2fault.xml\",\r\n//\t\t\t\t\t\t\t\"VDEPPreserve_3fault.xml\",\r\n//\t\t\t\t\"AZA4.xml\",\r\n//\t\t\t\t\"Consultant_form.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_v2.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_C3.xml\",\r\n//\t\t\t\t\"11_or_12_diagnoses.xml\",\r\n//\t\t\t\t\"choco_loop.xml\",\r\n//\t\t\t\t\"Paper2.xml\",\r\n//\t\t\t\t\"Test_If.xml\",\r\n//\t\t\t\t\"Test_If2.xml\",\r\n\r\n\t\t};\r\n\r\n\t\tscenarios.add(new Scenario(executionMode.singlethreaded, pruningMode.on, PARALLEL_THREADS, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, PARALLEL_THREADS, true));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,PARALLEL_THREADS*2));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,0));\r\n\r\n//\t\tinputFiles = new String[]{\"VDEPPreserve_3fault.xml\"};\r\n\r\n\r\n\t\t// Go through the files and run them in different scenarios\r\n\t\tfor (String inputfilename : inputFiles) {\r\n\t\t\trunScenarios(inputFileDirectory, inputfilename, logFileDirectory, scenarios);\r\n\t\t}\r\n\t}",
"public static void main(String args[]) {\n junit.textui.TestRunner.run(suite());\n }",
"@Test\n public void main() {\n run(\"TEST\");\n }",
"private void runTest(String path, int key){\n\t\t\n\t\tsaveTestList(path); \n\t\tgetSelectedPanel().clearResults();\n\t\tcontroller.runTest(path,key);\n\t}",
"@Test\n public void RecentBookClick() {\n }",
"@Test\n public void testHandleBtnFiltrar() {\n }",
"@Test\n public void test2(){\n }",
"public static void testIt () {\r\n\t\tjunit.textui.TestRunner.run (suite());\r\n\t}",
"@Test\r\n public void testMouseClicked() {\r\n }",
"public void test(int testcase) {\n\t\tswitch (testcase) {\n\t\tcase 1: insertCase(); break;\n\t\tcase 2: selectCase(); break;\n\t\tcase 3: resetDB(); break;\n\t\tcase 4: externalTestcase(); break;\n\t\tcase 6: bulkLoad(); break;\n\t\tcase 7: addIndex(); break;\n\t\t}\n\t}",
"@Test\r\n public void test1() {\n }",
"@Test\n public void testSelectByAccount() throws Exception {\n }",
"@Test\n public void reopenClosedTeamUnavalableOption() {\n\n }",
"@Test\r\n public void testActionPerformed() {\r\n }",
"@Override\n\tpublic String selectTest() throws Exception {\n\t\treturn boardDao.selectTest();\n\t}",
"static Menu systemTests ()\r\n \t{\r\n \t\tfinal byte width = 40;\r\n \t\tOption commentRemoval, findBinary, literal, next, defineSettings, isBinary, split,\r\n \t\tprogramROM, templateROM, schematicSample, RCPRead; //List of all system tests.\r\n \t\tString label [] = {\"What test would you like to run?\"};\r\n \t\tMenu tests = new Menu (label, \"Run system tests.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tcommentRemoval = new TestInterface (\"Comment Removal\", new CommentRemoval());\r\n \t\tfindBinary = new TestInterface (\"Find Binary\", new FindBinary());\r\n \t\tliteral = new TestInterface (\"Hardware Literals\", new Literal());\r\n \t\tnext = new TestInterface (\"Next line\", new Next());\r\n \t\tdefineSettings = new TestInterface (\"Define Settings\", new DefineSettings());\r\n \t\tisBinary = new TestInterface (\"[string] Is Binary\", new IsBinary());\r\n \t\tsplit = new TestInterface (\"Split\", new Split());\r\n \t\tprogramROM = new TestInterface (\"Generate program ROM\", new ProgramROM());\r\n \t\ttemplateROM = new TestInterface (\"Generate ROM template\", new TemplateROM());\r\n \t\tschematicSample = new TestInterface (\"Generate sample schematic\", new SchematicSample());\r\n \t\tRCPRead = new TestInterface (\"Read sample RCP file\", new RCPReader());\r\n \t\t\r\n \t\t//Adding options to test menu:\r\n \t\ttests.addOption (commentRemoval);\r\n \t\ttests.addOption (findBinary);\r\n \t\ttests.addOption (literal);\r\n \t\ttests.addOption (next);\r\n \t\ttests.addOption (defineSettings);\r\n \t\ttests.addOption (isBinary);\r\n \t\ttests.addOption (split);\r\n \t\ttests.addOption (programROM);\r\n \t\ttests.addOption (templateROM);\r\n \t\ttests.addOption (schematicSample);\r\n \t\ttests.addOption (RCPRead);\r\n \t\t//These options will be displayed in the order they were added here.\r\n \t\t\r\n \t\treturn tests;\r\n \t}",
"@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }",
"@Test\n public void test2() {\n }",
"@Test(priority=1, testName = \"LoginTest\")\n public void HrmLoginTest() {\n ConcreteMixer.ConcretePanel();\n\n\n }",
"public void junitSuiteStarted(int numTests) { }",
"public void junitSuiteStarted(int numTests) { }",
"@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}",
"@Test\n\tpublic void test4() {\n\t}",
"@Test\n\tpublic void Cases_23275_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Go to Active tasks dashlet\n\t\t// TODO: VOOD-960 - Dashlet selection \n\t\tnew VoodooControl(\"span\", \"css\", \".row-fluid > li div span a span\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-dashletaction='createRecord']\").click();\n\t\tsugar().tasks.createDrawer.getEditField(\"subject\").set(testName);\n\t\tsugar().tasks.createDrawer.save();\n\t\tif(sugar().alerts.getSuccess().queryVisible()) {\n\t\t\tsugar().alerts.getSuccess().closeAlert();\n\t\t}\n\n\t\t// refresh the Dashlet\n\t\tnew VoodooControl(\"a\", \"css\", \".dashboard-pane ul > li > ul > li .btn-group [title='Configure']\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"li > div li div [data-dashletaction='refreshClicked']\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify task is in Active-Task Dashlet (i.e in TODO tab, if we have no related date for that record)\n\t\tnew VoodooControl(\"div\", \"css\", \"div[data-voodoo-name='active-tasks'] .dashlet-unordered-list .dashlet-tabs-row div.dashlet-tab:nth-of-type(3)\").click();\n\t\tnew VoodooControl(\"div\", \"css\", \"div.tab-pane.active p a:nth-of-type(2)\").assertEquals(testName, true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}",
"@Test\r\n\tpublic void test2(){\n\t}",
"public void testSingleBrowserMultiScript() {\n\t\t// Create a SingleBrowserMultiScriptHelper object. A new object should be created for a full set\n\t\t// of openBrowser, executeScript, executeScript, executeScript..., killBrowser calls.\n\t\tSingleBrowserMultiScriptHelper helper = new SingleBrowserMultiScriptHelper(sahiHost, sahiPort, browserType);\n\t\tboolean opened = false;\n\n\t\ttry {\n\t\t\t// Logging default script execution timeout.\n\t\t\tSystem.out.println(helper.getScriptExecutionTimeout());\n\n\t\t\t// Set the script execution timeout to 15 minutes. This applies for each script.\n\t\t\t// Depending on the duration of your scripts, adjust this time accordingly.\n\t\t\thelper.setScriptExecutionTimeout(15*60*1000); // 15 minutes\n\n\t\t\t// Log debug messages\n\t\t\thelper.setLogDebugMessages(true);\n\n\t\t\t// Launch the browser with a start url\n\t\t\topened = helper.launchBrowser(\"http://sahi.co.in/demo/\");\n\n\t\t\tif (!opened) {\n\t\t\t\tSystem.out.println(\"Failed to launch browser correctly. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Browser opened\");\n\n\t\t\t// Execute the script\n\t\t\tboolean success = helper.executeScript(userDataScriptsFolder, \"demo/clickCombo.sah\");\n\n\t\t\t// NOTE: If script fails, you may decide whether to move ahead or not depending upon the flow.\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 1 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script1 success\");\n\n\t\t\t// Randomly doing something between two scripts\n\t\t\tdoSomethingElse();\n\n\t\t\t// Execute the second script\n\t\t\tsuccess = helper.executeScript(userDataScriptsFolder, \"demo/clicksTest.sah\");\n\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 2 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script2 success\");\n\n\t\t\tdoSomethingElse();\n\n\t\t\t// Execute the third script, by passing in parameters.\n\t\t\tMap<String, String> inputParams = new HashMap<String, String>();\n\t\t\tinputParams.put(\"user\", \"test\");\n\t\t\tinputParams.put(\"password\", \"secret\");\t\t\t\n\t\t\tsuccess = helper.executeScript(userDataScriptsFolder, \"demo/sampleapp_with_params.sah\", inputParams);\n\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 3 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script3 success\");\n\t\t}\n\t\tfinally {\n\t\t\tif (opened) {\n\t\t\t\t// Kill the browser.\n\t\t\t\thelper.killBrowser();\n\t\t\t}\n\t\t}\t\n\t}",
"@Test\n public void optionsTest() {\n // TODO: test options\n }",
"private Test createSuite()\n {\n //Let's discover what tests have been scheduled for execution.\n // (we expect a list of fully qualified test class names)\n String tests = System.getProperty(TEST_LIST_PROPERTY_NAME);\n if (tests == null || tests.trim().length() == 0)\n {\n tests = \"\";\n }\n logger.debug(\"specfied test list is: \" + tests);\n\n StringTokenizer st = new StringTokenizer(tests);\n String[] ids = new String[st.countTokens()];\n int n = 0;\n while (st.hasMoreTokens())\n {\n ids[n++] = st.nextToken().trim();\n }\n\n TestSuite suite = new TestSuite();\n for (int i=0; i<n; i++)\n {\n String testName = ids[i];\n if (testName != null && testName.trim().length() > 0)\n {\n try\n {\n Class<?> testClass = Class.forName(testName);\n if ((bc == null)\n && BundleActivator.class.isAssignableFrom(testClass))\n {\n logger.error(\"test \" + testName\n + \" skipped - it must run under felix\");\n }\n else\n {\n suite.addTest(new TestSuite(testClass));\n }\n }\n catch (ClassNotFoundException e)\n {\n logger.error(\"Failed to load standalone test \" + testName);\n }\n }\n }\n return suite;\n }",
"public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}",
"public void testRun() {\n\t\tsolo.waitForActivity(com.coky.app.Prijava.class, 2000);\n //Set default small timeout to 21743 milliseconds\n\t\tTimeout.setSmallTimeout(21743);\n //Click on Empty Text View\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.textEmail));\n //Enter the text: '[email protected]'\n\t\tsolo.clearEditText((android.widget.EditText) solo.getView(com.coky.app.R.id.textEmail));\n\t\tsolo.enterText((android.widget.EditText) solo.getView(com.coky.app.R.id.textEmail), \"[email protected]\");\n //Click on Empty Text View\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.textPassword));\n //Enter the text: 'test'\n\t\tsolo.clearEditText((android.widget.EditText) solo.getView(com.coky.app.R.id.textPassword));\n\t\tsolo.enterText((android.widget.EditText) solo.getView(com.coky.app.R.id.textPassword), \"test\");\n //Click on Prijavi se\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.prijavaBtn));\n //Wait for activity: 'com.coky.app.GlavnaAktivnost'\n\t\tassertTrue(\"com.coky.app.GlavnaAktivnost is not found!\", solo.waitForActivity(com.coky.app.GlavnaAktivnost.class));\n //Click on ImageView\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.btnDesno));\n //Click on Empty Text View\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.editNazivHraneNP));\n //Enter the text: 'Jabuke'\n\t\tsolo.clearEditText((android.widget.EditText) solo.getView(com.coky.app.R.id.editNazivHraneNP));\n\t\tsolo.enterText((android.widget.EditText) solo.getView(com.coky.app.R.id.editNazivHraneNP), \"Jabuke\");\n //Click on Empty Text View\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.editKolicinaNP));\n //Enter the text: '5'\n\t\tsolo.clearEditText((android.widget.EditText) solo.getView(com.coky.app.R.id.editKolicinaNP));\n\t\tsolo.enterText((android.widget.EditText) solo.getView(com.coky.app.R.id.editKolicinaNP), \"5\");\n //Click on Dodaj stavku\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.btnDodajStavkuNP));\n //Click on Dodaj paket\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.btnDodajPaketNP));\n //Click on Odustani\n\t\tsolo.clickOnView(solo.getView(com.coky.app.R.id.btnNatragNoviPaket));\n\t}",
"@Test\n\tpublic void test1() {\n\t\tSystem.out.println(\"I am Test 1\");\n\t}",
"@Test\n void displayCompletedTasks() {\n }",
"@Test\n public void doTest3() {\n }",
"@Test\n public void testIsButtonConfirmarClicked() {\n }",
"Testcase createTestcase();",
"public static void startTestCase(String testCase) throws Exception\n\t{\n\t\tint currentSuiteID;\n\t\tint currentTestCaseID;\n\t\tString currentTestSuite;\n\t\tString currentTestCaseName;\n\t\tXls_Reader currentTestSuiteXLS;\n\t\tXls_Reader Wb = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\data\\\\Controller.xlsx\");\n\t\tString TestURL = VerifyLoginWithValidCredentials.CONFIG.getProperty(\"TestURL\");\n\t\tfor (currentSuiteID = 2; currentSuiteID <= Wb.getRowCount(ObjectRepository.TEST_SUITE_SHEET); currentSuiteID++)\n\t\t{\n\t\t\tcurrentTestSuite = Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.Test_Suite_ID, currentSuiteID);\n\t if(Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.RUNMODE, currentSuiteID).equals(ObjectRepository.RUNMODE_YES))\n\t \t\t{\n\t\t\t\tcurrentTestSuiteXLS = new Xls_Reader(\"src/config/\" + currentTestSuite + \".xlsx\");\n\t\t\t\tfor (currentTestCaseID = 2; currentTestCaseID <= currentTestSuiteXLS.getRowCount(ObjectRepository.TEST_CASES_SHEET); currentTestCaseID++) \n\t\t\t\t{\n\t\t\t\t\tcurrentTestCaseName = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.Test_Case_ID, currentTestCaseID);\n\t\t\t\t\tif (currentTestCaseName.equals(testCase))\n\t {\n\t\t\t\t\t\tString desc = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Description\", currentTestCaseID);\n\t\t\t\t\t\tString subModule = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Sub Module\", currentTestCaseID);\n\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\tLog.test.log(LogStatus.INFO, \"Testing on URL : \" + TestURL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}",
"@Test\n public void testingTheSixFlatbed2017Order() {\n }",
"@Test\r\n public void testMousePressed() {\r\n }",
"@Test\n public void startApp2Do(){\n }",
"@Test\npublic void TC11(){\n\n}",
"public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }",
"public synchronized void launchJUnitTests() throws CoreException, InterruptedException{\n\t\tString projectName = DataManager.getProjectVersion();\n\t\tIProject project = ajdtHandler.getProject(projectName);\n\t\tJUnitLaunch launch = new JUnitLaunch();\n\t\tlaunch.performLaunch(JavaCore.create(project), ILaunchManager.RUN_MODE);\n\t}",
"public void listRunningTests() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"List of running tests in the framework.\\n\");\r\n\t\tlog.info(HEADER);\r\n\t\tlog.info(\"S.No\\tTest\");\r\n\t\tlog.info(HEADER);\r\n\t\tint i = 1;\r\n\t\tfor (Configuration test : tests) {\r\n\t\t\tlog.info(String.format(\"%d.\\t%s\\n\", i++, test));\r\n\t\t}\r\n\t}",
"public abstract void initializeTestSuite();",
"@Test\n public void baseCommandTests_part2() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part2.xlsx\");\n assertPassFail(executionSummary, \"crypto\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"macro-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"repeat-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"expression-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"multi-scenario2\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"flow_controls\", new TestOutcomeStats(2, 14));\n }",
"private static List<TestSetup> getTests() {\n PivotPicker middlePiv = Quick::alwaysPickMiddle;\n\n // Pivot Pickers\n PivotPicker leftPiv = Quick::alwaysPickLeftmost;\n PivotPicker rightPiv = Quick::alwaysPickRightmost;\n PivotPicker motPiv = Quick::medianOfThree;\n PivotPicker[] pivots = {leftPiv, middlePiv, rightPiv, motPiv};\n String[] pivotNames = {\"Always Pick Leftmost\", \"Always Pick Middle\", \"Always Pick Rightmost\", \"Median Of Three\"};\n\n // Partitioning methods\n Partitioner jonPart = (array, left, right, pivot) -> partition_Jon(array, left, right, pivot);\n Partitioner lomutoPart = Quick::partition_Lomuto;\n Partitioner hoarePart = Quick::partition_Hoare;\n Partitioner[] partitioners = {lomutoPart, hoarePart};\n String[] partNames = {\"lomuto\", \"hoare\"};\n\n // Subsort methods and sizes\n Subsort insertionSub = Quick::insertionSort;\n Subsort[] subsorts = {insertionSub};\n String[] subsortNames = {\"insertion\"};\n List<Integer> sizes = new ArrayList<>();\n for (int i = 3; i < 128; i = 1 + (int) (i * 1.45)) {\n sizes.add(i);\n }\n Integer[] subsortSizes = sizes.toArray(new Integer[sizes.size()]);\n\n // Data generators\n Generator randomGen = (size) -> {\n return generateArray(100, 999, size);\n };\n Generator sortedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = i;\n }\n return arr;\n };\n Generator reversedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = arr.length - i;\n }\n return arr;\n };\n Generator[] generators = {\n randomGen,\n //sortedGen, reversedGen,\n //(size) -> { return generateArray(10000, 99999, size, 0xDEADBEEF); },\n //(size) -> { return generateArray(10000, 99999, size, 0xCAFEBABE); },\n //(size) -> { return generateArray(10000, 99999, size, 0xBAADF00D); },\n\n };\n String[] generatorNames = {\n \"Random\",\n //\"sorted\", \"reversed\",\n //\"Sequence:0xDEADBEEF\",\n //\"Sequence:0xCAFEBABE\",\n //\"Sequence:0xBAADF00D\",\n };\n\n // Default test data\n TestSetup defaultTest = new TestSetup(\"Default\", null, null, 0, null, null);\n\n List<TestSetup> tests = new ArrayList<>();\n tests.add(defaultTest);\n List<TestSetup> temp = new ArrayList<>();\n { // Block for creating partition method variants\n\n\n // Create variations of the test with different partitioning methods\n for (TestSetup setup : tests) {\n\n for (int i = 0; i < partitioners.length; i++) {\n TestSetup variant = new TestSetup(setup, partNames[i]);\n variant.part = partitioners[i];\n temp.add(variant);\n }\n }\n }\n\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n // Create variations of the test with different pivot picking methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < pivots.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" + \" + pivotNames[i]);\n variant.pivp = pivots[i];\n temp.add(variant);\n }\n }\n\n { // Block for creating generator (dataset) variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different data generation methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < generators.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" on \" + generatorNames[i] + \" data\");\n variant.gen = generators[i];\n temp.add(variant);\n }\n }\n }\n\n\n { // Block for creating subsort variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different subsort methods and thresholds\n for (TestSetup setup : tests) {\n temp.add(setup);\n\n for (int i = 0; i < subsorts.length; i++) {\n // And also one version for each size!\n for (int k = 0; k < subsortSizes.length; k++) {\n TestSetup variant = new TestSetup(setup, setup.name + \"+\" + subsortNames[i] + \" below \" + subsortSizes[k]);\n variant.sst = subsortSizes[k];\n variant.ssort = subsorts[i];\n //temp.add(variant);\n\n TestSetup variant_finalSort = new TestSetup(variant, variant.name + \" once at end\");\n variant_finalSort.sortFinal = true;\n temp.add(variant_finalSort);\n }\n }\n }\n }\n\n\n // Return completed variation list\n return temp;\n }",
"@Test\n public void proximaSequencia(){\n\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tTester tester = new Tester();\n\t\t\t\tTestEditor testEditor = new TestEditor(tester) {\n\n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Class<?>[] getTestActionClasses() {\n\t\t\t\t\t\tList<Class<?>> result = new ArrayList<Class<?>>(Arrays.asList(super.getTestActionClasses()));\n\t\t\t\t\t\tresult.add(CustomComponentAssertion.class);\n\t\t\t\t\t\treturn result.toArray(new Class<?>[result.size()]);\n\t\t\t\t\t}\n\n\t\t\t\t};\n\n\t\t\t\t/*\n\t\t\t\t * Customize and open the test editor.\n\t\t\t\t */\n\t\t\t\ttestEditor.setDecorationsBackgroundColor(new Color(68, 61, 205));\n\t\t\t\ttestEditor.setDecorationsForegroundColor(new Color(216, 214, 245));\n\t\t\t\ttestEditor.open();\n\t\t\t}",
"@Override\n public void runTest() {\n }",
"@Test\n\tpublic void test2() {\n\t}",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Test\n public void isSellableTest() {\n // TODO: test isSellable\n }",
"@Test\n\tpublic void testCanEnter(){\n\t}",
"@Test public void testAllSimple10() { testAll(1234, \"1234\", 10); }",
"protected void runBeforeTest() {}"
]
| [
"0.7242712",
"0.68214726",
"0.6609573",
"0.6516446",
"0.64742994",
"0.64694977",
"0.6459088",
"0.64188075",
"0.6406863",
"0.6366744",
"0.63366306",
"0.63335896",
"0.6315214",
"0.63145965",
"0.63019496",
"0.629983",
"0.62984353",
"0.62885725",
"0.62843573",
"0.6283898",
"0.6274484",
"0.62405425",
"0.6194706",
"0.6140584",
"0.6139854",
"0.6139301",
"0.61287826",
"0.61120087",
"0.61116666",
"0.61084545",
"0.61083937",
"0.61042124",
"0.6084634",
"0.6082345",
"0.60635513",
"0.60604525",
"0.6052842",
"0.60424507",
"0.604041",
"0.6023802",
"0.6020329",
"0.60171175",
"0.60044026",
"0.60031736",
"0.59985536",
"0.59918845",
"0.5976065",
"0.59710026",
"0.596292",
"0.59604883",
"0.59582937",
"0.5956493",
"0.59550273",
"0.5950366",
"0.5948856",
"0.5944846",
"0.594199",
"0.59416175",
"0.59364897",
"0.5919538",
"0.5919194",
"0.5917285",
"0.5908558",
"0.5908558",
"0.59061825",
"0.59052527",
"0.58916134",
"0.589086",
"0.5887675",
"0.5885418",
"0.58845305",
"0.5879079",
"0.58752805",
"0.5870984",
"0.5869206",
"0.58624667",
"0.5854731",
"0.58537924",
"0.5852264",
"0.58476657",
"0.58432066",
"0.5836457",
"0.5835672",
"0.5833985",
"0.58304405",
"0.5829577",
"0.5827617",
"0.5822484",
"0.58209383",
"0.58129996",
"0.5812453",
"0.58093417",
"0.58057916",
"0.5803076",
"0.5803008",
"0.5803008",
"0.5786774",
"0.5786619",
"0.5786131",
"0.5780075"
]
| 0.61918145 | 23 |
Includes given test in execution. | TestSelection includeTest(String testClass, String testMethod); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Incubating\npublic interface TestSelection {\n\n /**\n * Includes given test in execution.\n *\n * @param testClass test class name\n * @param testMethod test method name\n * @return this selection object\n * @since 1.10\n */\n TestSelection includeTest(String testClass, String testMethod);\n}",
"@Test// to tell jUnit that method with @Test annotation has to be run. \n\tvoid testAdd() {\n\t\tSystem.out.println(\"Before assumption method: Add Method\");\n\t\tboolean isServerUp = false;\n\t\tassumeTrue(isServerUp,\"If this method ran without skipping, my assumption is right\"); //Eg: This is used in occasions like run only when server is up.\n\t\t\n\t\tint expected = 2;\n\t\tint actual = mathUtils.add(0, 2);\n\t\t//\t\tassertEquals(expected, actual);\n\t\t// can add a string message to log \n\t\tassertEquals(expected, actual,\"add method mathUtils\");\n\t}",
"@Test\n public void testAdd() throws Exception {\n runTX(new Callable<Void>() {\n public Void call() throws Exception {\n doTestAdd();\n return null;\n }\n });\n runTX(new Callable<Void>() {\n public Void call() throws Exception {\n doTestAddCheck();\n return null;\n }\n });\n }",
"@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }",
"@Override\n public void execute(ExecutionRequest request) {\n TestDescriptor rootTestDescriptor = request.getRootTestDescriptor();\n request.getEngineExecutionListener()\n .executionStarted(rootTestDescriptor);\n }",
"public void testexecute(String test) throws Exception;",
"@Override\n public void runTest() {\n }",
"protected void runTest() {\n\t\trunTest(getIterations());\n\t}",
"@Test\n public void addition() {\n\n }",
"public void run(TestCase testCase) {\n }",
"@Test\r\n public void testAddition() {\n }",
"public void addTest(String name, ITimed test) {\n\t\ttests.add(new Test(name, test));\n\t}",
"public void onTestStart(ITestResult arg0) {\n\t\ttest=rep.startTest(arg0.getName().toUpperCase());\r\n\t\tif(!TestUtils.isTestRunnable(arg0.getName(), excel))\r\n\t\t{\r\n\t\t\tthrow new SkipException(\"Test case skipped due to runnable mode NO\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}",
"public void addTest(TestEntity testEntity) {\n testEntities.add(testEntity);\n testEntity.setTestSuiteEntity(this);\n }",
"TestClassExecutionResult assertTestsExecuted(TestCase... testCases);",
"@TestProperties(name = \"5.2.4.22 press add test, when no test is selected\")\n\tpublic void testAddTestWithNoTestSelected() throws Exception{\n\t\tjsystem.launch();\n\t\tString scenarioName = jsystem.getCurrentScenario();\n\t\tScenarioUtils.createAndCleanScenario(jsystem, scenarioName);\n\t\tjsystem.addTest(\"testShouldPass\", \"GenericBasic\", true);\n\t\tjsystem.moveCheckedToScenarioTree();\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tjsystem.checkNumberOfTestExecuted(1);\n\t}",
"public ExplanationPipeline<I, F> addWithTest(Postprocessor toAdd) {\n return addWithTest(toAdd, false);\n }",
"public void incrementerTest() {\n\t\tthis.nbTests++;\n\t}",
"protected void runBeforeTest() {}",
"boolean testAdd(Tester t) {\n return t.checkExpect(this.p5.add(this.p7), new MyPosn(249, 50))\n && t.checkExpect(this.p6.add(this.p1), new MyPosn(51, 50));\n }",
"private void runTest(String path, int key){\n\t\t\n\t\tsaveTestList(path); \n\t\tgetSelectedPanel().clearResults();\n\t\tcontroller.runTest(path,key);\n\t}",
"@Test\n void one() {\n System.out.println(\"Executing Test 1.\");\n }",
"@Test\n\t public void testAdd() {\n\t\t TestSuite suite = new TestSuite(RecommendationModelTest.class, AnalysisModelTest.class);\n\t\t TestResult result = new TestResult();\n\t\t suite.run(result);\n\t\t System.out.println(\"Number of test cases = \" + result.runCount());\n\n\t }",
"public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preUnpackTest(pPath, pAuthor, pView, pReleaseOnError, pActionOnExistence,\n pToolsetRemap, pSelectionKeyRemap, pLicenseKeyRemap, pHardwareKeyRemap); \n }",
"TestClassExecutionResult assertTestsExecuted(String... testNames);",
"public void expects(Runnable runnable) {\n tests.add(runnable);\n }",
"protected abstract TestResult runTestImpl() throws Exception;",
"public void addDiagnosticTest(DiagnosticTest dTest) {\n\t\tthis.getDiagnosticTests().add(dTest);\n\t}",
"TestClassExecutionResult assertTestPassed(String name, String displayName);",
"@Override\n\tpublic void runTest() throws Throwable {}",
"@Test\n\tpublic void addTaskOutput(){\n\t}",
"@Test(priority=3)\n\tpublic void t1() {\n\t\tReporter.log(\"Running t1 Method\", true);\n\t}",
"@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}",
"@Test\r\n public void testAdd() {\r\n System.out.println(\"add\");\r\n int one = 6;\r\n int two = 5;\r\n JUnitAssert instance = new JUnitAssert();\r\n int expResult = 11;\r\n int result = instance.add(one, two);\r\n assertEquals(expResult, result);\r\n }",
"public TestCase pass();",
"public void onTestSuccess(ITestResult tr) {\n\t\ttest= extent.createTest(tr.getName());//create new entry in the report\n\t\ttest.log(Status.PASS, MarkupHelper.createLabel(tr.getName(), ExtentColor.GREEN));//send the passed info to the report with green color highlighted\n\t}",
"private void generate_run_test_code()\n {\n StringBuffer Code = new StringBuffer();\n\n // Use a static variable to avoid infinite recursion\n Code.append(\"\\t\\tstatic bool s_FirstTime = true; if (s_FirstTime) { s_FirstTime = false; run_test(-1); }\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_RUNTEST, Code.toString());\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException \n {\n AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);\n\n //retrieve the test results \n List<AggregatedTestResultAction.ChildReport> currentResults = currentTestResults.getResult();\n\n listener.getLogger().println(\"Running Test Checker Plugin\");\n\n //listener.getLogger().println(\"Current Build :- \", currentTestResults.getDisplayName());\n //listener.getLogger().println(\"Previous Build :- \", currentTestResults.getDisplayName());\n\n\n //iterate through the result of each test\n for(int i = 0; i < currentResults.size(); i++)\n {\n\n\t //obtain the report of a test\t\n\t AggregatedTestResultAction.ChildReport child = currentResults.get(i);\n\n\t //retreive the test result\n\t TestResult currentTestResultChild = (TestResult)child.result;\n\n\t //get the passed tests \n\t ArrayList<TestResult> currRes = ((ArrayList<TestResult>)currentTestResultChild.getPassedTests());\n\n\t //iterate through each passed test\n\t for(int j = 0; j < currRes.size(); j++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currRes.get(j);\n\n\t //obtain the status of the test in previous build\n\t TestResult previousTestResChild = currRes.get(j).getPreviousResult();\n\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\t\n\t // Case 1: Both passed\n\t if (currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Passed) : \" + currentTestResChild.getDisplayName());\n\t }\n\t // Case 2: Previous failed, newly passed\n\t if (currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Passing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n\n\t //get the failed tests \n\t ArrayList<TestResult> currResF = ((ArrayList<TestResult>)currentTestResultChild.getFailedTests());\n\n\t //iterate through each failed test\n\t for(int k = 0; k < currResF.size(); k++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currResF.get(k);\n\n\t //obtain the status of the test in previous build\n\t\tTestResult previousTestResChild = currResF.get(k).getPreviousResult();\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\n\t // Case 3: Both failed\n\t if (!currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Failed) : \" + currentTestResChild.getDisplayName());\n\t } \n\t // Case 4: Previous passed, newly failed\n\t if (!currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Failing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n }\n }",
"void completed(TestResult tr);",
"@Test\n\tvoid combineIncludedAndExcludedGroups() {\n\t\tInfinitestConfiguration configuration = InfinitestConfiguration.builder().includedGroups(\"slow\").excludedGroups(\"mixed\").build();\n\n\t\trunner.setTestConfigurationSource(withConfig(configuration));\n\n\t\tTestResults results = runner.runTest(CLASS_UNDER_TEST);\n\n\t\tassertThat(results).hasSize(1);\n\t}",
"@Test\n void addTask() {\n }",
"@Override\r\n\tpublic void onTestSkipped(ITestResult iTestResult) {\r\n\t\ttestSkipped++;\r\n\t\tpassStatusMap.put(Thread.currentThread().getId(), false);\r\n\t\tappendHtlmFileTestName(iTestResult.getName(), \"skipped\");\r\n\t\t// appendHtlmFileTestResult(\"skipped\");\r\n\t}",
"public void warmup(TestCase testCase) { \n run(testCase);\n }",
"@Override\n protected void executeTest() {\n ClientConnection<Event> harry = register(0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n ClientConnection<Event> statist23 = register(1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n\n assertRegisterEvent(harry.nextEvent(), 1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n assertRegisterEvent(statist23.nextEvent(), 0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n\n // round 1 begins\n assertRoundBegin(assertAndMerge(harry, statist23), 1);\n\n for (int i = 0; i < this.stepsBeforeTurn; i++) {\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(Direction.EAST);\n assertMoved(assertAndMerge(harry, statist23), 0, Direction.EAST);\n }\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(this.lastDirection);\n assertKicked(assertAndMerge(harry, statist23), 0);\n\n assertActNow(assertAndMerge(harry, statist23), 1);\n statist23.sendDoneActing();\n assertDoneActing(assertAndMerge(harry, statist23), 1);\n\n assertRoundEnd(assertAndMerge(harry, statist23), 1, 0);\n assertWinner(assertAndMerge(harry, statist23), \"Passive\");\n }",
"public void test() {\n\t}",
"public DescribeTestExecutionResult withTestSetName(String testSetName) {\n setTestSetName(testSetName);\n return this;\n }",
"@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Watchlist\");\n\n\t}",
"private void test() {\n\n\t}",
"@Test\n public void main() {\n run(\"TEST\");\n }",
"public DescribeTestExecutionResult withTarget(TestExecutionTarget target) {\n setTarget(target);\n return this;\n }",
"protected void doRun(Test test) {\n setMidletToNestedTests(test);\n super.doRun(test);\n }",
"@Override\n\tpublic void beforeInvocation(IInvokedMethod arg0, ITestResult arg1) {\n\t\tSystem.out.println(\"Test method start\" + arg0.getTestMethod().getQualifiedName() + \",\" + new Date());\n\n\t}",
"public void run(TestResult result) {\n result.run(this);\n }",
"@Override\r\n\tpublic void onTestStart(ITestResult arg0) {\n\t\t\r\n\t}",
"Execution executeRecipe(TestRecipe recipe);",
"@Override\n\tpublic Test addTest(Test onlineTest) throws UserException {\n\t\treturn null;\n\t}",
"@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }",
"public void onTestStart(ITestResult arg0) {\n\t\t\n\t}",
"public void onTestStart(ITestResult arg0) {\n\t\t\n\t}",
"public void junitTestStarted(String name) { }",
"public void junitTestStarted(String name) { }",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}",
"public static void loadTest(){\n }",
"public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }",
"public interface TestOnSeparateThreadCallback {\n\n void finish(TestRunner.Stats stats);\n\n}",
"public DescribeTestExecutionResult withTestSetId(String testSetId) {\n setTestSetId(testSetId);\n return this;\n }",
"@Override\n\tpublic void onTestStart(ITestResult arg0) {\n\t\t\n\t}",
"TestTask(TestMethod test, boolean testIsolation) {\n this.test = test;\n this.testIsolation = testIsolation;\n }",
"@Override\n\tpublic void onTestStart(ITestResult arg0) {\n\n\t}",
"@Test\n public void test() {\n setHello(\"Hello\");\n assertThat(getHello() + addWorld()).isEqualTo(\"Hello World\");\n assertThat(likely(true)).isTrue();\n }",
"@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"IPA\");\n\t}",
"@Override\n\tpublic void onTestStart(ITestResult arg0) {\n\t\tSystem.out.println(\"when test started\");\n\t\t\n\t}",
"public void onTestStart(ITestResult arg0) {\n\t\n}",
"public static final void registerTest(ClientSidedTest test) {\n if (null == test) {\n throw new NullPointerException();\n }\n TESTS.add(test);\n }",
"public void onTestSkipped(ITestResult tr) {\n\t\ttest = extent.createTest(tr.getName());\n\t\ttest.log(Status.SKIP, MarkupHelper.createLabel(tr.getName(), ExtentColor.ORANGE));\n\t}",
"@Override\n\tpublic void onTestStart(ITestResult result) {\n\t\ttest=extent.createTest(result.getMethod().getMethodName());\n\t}",
"@Override\n\tpublic MedicalTest addTest(MedicalTest test) {\n\tString testId=generateTestId();\n\ttest.setTestId(testId);\n\tMedicalTestUtil.checkPresenceOfTest(test);\n\t\n\t\treturn testDao.save(test);\n\n\t}",
"@Ignore\n @Test\n public void test1() {\n //concat method of a String\n //str.concat(\" World\");\n String1 str = new String1();\n //expected results come from requirements. (User story could your requirement)\n //requirement - is the most important thing.\n //All of our actions should be taken according to requirements.\n String expected = \"Hello World\";\n //What the method you are testing returns is your actual result\n String actual = str.concat(\"Hello\", \" World\");\n Assert.assertEquals(expected, actual);\n }",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"public final void testcase(gUnitTestSuite ts) throws RecognitionException {\n\t\tgUnitTestInput input4 =null;\n\t\tAbstractTest expect5 =null;\n\n\t\ttry {\n\t\t\t// org/antlr/gunit/gUnit.g:121:2: ( input expect )\n\t\t\t// org/antlr/gunit/gUnit.g:121:4: input expect\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_input_in_testcase249);\n\t\t\tinput4=input();\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_expect_in_testcase251);\n\t\t\texpect5=expect();\n\t\t\tstate._fsp--;\n\n\t\t\tts.addTestCase(input4, expect5);\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"@Override\n public void test() {\n \n }",
"public ExplanationPipeline<I, F> addWithTest(Postprocessor toAdd, boolean store) {\n checkTestExists();\n initializeStep(toAdd, true, false, store, stepCount);\n this.postprocessors.put(stepCount, toAdd);\n stepCount++;\n return this;\n }",
"@Test\r\n\tpublic void testAdd() {\n\t\tint num1=10;int num2=20;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertEquals(30, ClientMain.add(num1,num2));\r\n\t\t\r\n\t\t\r\n\t}",
"public void onTestSkipped() {}",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}",
"@Test\n public void testAddition() {\n Addition add = new Addition();\n assertEquals(\"Addition Failed!\", summation, add.AddOperation(v1, v2));\n System.out.println(\"Test for \" + v1 + \" and \" + v2 + \" has been passed!\\n\");\n }",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preOfflineTest(pVersions);\n }",
"public ExplanationPipeline<I, F> addWithTest(ExplanationMapper toAdd, boolean store) {\n checkTestExists();\n initializeStep(toAdd, true, true, store, stepCount);\n this.explanationMapper = toAdd;\n this.explanationMapper.setLocalExplainer(localExplainerAdapter);\n return this;\n }",
"public void storeStartTestDetail(TestEntry test, File dirPath) throws Exception {\n // Fortify Mod: make sure that dirPath is a legal path\n if( dirPath != null ) {\n TEPath tpath = new TEPath(dirPath.getAbsolutePath());\n if( ! tpath.isValid() ) \n throw new IllegalArgumentException(\"TEPath error on path \" + dirPath.getAbsolutePath());\n }\n // Check recording enable\n if (dirPath != null && A_TRUE.equals(System.getProperty(RECORD))) {\n //Check test No\n if (TECore.testCount != 0) {\n JSONObject objBeforeTest = new JSONObject();\n objBeforeTest.put(NAME, test.getName());\n objBeforeTest.put(RESULT, \"\");\n // write the data into file in form of json\n OutputStreamWriter writerBefore = new OutputStreamWriter(\n new FileOutputStream(dirPath.getAbsolutePath() + Constants.TEST_RESULTTXT, true), UT_F8);\n try (BufferedWriter fbwBefore = new BufferedWriter(writerBefore)) {\n fbwBefore.write(objBeforeTest.toString());\n fbwBefore.newLine();\n fbwBefore.close();\n }\n } else {\n //update test no\n TECore.testCount = TECore.testCount + 1;\n // update test name\n TECore.nameOfTest = test.getName();\n }\n }\n }",
"@Test\n public void put() throws Exception {\n underTest.put(\"start\");\n underTest.put(\"star\");\n underTest.put(\"starter\");\n assert (underTest.contains(\"star\") == true);\n }",
"@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}",
"public ExplanationPipeline<I, F> addWithTest(ExplanationMapper toAdd) {\n return addWithTest(toAdd, false);\n }",
"public DescribeTestExecutionResult withTestExecutionId(String testExecutionId) {\n setTestExecutionId(testExecutionId);\n return this;\n }",
"@Test\n @Tag(\"Math\")\n void testAdd() {\n int expected = 2;\n int result = utils.add(1,1);\n assertEquals(expected,result,\"this method adds the two integers and return integer\");\n }"
]
| [
"0.6602802",
"0.57848966",
"0.5610829",
"0.5607111",
"0.55150366",
"0.54981416",
"0.54833025",
"0.5460669",
"0.544419",
"0.5434419",
"0.5411544",
"0.54019403",
"0.53988564",
"0.5393959",
"0.5390511",
"0.5342518",
"0.53302556",
"0.5323316",
"0.5291713",
"0.5274791",
"0.5254967",
"0.52267057",
"0.52062774",
"0.5202324",
"0.5200972",
"0.5200486",
"0.51970196",
"0.5188094",
"0.51832044",
"0.5182967",
"0.51628417",
"0.5155186",
"0.5146165",
"0.5141508",
"0.5140538",
"0.5123354",
"0.511746",
"0.51097304",
"0.51059866",
"0.508938",
"0.5085701",
"0.50810397",
"0.5074965",
"0.5073685",
"0.5066192",
"0.50635284",
"0.5048033",
"0.50470287",
"0.5039042",
"0.5018433",
"0.5014865",
"0.50128984",
"0.50066066",
"0.50008696",
"0.4992509",
"0.49891427",
"0.49885133",
"0.49694413",
"0.49578777",
"0.49533448",
"0.49533448",
"0.49518996",
"0.49518996",
"0.4950176",
"0.49451602",
"0.49445128",
"0.49443975",
"0.49408156",
"0.49352503",
"0.49314427",
"0.49253955",
"0.49147698",
"0.49130404",
"0.49122095",
"0.49096638",
"0.4906011",
"0.4904003",
"0.4903667",
"0.48988113",
"0.48952404",
"0.48951483",
"0.48866564",
"0.488634",
"0.48846215",
"0.48843846",
"0.48838165",
"0.48836413",
"0.48836413",
"0.48737097",
"0.4873334",
"0.4873334",
"0.48729837",
"0.4868608",
"0.4868283",
"0.4868185",
"0.48625955",
"0.48585442",
"0.48583597",
"0.48579794",
"0.48551878"
]
| 0.73336697 | 0 |
Definition of methods to upload images based on fire | void uploadPicture(Uri uri, ProgressDialog progressDialog); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ImageUpload {\n void imageUploadToServer(int selectedImageResourceId);\n}",
"public interface FileUploadService {\n\n /**\n *\n * @param form\n * @param path\n * @param fileName\n * @throws Exception\n */\n void uploadBase64Image(Base64ImageForm form, String path, String fileName) throws Exception;\n}",
"@Override\n\tvoid postarFoto() {\n\n\t}",
"public interface FileEngin {\n\n /**\n * 上传图片\n * @param fileList\n * @return\n */\n public String uploadImage(List<File> fileList);\n}",
"public interface UploadFileService {\r\n Map upLoadPic(MultipartFile multipartFile);\r\n}",
"public interface FileService {\n Map<String,Object> uploadPicure(MultipartFile upfile) throws IOException;\n}",
"public interface ImageService {\n\n void saveImageFile(Long recipeId, MultipartFile imageFile);\n}",
"public interface FileService {\n\n Map<String,Object> uploadImage(MultipartFile upfile);\n}",
"public interface FileService {\n\n Map<String,Object> uploadImage(MultipartFile upfile);\n}",
"public interface FileService {\n\n void saveDistinct(File file, MultipartFile fileData);\n\n String saveHeadImage(User user, MultipartFile file) throws Exception;\n\n\n}",
"public interface ImagePickListener\n{\n public void onSingleImagePicked(String Str_Path);\n public void onMultipleImagePicked(String[] Str_Path);\n}",
"public interface PictureService {\n\n String uploadPicture(byte[] fileBuffer, String fileName) throws Exception;\n\n String uploadFile(String local_filename, String file_ext_name) throws Exception;\n\n}",
"public interface Uploader {\n\n public String upload(String filePath, String fileName);\n}",
"public interface ImageUploadListener {\n void onSuccess (String url);\n void onFailed ();\n}",
"public void mo38841a(ImagesRequest imagesRequest) {\n }",
"public interface ImageUploadService {\n\n public ResponseInfo uploadFile(UploadFileVo uploadFileVo) ;\n}",
"public handleFileUpload() {\r\n\t\tsuper();\r\n\t}",
"private void uploadImage(byte[] imageData) {\n\n }",
"private void uploadFromDataStorage() {\n }",
"public interface ImagePathCallback {\n\n File createPhotoFile();\n}",
"public interface UploadsImService {\n @Multipart\n @POST(\"/api\")\n Single<ResponseBody> postImage(@Part MultipartBody.Part image);\n}",
"public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"public void upload(FileUploadEvent event) {\r\n\t\tUploadedFile uploadFile = event.getFile();\r\n\t\t// Recuperer le contenu de l'image en byte array (pixels)\r\n\t\tbyte[] contents = uploadFile.getContents();\r\n\t\tSystem.out.println(\"---------------- \" + contents);\r\n\t\tproduit.setPhoto(contents);\r\n\t\t// Transforme byte array en string (format basé64)\r\n\t\timage = \"data:image/png;base64,\" + Base64.encodeBase64String(produit.getPhoto());\r\n\t\t\r\n\t}",
"public synchronized void upload(){\n\t}",
"fotos(){}",
"public interface ISignBiz {\n void upSignImage(String token, int orderId, TypedFile file, OnUpSignImageListener onUpSignImageListener);\n}",
"public interface IUploadImageTask {\n public void OnTaskCompleted(UploadImageResult result);\n}",
"protected abstract void setupImages(Context context);",
"IbeisImage uploadImage(File image) throws UnsupportedImageFileTypeException, IOException, MalformedHttpRequestException,\n UnsuccessfulHttpRequestException;",
"@Override\n public void run() {\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }",
"public void uploadObject() {\n\n\t}",
"public interface IFileService {\n ResponseJson uploadFile(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson uploadFiles(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson fileDownload(HttpServletRequest request, HttpServletResponse response,int fid) throws UnsupportedEncodingException;\n\n ResponseJson fileDelete(FileModel fileModel, HttpServletRequest request);\n\n ResponseJson findFileList(int uid);\n\n ResponseJson excelUpload(MultipartHttpServletRequest request,String type);\n\n ResponseJson findFileListByPage(int uid, PageJson pageJson);\n\n EUditorJson ueditorUploadImage(MultipartHttpServletRequest request) throws IOException;\n}",
"public interface UploadFileService {\n boolean saveFile(MultipartFile file);\n boolean readFile(String type);\n}",
"public interface PictureService {\n UploadPictureResponseVO uploadPicture(MultipartFile multipartFile);\n}",
"List<IbeisImage> uploadImages(List<File> images) throws UnsupportedImageFileTypeException, IOException,\n MalformedHttpRequestException, UnsuccessfulHttpRequestException;",
"public interface AfterSaleService extends BaseService<AfterSale> {\r\n\r\n\r\n void uplaodPicture(Long orderid, MultipartFile[] myavatar) throws IOException;\r\n\r\n List<AfterSale> afterSales(Long orderid);\r\n\r\n}",
"private void uploadProductImage() {\n Activity activity = getActivity();\n if (activity == null) {\n return;\n }\n final String imagePath = PhotoUtil.getPhotoPathCache(gtin, activity);\n Runnable uploadProductImage = new Runnable() {\n @Override\n public void run() {\n // TODO limit file size\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }\n };\n if (dbProduct == null) {\n createEmptyOrGetProduct(gtin, language, true, true, uploadProductImage);\n } else {\n uploadProductImage.run();\n }\n }",
"@Override\n protected void upload(X x) {\n }",
"public void pictureUpload(List<Uri> pictures, Uri licensePlate) {\n\n int uploads=0;\n //for loop foreach picture\n for (uploads=0; uploads < pictures.size() && uploads < Violation.MAX_NUM_PICTURES; uploads++){\n //get the uri\n Uri img = pictures.get(uploads);\n //reference to firebase storage\n final StorageReference imagename = imageFolder.child(img.getLastPathSegment());\n //upload the picture\n imagename.putFile(img).addOnSuccessListener(this, new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Log.d(TAG_INFO,\"uploaded\");\n }\n });\n }\n\n //upload the license plate picture\n final StorageReference imagename = imageFolder.child(licensePlate.getLastPathSegment());\n imagename.putFile(licensePlate).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n Log.d(TAG_INFO,\"uploaded\");\n } });\n }",
"public interface ImageUploadService {\n @Headers({\n \"User-Agent: Mozilla/5.0\",\n \"Content-Type: image/png\"\n })\n @POST(\"\")\n Observable<ImageUpload> uploadImage4search(@Body RequestBody imgs);\n // Observable<ImageUpload> uploadImage4search(@PartMap Map<String, Object> fields, @Body RequestBody imgs);\n}",
"private void uploadImagesIfNecessaryThenRegisterNewPub(final Pub pub) {\n\n if (pub.getPhotos().size() == 0) {\n registerNewPub(pub);\n return;\n }\n\n doUploadImages(imageFilesToUpload, pub.getPhotos(), new ErrorSuccessListener() {\n @Override\n public void onError(@Nullable Object result) {\n Utils.simpleDialog(NewPubActivity.this, getString(R.string.image_upload_error_title),\n getString(R.string.new_pub_activity_upload_image_error_message));\n }\n\n @Override\n public void onSuccess(@Nullable Object result) {\n registerNewPub(pub);\n }\n });\n }",
"public interface FileService {\n\n //文件上传\n ResJsonTemplate insertFile(MultipartFile file, String path, String username);\n\n}",
"public void upload(FileUploadEvent event){\n UploadedFile file = event.getFile();\n if(file != null){\n try {\n imagePic = new OracleSerialBlob(file.getContents());\n Long size = imagePic.length();\n putProfPic(imagePic);\n //setPhoto_profile(new ByteArrayContent(imagePic.getBytes(1, size.intValue())));\n } catch (SQLException ex) {\n LOG.error(ex);\n GBMessage.putErrorMessage(\"Error al subir el archivo\");\n } catch (IOException ex) {\n Logger.getLogger(StaffBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n GBMessage.putInfoMessage(\"Carga correcta\");\n }\n }",
"public interface IImageInputBoundary {\n\n List<ImageResponseModel> GetImagesByCategory(ImageRequestModel requestModel);\n List<ImageResponseModel> GetImagesByComposition(ImageRequestModel requestModel);\n}",
"public interface ProductProcessorMP0 extends ProductProcessor {\n\n\n\n\n void processFile(MultipartFile file, ContractImage contractImage, Contract contract) throws IOException, IllegalDataException;\n}",
"void whenUploadFile(MultipartFile file, HttpServletRequest request);",
"Person addImage(String name, String imagePath);",
"@Override\n\tpublic void addProduitWithImage(Furniture p, UploadedFiles files) {\n\t\t\n\t}",
"@Override\n\tpublic String execute() throws Exception {\n\t\tUser user = (User)session.getAttribute(\"user\");\n\t\tif(user != null) {\n\t\t\tif(!sd.checkData()) {\n\t\t\t\tthis.addFieldError(\"error\", \"请按要求填写数据!\");\n\t\t\t\treturn INPUT;\n\t\t\t} else {\n\t\t\t\tFile cover = img[0];\n\t\t\t\tFile photo1 = img[1];\n\t\t\t\tFile photo2 = img[2];\n\t\t\t\tFile photo3 = img[3];\n\t\t\t\t\n\t\t\t\tStartups startups = sd.toStartups();\n\t\t\t\t\n\t\t\t\tif(imgCanUse(cover, photo1, photo2, photo3)) {\n\t\t\t\t\t/**\n\t\t\t\t\t * 自定义上传的图像名\n\t\t\t\t\t */\n\t\t\t\t\tString imgCover = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\tString imgPhoto1 = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\tString imgPhoto2 = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\tString imgPhoto3 = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\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\tString coverUrl = DISK_COVER + imgCover;\n\t\t\t\t\tString photo1Url = DISK_PHOTO + imgPhoto1;\n\t\t\t\t\tString photo2Url = DISK_PHOTO + imgPhoto2;\n\t\t\t\t\tString photo3Url = DISK_PHOTO + imgPhoto3;\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\tFile fileCover = new File(coverUrl);\n\t\t\t\t\tFile filePhoto1 = new File(photo1Url);\n\t\t\t\t\tFile filePhoto2 = new File(photo2Url);\n\t\t\t\t\tFile filePhoto3 = new File(photo3Url);\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\t */\n\t\t\t\t\tboolean create_cover = UploadFileUtil.justDoIt(cover, fileCover);\n\t\t\t\t\tboolean create_photo1 = UploadFileUtil.justDoIt(photo1, filePhoto1);\n\t\t\t\t\tboolean create_photo2 = UploadFileUtil.justDoIt(photo2, filePhoto2);\n\t\t\t\t\tboolean create_photo3 = UploadFileUtil.justDoIt(photo3, filePhoto3);\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\t */\n\t\t\t\t\tif(create_cover && create_photo1 && create_photo2 && create_photo3) {\n\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\tString db_cover = DB_COVER + imgCover;\n\t\t\t\t\t\tString db_photo1 = DB_PHOTO + imgPhoto1;\n\t\t\t\t\t\tString db_photo2 = DB_PHOTO + imgPhoto2;\n\t\t\t\t\t\tString db_photo3 = DB_PHOTO + imgPhoto3;\n\t\t\t\t\t\t\n\t\t\t\t\t\tstartups.setStartupsCover(db_cover);\n\t\t\t\t\t\tstartups.setStartupsPhoto1(db_photo1);\n\t\t\t\t\t\tstartups.setStartupsPhoto2(db_photo2);\n\t\t\t\t\t\tstartups.setStartupsPhoto3(db_photo3);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * 将用户user对象传入\n\t\t\t\t\t\t */\n\t\t\t\t\t\tstartups.setStartupsLeader(user);\n\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\tIStartupsService ss = ServiceFactory.createStartupsService();\n\t\t\t\t\t\tif(ss.saveStartups(startups)) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstartupsId = startups.getStartupsId();\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.addFieldError(\"error\", \"创建失败!请刷新重试\");\n\t\t\t\t\t\t\tremoveImg(fileCover, filePhoto1, filePhoto2, filePhoto3);\n\t\t\t\t\t\t\treturn INPUT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.addFieldError(\"error\", \"图片上传出错!请刷新重试\");\n\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\tremoveImg(fileCover, filePhoto1, filePhoto2, filePhoto3);\n\t\t\t\t\t\treturn INPUT;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tthis.addFieldError(\"error\", \"图片输入错误!请换张图片\");\n\t\t\t\t\treturn INPUT;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthis.addFieldError(\"error\", \"请登录后再进行创建!\");\n\t\t\treturn INPUT;\n\t\t}\n\t\t\t\n\t}",
"public interface FastDfsService {\n String fileUpload(MultipartFile file) throws Exception;\n}",
"private void uploadPhoto() {\n // Get the data from an ImageView as bytes\n ImageView imageView = (ImageView)findViewById(R.id.imgView);\n imageView.setDrawingCacheEnabled(true);\n imageView.buildDrawingCache();\n Bitmap bitmap = imageView.getDrawingCache();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] data = baos.toByteArray();\n\n FirebaseStorage storage = FirebaseStorage.getInstance();\n\n // Create a storage reference from our app\n StorageReference storageRef = storage.getReferenceFromUrl(Config.FIREBASE_STORAGE_URL);\n\n // Create a reference to 'images/profile/userNodeId.jpg'\n StorageReference mountainImagesRef = storageRef.child(\"images/profile/\"+currentUser.getFireUserNodeId()+\".jpg\"); // set image name as userid.jpg which is unique\n\n UploadTask uploadTask = mountainImagesRef.putBytes(data);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(Exception exception) {\n // Handle unsuccessful uploads\n Toast.makeText(getApplicationContext(),\"Photo upload failed!\",Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n // taskSnapshot.getMetadata() contains file metadata such as size, content-type, and download URL.\n Toast.makeText(getApplicationContext(),\"Photo uploaded successfully!\",Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public interface UpRoundHandleListening {\n\n public void upRoundHandel(String imgPath, String imgUrl);\n}",
"@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString filePath = doFileUpload(params[1]);\r\n\t\t\tif(filePath!=null){\r\n\t\t\t\tString abd = imService.updateImage(params[0], filePath);\r\n\t\t\t\tLog.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\t}\r\n\t\t\t//String abd = imService.updateImage(params[0], params[1]);\r\n\t\t\t//Log.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\treturn params[1];\r\n\t\t}",
"public abstract String getFotoPath();",
"public void addPhoto(ActionEvent event) throws IOException {\n\t\t//System.out.println(\"ITEM ADDED______________________________________________\");\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open Photo\"); \n\t\tAccessibleUsersList.masterUserList.userLoggedIn.fileList = fileChooser.showOpenMultipleDialog(this.myNewStage);\n\t\t\n\t\tboolean checkIfImages = true;\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null){\n\t\t\t\n\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\n\t\t\t\tMimetypesFileTypeMap mimetype= new MimetypesFileTypeMap();\n\t\t\t\tmimetype.addMimeTypes(\"image png jpg jpeg JPG PNG\");\t\n\t\t\t\t\n\t\t\t\tString mimetype1 = mimetype.getContentType(file);\n\t\t\t\tString type = mimetype1.split(\"/\")[0];\n\t\t\t\t\n\t\t\t\tif(type.contains(\"image\")){\n\t\t\t //System.out.println(\"It's an image\");\n\t\t\t\t} else { \n\t\t\t \t //System.out.println(\"It's NOT an image\");\n\t\t\t \t Alert majorBagAlert = new Alert(AlertType.ERROR);\n\t\t\t\t majorBagAlert.setTitle(\"Error\");\n\t\t\t\t majorBagAlert.setHeaderText(\"One or more images is not an image file type.\");\n\t\t\t\t majorBagAlert.setContentText(\"Please enter photo(s) again\");\n\t\t\t\t majorBagAlert.showAndWait();\n\t\t\t \t \n\t\t\t\t //adding comment\n\t\t\t checkIfImages = false; \n\t\t\t }\n\t\t\t}\n }\n\t\t\n\n\t\t//iterate through the logged in user's albums \n\t\t//this is the album we have to add our photos to \n\t\tthis.selectedAlbum = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getName(); \n\t\tAlbum foundAlbum = null; \n\t\tlong lastModifiedDate = 0; \n\t\tString path; \n\t\t\n\t\t//if we are certain we only collected files of type jpg, png or jpeg \n\t\tif(checkIfImages){\n\t\t\t\n\t\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null) {\n\t\t\t\t\n\t\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t\t\tFileInputStream inputstream = new FileInputStream(path); \n\t\t\t\t\tImage image1 = new Image(inputstream); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//iterate through the logged in user's albums \n\t\t\t\t\tint x=0; \n\t\t\t\t\tfor(Album album: AccessibleUsersList.masterUserList.userLoggedIn.albums_list){\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//looking for the current album to add our photos into \n\t\t\t\t\t\tif(album.getName().equals(this.selectedAlbum)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfoundAlbum = AccessibleUsersList.masterUserList.userLoggedIn.albums_list.get(x);\n\t\t\t\t\t\t\tlastModifiedDate = file.lastModified();\n\t\t\t\n\t\t\t\t\t\t\tPhoto albumPhoto = new Photo(path, lastModifiedDate); \n\t\t\t\t\t\t\tfoundAlbum.getAlbum().add(albumPhoto);\t \n\t\t\t\t\t\t\t//System.out.println(foundAlbum.getAlbum());\n\t\t\t\t\t\t\t//foundAlbum.photos.add(new model.Photo(image1, lastModifiedDate));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tImageView pic = new ImageView();\n\t\t\t\t\t\t\tpic.setFitWidth(340);\n\t\t\t\t\t\t\tpic.setFitHeight(180);\n\t\t\t\t\t\t\tpic.setImage(image1);\n\t\t\t\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\t\t\t\talbumPhoto.setImage(pic);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"photo added\");\n\t\t\t\t\t\t\t//System.out.println(albumPhoto.getPathToPhoto());\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn);\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.addPhoto(albumPhoto); <-----cause of bug, added photo TWICE, X\n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t} \n\t\t\t\t\t\tx++; \n\t\t\t\t\t}\n \t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\t\n\t}",
"void fileUploaded(String path);",
"List<UploadInfo> simpleUploadAll(List<SimpleFile> files);",
"private void saveAndUpload(String name, String email, Uri photoUri){\n\n // TODO implement save to local DB\n // TODO implement safe upload to Server\n }",
"@Multipart\n @POST()\n Call<Result> uploadImage(@Part MultipartBody.Part file, @Url String medialUploadUrl, @PartMap() Map<String, RequestBody> partMap);",
"public interface UploadFileService {\n\tpublic String saveFile(MultipartFile file);\n\tResource findFileByName(String nameFile);\n\tpublic String saveFileVer(MultipartFile file, String pathToSave);\n}",
"public interface IAddActivity {\n\n //上传成功\n void fileOK();\n\n //上传失败\n void fileNO();\n}",
"public interface OpportunityImageUploadService extends LtoFileService {\n\n\t/**\n\t * Upload banner image.\n\t *\n\t * @param opportunity the opportunity\n\t * @param file the file\n\t * @return the string\n\t * @throws AmazonServiceException the amazon service exception\n\t * @throws AmazonClientException the amazon client exception\n\t * @throws IOException Signals that an I/O exception has occurred.\n\t * @throws InterruptedException the interrupted exception\n\t */\n\tpublic String uploadBannerImage(Opportunity opportunity, MultipartFile file)\n\t\t\tthrows AmazonServiceException, AmazonClientException, IOException, InterruptedException;\n\n}",
"public PictureResult upload(byte[] fileBytes,String extName,String orignalName) throws Exception;",
"boolean hasImageByHandler();",
"private void uploadImageFile(final String token, final GMImage image) {\n // create RequestBody instance from file\n File imgFile = storeHelper.getImageFile(image);\n final RequestBody requestFile = RequestBody.create(MediaType.parse(\"multipart/form-data\"), imgFile);\n\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"file\", imgFile.getName(), requestFile);\n\n // Add file name within the multipart request\n RequestBody requestFileName = RequestBody.create(MediaType.parse(\"multipart/form-data\"), imgFile.getName());\n\n httpRequest.upload(token, requestFileName, body).enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> res) {\n if (res.code() == 200) {\n try {\n // upload image information\n image.addTag(TAG_RETRY, 0);\n createNewImage(token, image);\n\n } catch (JSONException e) {\n e.printStackTrace();\n notifyUploadFail();\n }\n } else {\n notifyUploadFail();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n t.printStackTrace();\n\n // notify fail after retry reach limit\n if (((Integer) image.getTag(TAG_RETRY)) >= GMGlobal.RETRY_LIMIT) {\n notifyUploadFail();\n }\n\n // retry upload image\n new Retry() {\n @Override\n protected void handle(Object... params) {\n uploadImageFile((String) params[0], (GMImage) params[1]);\n }\n }.execute(token, image);\n }\n });\n }",
"@Override\n public void uploadMultipleFiles(ArrayList<File> files, Modpack modpack) {\n uploadStatus = \"Uploading file(s) to server!\";\n modpackUploadRepository.uploadMultipleFiles(files, modpack);\n }",
"@RequestMapping(value = \"/uploadicon\", method = RequestMethod.POST, consumes = \"multipart/form-data\")\r\n\tpublic String handleFormUpload(@RequestPart(\"file\") MultipartFile f, RedirectAttributes redirectAttributes) throws IOException {\n\t\tUser u = (User) session.getAttribute(\"user\");\r\n\t\t\r\n\t\tInputStream is = new BufferedInputStream(f.getInputStream());\r\n\t\tBufferedImage image = ImageIO.read(is);\r\n\t\tis.close();\r\n\t\t\r\n\t\t//if(image == null) {\r\n\t\t\t//response.put(\"success\", \"false\");\r\n\t\t\t//response.put(\"reason\", \"notimage\");\r\n\t\t//}\t\t\r\n\t\t//else {\r\n\t\tif(image != null) {\r\n\t\t\tImage scaled = image.getScaledInstance(512, 512, Image.SCALE_SMOOTH);\r\n\t\t\tBufferedImage bufferedScale = new BufferedImage(512, 512, BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics2D g2d = bufferedScale.createGraphics();\r\n\t\t g2d.drawImage(scaled, 0, 0, null);\r\n\t\t g2d.dispose();\r\n\r\n\t\t\tstorageService.store(bufferedScale,Integer.toString(u.getUserID())+\".png\");\r\n\t\t\t//response.put(\"success\", \"true\");\r\n\t\t}\r\n\t\treturn \"redirect:/users/\"+u.getUserID();\r\n\t\t//return ResponseEntity.ok(response);\r\n }",
"@Override\n @RequestMapping(\"upload.feep\")\n public void upload(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }",
"public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}",
"public void uploadFile() {\n \n InputStream input = null;\n try {\n input = file.getInputStream();\n System.out.println(\"chay qua inpustream\");\n String itemName = file.getSubmittedFileName();\n String filename = itemName.substring(\n itemName.lastIndexOf(\"\\\\\") + 1);\n String dirPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/upload/images\");\n fileNamed = \"/upload/images/\"+filename;\n File f = new File(dirPath + \"\\\\\" + filename);\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream output = new FileOutputStream(f);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n // resize(dirPath + \"\\\\\" + filename, dirPath + \"\\\\\" + filename, 200, 200);\n input.close();\n output.close();\n } catch (IOException ex) {\n System.out.println(\"loi io\");\n Logger.getLogger(ArtistsManagedBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"Path fileToUpload();",
"private void uploadFile(String fileUri, String filename) {\n progressDialog.show();\n FileUploadService service = MyConfig.getRetrofit(MyConfig.JSON_BASE_URL).create(FileUploadService.class);\n\n // https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java\n // use the FileUtils to get the actual file by uri\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n MultipartBody.Part body = null;\n if (!profile_image_path.equalsIgnoreCase(\"\")) {\n\n File file = new File(fileUri);\n\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n\n // create RequestBody instance from file\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"image/*\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n\n body = MultipartBody.Part.createFormData(\"profile_image\", filename, requestFile);\n }\n\n\n RequestBody user_id = RequestBody.create(MediaType.parse(\"text/plain\"), Shared_Preferences.getPrefs(ProfileActivity.this, IConstant.USER_ID));\n RequestBody full_name = RequestBody.create(MediaType.parse(\"text/plain\"), etName.getText().toString());\n RequestBody height = RequestBody.create(MediaType.parse(\"text/plain\"), etHeight.getText().toString());\n RequestBody email = RequestBody.create(MediaType.parse(\"text/plain\"), etEmail.getText().toString());\n RequestBody weight = RequestBody.create(MediaType.parse(\"text/plain\"), etWeight.getText().toString());\n RequestBody is_blood_pressure = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_diabetes = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_asthama = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_heart_patient = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n\n\n Call<ResponseBody> call;\n\n\n RequestBody file_name = RequestBody.create(MediaType.parse(\"text/plain\"), \"\" + filename);\n call = service.upload(\n user_id,\n full_name,\n height,\n email,\n weight,\n is_blood_pressure,\n is_diabetes,\n is_asthama,\n is_heart_patient,\n body\n );\n\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n String output = \"\";\n try {\n output = response.body().string();\n\n Log.d(\"Response\", \"response=> \" + output);\n JSONObject i = new JSONObject(output);\n boolean res = Boolean.parseBoolean(i.getString(\"result\"));\n String reason = i.getString(\"reason\");\n\n if (res) {\n user_profile_path = i.getString(\"user_profile_path\");\n\n JSONArray jsonArray = i.getJSONArray(\"user_data\");\n\n JSONObject jsonObjectData = jsonArray.getJSONObject(0);\n\n String id = jsonObjectData.getString(\"user_id\");\n String full_name = jsonObjectData.getString(\"full_name\");\n String email = jsonObjectData.getString(\"email\");\n String mobile_no = jsonObjectData.getString(\"mobile_no\");\n String image = jsonObjectData.getString(\"image\");\n String role = jsonObjectData.getString(\"role\");\n String height = jsonObjectData.getString(\"height\");\n String weight = jsonObjectData.getString(\"weight\");\n String is_blood_pressure = jsonObjectData.getString(\"is_blood_pressure\");\n String is_diabetes = jsonObjectData.getString(\"is_diabetes\");\n String is_asthama = jsonObjectData.getString(\"is_asthama\");\n String is_heart_patient = jsonObjectData.getString(\"is_heart_patient\");\n// String member_id = jsonObjectData.getString(\"member_id\");\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ID, id);\n Shared_Preferences.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n Shared_Preferences.setPrefs(_act, IConstant.USER_EMAIL, email);\n Shared_Preferences.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IMAGE, image);\n Shared_Preferences.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n Shared_Preferences.setPrefs(_act, IConstant.USER_HEIGHT, height);\n Shared_Preferences.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n\n\n\n sharedPref.setPrefs(_act, IConstant.USER_ID, id);\n sharedPref.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n sharedPref.setPrefs(_act, IConstant.USER_EMAIL, email);\n sharedPref.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n sharedPref.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n sharedPref.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n sharedPref.setPrefs(_act, IConstant.USER_HEIGHT, height);\n sharedPref.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n sharedPref.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n sharedPref.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n sharedPref.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n sharedPref.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n sharedPref.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n Toast.makeText(ProfileActivity.this, reason, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(ProfileActivity.this, UserDashboardActivity.class);\n startActivity(intent);\n finish();\n } else\n Toast.makeText(ProfileActivity.this, \"\" + reason, Toast.LENGTH_SHORT).show();\n // Log.v(\"Upload\", \"\" + response.body().string());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n progressDialog.dismiss();\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.d(\"Upload error:\", \"\");\n progressDialog.dismiss();\n }\n });\n }",
"public void sendToFirebase() {\n\n String imageCategory = imageSpinner.getSelectedItem().toString();\n final Intent intent = new Intent(MainActivity.this, ResultActivity.class);\n\n if(filepath!=null) {\n final ProgressDialog progressDialog = new ProgressDialog(this);\n progressDialog.setTitle(\"Uploading Data...\");\n progressDialog.setMessage(\"In-Progress...\");\n progressDialog.show();\n\n final StorageReference sRef = storageReference.child(\"images/\"+ UUID.randomUUID().toString());\n\n if(imageCategory.equals(\"Medical CBC Report\")) {\n sRef.putFile(filepath).continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()){\n throw task.getException();\n }\n return sRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()){\n Uri downUri = task.getResult();\n progressDialog.dismiss();\n neuralData+=\"imageTag:cbc#\"+\"imageUrl:\"+downUri+\"#\";\n databaseReference.child(\"joel\").setValue(neuralData);\n startActivity(intent);\n }\n }\n });\n } else if(imageCategory.equals(\"Chest X-Ray\")){\n sRef.putFile(filepath).continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()){\n throw task.getException();\n }\n return sRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()){\n Uri downUri = task.getResult();\n progressDialog.dismiss();\n neuralData+=\"imageTag:xray#\"+\"imageUrl:\"+downUri+\"#\";\n databaseReference.child(\"joel\").setValue(neuralData);\n startActivity(intent);\n }\n }\n });\n } else if(imageCategory.equals(\"Breast Histopathology\")) {\n sRef.putFile(filepath).continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()){\n throw task.getException();\n }\n return sRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()){\n Uri downUri = task.getResult();\n progressDialog.dismiss();\n neuralData+=\"imageTag:breast#\"+\"imageUrl:\"+downUri+\"#\";\n databaseReference.child(\"joel\").setValue(neuralData);\n startActivity(intent);\n }\n }\n });\n }\n\n }\n\n if(!neuralData.isEmpty()) {\n final ProgressDialog progressDialog = new ProgressDialog(this);\n progressDialog.setTitle(\"Uploading Data...\");\n progressDialog.setMessage(\"In-Progress...\");\n progressDialog.show();\n databaseReference.child(\"joel\").setValue(neuralData).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n progressDialog.dismiss();\n startActivity(intent);\n }\n });\n\n }\n\n if(neuralData.isEmpty()&&filepath==null) {\n Toast.makeText(this,\"You need to input something!\", Toast.LENGTH_LONG).show();\n }\n }",
"String uploadProfileImage(String fileNameWithOutRepository,String fileName) throws GwtException, ServerDownException;",
"UploadInfo simpleUpload(SimpleFile file);",
"public void uploadMultipart(String path, final String name) {\n //getting name for the image\n // String name = editText.getText().toString().trim();\n\n //getting the actual path of the image\n // String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, UPLOAD_URL)\n .addFileToUpload(path, \"image\") //Adding file\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addParameter(\"alert\", mAlertId) //Adding text parameter to the request\n .addParameter(\"device\",\n android.os.Build.MODEL) //Adding text parameter to the request\n .addParameter(\"title\", currentCaptureDirectory.getName())\n .setNotificationConfig(new UploadNotificationConfig()).setMaxRetries(2)\n .setDelegate(new UploadStatusDelegate() {\n @Override\n public void onProgress(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n\n @Override\n public void onError(Context context, UploadInfo uploadInfo,\n Exception exception) {\n // your code here\n }\n\n @Override\n public void onCompleted(Context context, UploadInfo uploadInfo,\n ServerResponse serverResponse) {\n Log.i(\" _ \", \" \");\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.toString());\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.getBodyAsString());\n Log.i(\" _ \", \" \");\n\n File photo = new File(currentCaptureDirectory, name);\n if (photo.exists()) photo.delete();\n\n if (mSendEmail) {\n mSendEmail = false;\n mEmailResetHandler.removeCallbacks(emailResetRunnable);\n mEmailResetHandler.postDelayed(emailResetRunnable, 1000 * 600);\n String link = mServerUrl + \"sendEmail.php?device=\" + mDeviceName +\n \"&name=\" + name + \"&title=\" +\n currentCaptureDirectory.getName();\n new updateData().execute(link);\n\n String link2 = mServerUrl + \"init.php?device=\" + mDeviceName;\n new updateData().execute(link2);\n\n mHandler.postDelayed(runnable, 6000);\n }\n\n // your code here\n // if you have mapped your server response to a POJO, you can easily get it:\n // YourClass obj = new Gson().fromJson(serverResponse.getBodyAsString(), YourClass.class);\n // File photo = new File(Environment.getExternalStorageDirectory(), name + \".jpg\");\n // if (photo.exists()) photo.delete();\n }\n\n @Override\n public void onCancelled(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n }).startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Log.i(TAG, exc.getMessage());\n }\n }",
"public void uploadImage() {\n if (imgPath != null && !imgPath.isEmpty()) {\n //prgDialog.setMessage(\"Converting Image to Binary Data\");\n //prgDialog.show();\n // Convert image to String using Base64\n new EncodeImageToStringTask().execute();\n // When Image is not selected from Gallery\n } else {\n //Toast.makeText(\n // getApplicationContext(),\n // \"You must select image from gallery before you try to upload\",\n // Toast.LENGTH_LONG).show();\n }\n }",
"public interface IUploadApi {\n\n @Multipart\n @POST(\"user/verify/v1/modifyHeadPic\")\n Observable<UploadBean> upLoad(@Header(\"userId\") java.lang.String userId, @Header(\"sessionId\") java.lang.String sessionId, @Part MultipartBody.Part part);\n}",
"public interface FileUploadService {\n\t\n\t/*\n\t * ******************** Create related methods *********************/\n\t\n\t/**\n\t * Create a new fileUpload and set the current user as owner and manager.\n\t * @param fileUpload\n\t * @return\n\t * @throws AppException\n\t */\n\tpublic Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;\n\t\n\t@PreAuthorize(\"hasPermission(#fileUpload, 'write') or hasRole('ROLE_ADMIN')\")\n\tpublic void uploadFile(InputStream uploadedInputStream,\n\t\t\tString uploadedFileLocation) throws AppException;\n\n\t/*\n\t * Create multiple fileUploads as ROOT, testing purposes only.\n\t */\n\t@PreAuthorize(\"hasRole('ROLE_ROOT')\")\n\tpublic void createFileUploads(List<FileUpload> fileUploads) throws AppException;\n\n\t/*\n\t * ******************* Read related methods ********************\n\t */\n\t/**\n\t *\n\t * @param orderByInsertionDate\n\t * - if set, it represents the order by criteria (ASC or DESC)\n\t * for displaying fileUploads\n\t * @param numberDaysToLookBack\n\t * - if set, it represents number of days to look back for fileUploads,\n\t * null\n\t * @return list with fileUploads corresponding to search criteria\n\t * @throws AppException\n\t */\n\t//Enable post filter to restrict read access to a collection\n\t//@PostFilter(\"hasPermission(filterObject, 'READ')\"\n\tpublic List<FileUpload> getFileUploads(int numberOfFileUploads, Long startIndex) throws AppException;\n\t\n\t/**\n\t * Returns a fileUpload given its id\n\t *\n\t * @param id\n\t * @return\n\t * @throws AppException\n\t */\n\t\n\t//Enable the following line of code to restrict read access to a single object.\n\t//@PostAuthrorize(\"hasPermission(returnObject, 'read')\")\n\tpublic FileUpload getFileUploadById(Long id) throws AppException;\n\t\n\t@PreAuthorize(\"hasPermission(#fileUpload, 'read') or hasPermission(#form, 'write') or hasRole('ROLE_ADMIN')\")\n\tpublic File getUploadFile(FileUpload fileUpload, Form form) throws AppException;\n\n\t/*\n\t * ******************** Update related methods **********************\n\t */\n\t@PreAuthorize(\"hasPermission(#fileUpload, 'write') or hasRole('ROLE_ADMIN')\")\n\tpublic void updateFullyFileUpload(FileUpload fileUpload) throws AppException;\n\n\t@PreAuthorize(\"hasPermission(#fileUpload, 'write') or hasRole('ROLE_ADMIN')\")\n\tpublic void updatePartiallyFileUpload(FileUpload fileUpload) throws AppException;\n\n\t/*\n\t * ******************** Delete related methods **********************\n\t */\n\n\t@PreAuthorize(\"hasPermission(#fileUpload, 'delete') or hasPermission(#form, 'write') or hasRole('ROLE_ADMIN')\")\n\tpublic void deleteFileUpload(FileUpload fileUpload, Form form) throws AppException;\n\t/** removes all fileUploads\n\t * DO NOT USE, IMPROPERLY UPDATES ACL_OBJECT table\n\t * Functional but does not destroy old acl's which doesnt hurt anything\n\t * but they will take up space if this is commonly used */\n\t@PreAuthorize(\"hasRole('ROLE_ROOT')\")\n\tpublic void deleteFileUploads();\n\t\n\n\t/*\n\t * ******************** Helper methods **********************\n\t */\n\t// TODO: This also should not exist, or it should be changed to\n\t// private/protected. Redundant\n\t// Could be made a boolean so it was not a security vulnerability\n\tpublic FileUpload verifyFileUploadExistenceById(Long id);\n\n\tpublic int getNumberOfFileUploads();\n\t\t\n}",
"@Override\n public void onSuccess (UploadTask.TaskSnapshot taskSnapshot){\n Toast.makeText(IncomeActivity.this, \"Image uploaded successfully\",\n Toast.LENGTH_SHORT).show();\n }",
"private void uploadDocFiles()\n {\n fileCount = imageDragableGridView.getUpdatedImageListWithoutPlus().size() - 1;\n base64String = Helper.convertFileToByteArray(imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath());\n\n String filePath = \"\";\n if (imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath().isEmpty())\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath();\n } else\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath();\n }\n\n if (HelperHttp.isNetworkAvailable(getActivity()))\n\n {\n //Add parameters to request in arraylist\n ArrayList<Parameter> parameterList = new ArrayList<Parameter>();\n parameterList.add(new Parameter(\"userHash\", DataManager.getInstance().user.getUserHash(), String.class));\n parameterList.add(new Parameter(\"bas64Doc\", base64String, String.class));\n parameterList.add(new Parameter(\"fileName\", filePath, String.class));\n parameterList.add(new Parameter(\"planTaskID\", planTaskId, String.class));\n\n //create web service inputs\n DataInObject inObj = new DataInObject();\n inObj.setMethodname(\"NewSupportRequestDoc\");\n inObj.setNamespace(Constants.TEMP_URI_NAMESPACE);\n inObj.setSoapAction(Constants.TEMP_URI_NAMESPACE + \"IPlannerService/NewSupportRequestDoc\");\n inObj.setUrl(Constants.PLANNER_WEBSERVICE_URL);\n inObj.setParameterList(parameterList);\n\n //Network call\n showProgressDialog();\n new WebServiceTask(getActivity(), inObj, false, new TaskListener()\n {\n\n @Override\n public void onTaskComplete(Object result)\n {\n CustomDialogManager.showOkDialog(getActivity(), successMessage, new DialogListener()\n {\n @Override\n public void onButtonClicked(int type)\n {\n hideProgressDialog();\n if (getFragmentManager().getBackStackEntryCount() != 0)\n {\n getFragmentManager().popBackStack();\n } else\n\n {\n getActivity().finish();\n }\n }\n });\n }\n }).execute();\n } else\n {\n CustomDialogManager.showOkDialog(getActivity(), getString(R.string.no_internet_connection));\n }\n }",
"public abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(DetailsForm.this, \"Image Uploaded Successfully\", Toast.LENGTH_LONG).show();\n }",
"private void uploadImage() {\n FileChooser fileChooser = new FileChooser();\n\n //Extension de l'image\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"Fichier image\", \"*.*\");\n fileChooser.getExtensionFilters().addAll(extFilter);\n\n File file = fileChooser.showOpenDialog(null);\n\n try {\n BufferedImage bufferedImage = ImageIO.read(file);\n Image image = SwingFXUtils.toFXImage(bufferedImage, null);\n imageViewAvatar.setImage(image);\n getUser().setAvatar(image);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void sendImage(Uri selectedImageUri) {\n\t\t\n\t}",
"private void uploadFile() {\n // make sure image was selected\n if (mImageUri != null) {\n // set up image file path for firebase storage\n StorageReference fileReference = mStorageRef.child(System.currentTimeMillis()\n + \".\" + getFileExtension(mImageUri));\n\n // create file metadata including the content type\n StorageMetadata metadata = new StorageMetadata.Builder()\n .setContentType(\"image/jpg\")\n .build();\n \n\n // upload the file and metadata\n mUploadTask = fileReference.putFile(mImageUri, metadata)\n .addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n // show progress bar during upload\n double progress = (100.0 * taskSnapshot.getBytesTransferred() / taskSnapshot.getTotalByteCount());\n mProgressBar.setProgress((int) progress);\n }\n });\n // Get download url of the uploaded image\n Task<Uri> urlTask = mUploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n // get the download URL\n return fileReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n // get download uri\n Uri downloadUri = task.getResult();\n imageUrl = downloadUri.toString();\n String imageDescription = mEditTextFileName.getText().toString().trim();\n // build hashmap to hold object of Upload class\n final Map uploadBody = new HashMap();\n uploadBody.put(\"name\", imageDescription);\n uploadBody.put(\"imageUrl\", imageUrl);\n // get key of the realtime database\n String uploadId = mDatabaseRef.push().getKey();\n // update the realtime database\n mDatabaseRef.child(uploadId).setValue(uploadBody);\n } else {\n // Handle failures\n Toast.makeText(getActivity(), \"Error getting image Url\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n Toast.makeText(getActivity(), \"Upload succesful\", Toast.LENGTH_SHORT).show();\n\n }else {\n Toast.makeText(getActivity(), \"No file selected\", Toast.LENGTH_SHORT).show();\n }\n }",
"public interface UploadCallback {\n /**\n * send file content callback function, be called only once when the file uploaded\n *\n * @param out output stream for writing file content\n * @return 0 success, return none zero(errno) if fail\n */\n public int send(OutputStream out) throws IOException;\n}",
"@Override\n public void uploadFailed() {\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(getApplicationContext(),\"Image uploaded\",Toast.LENGTH_SHORT).show();\n }",
"void uploadCompleted(String blobId);",
"private void postImage(String fid, final String fileName) {\n\t\tJSONObject jsObject = new JSONObject();\n\t\tSharedPreferences myPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\ttry {\n\n\t\t\tjsObject.put(\"field_image\", new JSONObject().put(\"und\", new JSONArray().put(0, new JSONObject().put(\"fid\", fid))));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcd = new ConnectionDetector(getActivity());\n\n\t\t// Check if Internet present\n\t\tif (!cd.isConnectingToInternet()) {\n\t\t\t// Internet Connection is not present\n\t\t\talert.showAlertDialog(getActivity(),\n\t\t\t\t\t\"Internet Connection Error\",\n\t\t\t\t\t\"Please connect to working Internet connection\", false);\n\t\t\t// stop executing code by return\n\t\t\treturn;\n\t\t}else{\n\t\t\tnew UpdateLike(jsObject,myPrefs){\n\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\tAppUtil.initializeProgressDialog(getActivity(), \"Finalizing post...\", progressDialog);\n\t\t\t\t};\n\t\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\t\tAppUtil.cancelProgressDialog();\n\t\t\t\t\tinfalteImageOnCoverPhoto(fileName);\n\t\t\t\t};\n\t\t\t}.execute(\"http://www1.kitchengardens.in/svc/node/\"+garden_node_id);\n\t\t}\n\t}",
"@Override\n\tpublic void executeTask(Task task) {\n\t\tif (task.getMethodName().equals(\"upload\")) {\n\t\t\tString[] parameterArrays = task.getParameters().split(\";\");\n\t\t\t\n\t\t}\n\t}",
"public interface ImageCallback {\n public void onImageFetched(Bitmap bitmap, File imageFile);\n}",
"public void uploadImageButton(Uri imageUri) {\n title = titleUpdate.getText().toString();\n content = contentUpdate.getText().toString();\n time = timeUpdate.getText().toString();\n place = placeUpdate.getText().toString();\n organize = organizeUpdate.getText().toString();\n\n\n imageReference = firebaseStorage.getReference().child(firebaseAuth.getUid()).child(\"AdminImage\").child(titlestarred).child(\"image\");\n\n if(imageUri == null) {\n imageURL=imageNameUpdate.getText().toString();\n //Log.d(\"kimmy\", imageURL);\n event = new Event(content, fileURL, imageURL, organize, place, time, title);\n eventPathDatabaseReference.setValue(event);\n //uploadFileButton(pdfUri);\n\n }else if(imageUri != null){\n uploadTaskImage = imageReference.putFile(imageUri);\n Task<Uri> urlTask = uploadTaskImage.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n // Continue with the task to get the download URL\n return imageReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n imageURL = task.getResult().toString();\n event = new Event(content, fileURL, imageURL, organize, place, time, title);\n eventPathDatabaseReference.setValue(event);\n }\n else {\n // Handle failures\n // ...\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getContext(), \"File not Succesfully upload\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n\n }",
"UploadInfo advancedUpload(AdvanceFile file);",
"private void uploadToServer(String filePath, String title) {\n APIClient apiClient = new APIClient();\n Retrofit retrofit = apiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n File file = new File(filePath);\n\n MultipartBody.Part filePart =\n MultipartBody.Part.createFormData(\"file\", title+\".jpg\", //file.getName(),\n RequestBody.create(MediaType.parse(\"image/*\"), file));\n\n\n Call call = apiInterface.uploadImage(filePart);\n call.enqueue(new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n Toast.makeText(AddPost.this, \"Worked\",Toast.LENGTH_SHORT).show();\n }\n @Override\n public void onFailure(Call call, Throwable t) {\n t.printStackTrace();\n Toast.makeText(AddPost.this, \"Didn't work\",Toast.LENGTH_SHORT).show();\n }\n });\n }",
"private void uploadImage() {\n if(checkPermissions()){ // if permission is granted we move on with the code\n Intent gallery = new Intent();\n gallery.setType(\"image/\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(gallery,\"Select Image With: \"),CHOOSE_IMAGE_FROM_GALLERY);\n }else{\n requestPermissionFromUser(); // if permission is not granted we go and request a permission from the user\n }\n }",
"public interface IUploadService {\n String upload(HttpServletRequest request);\n}",
"private void galleryAddPic() {\n\t}",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(AddingPlace.this,\"image uploaded successfully\",Toast.LENGTH_LONG).show();\n }",
"public void uploadPictureToParkById(int id, MultipartFile multipartFile, boolean enablePublicReadAccess) {\n Optional<DogPark> dogPark = dogParkRepository.findById(id);\n\n if (dogPark.isPresent()) {\n\n //Create a new image to store the URL of the file that is being created\n Image image = new Image();\n\n //Creating the file\n String fileName = multipartFile.getOriginalFilename();\n\n try {\n //creating the file in the server (temporarily)\n File file = new File(fileName);\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(multipartFile.getBytes());\n fos.close();\n\n for (int i = -1; i < dogPark.get().getImages().size(); i++) {\n\n if (i == dogPark.get().getImages().size() - 1) {\n fileName = dogPark.get().getName() + \"/\" + dogPark.get().getName() + (i + 1) + \".\" + FilenameUtils.getExtension(fileName);\n }\n }\n\n //Set the URL to the new image and connect with the correct dog park and save it to the repository\n image.setUrl(\"https://dogparks.s3.amazonaws.com/\" + fileName);\n image.setDogpark(dogPark.get());\n imageRepository.save(image);\n\n //Add the image to the dog park\n dogPark.get().getImages().add(image);\n\n PutObjectRequest putObjectReqeust = new PutObjectRequest(this.awsS3AudioBucket, fileName, file);\n\n if (enablePublicReadAccess) {\n putObjectReqeust.withCannedAcl(CannedAccessControlList.PublicRead);\n }\n\n this.amazonS3.putObject(putObjectReqeust);\n\n } catch (IOException | AmazonServiceException ex) {\n logger.error(\"error [\" + ex.getMessage() + \"] occurred while uploading [\" + fileName + \"] \");\n }\n }\n else {\n throw new DogParkNotFoundException();\n }\n }"
]
| [
"0.67993224",
"0.6682273",
"0.6452305",
"0.64489186",
"0.6437665",
"0.63840145",
"0.6365122",
"0.63307905",
"0.63307905",
"0.6289526",
"0.6234014",
"0.6180016",
"0.6142073",
"0.6134552",
"0.61314464",
"0.61237496",
"0.6068849",
"0.60663784",
"0.6044054",
"0.60078967",
"0.600223",
"0.5992958",
"0.5960642",
"0.59402686",
"0.5900061",
"0.5898283",
"0.589257",
"0.5879884",
"0.5871314",
"0.58665013",
"0.5866032",
"0.58616215",
"0.5856291",
"0.5841038",
"0.5838678",
"0.5827139",
"0.5824985",
"0.58102274",
"0.58083534",
"0.579664",
"0.57798016",
"0.57699263",
"0.57597834",
"0.5735495",
"0.57344097",
"0.57314056",
"0.5729589",
"0.57121",
"0.5698581",
"0.5693722",
"0.5677947",
"0.5668951",
"0.5663673",
"0.56548846",
"0.5647897",
"0.5640321",
"0.5627905",
"0.5614077",
"0.5612473",
"0.5612136",
"0.56056356",
"0.5601137",
"0.5582793",
"0.55825216",
"0.55787724",
"0.5576293",
"0.55759895",
"0.5573512",
"0.55615985",
"0.5560881",
"0.55583763",
"0.5557193",
"0.5548846",
"0.5539813",
"0.5538054",
"0.5535829",
"0.5533082",
"0.5532111",
"0.55238396",
"0.5522157",
"0.5517118",
"0.5516897",
"0.55106825",
"0.55099446",
"0.55091786",
"0.550838",
"0.5505917",
"0.5498862",
"0.5495773",
"0.5493704",
"0.5493431",
"0.5489885",
"0.5489857",
"0.548121",
"0.547233",
"0.54624856",
"0.54623383",
"0.5461167",
"0.54562265",
"0.54558015",
"0.54556465"
]
| 0.0 | -1 |
Settings to connect to smart meter Serial Port: USB0 on Linux Client Address: 16, one byte Server Address: Logical 1, Physical 17, 2 Byte Referencing: Logical Name Authorization: LOW (password needed) | public static void main(String[] args) {
HdlcClientConnectionSettings settings = new HdlcClientConnectionSettings("/dev/ttyUSB0", new HdlcAddress(16),
new HdlcAddress(1, 17, 2), ReferencingMethod.LN);
settings.setAuthentication(Authentication.LOW);
IClientConnectionFactory factory = ServiceLoader.load(IClientConnectionFactory.class).iterator().next();
IClientConnection connection = null;
try {
connection = factory.createClientConnection(settings);
System.out.print("Enter the password to connect with the smart meter: ");
byte pw[] = null;
if (System.console() != null) {
char[] input = System.console().readPassword();
CharBuffer buffer = CharBuffer.wrap(input);
Charset ascii = Charset.forName("US-ASCII");
ByteBuffer bytes = ascii.encode(buffer);
pw = new byte[bytes.limit()];
bytes.get(pw);
}
else {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
pw = input.getBytes("US-ASCII");
}
connection.connect(3000, pw);
System.out.println("Connected\n");
// Get parameter to read current time
// - Interface class: 8 (Clock)
// - Obis code: 0:0:1:0:0:255 (current time)
// - Attribute ID: 2 (time)
GetRequest getClock = new GetRequest(8, new ObisCode(0, 0, 1, 0, 0, 255), 2);
// Read time from meter
List<GetResult> getResults = connection.get(2000, getClock);
System.out.println("\nRead time from smart meter");
System.out.println("Time: " + getClockString(getResults.get(0).getResultData().getByteArray()));
// Set parameter to add +1 hour to read time
// - Interface class: 8 (Clock)
// - Obis code: 0:0:1:0:0:255 (current time)
// - Attribute ID: 2 (time)
byte[] value = getResults.get(0).getResultData().getByteArray();
value[5] = (byte) ((value[5] + 1) % 12);
SetRequest setClock = getClock.toSetRequest();
setClock.data().setOctetString(value);
// Write new value to smart meter
List<AccessResultCode> setResults = connection.set(3000, setClock);
System.out.println("Setting time on smart meter");
System.out.println("Time: " + setResults.get(0) + "\n");
// Read current time from smart meter again
getResults = connection.get(2000, getClock);
System.out.println("Time: " + getClockString(getResults.get(0).getResultData().getByteArray()) + "\n");
} catch (IOException e) {
e.printStackTrace();
} finally {
if (connection != null && connection.isConnected()) {
connection.disconnect(false);
System.out.println("\nDisconnected from smart meter\n");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connect()\n\t{\n\t\tUUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n\t\ttry\n\t\t{\n\t sock = dev.createRfcommSocketToServiceRecord(uuid); \n\t sock.connect();\n\t connected = true;\n\t dev_out = sock.getOutputStream();\n\t dev_in = sock.getInputStream();\n\t write(0);\n\t write(0);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}",
"public final void setSerial(String serial){\n this.peripheralSerial = serial;\n }",
"private void doYourOpenUsbDevice(UsbDevice usbDevice) {\n connection = mUsbManager.openDevice(usbDevice);\n //add your operation code here\n\n if (connection == null) {\n Log.e(LOG_TAG, \"UsbDeviceConnection null\");\n }\n\n ProbeTable customTable = new ProbeTable();\n customTable.addProduct(0x067B, 0x2303, ProlificSerialDriver.class);\n customTable.addProduct(0x04E2, 0x1410, CdcAcmSerialDriver.class);\n\n UsbSerialProber prober = new UsbSerialProber(customTable);\n\n List<UsbSerialDriver> availableDrivers = prober.findAllDrivers(mUsbManager);\n if (availableDrivers.isEmpty()) {\n\n Log.e(LOG_TAG, \"No available drivers\");\n\n return;\n }\n\n // Open a connection to the first available driver.\n UsbSerialDriver driver = availableDrivers.get(0);\n// mUsbManager.requestPermission(driver.getDevice(), mPermissionIntent);\n boolean hasPermission = mUsbManager.hasPermission(driver.getDevice());\n\n Log.e(LOG_TAG, \"is permission \" + hasPermission);\n\n if (connection == null) {\n\n // You probably need to call UsbManager.requestPermission(driver.getDevice(), ..)\n return;\n }\n\n\n sPort = driver.getPorts().get(0);\n\n\n boundRate = Integer.parseInt(preferences.getString(\"boundRate\", \"9600\"));\n\n dataBits = Integer.parseInt(preferences.getString(\"dataBits\", \"8\"));\n\n String parityStr = preferences.getString(\"parity\", \"NONE\");\n\n\n if (parityStr.equalsIgnoreCase(\"ODD\")) {\n parity = UsbSerialPort.PARITY_ODD;\n } else if (parityStr.equalsIgnoreCase(\"EVEN\")) {\n parity = UsbSerialPort.PARITY_EVEN;\n } else if (parityStr.equalsIgnoreCase(\"NONE\")) {\n parity = UsbSerialPort.PARITY_NONE;\n } else {\n Toast.makeText(getApplicationContext(),\n \"Please select valid parity from settings\", Toast.LENGTH_SHORT).show();\n }\n\n\n String stopBitsStr = preferences.getString(\"stopBits\", \"1\");\n\n if (stopBitsStr.equalsIgnoreCase(\"1\")) {\n stopBits = UsbSerialPort.STOPBITS_1;\n } else if (stopBitsStr.equalsIgnoreCase(\"1.5\")) {\n stopBits = UsbSerialPort.STOPBITS_1_5;\n } else if (stopBitsStr.equalsIgnoreCase(\"2\")) {\n stopBits = UsbSerialPort.STOPBITS_2;\n } else {\n Toast.makeText(getApplicationContext(),\n \"Please select valid stop bits from settings\", Toast.LENGTH_SHORT).show();\n }\n\n\n try {\n sPort.open(connection);\n sPort.setParameters(boundRate, dataBits, stopBits, parity);\n sPort.setRTS(true);\n sPort.setDTR(true);\n\n tvResult.append(\"Connected to device.\\n\");\n svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n\n// showStatus(mDumpTextView, \"CD - Carrier Detect\", sPort.getCD());\n// showStatus(mDumpTextView, \"CTS - Clear To Send\", sPort.getCTS());\n// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n// showStatus(mDumpTextView, \"DTR - Data Terminal Ready\", sPort.getDTR());\n// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n// showStatus(mDumpTextView, \"RI - Ring Indicator\", sPort.getRI());\n// showStatus(mDumpTextView, \"RTS - Request To Send\", sPort.getRTS());\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error setting up device: \" + e.getMessage(), e);\n tvResult.append(\"Error opening device: \" + e.getMessage());\n svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n try {\n sPort.close();\n } catch (IOException e2) {\n // Ignore.\n }\n sPort = null;\n return;\n }\n tvResult.append(\"Serial device: \" + sPort.getClass().getSimpleName());\n svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n\n onDeviceStateChange();\n\n Log.e(LOG_TAG, \"Setting: \" + boundRate + \" \" + dataBits + \" \" + parity + \" \" + stopBits);\n\n// if (preferences.getString(\"boundRate\", null) != null) {\n//\n// boundRate = Integer.parseInt(preferences.getString(\"boundRate\", null));\n//\n//\n// if (preferences.getString(\"dataBits\", null) != null) {\n//\n// dataBits = Integer.parseInt(preferences.getString(\"dataBits\", null));\n//\n//\n// if (preferences.getString(\"parity\", null) != null) {\n//\n// String parityStr = preferences.getString(\"parity\", null);\n//\n// if (parityStr.equalsIgnoreCase(\"ODD\")) {\n// parity = UsbSerialPort.PARITY_ODD;\n// } else if (parityStr.equalsIgnoreCase(\"EVEN\")) {\n// parity = UsbSerialPort.PARITY_EVEN;\n// } else if (parityStr.equalsIgnoreCase(\"NONE\")) {\n// parity = UsbSerialPort.PARITY_NONE;\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select valid parity from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// if (preferences.getString(\"stopBits\", null) != null) {\n//\n// String stopBitsStr = preferences.getString(\"stopBits\", null);\n//\n// if (stopBitsStr.equalsIgnoreCase(\"1\")) {\n// stopBits = UsbSerialPort.STOPBITS_1;\n// } else if (stopBitsStr.equalsIgnoreCase(\"1.5\")) {\n// stopBits = UsbSerialPort.STOPBITS_1_5;\n// } else if (stopBitsStr.equalsIgnoreCase(\"2\")) {\n// stopBits = UsbSerialPort.STOPBITS_2;\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select valid stop bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// try {\n// sPort.open(connection);\n// sPort.setParameters(boundRate, dataBits, stopBits, parity);\n// sPort.setRTS(true);\n// sPort.setDTR(true);\n//\n// tvResult.append(\"Connected to device.\\n\");\n// svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n//\n//// showStatus(mDumpTextView, \"CD - Carrier Detect\", sPort.getCD());\n//// showStatus(mDumpTextView, \"CTS - Clear To Send\", sPort.getCTS());\n//// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n//// showStatus(mDumpTextView, \"DTR - Data Terminal Ready\", sPort.getDTR());\n//// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n//// showStatus(mDumpTextView, \"RI - Ring Indicator\", sPort.getRI());\n//// showStatus(mDumpTextView, \"RTS - Request To Send\", sPort.getRTS());\n//\n// } catch (IOException e) {\n// Log.e(LOG_TAG, \"Error setting up device: \" + e.getMessage(), e);\n// tvResult.append(\"Error opening device: \" + e.getMessage());\n// svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n// try {\n// sPort.close();\n// } catch (IOException e2) {\n// // Ignore.\n// }\n// sPort = null;\n// return;\n// }\n// tvResult.append(\"Serial device: \" + sPort.getClass().getSimpleName());\n// svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n//\n// onDeviceStateChange();\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Stop bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Parity bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Data bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Bound rate from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n// Log.e(LOG_TAG, \"Setting: \" + boundRate + \" \" + dataBits + \" \" + parity + \" \" + stopBits);\n }",
"public void connect(View view) {\n if (phoneNum.getText().toString().equals(\"\")) {\n Toast.makeText(getApplication(), \"Please enter a phone number\", Toast.LENGTH_SHORT).show();\n } else {\n phoneNum.setEnabled(false);\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n }\n }",
"public void ArduinoConnection() \n {\n //variables para la identificacion del puerto y poder hacer la conexion\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n //Ciclo para mandar todos los elementos, es decir, aqui se mandara por el puerto los caracteres del mensaje\n while (portEnum.hasMoreElements()) \n {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n \n //comprobamos si hay algo\n if (PORT_NAME.equals(currPortId.getName())) \n {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) \n {\n\n System.exit(ERROR);\n return;\n }\n\n try \n {\n \n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }",
"default public int getControlToDevicePort()\t\t\t\t{ return 2226; }",
"public final void setDevicePort(String port){\n peripheralPort = port;\n }",
"public void setup() {\r\n\r\n //Serial.begin(115200);\r\n\r\n // start with standard serial & rate\r\n mrlComm.begin(Serial);\r\n }",
"public final String getDevicePort(){\n return peripheralPort;\n }",
"public void ArduinoConnection() {\n\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n while (portEnum.hasMoreElements()) {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\n if (PORT_NAME.equals(currPortId.getName())) {\n portId = currPortId;\n break;\n }\n }\n\n if (portId == null) {\n\n System.exit(ERROR);\n return;\n }\n\n try {\n\n serialPort = (SerialPort) portId.open(this.getClass().getName(), TIME_OUT);\n\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n Output = serialPort.getOutputStream();\n\n } catch (Exception e) {\n\n System.exit(ERROR);\n }\n\n }",
"ReaderHelper connectCom(final String port, final int baud);",
"native int _openSerialPort(String comPort, int baud, int dataBits, int stopBits, int parity);",
"default public int getCodeToDevicePort()\t\t\t\t{ return 2225; }",
"public static void connect(String comName)\n {\n char[] stringToChar = comName.toCharArray();\n System.out.println(\"Name is \"+ (int)stringToChar[0]);\n\n if (comName!=\"\") {\n try {\n\n serialPort = SerialPort.getCommPort(comName);\n serialPort.setBaudRate(9600);\n serialPort.openPort();\n } catch (Exception e) {\n //System.out.println(\"Serial Port Failed to Initialize\");\n }\n }\n\n\n }",
"private void sendConfiguration() {\r\n if (currentBluetoothGatt == null) {\r\n Toast.makeText(this, \"Non Connecté\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n /*EditText ledGPIOPin = findViewById(R.id.editTextPin);\r\n EditText buttonGPIOPin = findViewById(R.id.editTextPin);\r\n final String pinLed = ledGPIOPin.getText().toString();\r\n final String pinButton = buttonGPIOPin.getText().toString();\r\n\r\n final BluetoothGattService service = currentBluetoothGatt.getService(BluetoothLEManager.DEVICE_UUID);\r\n if (service == null) {\r\n Toast.makeText(this, \"UUID Introuvable\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n final BluetoothGattCharacteristic buttonCharact = service.getCharacteristic(BluetoothLEManager.CHARACTERISTIC_BUTTON_PIN_UUID);\r\n final BluetoothGattCharacteristic ledCharact = service.getCharacteristic(BluetoothLEManager.CHARACTERISTIC_LED_PIN_UUID);\r\n\r\n buttonCharact.setValue(pinButton);\r\n ledCharact.setValue(pinLed);\r\n\r\n currentBluetoothGatt.writeCharacteristic(buttonCharact); // async code, you cannot send 2 characteristics at the same time!\r\n charsStack.add(ledCharact); // stack the next write*/\r\n }",
"@Override\n\tpublic void open() {\n\t\tlong openStartTime = new Date().getTime();\n\t\ttry {\n\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\tif (this.serialPort != null && !this.serialPort.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.serialPort.open();\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\tthis.initialAnswerData = this.serialPort.getData(true);\n\t\t\t\t\tif (this.device.isProcessing(1, this.initialAnswerData) || this.device.isProcessing(2, this.initialAnswerData)) {\n\t\t\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(MessageIds.GDE_MSGW2201));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET_CONFIG);\n\t\t\t\t\tthis.deviceIdentifierName = this.serialPort.readDeviceUserName();\n\n\t\t\t\t\tthis.jc = JAXBContext.newInstance(\"gde.device.graupner\"); //$NON-NLS-1$\n\t\t\t\t\tthis.schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(\n\t\t\t\t\t\t\tnew StreamSource(UltraDuoPlusDialog.class.getClassLoader().getResourceAsStream(\"resource/\" + UltraDuoPlusDialog.ULTRA_DUO_PLUS_XSD))); //$NON-NLS-1$\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUnmarshaller unmarshaller = this.jc.createUnmarshaller();\n\t\t\t\t\t\tunmarshaller.setSchema(this.schema);\n\t\t\t\t\t\tthis.ultraDuoPlusSetup = (UltraDuoPlusType) unmarshaller.unmarshal(new File(this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t+ this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (UnmarshalException e) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.synchronizerRead = new UltraDuoPlusSychronizer(this, this.serialPort, this.ultraDuoPlusSetup, UltraDuoPlusSychronizer.SYNC_TYPE.READ);\n\t\t\t\t\tthis.synchronizerRead.start();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\tthis.application.openMessageDialog(null,\n\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0015, new Object[] { e.getClass().getSimpleName() + GDE.STRING_BLANK_COLON_BLANK + e.getMessage() }));\n\t\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\t\tif (!this.application.getActiveDevice().equals(this.device)) //check if device was changed\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, \"serial port == null\"); //$NON-NLS-1$\n\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(gde.messages.MessageIds.GDE_MSGE0010));\n\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"dialogShell.isDisposed() \" + ((this.dialogShell == null) ? \"null\" : this.dialogShell.isDisposed())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tif (this.dialogShell == null || this.dialogShell.isDisposed()) {\n\t\t\t\tif (this.settings.isDeviceDialogsModal())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getShell(), SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL);\n\t\t\t\telse if (this.settings.isDeviceDialogsOnTop())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM | SWT.ON_TOP);\n\t\t\t\telse\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM);\n\n\t\t\t\tSWTResourceManager.registerResourceUser(this.dialogShell);\n\t\t\t\tthis.dialogShell.setLayout(new FormLayout());\n\t\t\t\tthis.dialogShell.setText(this.device.getName() + Messages.getString(gde.messages.MessageIds.GDE_MSGT0273));\n\t\t\t\tthis.dialogShell.setImage(SWTResourceManager.getImage(\"gde/resource/ToolBoxHot.gif\")); //$NON-NLS-1$\n\t\t\t\tthis.dialogShell.layout();\n\t\t\t\tthis.dialogShell.pack();\n\t\t\t\tthis.dialogShell.setSize(655, GDE.IS_MAC ? 685 : 675);\n\t\t\t\tthis.dialogShell.addListener(SWT.Traverse, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tswitch (event.detail) {\n\t\t\t\t\t\tcase SWT.TRAVERSE_ESCAPE:\n\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.close();\n\t\t\t\t\t\t\tevent.detail = SWT.TRAVERSE_NONE;\n\t\t\t\t\t\t\tevent.doit = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addHelpListener(new HelpListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void helpRequested(HelpEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"dialogShell.helpRequested, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addDisposeListener(new DisposeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void widgetDisposed(DisposeEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"dialogShell.widgetDisposed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tif (UltraDuoPlusDialog.this.serialPort != null && UltraDuoPlusDialog.this.serialPort.isConnected()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerRead.join();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t//set the date to sync with PC time\n\t\t\t\t\t\t\t\t\tString[] date = StringHelper.getDateAndTime(\"yy:MM:dd:hh:mm\").split(GDE.STRING_COLON); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus45:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[15] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[16] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[17] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tChannelData1 value = new ChannelData1();\n\t\t\t\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues1));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData1(value, value.getValue().endsWith(\"1\"));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsaveConfigUDP(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.close();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.resetShellIcon();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t{\n\t\t\t\t\tthis.boundsComposite = new Composite(this.dialogShell, SWT.NONE);\n\t\t\t\t\tFormData boundsCompositeLData = new FormData();\n\t\t\t\t\tboundsCompositeLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tthis.boundsComposite.setLayoutData(boundsCompositeLData);\n\t\t\t\t\tthis.boundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userLabel = new CLabel(this.boundsComposite, SWT.RIGHT);\n\t\t\t\t\t\tthis.userLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userLabel.setText(Messages.getString(MessageIds.GDE_MSGT2289));\n\t\t\t\t\t\tFormData userLabelLData = new FormData();\n\t\t\t\t\t\tuserLabelLData.left = new FormAttachment(0, 1000, 12);\n\t\t\t\t\t\tuserLabelLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tuserLabelLData.width = 280;\n\t\t\t\t\t\tuserLabelLData.height = 20;\n\t\t\t\t\t\tthis.userLabel.setLayoutData(userLabelLData);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userNameText = new Text(this.boundsComposite, SWT.SINGLE | SWT.BORDER);\n\t\t\t\t\t\tthis.userNameText.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userNameText.setText(this.deviceIdentifierName);\n\t\t\t\t\t\tthis.userNameText.setTextLimit(16);\n\t\t\t\t\t\tFormData userNameTextLData = new FormData();\n\t\t\t\t\t\tuserNameTextLData.width = 120;\n\t\t\t\t\t\tuserNameTextLData.height = 16;\n\t\t\t\t\t\tuserNameTextLData.left = new FormAttachment(0, 1000, 305);\n\t\t\t\t\t\tuserNameTextLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tthis.userNameText.setLayoutData(userNameTextLData);\n\t\t\t\t\t\tthis.userNameText.addVerifyListener(new VerifyListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void verifyText(VerifyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"evt.doit = \" + (evt.text.length() <= 16)); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tevt.doit = evt.text.length() <= 16;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.userNameText.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFile oldConfigDataFile = new File(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\t\t\t\t\t\t\t\tif (oldConfigDataFile.exists()) if (!oldConfigDataFile.delete()) UltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, \"could not delete \" + oldConfigDataFile.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.deviceIdentifierName = (UltraDuoPlusDialog.this.userNameText.getText().trim() + UltraDuoPlusDialog.STRING_16_BLANK).substring(0, 16);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setIdentifierName(UltraDuoPlusDialog.this.deviceIdentifierName);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChanged(true);\n\t\t\t\t\t\t\t\tint position = UltraDuoPlusDialog.this.userNameText.getCaretPosition();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setText(UltraDuoPlusDialog.this.deviceIdentifierName.trim());\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setSelection(position);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyPressed, event=\" + evt); //$NON-NLS-1$\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\tthis.mainTabFolder = new CTabFolder(this.boundsComposite, SWT.BORDER);\n\t\t\t\t\t\tthis.mainTabFolder.setSimple(false);\n\t\t\t\t\t\tFormData TabFolderLData = new FormData();\n\t\t\t\t\t\tTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.top = new FormAttachment(0, 1000, 35);\n\t\t\t\t\t\tTabFolderLData.bottom = new FormAttachment(1000, 1000, -45);\n\t\t\t\t\t\tthis.mainTabFolder.setLayoutData(TabFolderLData);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setupTabItem = new CTabItem(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\tthis.setupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.setupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2290));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.deviceComposite = new Composite(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\t\tGridLayout deviceCompositeLayout = new GridLayout();\n\t\t\t\t\t\t\t\tdeviceCompositeLayout.makeColumnsEqualWidth = true;\n\t\t\t\t\t\t\t\tthis.deviceComposite.setLayout(deviceCompositeLayout);\n\t\t\t\t\t\t\t\tthis.setupTabItem.setControl(this.deviceComposite);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tGridData group1LData = new GridData();\n\t\t\t\t\t\t\t\t\tgroup1LData.horizontalAlignment = GridData.FILL;\n\t\t\t\t\t\t\t\t\tgroup1LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\tgroup1LData.widthHint = 580;\n\t\t\t\t\t\t\t\t\tgroup1LData.heightHint = this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? 182 : 392;\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayoutData(group1LData);\n\t\t\t\t\t\t\t\t\tFillLayout baseDeviceSetupCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayout(baseDeviceSetupCompositeLayout);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setText(Messages.getString(MessageIds.GDE_MSGT2291));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50, Messages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2296), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2297), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[15] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 15, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse { //UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 1, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 2, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 3, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(1)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(1)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 10, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(2)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 11, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(2)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2315), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 - 99%\", 175, false, 50, 150, 1, 99, -1, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[18] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 18, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//time setup will synced with PC\n\t\t\t\t\t\t\t\t\t//this.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 10, Messages.getString(MessageIds.GDE_MSGT2298), 175,\t\"1 ~ 31\", 175, false, 50, 150, 1, 31); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 11, Messages.getString(MessageIds.GDE_MSGT2299), 175,\t\"1 ~ 12\", 175, false, 50, 150, 1, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 12, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2300), 175,\t\"0 ~ 99\", 175, false, 50, 150, 0, 99); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[13] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 13, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2302), 175,\t\"0 ~ 12\", 175, false, 50, 150, 0, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[14] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 14, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2301), 175,\t\"0 ~ 59\", 175, false, 50, 150, 0, 59); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group2LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup2LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayoutData(group2LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setText(Messages.getString(MessageIds.GDE_MSGT2304));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite1, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 3, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\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\tthis.baseDeviceSetupGroup2 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group3LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup3LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayoutData(group3LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setText(Messages.getString(MessageIds.GDE_MSGT2309));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite2, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 0] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 0,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2255), 175, Messages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 1] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 1, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2254), 175, \"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 2] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 2, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2305), 175, \"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 3] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 3,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2308), 175, Messages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.powerOnDisplayType, 50, 150);\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\t{\n\t\t\t\t\t\t\tthis.memorySetupTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2250));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memorySetupTabItem.setControl(this.memoryBoundsComposite);\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite = new Composite(this.memoryBoundsComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 150;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memorySelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.width = 120;\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setLayoutData(memorySelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\tupdateBatterySetup(1);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo = new CCombo(this.memorySelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setLayoutData(memoryComboLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2252));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tint actualSelectionIndex = UltraDuoPlusDialog.this.memoryCombo.getSelectionIndex();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.lastMemorySelectionIndex != actualSelectionIndex) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.lastMemorySelectionIndex >= 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& UltraDuoPlusDialog.this.lastMemorySelectionIndex < UltraDuoPlusDialog.numberMemories) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//write memory if setup data has been changed changed (update memory name executed while keyListener)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryStepValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check for copy selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.copyButton.getSelection()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.copyButton.setSelection(false);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (SWT.YES == UltraDuoPlusDialog.this.application.openYesNoMessageDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGI2205, new Object[] { UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName(), (actualSelectionIndex + 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName() }))) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//copy memory name and setup data of lastMemorySelectionIndex to memoryCombo.getSelectionIndex()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"copy memory: (\" + (UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName()//$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" to (\" + (actualSelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(UltraDuoPlusDialog.this.memoryValues[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName().getBytes(), actualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, actualSelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[actualSelectionIndex] = (newMemoryName + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(actualSelectionIndex, newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(actualSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex = actualSelectionIndex;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tif (evt.character == SWT.CR) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(UltraDuoPlusDialog.this.memoryCombo.getText() + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex] = newMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(UltraDuoPlusDialog.this.lastMemorySelectionIndex, newMemoryName);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5).getBytes(), UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tCLabel filler = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(140, 20));\n\t\t\t\t\t\t\t\t\t\tfiller.setText(\"<--------- \"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\tthis.copyButton = new Button(this.memorySelectComposite, SWT.CHECK | SWT.LEFT);\n\t\t\t\t\t\t\t\t\t\tRowData cellTypeSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.width = 200;\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setLayoutData(cellTypeSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setText(Messages.getString(MessageIds.GDE_MSGT2288));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2256));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//cell type\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[0] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 0, Messages.getString(MessageIds.GDE_MSGT2257), 175,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2246), 220, UltraDuoPlusDialog.cellTypeNames, 50, 150);\n\t\t\t\t\t\t\t\t\t//number cells\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[1] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2258), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 6/7/18\", 220, false, 50, 150, 1, 18); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//battery capacity\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[2] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2259), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 65000 mAh\", 220, true, 50, 150, 100, 65000, -100, true); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//year, month, day\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[3] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 3, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2260), 100, GDE.STRING_EMPTY, 5, false, 30, 70, 0, 99);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[4] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 4, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2261), 60, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 12);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[5] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 5, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2262), 55, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 31);\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.memorySelectComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 180, 20);\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\tthis.chargeTypeTabFolder = new CTabFolder(this.memoryBoundsComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSimple(false);\n\t\t\t\t\t\t\t\t\tFormData chargeTypeTabFolderLData = new FormData();\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.top = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setLayoutData(chargeTypeTabFolderLData);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastCellSelectionIndex = -1;\n\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryValues[0] == 1) { //NiMH with possible step charge\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.stepChargeComposite.getStepChargeValues(UltraDuoPlusDialog.this.memoryStepValues);\n\t\t\t\t\t\t\t\t\t\t\t\t\tEvent changeEvent = new Event();\n\t\t\t\t\t\t\t\t\t\t\t\t\tchangeEvent.index = -1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.notifyListeners(SWT.Selection, changeEvent);\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\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tupdateBatteryMemoryParameter(UltraDuoPlusDialog.this.memoryValues[0]);\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\t\tthis.chargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2298));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite = new ScrolledComposite(this.chargeTypeTabFolder, SWT.BORDER | SWT.V_SCROLL);\n\t\t\t\t\t\t\t\t\t\t\tFillLayout scrolledMemoryCompositeLayout = new FillLayout();\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setLayout(scrolledMemoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setControl(this.scrolledchargeComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup = new Group(this.scrolledchargeComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2299));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//charge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[6] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 6, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2263), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 20000 mA\", 220, true, 50, 150, 100, 20000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[11] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 11, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2265), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2310), 220, true, 50, 150, 10, 165);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus40 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[12] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2266), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2238), 220, false, 50, 150, 10, 905);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4200 mV\", 220, true, 50, 150, 3600, 4200, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[9] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4000 mV\", 220, true, 50, 150, 3600, 4000, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"0 ~ 25mV\", 220, false, 50, 150, 0, 25); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[8] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 20min\", 220, false, 50, 150, 1, 20); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[15] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2281), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[13] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2280), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 5\", 220, false, 50, 150, 1, 5); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[16] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setContent(this.chargeGroup);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setSize(620, this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.addControlListener(new ControlListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlResized(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlResized, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlMoved(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlMoved, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2300));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite = new Composite(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\tRowLayout scrolledComposite1Layout = new RowLayout(org.eclipse.swt.SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite.setLayout(scrolledComposite1Layout);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setControl(this.dischargeCycleComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData dischargeGroupLData = new RowData(620, UltraDuoPlusDialog.this.dischargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayoutData(dischargeGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2301));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//discharge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[17] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 17, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2268), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 10000 mA\", 220, true, 50, 150, 100, 10000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[18] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 18, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2269), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"2500 ~ 4200 mV\", 220, true, 50, 150, 2500, 4200, -2500, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[20] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 20, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2271), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2311), 220, false, 50, 150, 10, 105, -10, false);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[21] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2283), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData cycleGroupLData = new RowData(625, UltraDuoPlusDialog.this.cycleSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayoutData(cycleGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setText(Messages.getString(MessageIds.GDE_MSGT2302));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//cycle parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[22] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 22, Messages.getString(MessageIds.GDE_MSGT2272), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2292), 220, UltraDuoPlusDialog.cycleDirectionTypes, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[23] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 23, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2273), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 220, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[24] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 24, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2274), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[25] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 25, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2275), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSelection(0);\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{\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2320));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryDataComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setControl(this.memoryDataComposite);\n\t\t\t\t\t\t\t\tthis.memoryDataComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.memoryDataSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\tthis.memoryDataSelectLabel = new CLabel(this.memoryDataSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 315;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2321) + Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo = new CCombo(this.memoryDataSelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2339));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memorySelectionIndexData = UltraDuoPlusDialog.this.memoryDataCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton cycleDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData cycleDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.top = new FormAttachment(0, 1000, 70);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setLayoutData(cycleDataButtonLData);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2322));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2316));\n\t\t\t\t\t\t\t\t\tcycleDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"cycleDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tGraphicsWindow cycleGraph = (GraphicsWindow) UltraDuoPlusDialog.this.device.getUtilityDeviceTabItem();\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet utilitySet = UltraDuoPlusDialog.this.application.getUtilitySet();\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.clear();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < Ultramat.cycleDataRecordNames.length; ++i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tRecord tmpRecord = new Record(UltraDuoPlusDialog.this.device, i, Ultramat.cycleDataRecordNames[i], GDE.STRING_EMPTY, Ultramat.cycleDataUnitNames[i], true, null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ArrayList<PropertyType>(), 11);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setFactor(Ultramat.cycleDataFactors[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (Ultramat.cycleDataSyncRefOrdinal[i] >= 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.createProperty(MeasurementPropertyTypes.SCALE_SYNC_REF_ORDINAL.value(), DataTypes.INTEGER, Ultramat.cycleDataSyncRefOrdinal[i]);\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\ttmpRecord.setColorDefaultsAndPosition(i);\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.put(Ultramat.cycleDataRecordNames[i], tmpRecord);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColor(SWTResourceManager.getColor(Ultramat.cycleDataColors[i][0], Ultramat.cycleDataColors[i][1], Ultramat.cycleDataColors[i][2]));\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (i >= 4) tmpRecord.setPositionLeft(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ((i + 1) % 2 == 0) tmpRecord.setVisible(false);\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\tutilitySet.setHorizontalGridType(RecordSet.HORIZONTAL_GRID_EVERY);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridRecordOrdinal(4);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeGridType(RecordSet.TIME_GRID_MAIN);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeStep_ms(-1.0); //different time steps\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.syncScaleOfSyncableRecords();\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().setSelection(cycleGraph);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(50);\n\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowPlus2Hours = new Date().getTime() + 7200000L;\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowMinus2Year = new Date().getTime() - 63072000000L;\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\tVector<byte[]> cyclesData = new Vector<byte[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tTreeMap<Long, int[]> sortCyclesData = new TreeMap<Long, int[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tif (Boolean.parseBoolean(System.getProperty(\"GDE_IS_SIMULATION\"))) { //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t//test data - change dates in timeSteps block below to vary\n\t\t\t\t\t\t\t\t\t\t\t\t\t//original data\n\t\t\t\t\t\t\t\t\t\t\t\t\tString memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B50000000000000008002B000C00050009084341DC04B4000B0000000000000032000F00050012001A41F0000000000000000000090015000C0005001D0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D0418004740000000000000003000E000E0006000D094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t//updated data\n\t\t\t\t\t\t\t\t\t\t\t\t\t//String memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B500000000000000130013000B0005000A084341DC04B4000B0000000000000032000000050012001A41F0000000000000000000130028000B0005001E0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D041800474000000000000000D0022000B00060010094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint startIndex = i * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint endIndex = (i + 1) * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData.add(memoryCycleData.substring(startIndex, endIndex).getBytes());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tlong[] timeSteps = {\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\tnew GregorianCalendar(2011, 06, 01, 03, 38, 0).getTimeInMillis(), \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\tnew GregorianCalendar(2011, 06, 02, 03, 38, 0).getTimeInMillis(), \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\tnew GregorianCalendar(2011, 06, 03, 11, 04, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 04, 9, 45, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 04, 16, 04, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 12, 18, 52, 0).getTimeInMillis(),\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};\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\tint[][] pointss = { \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16834, 0, 1000, 0, 1300, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16834, 16264, 1281, 33, 1036, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16857, 0, 371, 0, 1425, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16766, 0, 2783, 0, 949, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16790, 34, 2783, 15, 1382, 29},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16768, \t\t0, 2000, 0, 1140, 0},\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};\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// 2; 0; \t 4; 3; 1; 5\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//2011-04-17, 03:38:00; 1281; 16834; 1036; 33; 16264; 0\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//2011-04-24, 11:04:00; 371; 16857; 1425; 0; 0; 0\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//2011-05-07, 09:45:00; 2783; 16766; 949; 0; 0; 0\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//2011-06-04, 16:04:00; 2783; 16790; 1382; 15; 34; 29\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//2011-06-12, 18:52:00; 2000; 16768; 1140; 0; 0; 0\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\tfor (int i = 0; i < timeSteps.length; i++) {\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\tsortCyclesData.put(timeSteps[i], pointss[i].clone());\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}\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\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData = UltraDuoPlusDialog.this.serialPort.readMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(new String(cycleData));\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\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\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\tUltraDuoPlusDialog.this.dataTable.removeAll();\n\n\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong timeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[6];\n\t\t\t\t\t\t\t\t\t\t\t\t\tint hour = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint minute = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint year = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint day = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\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\tcatch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[2] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[20], (char) cycleData[21], (char) cycleData[22], (char) cycleData[23]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[24], (char) cycleData[25], (char) cycleData[26], (char) cycleData[27]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[4] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[28], (char) cycleData[29], (char) cycleData[30], (char) cycleData[31]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[3] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[32], (char) cycleData[33], (char) cycleData[34], (char) cycleData[35]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[36], (char) cycleData[37], (char) cycleData[38], (char) cycleData[39]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[40], (char) cycleData[41], (char) cycleData[42], (char) cycleData[43]), 16);\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", point)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp) + sb.toString()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//if time stamp is not between just now - 1 year and just now + 2 hrs and contains data ask if the date should be corrected\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong dataSum = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataSum += point;\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 (dataSum > 0 && (timeStamp < justNowMinus2Year || timeStamp > justNowPlus2Hours)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"time stamp out of range ! \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint[] newTimeStamp = new ChangeDateDialog(UltraDuoPlusDialog.this.dialogShell, SWT.NONE, new int[] { hour, minute, 2000 + year, month, day, points[2], points[3] }).open();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newTimeStamp.length > 0) { //change requested\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"date change requested !\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[0] = newTimeStamp[0] < 0 ? 0 : newTimeStamp[0] > 24 ? 24 : newTimeStamp[0]; //hour\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[1] = newTimeStamp[1] < 0 ? 0 : newTimeStamp[1] > 60 ? 60 : newTimeStamp[1]; //minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[2] = newTimeStamp[2] <= 2000 ? 0 : newTimeStamp[2] - 2000; //year\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[3] = newTimeStamp[3] < 1 ? 1 : newTimeStamp[3] > 12 ? 12 : newTimeStamp[3]; //month\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[4] = newTimeStamp[4] < 1 ? 1 : newTimeStamp[4] > 30 ? 30 : newTimeStamp[4]; //day\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, k = 0; i < newTimeStamp.length; i++, k += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbyte[] bytes = String.format(\"%04X\", newTimeStamp[i]).getBytes(); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int j = 0; j < bytes.length; j++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcycleData[j + k] = bytes[j];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t//add selected entries to the sorted map, this is what gets displayed in the utility record\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && timeStamp > justNowMinus2Year && timeStamp < justNowPlus2Hours) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeStamp, points.clone());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//display values\n\t\t\t\t\t\t\t\t\t\t\t\t\tTableItem item = new TableItem(UltraDuoPlusDialog.this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = entry.getValue();\n\t\t\t\t\t\t\t\t\t\t\t\t\titem.setText(new String[] { StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm\", entry.getKey()), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[0] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[1] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[2] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[3] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[4] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[5] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t//check if time stamp was changed, if yes write back changed data to device\n\t\t\t\t\t\t\t\t\t\t\t\tif (isDateChanged) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2333));\n\t\t\t\t\t\t\t\t\t\t\t\t\t//not implemented device firmware: serialPort.writeMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData, cyclesData);\n\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"used entries between \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowMinus2Year) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowPlus2Hours) + GDE.LINE_SEPARATOR); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\t\t\t\t\t\t\t\t\tlong lastTimeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.addPoints(entry.getValue(), (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < entry.getValue().length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", entry.getValue()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", entry.getKey()) + String.format(\"; %12d%s\", (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp), sb.toString())); //$NON-NLS-1$ //$NON-NLS-2$\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\tlastTimeStamp = lastTimeStamp == 0 ? entry.getKey() : lastTimeStamp;\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\tLong[] dates = sortCyclesData.keySet().toArray(new Long[0]);\n\t\t\t\t\t\t\t\t\t\t\t\tArrays.sort(dates);\n\t\t\t\t\t\t\t\t\t\t\t\tif (dates != null && dates.length > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ GDE.STRING_BLANK_COLON_BLANK\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[0]) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[dates.length - 1])); //$NON-NLS-1$ //$NON-NLS-2$\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\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText());\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\tcycleGraph.enableGraphicsHeader(true);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().notifyListeners(SWT.Selection, new Event());\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(100);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData cycleDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.top = new FormAttachment(0, 1000, 110);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setLayoutData(cycleDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(100);\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\tthis.dataTable = new Table(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData dataTableLData = new FormData();\n\t\t\t\t\t\t\t\t\tdataTableLData.height = 200;\n\t\t\t\t\t\t\t\t\tdataTableLData.left = new FormAttachment(0, 1000, 5);\n\t\t\t\t\t\t\t\t\tdataTableLData.right = new FormAttachment(1000, 1000, -5);\n\t\t\t\t\t\t\t\t\tdataTableLData.top = new FormAttachment(0, 1000, 140);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLayoutData(dataTableLData);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLinesVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setHeaderVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tTableColumn timeColumn = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\ttimeColumn.setText(\"yyyy-MM-dd, HH:mm\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\ttimeColumn.setWidth(timeColumn.getText().length() * 9);\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\tsb.append(Ultramat.cycleDataTableNames[i]).append(GDE.STRING_BLANK_LEFT_BRACKET).append(Ultramat.cycleDataUnitNames[i]).append(GDE.STRING_RIGHT_BRACKET);\n\t\t\t\t\t\t\t\t\t\tTableColumn column = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tcolumn.setWidth(77);\n\t\t\t\t\t\t\t\t\t\tcolumn.setText(sb.toString());\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\tthis.channelSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData channelSelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tchannelSelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tchannelSelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.bottom = new FormAttachment(1000, 1000, -90);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayoutData(channelSelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.channelSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\tthis.channelSelectLabel = new CLabel(this.channelSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 370;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2334));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo = new CCombo(this.channelSelectComposite, SWT.BORDER | SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setItems(this.channelNumbers);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setVisibleItemCount(2);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 35;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2335));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setEditable(false);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelSelectionIndex = UltraDuoPlusDialog.this.channelCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton graphicsDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.bottom = new FormAttachment(1000, 1000, -40);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setLayoutData(graphicsDataButtonLData);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2318));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2319));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"graphicsDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[UltraDuoPlusDialog.this.device.getNumberOfMeasurements(UltraDuoPlusDialog.this.channelSelectionIndex)];\n\t\t\t\t\t\t\t\t\t\t\t\tfinal byte[][] graphicsData = new byte[3][];\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.readGraphicsData(graphicsData, UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this);\n\n\t\t\t\t\t\t\t\t\t\t\t\t//create a new record set at the selected output channel\n\t\t\t\t\t\t\t\t\t\t\t\tString processName = Messages.getString(MessageIds.GDE_MSGT2337);\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet recordSet = null;\n\t\t\t\t\t\t\t\t\t\t\t\tChannel channel = Channels.getInstance().get(UltraDuoPlusDialog.this.channelSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\tif (channel != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tString recordSetKey = channel.getNextRecordSetNumber() + GDE.STRING_RIGHT_PARENTHESIS_BLANK + processName;\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSetKey = recordSetKey.length() <= RecordSet.MAX_NAME_LENGTH ? recordSetKey : recordSetKey.substring(0, RecordSet.MAX_NAME_LENGTH);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.put(recordSetKey, RecordSet.createRecordSet(recordSetKey, UltraDuoPlusDialog.this.device, UltraDuoPlusDialog.this.channelSelectionIndex, true, false, true));\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.applyTemplateBasics(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, recordSetKey + \" created for channel \" + channel.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet = channel.get(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.setTemperatureUnit(UltraDuoPlusDialog.this.channelSelectionIndex, recordSet, UltraDuoPlusDialog.this.initialAnswerData); //°C or °F\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setAllDisplayable();\n\t\t\t\t\t\t\t\t\t\t\t\t\t// switch the active record set if the current record set is child of active channel\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channels.switchChannel(UltraDuoPlusDialog.this.channelSelectionIndex, recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.switchRecordSet(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString description = recordSet.getRecordSetDescription() + GDE.LINE_SEPARATOR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"Firmware : \" + UltraDuoPlusDialog.this.device.getFirmwareVersion(UltraDuoPlusDialog.this.initialAnswerData) //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) >= 1 ? \"; Memory #\" + UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) : GDE.STRING_EMPTY); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint batteryMemoryNumber = UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (batteryMemoryNumber > 0 && UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(batteryMemoryNumber) != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString batteryMemoryName = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) - 1).getName();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdescription = description + GDE.STRING_MESSAGE_CONCAT + batteryMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (recordSetKey.startsWith(\"1)\")) UltraDuoPlusDialog.this.device.matchBatteryMemory2ObjectKey(batteryMemoryName); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ignore and do not append memory name\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\trecordSet.setRecordSetDescription(description);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tint numOfPoints = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][1], (char) graphicsData[0][2], (char) graphicsData[0][3], (char) graphicsData[0][4]), 16) - 10;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint timeStep_sec = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][5], (char) graphicsData[0][6], (char) graphicsData[0][7], (char) graphicsData[0][8]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setNewTimeStep_ms(timeStep_sec * 1000.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, j = 9; i < numOfPoints; i++, j += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0=Spannung 1=Strom 5=BatteryTemperature\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[0][j], (char) graphicsData[0][j + 1], (char) graphicsData[0][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[0][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[1][j], (char) graphicsData[1][j + 1], (char) graphicsData[1][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[1][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[2][j], (char) graphicsData[2][j + 1], (char) graphicsData[2][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[2][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.addPoints(points);\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\tUltraDuoPlusDialog.this.device.updateVisibilityStatus(recordSet, true);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.updateAllTabs(true);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (DataInconsitsentException e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2338));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2336));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.bottom = new FormAttachment(1000, 1000, -15);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setLayoutData(graphicsDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(100);\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\tthis.mainTabFolder.setSelection(1);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.restoreButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData restoreButtonLData = new FormData();\n\t\t\t\t\t\trestoreButtonLData.width = 118;\n\t\t\t\t\t\trestoreButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\trestoreButtonLData.left = new FormAttachment(0, 1000, 165);\n\t\t\t\t\t\trestoreButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.restoreButton.setLayoutData(restoreButtonLData);\n\t\t\t\t\t\tthis.restoreButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.restoreButton.setText(Messages.getString(MessageIds.GDE_MSGT2284));\n\t\t\t\t\t\tthis.restoreButton.setEnabled(false);\n\t\t\t\t\t\tthis.restoreButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.openFileOpenDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2284), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), GDE.STRING_EMPTY, SWT.SINGLE);\n\t\t\t\t\t\t\t\tif (fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(false);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\t\t\t\t\t\t\t\tUnmarshaller unmarshaller = UltraDuoPlusDialog.this.jc.createUnmarshaller();\n\t\t\t\t\t\t\t\t\t\tunmarshaller.setSchema(UltraDuoPlusDialog.this.schema);\n\t\t\t\t\t\t\t\t\t\t//merge loaded configuration into active\n\t\t\t\t\t\t\t\t\t\tmergeUltraDuoPlusSetup((UltraDuoPlusType) unmarshaller.unmarshal(new File(fileDialog.getFilterPath() + GDE.FILE_SEPARATOR + fileDialog.getFileName())));\n\t\t\t\t\t\t\t\t\t\t//write updated entries while merging\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t\t\t//check and sync active configuration with device content\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(0);\n\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryCombo != null && !UltraDuoPlusDialog.this.memoryCombo.isDisposed()) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItems(UltraDuoPlusDialog.this.memoryNames);\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.select(0);\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup = new ObjectFactory().createUltraDuoPlusType();\n\t\t\t\t\t\t\t\t\t\t\tList<MemoryType> cellMemories = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory();\n\t\t\t\t\t\t\t\t\t\t\tif (cellMemories.size() < UltraDuoPlusDialog.numberMemories) { // initially create only base setup data\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltraDuoPlusDialog.numberMemories; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tMemoryType cellMemory = new ObjectFactory().createMemoryType();\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemory.setSetupData(new ObjectFactory().createMemoryTypeSetupData());\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemories.add(cellMemory);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\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\tthis.backupButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData backupButtonLData = new FormData();\n\t\t\t\t\t\tbackupButtonLData.width = 118;\n\t\t\t\t\t\tbackupButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tbackupButtonLData.left = new FormAttachment(0, 1000, 29);\n\t\t\t\t\t\tbackupButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.backupButton.setLayoutData(backupButtonLData);\n\t\t\t\t\t\tthis.backupButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.backupButton.setText(Messages.getString(MessageIds.GDE_MSGT2286));\n\t\t\t\t\t\tthis.backupButton.setEnabled(false);\n\t\t\t\t\t\tthis.backupButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"backupButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.prepareFileSaveDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2285), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), StringHelper.getDateAndTime(\"yyyy-MM-dd-HH-mm-ss\") + GDE.STRING_UNDER_BAR //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.device.getName() + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getIdentifierName());\n\t\t\t\t\t\t\t\tString configFilePath = fileDialog.open();\n\t\t\t\t\t\t\t\tif (configFilePath != null && fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\tif (FileUtils.checkFileExist(configFilePath)) {\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES != UltraDuoPlusDialog.this.application.openYesNoMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGI0007, new Object[] { configFilePath }))) {\n\t\t\t\t\t\t\t\t\t\t\treturn;\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\tsaveConfigUDP(configFilePath);\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\tthis.closeButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData writeButtonLData = new FormData();\n\t\t\t\t\t\twriteButtonLData.width = 118;\n\t\t\t\t\t\twriteButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\twriteButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\twriteButtonLData.right = new FormAttachment(1000, 1000, -21);\n\t\t\t\t\t\tthis.closeButton.setLayoutData(writeButtonLData);\n\t\t\t\t\t\tthis.closeButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.closeButton.setText(Messages.getString(MessageIds.GDE_MSGT2287));\n\t\t\t\t\t\tthis.closeButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"closeButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.dispose();\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\tthis.helpButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tthis.helpButton.setImage(SWTResourceManager.getImage(\"gde/resource/QuestionHot.gif\")); //$NON-NLS-1$\n\t\t\t\t\t\tFormData LoadButtonLData = new FormData();\n\t\t\t\t\t\tLoadButtonLData.width = 118;\n\t\t\t\t\t\tLoadButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tLoadButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tLoadButtonLData.right = new FormAttachment(1000, 1000, -158);\n\t\t\t\t\t\tthis.helpButton.setLayoutData(LoadButtonLData);\n\t\t\t\t\t\tthis.helpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"helpButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \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\tthis.boundsComposite.addPaintListener(new PaintListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void paintControl(PaintEvent evt) {\n\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"boundsComposite.paintControl() \" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} // end boundsComposite\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setLocation(getParent().toDisplay(getParent().getSize().x / 2 - 300, 100));\n\t\t\t\tthis.dialogShell.open();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setVisible(true);\n\t\t\t\tthis.dialogShell.setActive();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\tDisplay display = this.dialogShell.getDisplay();\n\t\t\tUltraDuoPlusDialog.log.log(Level.TIME, \"open dialog time = \" + StringHelper.getFormatedTime(\"ss:SSS\", (new Date().getTime() - openStartTime))); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\twhile (!this.dialogShell.isDisposed()) {\n\t\t\t\tif (!display.readAndDispatch()) display.sleep();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t}\n\t\tfinally {\n\t\t\tif (!GDE.shell.isDisposed()) {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.application.resetShellIcon();\n\t\t\t\tif (this.serialPort != null && this.serialPort.isConnected()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t\tfinally {\n\t\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void connect() {\n\t\tString portName = deviceLocation.getText();\n\n\t\t// Check the Bandwidth SelectionBox and convert them:\n\t\tint bandWidthIndex = bandWidthList.getSelectedIndex();\n\t\tswitch (bandWidthIndex) {\n\t\tcase 0:\n\t\t\tbandRate = 9600;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tbandRate = 19200;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbandRate = 38400;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tbandRate = 57600;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tbandRate = 115200;\n\t\t\tbreak;\n\t\t}\n\n\t\t// System Print Line: Connection information:\n\t\tlog.write(\"##############################\");\n\t\tlog.write(\"System Message: Trying to connect to:\" + portName\n\t\t\t\t+ \" with \" + bandRate + \" Bandwidth\");\n\n\t\t// Try to connect gameUi Class with specific device location and\n\t\t// bandwidth:\n\t\tif (!gameUi.connectSerial(portName, bandRate, this.log)) {\n\n\t\t\t// If Connection fails, shows an Error Message\n\t\t\tlog.write(\"System Message: Fails to connect to:\"\n\t\t\t\t\t+ portName + \" with \" + bandRate + \" Bandwidth\");\n\t\t\tlog.write(\"##############################\");\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Can't connect to this device, please check again.\",\n\t\t\t\t\t\"Connection Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t} else {\n\n\t\t\t// If Connection Success, then hide this connection Ui and\n\t\t\t// Change into GameUi:\n\t\t\tlog.write(\"System Message: Connect to:\" + portName\n\t\t\t\t\t+ \" with \" + bandRate + \" Bandwidth Seccessesfully\");\n\t\t\tlog.write(\"##############################\");\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Device Connected, have fun! :)\",\n\t\t\t\t\t\"Connection Success\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\tthis.setVisible(false);\n\t\t\tgameUi.setVisible(true);\n\t\t}\n\n\t}",
"public void ConnectUsb(View view) {\n \tSpinner UsbListSpinner = (Spinner) findViewById(R.id.usb_list_spinner);\n \tString VendorName = \"Dummy\";\n \tString ProductName = \"Dummy\";\n \tTextView textView = (TextView) findViewById(R.id.usb_list_view);\n \tString UsbList = (String) textView.getText();\n // Retrieve the UsbManager service with its message\n UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);\n PendingIntent mPermissionIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n\n HashMap<String, UsbDevice> deviceList = manager.getDeviceList();\n Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();\n while(deviceIterator.hasNext()){\n UsbDevice device = deviceIterator.next();\n String SelectedText = String.valueOf(UsbListSpinner.getSelectedItem());\n int Vid = device.getVendorId();\n \n \n switch (Vid) {\n case 2372:\n \tVendorName = \"KORG, Inc.\";\n \tProductName = \"nanoKONTROL studio controller\";\n \tbreak;\t\n case 2235:\n \tVendorName = \"Texas Instruments Japan\";\n \tProductName = \"PCM2900 Audio Codec\";\n \tbreak;\n default:\n\t\t\t\t// do nothing.\n\t\t\t\tbreak;\t\n }\n \n String IteratorText = VendorName+\"\\t\"+ProductName;\n// UsbList=UsbList.concat(\"\\n Selected:\" + SelectedText);\n// UsbList=UsbList.concat(\"\\n Device:\" + IteratorText);\n if(SelectedText.equalsIgnoreCase(IteratorText)){\n \tmanager.requestPermission(device, mPermissionIntent);\n// \tToast.makeText(view.getContext(), \n// \t\t\t\"OnItemSelectedListener : \" + String.valueOf(device.getDeviceName()),\n// \t\t\tToast.LENGTH_SHORT).show();\n }\n }\n textView.setText(UsbList);\n }",
"public void connect(View v) {\n turnOn(v);\n startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));\n Toast.makeText(getApplicationContext(), \"Select device\", Toast.LENGTH_LONG).show();\n System.err.println(bluetoothAdapter.getBondedDevices());\n }",
"int getSnPort();",
"int getSnPort();",
"public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }",
"private void connectDevice(String address) {\n// // Get the device MAC address\n BluetoothDevice device = mBtAdapter.getRemoteDevice(address);\n// // Attempt to connect to the device\n mChatService.connect(device, true);\n }",
"private void updateBaseSetup() throws IOException, TimeOutException, SerialPortException {\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_ENTRY);\n\t\tif (this.ultraDuoPlusSetup != null) {\n\t\t\tif (this.ultraDuoPlusSetup.getChannelData1() == null || !this.ultraDuoPlusSetup.getChannelData1().isSynced()) {\n\t\t\t\tChannelData1 channelData1 = new ObjectFactory().createUltraDuoPlusTypeChannelData1();\n\t\t\t\tchannelData1.setValue(this.serialPort.readChannelData(1));\n\t\t\t\tthis.ultraDuoPlusSetup.setChannelData1(channelData1);\n\t\t\t}\n\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 && (this.ultraDuoPlusSetup.getChannelData2() == null || !this.ultraDuoPlusSetup.getChannelData2().isSynced())) {\n\t\t\t\tChannelData2 channelData2 = new ObjectFactory().createUltraDuoPlusTypeChannelData2();\n\t\t\t\tchannelData2.setValue(this.serialPort.readChannelData(2));\n\t\t\t\tthis.ultraDuoPlusSetup.setChannelData2(channelData2);\n\t\t\t}\n\t\t\tthis.device.convert2IntArray(this.channelValues1, this.ultraDuoPlusSetup.channelData1.getValue());\n\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\tthis.device.convert2IntArray(this.channelValues2, this.ultraDuoPlusSetup.channelData2.getValue());\n\t\t\t}\n\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINEST)) {\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_CHANNEL_1_SETUP; i++) {\n\t\t\t\t\tsb.append(this.channelValues1[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t}\n\t\t\t\tsb.append(\" : \");//$NON-NLS-1$\n\t\t\t\tfor (int i = 0; this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 && i < UltramatSerialPort.SIZE_CHANNEL_2_SETUP; i++) {\n\t\t\t\t\tsb.append(this.channelValues2[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t}\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, sb.toString());\n\t\t\t}\n\n\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"add handler\"); //$NON-NLS-1$\n\t\t\t\t//don't need a change listener handler for baseDeviceSetupGroup and baseDeviceSetupGroup1, it will always written to sync date and time\n\t\t\t\tthis.baseDeviceSetupGroup2.addListener(SWT.Selection, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"baseDeviceSetupComposite2.handleEvent, channelValues2[\" + evt.index + \"] changed\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\tChannelData2 value = new ChannelData2();\n\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues2));\n\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData2(value);\n\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getChannelData2().setChanged(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_CHANNEL_1_SETUP; i++) {\n\t\t\tif (this.channelParameters[i] != null) {\n\t\t\t\tthis.channelParameters[i].setSliderSelection(this.channelValues1[i]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 && i < UltramatSerialPort.SIZE_CHANNEL_2_SETUP; i++) {\n\t\t\tif (this.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + i] != null) {\n\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + i].setSliderSelection(this.channelValues2[i]);\n\t\t\t}\n\t\t}\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_EXIT);\n\t}",
"public void openConnection() throws SerialConnectionException\n {\n\n\t// Obtain a CommPortIdentifier object for the port you want to open.\n\ttry\n\t{\n ezlink.info(\"openConnection Request received in \" + SerialConnection.class.getName());\n ezlink.info(\"PortName= : \"+parameters.getPortName());\n\t\tSystem.out.println(\"PortName=\"+parameters.getPortName());\n\t portId =\n\t\t CommPortIdentifier.getPortIdentifier(parameters.getPortName());\n\t} catch (NoSuchPortException e) {\n ezlink.error(new Object(), e);\n\t throw new SerialConnectionException(e.getMessage());\n\t}\n\n\t// Open the port represented by the CommPortIdentifier object. Give\n\t// the open call a relatively long timeout of 30 seconds to allow\n\t// a different application to reliquish the port if the user\n\t// wants to.\n\ttry {\n\t\tSystem.out.println(\"Owner=\"+portId.getCurrentOwner());\n ezlink.info(\"Owner= : \"+portId.getCurrentOwner());\n\t sPort = (SerialPort)portId.open(parameters.getPortName(), 3000);\n ezlink.info(\"connection opened!! \");\n\t System.out.println(\"connection opened\");\n\t} catch (Exception e) {\n ezlink.error(new Object(), e);\n\t throw new SerialConnectionException(e.getMessage());\n\t}\n\n\t// Set the parameters of the connection. If they won't set, close the\n\t// port before throwing an exception.\n\ttry {\n\t setConnectionParameters();\n\t} catch (SerialConnectionException e) {\n ezlink.info(\"setConnectionParameters(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw e;\n\t}\n\n\t// Open the input and output streams for the connection. If they won't\n\t// open, close the port before throwing an exception.\n\ttry {\n\t\tSystem.out.println(\"Before Streams\");\n ezlink.info(\"Before Streams: \");\n\t os = sPort.getOutputStream();\n\t is = sPort.getInputStream();\n\t} catch (IOException e) {\n System.out.println(\"openConnection : IOException : sPort.getOutputStream()\");\n e.printStackTrace();\n ezlink.info(\"Streams(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw new SerialConnectionException(\"Error opening i/o streams\");\n\t}\n\n\t// Add this object as an event listener for the serial port.\n\ttry {\n\t sPort.addEventListener(this);\n\t} catch (TooManyListenersException e) {\n System.out.println(\"openConnection : TooManyListenersException : sPort.addEventListener(this)\");\n e.printStackTrace();\n ezlink.info(\"addEventListener(): \");\n ezlink.error(new Object(), e);\n\t sPort.close();\n\t throw new SerialConnectionException(\"too many listeners added\");\n\t}\n\n\t// Set notifyOnDataAvailable to true to allow event driven input.\n\tsPort.notifyOnDataAvailable(true);\n\n\t// Set notifyOnBreakInterrup to allow event driven break handling.\n\tsPort.notifyOnBreakInterrupt(true);\n\n\t// Set receive timeout to allow breaking out of polling loop during\n\t// input handling.\n\ttry {\n\t sPort.enableReceiveTimeout(30);\n\t} catch (UnsupportedCommOperationException e) {\n System.out.println(\"openConnection : UnsupportedCommOperationException : sPort.enableReceiveTimeout(30)\");\n e.printStackTrace();\n ezlink.info(\"UnsupportedCommOperationException(): \");\n ezlink.error(new Object(), e);\n\t}\n\n\t// Add ownership listener to allow ownership event handling.\n\tportId.addPortOwnershipListener(this);\n\topen = true;\n\n\n }",
"public void connectToAccessory() {\n\t\tif (mConnection != null)\n\t\t\treturn;\n\n\t\tif (getIntent().hasExtra(BTDeviceListActivity.EXTRA_DEVICE_ADDRESS)) {\n\t\t\tString address = getIntent().getStringExtra(\n\t\t\t\t\tBTDeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\t\t\tLog.i(ADK.TAG, \"want to connect to \" + address);\n\t\t\tmConnection = new BTConnection(address);\n\t\t\tperformPostConnectionTasks();\n\t\t} else {\n\t\t\t// assume only one accessory (currently safe assumption)\n\t\t\tUsbAccessory[] accessories = mUSBManager.getAccessoryList();\n\t\t\tUsbAccessory accessory = (accessories == null ? null\n\t\t\t\t\t: accessories[0]);\n\t\t\tif (accessory != null) {\n\t\t\t\tif (mUSBManager.hasPermission(accessory)) {\n\t\t\t\t\topenAccessory(accessory);\n\t\t\t\t} else {\n\t\t\t\t\t// synchronized (mUsbReceiver) {\n\t\t\t\t\t// if (!mPermissionRequestPending) {\n\t\t\t\t\t// mUsbManager.requestPermission(accessory,\n\t\t\t\t\t// mPermissionIntent);\n\t\t\t\t\t// mPermissionRequestPending = true;\n\t\t\t\t\t// }\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Log.d(TAG, \"mAccessory is null\");\n\t\t\t}\n\t\t}\n\n\t}",
"@Action\n public void showSerialBox()\n {\n int answer;\n\n // Get current gateway settings\n String portName = swapDmt.getPortName();\n int portSpeed = swapDmt.getPortSpeed();\n\n SerialPanel serialPanel = new SerialPanel(portName, portSpeed);\n answer = JOptionPane.showConfirmDialog(null, serialPanel, \"Serial port\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n\n if (answer == JOptionPane.OK_OPTION)\n {\n portName = serialPanel.getPortName();\n if ((portSpeed = serialPanel.getPortSpeed()) < 0)\n {\n JOptionPane.showMessageDialog(null, \"Please enter a valid baud rate\");\n return;\n }\n swapDmt.setSerialParams(portName, portSpeed);\n }\n }",
"private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n } catch (IOException e) {\n Log.d(TAG,\"bluetooth socket create fail.\");\n }\n //save resource by cancel discovery\n btAdapter.cancelDiscovery();\n\n //connect\n try {\n btSocket.connect();\n Log.d(TAG,\"Connection established.\");\n } catch ( IOException e) {\n try {\n btSocket.close();\n }catch (IOException e2) {\n Log.d(TAG,\"unable to close socket after connect fail.\");\n }\n }\n\n //prepare outStream to send message\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n Log.d(TAG,\"output stream init fail!\");\n }\n\n }",
"private void connectDevice(Tl1Device device) {\n try {\n // Add device to TL1 controller\n DeviceId deviceId = DeviceId.deviceId(\n new URI(Tl1DeviceConfig.TL1, device.ip() + \":\" + device.port(), null));\n\n if (controller.addDevice(deviceId, device)) {\n SparseAnnotations ann = DefaultAnnotations.builder()\n .set(AnnotationKeys.PROTOCOL, Tl1DeviceConfig.TL1.toUpperCase())\n .build();\n // Register device in the core with default parameters and mark it as unavailable\n DeviceDescription dd = new DefaultDeviceDescription(deviceId.uri(),\n Device.Type.SWITCH,\n UNKNOWN, UNKNOWN,\n UNKNOWN, UNKNOWN,\n new ChassisId(),\n false, ann);\n providerService.deviceConnected(deviceId, dd);\n }\n } catch (URISyntaxException e) {\n log.error(\"Skipping device {}\", device, e);\n }\n }",
"public void Main( String[] Arguments) throws UnsupportedCommOperationException, PortInUseException, IOException\n\t{\n\t\tString Device = \"/dev/cu.usbserial-A1048A6Y\";\n\t\tint BaudRate = 9600;\n\n\t\tif( Arguments.length > 0)\n\t\t{\n\t\t\tDevice = Arguments[ 0];\n\t\t}\n\n\t\tSystem.out.println( \"Available ports: \" + Ports.ports());\n\n\t\tSerialPort UsePort = Ports.openPort( Device);\n\n\t\tUsePort.setFlowControlMode( SerialPort.FLOWCONTROL_NONE);\n\t\tUsePort.setSerialPortParams( BaudRate, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,\n\t\t\t\t\t\t\t\t\t\t\t SerialPort.PARITY_NONE);\n\n\t\twhile( true)\n\t\t{\n\t\t\tUsePort.getOutputStream().write( \"Switches On Off On Off On Off On\\n\".getBytes());\n\t\t\tUsePort.getOutputStream().write( \"Switches Off On Off On Off On Off\\n\".getBytes());\n\t\t}\n\n//\t\tUsePort.close();\n }",
"public int getPort(){\r\n return localPort;\r\n }",
"public int getPort(){\r\n return localPort;\r\n }",
"public void initBT() {\n\n\t\tStatusBox.setText(\"Connecting...\");\n\t\tLog.e(TAG, \"Connecting...\");\n\t\t\n\t\tif (D) {\n\t\t\tLog.e(TAG, \"+ ON RESUME +\");\n\t\t\tLog.e(TAG, \"+ ABOUT TO ATTEMPT CLIENT CONNECT +\");\n\t\t}\n\t\t\n\t\t//If Mac Address is null then stop this process and display message\n\t\tif(MAC_ADDRESS == \"\"){\n\t\t\tLog.e(TAG,\"No MAC Address Found...\");\n\t\t\tToast.makeText(getApplicationContext(), \"No Mac Address found. Please Enter using button.\",Toast.LENGTH_SHORT );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// When this returns, it will 'know' about the server,\n\t\t// via it's MAC address.\n\t\tBluetoothDevice device = null;\n\t\ttry {\n\t\t\tdevice = mBluetoothAdapter.getRemoteDevice(MAC_ADDRESS);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"NOT Valid BT MAC Address\", Toast.LENGTH_SHORT);\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// returns firefly e350\n\t\tLog.e(TAG, \"device name: \" + device.getName());\n\n\t\t// We need two things before we can successfully connect\n\t\t// (authentication issues aside): a MAC address, which we\n\t\t// already have, and an RFCOMM channel.\n\t\t// Because RFCOMM channels (aka ports) are limited in\n\t\t// number, Android doesn't allow you to use them directly;\n\t\t// instead you request a RFCOMM mapping based on a service\n\t\t// ID. In our case, we will use the well-known SPP Service\n\t\t// ID. This ID is in UUID (GUID to you Microsofties)\n\t\t// format. Given the UUID, Android will handle the\n\t\t// mapping for you. Generally, this will return RFCOMM 1,\n\t\t// but not always; it depends what other BlueTooth services\n\t\t// are in use on your Android device.\n\t\ttry {\n\t\t\t\n\t\t\tint currentapiVersion = android.os.Build.VERSION.SDK_INT;\n\t\t\t\n\t\t\t//RFCOMM connection varies depending on android version. Fixes bug in Gingerbread and newer where always asks for BT Pairing code.\n\t\t\tif (currentapiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android >= 2.3.3\n\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t} else if (currentapiVersion < android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android < 2.3.3\n\t\t\t\tbtSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t}\n\t\t\t\n\t\t\tLog.e(TAG, \"ON RESUME: Socket created!\");\n\t\t\n\t\t\n\t\t\t// Discovery may be going on, e.g., if you're running a\n\t\t\t// 'scan for devices' search from your handset's Bluetooth\n\t\t\t// settings, so we call cancelDiscovery(). It doesn't hurt\n\t\t\t// to call it, but it might hurt not to... discovery is a\n\t\t\t// heavyweight process; you don't want it in progress when\n\t\t\t// a connection attempt is made.\n\t\t\tmBluetoothAdapter.cancelDiscovery();\n\n\t\t\tmyBT = new ConnectedThread(btSocket);\n\t\t\t\n\t\t\t\n\t\t\t// don't write to the streams unless they are created\n\t\t\tif (myBT.BTconnStatus) {\n\t\t\t\t\n\t\t\t\tStatusBox.setText(\"CONNECTED\");\n\t\t\t\tLog.e(TAG, \"CONNECTED\");\n\t\t\t\t\n\t\t\t\t// ST,255 enables remote configuration forever...need this if\n\t\t\t\t// resetting\n\t\t\t\t// PIO4 is held high on powerup then toggled 3 times to reset\n\n\t\t\t\t// GPIO Commands to BT device page 15 of commands datasheet\n\t\t\t\tbyte[] cmdMode = { '$', '$', '$' };\n\t\t\t\tmyBT.write(cmdMode);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S@,8080 temp sets GPIO-7 to an output\n\t\t\t\tbyte[] cmd1 = { 'S', '@', ',', '8', '0', '8', '0', 13 };\n\n\t\t\t\t// S%,8080 perm sets GPIO-7 to an output on powerup. only done once\n\t\t\t\t// byte [] cmd1 = {'S','%',',','8','0','8','0',13};\n\n\t\t\t\tmyBT.write(cmd1);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S&,8000 drives GPIO-7 low\n\t\t\t\t// byte [] cmd2 = {'S','^',',','8','0','0','0',13};\n\n\t\t\t\t// make it so cmd mode won't timeout even after factory reset\n\t\t\t\tbyte[] cmd3 = { 'S', 'T', ',', '2', '5', '5', 13 };\n\t\t\t\tmyBT.write(cmd3);\n\t\t\t\tmyBT.run();\n\n\t\t\t} else {\n\t\t\t\t//StatusBox.setText(\"NOT Connected\");\t\n\t\t\t\tLog.e(TAG, \"NOT Connected\");\n\t\t\t}\n\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\tif (D)\n\t\t\t\tLog.e(TAG, \"ON RESUME: Socket creation failed.\", e);\n\t\t}\n\n\t\t\n\t\t\n\t}",
"public OpenToLANConfig() {\n this.port = 0;\n this.delayBetweenPings = Duration.of(1500, TimeUnit.MILLISECOND);\n this.delayBetweenEvent = Duration.of(30, TimeUnit.SECOND);\n }",
"public void connect() throws CcException\n {\n try\n {\n CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(portName);\n\n if (portIdentifier.isCurrentlyOwned())\n throw new CcException(\"Serial port \" + portName + \" is currently in use\");\n else\n {\n CommPort commPort = portIdentifier.open(this.getClass().getName(), 5000);\n if (commPort instanceof SerialPort)\n {\n serialPort = (SerialPort) commPort;\n serialPort.setSerialPortParams(baudRate, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);\n serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);\n\n in = serialPort.getInputStream();\n out = serialPort.getOutputStream();\n out.flush();\n\n /**\n * Create serialport reader\n */\n commReader = new CommPortReader(gateway, in);\n serialPort.addEventListener(commReader);\n serialPort.notifyOnDataAvailable(true);\n\n /**\n * Create serialport writer\n */\n commWriter = new CommPortWriter(out);\n commWriter.start();\n }\n else\n throw new CcException(portName + \" is not a valid serial port\");\n }\n }\n catch (TooManyListenersException ex)\n {\n throw new CcException(\"TooManyListenersException: \" + ex.getMessage());\n }\n catch (IOException ex)\n {\n throw new CcException(\"IOException: \" + ex.getMessage());\n }\n catch (UnsupportedCommOperationException ex)\n {\n throw new CcException(\"UnsupportedCommOperationException: \" + ex.getMessage());\n }\n catch (PortInUseException ex)\n {\n throw new CcException(\"PortInUseException: \" + ex.getMessage());\n }\n catch (NoSuchPortException ex)\n {\n throw new CcException(\"NoSuchPortException: \" + portName);\n }\n }",
"public void connDevice(String address) {\n MokoSupport.getInstance().connDevice(this, address, this);\n }",
"private void bluetooth_connect_device() throws IOException\n {\n try\n {\n myBluetooth = BluetoothAdapter.getDefaultAdapter();\n address = myBluetooth.getAddress();\n pairedDevices = myBluetooth.getBondedDevices();\n if (pairedDevices.size()>0)\n {\n for(BluetoothDevice bt : pairedDevices)\n {\n address=bt.getAddress().toString();name = bt.getName().toString();\n Toast.makeText(getApplicationContext(),\"Connected\", Toast.LENGTH_SHORT).show();\n\n }\n }\n\n }\n catch(Exception we){}\n myBluetooth = BluetoothAdapter.getDefaultAdapter();//get the mobile bluetooth device\n BluetoothDevice dispositivo = myBluetooth.getRemoteDevice(address);//connects to the device's address and checks if it's available\n btSocket = dispositivo.createInsecureRfcommSocketToServiceRecord(myUUID);//create a RFCOMM (SPP) connection\n btSocket.connect();\n try { t1.setText(\"BT Name: \"+name+\"\\nBT Address: \"+address); }\n catch(Exception e){}\n }",
"public void setup() {\n try {\n serialPort = (SerialPort) comport.open(\"SimpleReadApp\", 2000);\n serialPort.addEventListener(this);\n serialPort.notifyOnDataAvailable(true);\n serialPort.setSerialPortParams(115200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);\n \n serialPort.notifyOnOutputEmpty(false); // true\n\n //serialPort.enableReceiveTimeout(1);\n\n outputStream = serialPort.getOutputStream();\n inputStream = serialPort.getInputStream();\n } catch (Exception e) {\n \n }\n }",
"private void connect() throws Exception {\n\n Log.i(TAG, \"Attempting connection to \" + address + \"...\");\n\n // Get this device's Bluetooth adapter\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n if ((adapter == null) || (!adapter.isEnabled())){\n throw new Exception(\"Bluetooth adapter not found or not enabled!\");\n }\n\n // Find the remote device\n BluetoothDevice remoteDevice = adapter.getRemoteDevice(address);\n\n // Create a socket with the remote device using this protocol\n socket = remoteDevice.createRfcommSocketToServiceRecord(uuid);\n\n // Make sure Bluetooth adapter is not in discovery mode\n adapter.cancelDiscovery();\n\n // Connect to the socket\n socket.connect();\n\n\n // Get input and output streams from the socket\n outStream = socket.getOutputStream();\n inStream = socket.getInputStream();\n\n Log.i(TAG, \"Connected successfully to \" + address + \".\");\n }",
"private void connectToAdapter() {\n if (chosen) {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n // creation and connection of a bluetooth socket\n try {\n BluetoothSocket socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n setBluetoothSocket(socket);\n connected = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n connect.setText(\"Disconnect\");\n connect.setTextColor(Color.RED);\n }\n });\n } catch (IOException e) {\n Log.d(\"Exception\", \"Bluetooth IO Exception c\");\n connected = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(currContext, R.string.cannotConnect, Toast.LENGTH_SHORT).show();\n connect.setText(\"Connect\");\n connect.setTextColor(Color.BLACK);\n mode.setEnabled(true);\n }\n });\n }\n }\n if (bluetoothSocket.getRemoteDevice().getAddress() != null)\n Log.d(TAG, \"Bluetooth connected\");\n Log.d(TAG, \"Device address: \" + bluetoothSocket.getRemoteDevice().getAddress());\n initializeCom();\n }",
"public SerialPort iniciarSerial() throws IOException {\n List<String> portsNames = SerialPort.getAvailablePortsNames();\n // Get a new instance of SerialPort by opening a port.\n SerialPort p = SerialPort.open(portsNames.get(1));\n try { \n // Configure the connection\n p.setTimeout(100);\n p.setConfig(BaudRate.B115200, Parity.NONE, StopBits.ONE, DataBits.D8);\n } catch (IOException ex) {\n System.err.println(ex);\n }\n try {\n Thread.sleep(2000);\n } catch (InterruptedException ex) {\n System.err.println(ex);\n }\n return p;\n }",
"public RobotSerial() {\n// Log.serial(\"Opening serial port\");\n// System.out.println(Arrays.toString(SerialPort.getCommPorts()));\n// port = SerialPort.getCommPort(\"/dev/ttyACM0\");\n// port.setBaudRate(1000000);\n// port.setNumStopBits(2);\n// port.openPort();\n// Thread thread = new Thread(() -> {\n// try {\n// while (true)\n// {\n// while (port.bytesAvailable() == 0)\n// Thread.sleep(20);\n//\n// byte[] readBuffer = new byte[port.bytesAvailable()];\n// int numRead = port.readBytes(readBuffer, 1);\n// System.out.println(\"Read \" + numRead + \" bytes.\");\n// char newChar = (char) readBuffer[0];\n//\n// switch(newChar) {\n// case '>':\n// Log.arduino(\"Reading command from Arduino\");\n// state = state.READING_COMMAND;\n// continue;\n// case ':':\n// Log.arduino(\"Reading payload from Arduino\");\n// state = State.READING_PAYLOAD;\n// continue;\n// case ';':\n// Log.arduino(\"Executing command and payload from Arduino\");\n// state = State.EXECUTE;\n// break;\n// }\n//\n// switch(state) {\n// case READING_COMMAND:\n// command = command + newChar;\n// break;\n// case READING_PAYLOAD:\n// payload = payload + newChar;\n// break;\n// case EXECUTE:\n// Log.arduino(\"NEW COMMAND: \" + command);\n// Log.arduino(\"PAYLOAD: \" + payload);\n// executeCommand();\n// command = \"\";\n// payload = \"\";\n// state = State.IDLE;\n// break;\n// }\n// }\n// } catch (Exception e) { e.printStackTrace(); }\n// });\n// thread.start();\n }",
"public void switchSmart(){\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseBrightnessCmd(seekBarBrightness.getProgress()), 3, seekBarBrightness.getProgress(), item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n //String CMD_HSV = \"{\\\"id\\\":1,\\\"method\\\":\\\"set_hsv\\\",\\\"params\\\":[0, 0, \\\"smooth\\\", 30]}\\r\\n\";\r\n //write(CMD_HSV, 0, 0);\r\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(Color.WHITE)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n }",
"public export.serializers.avro.DeviceInfo.Builder setSerialPort(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.serialPort = value;\n fieldSetFlags()[5] = true;\n return this;\n }",
"void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}",
"public void onClick_setup(View v) {\n byte[] cmd_bytes = new byte[8];\n cmd_bytes[0] = 0x3C;\n cmd_bytes[1] = 0x53;\n cmd_bytes[2] = 0x30;\n cmd_bytes[3] = 0x00;\n cmd_bytes[4] = 0x00;\n cmd_bytes[5] = 0x00;\n cmd_bytes[6] = 0x00;\n cmd_bytes[7] = 0x3E;\n mBluetoothLeService.writeCharacteristic(getWriteGattCharacteristic(), cmd_bytes);\n }",
"public void openUsbDevice() {\n tryGetUsbPermission();\n }",
"public final String getSerial(){\n return this.peripheralSerial;\n }",
"private void connectToNS(int port, String host)throws Exception{\n boolean gotSList = false;\n socket = new Socket(host, port);\n outStream = new PDUOutputStream(socket.getOutputStream());\n inStream = new PDUInputStream(socket.getInputStream());\n\n PduGetList getList = new PduGetList();\n outStream.writeToServer(getList.getByteArray());\n\n while(!gotSList) {\n if (!inStream.streamIsEmpty()) {\n Pdu inPDU = inStream.readPdu();\n socket.close();\n inPDU.print();\n gotSList = true;\n }\n }\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"ip-address: \");\n host = s.nextLine();\n checkInput(host);\n System.out.println(\"Port: \");\n port = s.nextInt();\n checkInput(String.valueOf(port));\n\n connectToCS(port, host);\n }",
"int getS1Port();",
"@Override\n\tpublic void configureWifi(String ssid, String pwd) throws RemoteException {\n\t model.execute(\"CONNECT\", ssid, pwd);\n\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n passwordEditTextValue = edittext.getText().toString() + \"\\n\";\n\n byte[] bytes = passwordEditTextValue.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 1000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"public void setTextPort(int port);",
"public void ConfigurePort() {\n\n final String TAG = \"Configure Port Output\";\n try {\n gpioPort = super.service.openGpio(this.gpioPortName);\n // Step 2. Configure as an output.\n gpioPort.setDirection(this.direction);\n\n mHandler.post(mCallBackRunnable);\n } catch (IOException e) {\n Log.e(TAG, \"Error on PeripheralIO API\", e);\n }\n }",
"public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }",
"public boolean mConnect(String s) { //Find and mConnect to the bluetooth\n if (isBtOpen()==false)\n return false;\n if (isConnected(s))\n return true;\n if (bDevicePickerActive) return false; //Don't connect while picking device\n if (oDevice!=mBTDeviceByName(s)) mDisconnect();\n mDisconnect();\n oDevice=mBTDeviceByName(s);\n sDeviceName = s; //Set new device name\n oParent.mDeviceNameSet(s);\n if (mConnect2Device1(oDevice))\n return true;\n\n mStateSet(kBT_ConnectReq1);\n if (mBTOpen1()==false) { //If BT cannot be opened\n mStateSet(kBT_InvalidBT1);\n mErrMsg(\"No bluetooth port available\");\n return false;\n }\n if (mIsState(kBT_Connecting)) {\n mSleep(1000);\n if (oInput!=null)\n mStateSet(kBT_Connected1);\n else\n mStateSet(kBT_InvalidDevice1);\n return false;\n }\n if (oDevice==null) { //Device not found,\n oDevice=mBTDeviceByName(sDeviceName);\n if (oDevice==null){\n mStateSet(kBT_InvalidDevice1);\n mSleep(2000);\n }\n return false;\n }\n //set by mConnectDeviceWithName, mRequestConnection\n if (mIsState(kBT_ConnectReq1)) { //Try to connect first time\n if (mConnect2Device1(oDevice)==false) //mConnect sets mStateSet(kBT_DeviceConnected);\n mSleep(10);\n } else if (mIsState(cKonst.eSerial.kBT_BrokenConnection)) { //Try to reconnect\n mSleep(2000);\n bDoRedraw=true;\n return false;\n } else if (mIsState(kOverflow)){ //Fatal, overflow, donno what to do\n mConnectionStateClear();\n return false;\n } else {\n mSleep(2000); //Do nothing while connection was interrupted\n }\n return false;\n }",
"private static void setPort(Integer portNumber){\r\n RS232.portNumber=portNumber;\r\n }",
"public void setSerialPort(java.lang.CharSequence value) {\n this.serialPort = value;\n }",
"private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.setInput(new Input());\n device.setPrice(new Price());\n device.getPrice().setCurrency(\"usd\");\n device.setCritical(DeviceCritical.FALSE);\n }",
"boolean isPeripheralAccess();",
"private void initWirelessCommunication() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n showToast(\"BLE is not supported\");\n finish();\n } else {\n showToast(\"BLE is supported\");\n // Access Location is a \"dangerous\" permission\n int hasAccessLocation = ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n if (hasAccessLocation != PackageManager.PERMISSION_GRANTED) {\n // ask the user for permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_ACCESS_LOCATION);\n // the callback method onRequestPermissionsResult gets the result of this request\n }\n }\n // enable wireless communication alternative\n if (communicationAdapter == null || !communicationAdapter.isReadyToBeUsed()) {\n assert communicationAdapter != null;\n Intent enableWirelessCommunicationIntent = new Intent(communicationAdapter.actionRequestEnable());\n startActivityForResult(enableWirelessCommunicationIntent, REQUEST_ENABLE_BT);\n }\n }",
"public void setDevicePassword(String argPassword) {\n\tdevicePassword = argPassword;\n }",
"public static void setup() {\n Serial.begin(57600);\n while (!Serial.isOpen()) {\n ; // wait for serial port to connect. Needed for Leonardo only\n }\n Serial.println(\"Please start typing:\");\n }",
"public LWTRTPdu connectReq() throws IncorrectTransitionException;",
"private boolean ConnectKeyboard() throws IOException\n\t{\n\t\t// Standard Serial Port Service ID\n\t\tUUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\t\t\t\n\t\t\n\t\tmSocket = mDevice.createRfcommSocketToServiceRecord(uuid);\n\t\tmSocket.connect();\n\t\t\n\t\tif (mCommandManager != null)\n\t\t{\n\t\t\tShowToast(\"Already connected\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tmCommandManager = new CommandManager(this, mSocket);\n\t\treturn true;\n\t}",
"private void connectDevice(Intent data, boolean secure) {\n String address = data.getExtras()\n .getString(EXTRA_DEVICE_ADDRESS);\n // Get the BluetoothDevice object\n BluetoothDevice device = bluetoothAdapter.getRemoteDevice(address);\n // Attempt to connect to the device\n btService.connect(device, secure);\n }",
"@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"public void openConnection() {\n System.out.println(\"Opening connection...\");\n\n try {\n String HOST = \"192.168.4.1\";\n int PORT = 2323;\n connectionSocket = new Socket(HOST, PORT);\n connectionSocket.setTcpNoDelay(true);\n\n writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(connectionSocket.getOutputStream())));\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n\n System.out.println(\"openConnection(): Success\");\n return;\n } catch (UnknownHostException e) {\n System.out.println(\"UnknownHostException at openConnection()\");\n } catch (IOException e) {\n System.out.println(\"IOException at openConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at openConnection()\");\n System.out.println(e.toString());\n }\n\n System.out.println(\"Failed to connect\");\n }",
"private void connectToDevice(Intent data, boolean secure){\n Log.i(TAG, \"-- connect to device --\");\n if(data == null){Log.e(TAG, \"data is null\");}\n // Get the device MAC address\n String address = data.getExtras()\n .getString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\n Log.i(TAG, \"-- getting to device --\");\n // Get the BluetoothDevice object\n BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);\n\n Log.i(TAG, \"-- connecting to device to device --\");\n // Attempt to connect to the device\n if(mClientService == null){Log.e(TAG, \"bluetooth client service is null\");}\n mClientService.connect(device, secure);\n Log.i(TAG,\"-- after connection function\");\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tmsgText.setText(null);\n\t\t\tsendEdit.setText(null);\n\t\t\tif(sppConnected || devAddr == null)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t btSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n\t\t\t btSocket.connect();\n\t\t\t Log.d(tag,\"BT_Socket connect\");\n\t\t\t synchronized (MainActivity.this) {\n\t\t\t\tif(sppConnected)\n\t\t\t\t\treturn;\n\t\t\t\tbtServerSocket.close();\n\t\t\t\tbtIn = btSocket.getInputStream();\n\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\tconected();\n\t\t\t}\n\t\t\t Toast.makeText(MainActivity.this,\"藍牙裝置已開啟:\" + devAddr, Toast.LENGTH_LONG).show();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tsppConnected =false;\n\t\t\t\ttry{\n\t\t\t\t\tbtSocket.close();\n\t\t\t\t}catch(IOException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbtSocket = null;\n\t\t\t\tToast.makeText(MainActivity.this, \"連接異常\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}",
"public final void setDeviceKey(String key){\n peripheralKey = key;\n }",
"private void connectBluetooth() {\n try {\n if (blueTooth == null && macSet) {\n Log.d(\"lol\", \"macSet connect bluetooootooththoth\");\n blueTooth = new BluetoothConnection(macAddress, this, listener);\n blueTooth.connect();\n }\n } catch (Exception e) {\n Log.d(\"lol\", \"Failed connection: \" + e.getMessage() + \" \" + e.getClass());\n }\n }",
"protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }",
"public void connect(String ipAddr) {\n try {\n // Connect to specified Pi\n telnet.connect(ipAddr, usrID, passwrd);\n // Get input and output stream references\n in = telnet.getInputStream();\n out = new PrintStream(telnet.getOutputStream());\n // Log the user in\n readUntil(\"login: \");\n write(usrID);\n readUntil(\"Password: \");\n write(passwrd);\n // Advance to a prompt\n readUntil(prompt + \" \");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"abstract protected int PortToRunOn();",
"public void buzzer(boolean status){\r\n byte newSetting = 0;\r\n if (status){\r\n newSetting = 0x44;// bit 6=led, bit 2=buzzer\r\n }\r\n else { \r\n newSetting = 0; // all Off\r\n }\r\n cardReader.writeUserPort(handle,newSetting); \r\n }",
"public MARTE2_NI6259_DACSetup()\n\t{\n\t\tinitComponents();\n\t}",
"public void connectDevice(Computer comp) {\n\n\t\tcomp.connect();\n\t}",
"public interface SerialHelper {\n\n interface DeviceReadyListener{\n void OnDeviceReady(boolean deviceReadyStatus);\n }\n\n ArrayList<String> enumerateDevices();\n void connectDevice(String id, DeviceReadyListener deviceReadyListener);\n void disconnect();\n boolean isDeviceConnected();\n boolean writeString(String data);\n boolean writeBytes(byte[] data);\n byte readByte();\n}",
"private void connectToCS(int port, String host)throws Exception{\n socket = new Socket(host, port);\n inStream = new PDUInputStream(socket.getInputStream());\n outStream = new PDUOutputStream(socket.getOutputStream());\n\n PduJoin join = new PduJoin(nickName);\n outStream.writeToServer(join.getByteArray());\n\n chatCS();\n }",
"private void connectDevice(Intent data, boolean secure) {\n String address = data.getExtras()\n .getString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);\n BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);\n mChatService.connect(device, secure);\n }",
"public void setPIN (String PIN);",
"public void callSetCmd(){\n if(spinCmdValue.getSelectedItem().toString().equals(\"Select Value\")){\n Toast.makeText(getApplicationContext(),\"Please select value\",Toast.LENGTH_SHORT).show();\n return;\n }\n int floorNo = Integer.valueOf(String.valueOf(spinCmd.getSelectedItemPosition()));\n int a1 = 18;\n int a2 = 17;\n int a3 = 112;\n int a4 = 240 + floorNo;\n int a5 = Integer.parseInt(spinCmdValue.getSelectedItem().toString());\n int a6 = 00;\n\n int[] sendValChkSum = {a1, a2, a3, a4, a5, a6};\n String strChkSum = CalculateCheckSum.calculateChkSum(sendValChkSum);\n String asciiString = String.format(\"%04x\", a1).substring(2, 4) + String.format(\"%04x\", a2).substring(2, 4) + String.format(\"%04x\", a3).substring(2, 4) + String.format(\"%04x\", a4).substring(2, 4) + String.format(\"%04x\", a5).substring(2, 4) + String.format(\"%04x\", a6).substring(2, 4);\n asciiString = asciiString + strChkSum + \"\\r\";\n// Log.e(TAG, \"asciiString = \" + asciiString);\n\n if (isConnected()) {\n sendMessage(asciiString.getBytes());\n } else {\n Toast.makeText(getApplicationContext(), \"Connect to the device\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"public BluetoothPeripheral(long nativePeripheralHandle) {\n this.nativePeripheralHandle = nativePeripheralHandle;\n }",
"public ArduinoComm() {\r\n\t\tsetup();\r\n\t}",
"public void openReader(){\r\n handle = -1;\r\n try {\r\n cardReader = new ACR120U();\r\n } catch (java.lang.UnsatisfiedLinkError e) {\r\n e.printStackTrace();\r\n System.err.println(\"Are you sure the DLL is installed???\");\r\n message = \"DLL Installation problem.\";\r\n return;\r\n }\r\n handle = cardReader.open(ACR120U.ACR120_USB1); \r\n if (handle < 0){\r\n //message = \"Error opening reader [port may be in use or reader not in binary mode]\";\r\n message = \"No reader found\";\r\n System.err.println(message);\r\n return;\r\n }\r\n message = \"Device opened.\";\r\n }",
"public static void connect_devices(Context context, String deviceAddress, Choice choice, ExerciseMode exerciseMode, DeviceType deviceType, UUID exerciseID, UUID routineID) {\n TexTronicsManagerService.context = context;\n TexTronicsManagerService.deviceAddress = deviceAddress;\n TexTronicsManagerService.choice = choice;\n TexTronicsManagerService.exerciseMode = exerciseMode;\n TexTronicsManagerService.deviceType = deviceType;\n Intent intent = new Intent(context, TexTronicsManagerService.class);\n intent.putExtra(EXTRA_DEVICE, deviceAddress);\n intent.putExtra(EXTRA_MODE, exerciseMode);\n intent.putExtra(EXTRA_TYPE, deviceType);\n intent.putExtra(EXTRA_CHOICE, choice);\n intent.putExtra(EXTRA_EX_ID, exerciseID.toString());\n intent.putExtra(EXTRA_ROUTINE_ID, routineID.toString());\n intent.setAction(Action.connect.toString());\n context.startService(intent);\n }",
"public void InitLinuxStart() throws IOException {\n\t\ttry {\n\t\t\t/**\n\t\t\t * Path to the <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tString preferencesPath = System.getProperty(\"user.dir\");\n\n\t\t\t/**\n\t\t\t * Creates a <em>File</em> object to the\n\t\t\t * <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tFile preferences = new File(preferencesPath + \"/preferences.conf\");\n\n\t\t\t/**\n\t\t\t * <em>FileReader</em> object to read from the\n\t\t\t * <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tFileReader prefRead = new FileReader(preferences);\n\n\t\t\t/**\n\t\t\t * <em>BufferedReader</em> object to read lines from the\n\t\t\t * <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tBufferedReader prefer = new BufferedReader(prefRead);\n\n\t\t\t/**\n\t\t\t * <em>StringTokenizer</em> object which reads contents from the\n\t\t\t * <strong>preferences.conf</strong> file as tokens.\n\t\t\t */\n\t\t\tStringTokenizer token;\n\n\t\t\t/**\n\t\t\t * Contains lines reads from the <strong>preferences.conf</strong>\n\t\t\t * file.\n\t\t\t */\n\t\t\tString str = prefer.readLine();\n\t\t\ttoken = new StringTokenizer(str, \":\");\n\t\t\ttry {\n\t\t\t\ttoken.nextToken();\n\t\t\t\tString port = token.nextToken().trim();\n\t\t\t\t/*\n\t\t\t\t * portNumber is initialized here\n\t\t\t\t */\n\t\t\t\tportNumber = Integer.parseInt(port);\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tportNumber = 65530;\n\t\t\t}\n\t\t\tstr = prefer.readLine();\n\t\t\ttoken = new StringTokenizer(str, \":\");\n\t\t\ttry {\n\t\t\t\ttoken.nextToken();\n\t\t\t\tString autoRep = token.nextToken().trim();\n\n\t\t\t\t/*\n\t\t\t\t * The boolean variable AutoRepeat is initialized in the\n\t\t\t\t * following lines.\n\t\t\t\t */\n\t\t\t\tif (Integer.parseInt(autoRep) == 1) {\n\t\t\t\t\tAutoRepeat = true;\n\t\t\t\t} else if (Integer.parseInt(autoRep) == 0) {\n\t\t\t\t\tAutoRepeat = false;\n\t\t\t\t} else {\n\t\t\t\t\tAutoRepeat = true;\n\t\t\t\t}\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tAutoRepeat = true;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * If the file preferences.conf is not present, initialize it to\n\t\t\t * default values.\n\t\t\t */\n\t\t} catch (FileNotFoundException f) {\n\t\t\tportNumber = 65530;\n\t\t\tAutoRepeat = true;\n\t\t}\n\n\t\t/*\n\t\t * Initialize the socket variable here.\n\t\t */\n\t\ttry {\n\t\t\tsocket = new ServerSocket(portNumber);\n\t\t} catch (BindException e) {\n\n\t\t\t/*\n\t\t\t * This displays a message box which notifies if another instance of\n\t\t\t * indic-keyboards is already running on the specified port.\n\t\t\t */\n\t\t\tDisplay display = Display.getCurrent();\n\t\t\tShell shell = new Shell(display);\n\t\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK\n\t\t\t\t\t| SWT.ICON_ERROR);\n\t\t\tmessageBox.setText(\"Duplicate Instance\");\n\t\t\tmessageBox.setMessage(\"There is already an instance of indic-keyboards running. \"\n\t\t\t\t\t\t\t+ \"Close it first. If \"\n\t\t\t\t\t\t\t+ \"another instance isn't running, close any connections on port \"\n\t\t\t\t\t\t\t+ portNumber\n\t\t\t\t\t\t\t+ \" and try again.\"\n\t\t\t\t\t\t\t+ \" Alternatively, you can view the preferences.conf file to check the\"\n\t\t\t\t\t\t\t+ \" port number.\");\n\t\t\tmessageBox.open();\n\t\t\tshell.dispose();\n\t\t\tSystem.exit(0);\n\n\t\t}\n\t\t/*\n\t\t * Contains the pid of the JVM which runs indic-keyboards. This can be\n\t\t * used to kill the JVM in case indic-keyboards stops responding.\n\t\t */\n\t\tString pid = ManagementFactory.getRuntimeMXBean().getName();\n\t\tint index = pid.indexOf(\"@\");\n\n\t\t/*\n\t\t * Debug messages which will be shown on the console\n\t\t */\n\t\tSystem.out.println(\"This is the process ID : \"\n\t\t\t\t+ pid.substring(0, index));\n\t\tSystem.out.println(\"indic-keyboards listening on port \"\n\t\t\t\t+ socket.getLocalPort());\n\t\tif (AutoRepeat == false) {\n\t\t\tSystem.out.println(\"Auto Repeat is turned OFF\");\n\t\t}\n\t\tif (AutoRepeat == true) {\n\t\t\tSystem.out.println(\"Auto Repeat is turned ON\");\n\t\t}\n\n\t\t/*\n\t\t * Get the name of the main thread.\n\t\t */\n\t\tSystem.out.println(Thread.currentThread().getName());\n\n\t\t/*\n\t\t * The following lines creates a new thread which will run the key\n\t\t * logger. The key presses are monitored by this thread. The thread is\n\t\t * named as \"Key Monitor\"\n\t\t */\n\t\tRunnable r = new KeyMonitor();\n\t\tThread t = new Thread(r);\n\t\tt.setName(\"Key Monitor\");\n\t\tt.start();\n\t}",
"public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}",
"public void initialize() {\n \n CommPortIdentifier portId = null;\n\t\tEnumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n\t\t//First, Find an instance of serial port as set in PORT_NAMES.\n\t\twhile (portEnum.hasMoreElements()) {\n\t\t\tCommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\t\t\tfor (String portName : PORT_NAMES) {\n\t\t\t\tif (currPortId.getName().equals(portName)) {\n\t\t\t\t\tportId = currPortId;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (portId == null) {\n\t\t\tSystem.out.println(\"Could not find COM port.\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t// open serial port, and use class name for the appName.\n\t\t\tserialPort = (SerialPort) portId.open(this.getClass().getName(),\n\t\t\t\t\tTIME_OUT);\n\n\t\t\t// set port parameters\n\t\t\tserialPort.setSerialPortParams(DATA_RATE,\n\t\t\t\t\tSerialPort.DATABITS_8,\n\t\t\t\t\tSerialPort.STOPBITS_1,\n\t\t\t\t\tSerialPort.PARITY_NONE);\n\n\t\t\t// open the streams\n\t\t\tinput = new BufferedReader(new InputStreamReader(serialPort.getInputStream()));\n\t\t\toutput = serialPort.getOutputStream();\n\n\t\t\t// add event listeners\n\t\t\tserialPort.addEventListener(this);\n\t\t\tserialPort.notifyOnDataAvailable(true);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.toString());\n\t\t}\n\t}",
"int libusb_control_transfer(DeviceHandle dev_handle, short bmRequestType, short bRequest, int wValue, int wIndex,\r\n String data, int wLength, int timeout);",
"@FXML\r\n void connectSerialPort() {\r\n try {\r\n String comPort;//numer portu com\r\n comPort = comPortTextField.getText();//pobranie wpisanej nazwy port z poal tekstowego\r\n if(correctnessGuard.isComportCorrect(comPort)) {//sprawdzenie poprawnosci\r\n serialConnection.openSerialConnection(comPort);//proba nawiazania polaczenia\r\n if(isConnectionReady) {//sprawdzenie czy polaczenie zostalo pomyslnie utworzone\r\n serialConnection.sendMessage(\"AT\");//wysłanie komendy sprawdzającej poprawnośc nawiązanego połączenia z modułem\r\n Thread.sleep(commandDelay);//uspanie aplikacji na x milisekund\r\n showAnswer(serialConnection.getAnswerBufor());//wyswietlenie otrzymanych wiadomosci\r\n if(correctnessGuard.checkAnswer(serialConnection.getAnswerBufor(), \"\\r\\nOK\\r\\n\")) {//sprawdzenie, czy poprawnie nawiazano polaczenie\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Resources/aplication.fxml\"));//zaladowanie parametrow okna z pliku fxml\r\n //Parent root = fxmlLoader.load();//zaladowanie danych do roota\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/Resources/aplication.fxml\"));\r\n root.setId(\"myroot\");//ustwaienie id w celu identyfikacji w roota w pliku css\r\n Stage stage = new Stage();//nowy stejdż\r\n stage.setTitle(\"BEE - Simple aplication for sending phone messages\");//przypisanie nazwy okna\r\n Scene scene = new Scene(root);//stworzenie sceny\r\n stage.setScene(scene);//ustawienie zaladowanego okna\r\n stage.setResizable(false);//wylaczenie mozliwosci zmian rozmiarow\r\n stage.getIcons().add(new Image(\"file:\"+getClass().getResource(\"/Resources/connection.png\").getPath()));//ustawienie icony okna\r\n stage.show();//wyswietlenie okna\r\n stage.setOnCloseRequest((WindowEvent event_2) ->{//ustawienie zdarzenia na zamkniecie okna\r\n closeMainStage();//wywoloanie nizej zdefiniowanej metody\r\n });\r\n primaryStage.close();//zamkniecie poprzedniego stejdżu - okna nawiązywania połaczenia\r\n serialConnection.clearAnswerBufor();//wyczyszczenie bufora wiadomosci\r\n mainStage = stage;//przypisanie stowrzonego stage do stalej\r\n }else{\r\n JOptionPane.showMessageDialog(new JFrame(), \"Komenda AT zgłosiła błąd - niepoprawna odpowiedź modułu!\", \"Controller Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }\r\n }catch(IOException er){\r\n System.out.println(er);\r\n JOptionPane.showMessageDialog(new JFrame(), \"Błąd wejścia/wyjścia w kontrolerze okna połączeniowego!\", \"Controller Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(new JFrame(), \"Niespodziewany błąd w kontrolerze okna połączeniowego!\", \"Controller Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n System.out.println(e);\r\n }\r\n }",
"public void Open() { // in {FF} Arduino\r\n boolean prio = GoodOpen;\r\n int nx, bitz = 0;\r\n if (SpeakEasy) System.out.println(\"F%%F/Open, (pre: GoodOpen = \"\r\n + GoodOpen + \")\");\r\n if (prio) {\r\n if (SpeakEasy) System.out.println(\"... \" + CommPortNo + \" is already open\");\r\n return;\r\n } else try {\r\n GoodOpen = surrealPort.openPort();\r\n surrealPort.setParams(57600, 8, 1, 0);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n if (SpeakEasy) {\r\n if (GoodOpen) System.out.println(\"... \" + CommPortNo + \" is now open\");\r\n else System.out.println(\"... \" + CommPortNo + \" failed to open\");\r\n }\r\n if (GoodOpen) try {\r\n bitz = 8; // (for log)\r\n // surrealPort.addEventListener(theInLisner); // didn't work, so do my own\r\n FrootLoop = new EatCereal(); // (does not start it..)\r\n if (FrootLoop != null) {\r\n bitz = 12;\r\n EatOften = new Timer(0, FrootLoop);\r\n if (EatOften == null) bitz = 28;\r\n }\r\n if (digitalInputData == null) {\r\n digitalInputData = new int[MAX_DATA_BYTES];\r\n analogInputData = new int[MAX_DATA_BYTES];\r\n }\r\n if (ArduPiModes == null) {\r\n bitz = bitz + 2;\r\n ArduPiModes = new int[16];\r\n }\r\n for (nx = 0; nx <= 15; nx++) ArduPiModes[nx] = 0;\r\n if (AutoStartInputs) {\r\n bitz++;\r\n Thread.sleep(1000); // delay 8 seconds for Arduino reboot\r\n for (nx = 0; nx <= 2; nx++)\r\n OpenPinInput(nx, Arduino.REPORT_ANALOG); // = 0xC0 (192)\r\n for (nx = 0; nx <= 1; nx++)\r\n OpenPinInput(nx, Arduino.REPORT_DIGITAL);\r\n } // = 0xD0 (208)\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n System.exit(-1);\r\n }\r\n if (SpeakEasy) System.out.println(\" (Ardu/Op) => GoodOpen = \" + GoodOpen\r\n + \" (\" + bitz + \")\");\r\n }",
"public void connectTo(NAddress address) throws IOException;",
"public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}",
"public static native String JavaGetDeviceSerialList(int Number);",
"public int getTextPort();",
"SimpleSerialNative(int comPort) {\n _initPort( convertToCommString(comPort), 9600, 8, ONESTOPBIT, NOPARITY);\n }",
"public PuppetIdracServerDevice() { }",
"public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }"
]
| [
"0.6661208",
"0.62866867",
"0.62715137",
"0.6079986",
"0.60201627",
"0.6012476",
"0.5975727",
"0.5930033",
"0.5905075",
"0.5886291",
"0.5854002",
"0.5801817",
"0.57967186",
"0.5759491",
"0.5750191",
"0.5746598",
"0.57267743",
"0.5709283",
"0.57072663",
"0.56770504",
"0.56770504",
"0.56614333",
"0.5614167",
"0.56134665",
"0.5596907",
"0.55873317",
"0.5554327",
"0.55418694",
"0.552387",
"0.5522911",
"0.55201834",
"0.55201834",
"0.5512601",
"0.5509324",
"0.5501705",
"0.54965067",
"0.54644173",
"0.54362845",
"0.5429056",
"0.54278034",
"0.5412664",
"0.5358951",
"0.5356578",
"0.5340764",
"0.53318363",
"0.53270394",
"0.5323954",
"0.5306824",
"0.5306443",
"0.5300093",
"0.52804095",
"0.52685046",
"0.5264285",
"0.526416",
"0.5256857",
"0.5256331",
"0.52354217",
"0.5212068",
"0.5209661",
"0.52018046",
"0.52010125",
"0.5200511",
"0.5187298",
"0.51864994",
"0.51777494",
"0.5175032",
"0.51602566",
"0.51597124",
"0.5159646",
"0.5159519",
"0.5148972",
"0.51483744",
"0.51414615",
"0.5139038",
"0.5134747",
"0.5130755",
"0.51264846",
"0.512509",
"0.5109379",
"0.5107983",
"0.51026285",
"0.50990856",
"0.5097384",
"0.50930876",
"0.5092684",
"0.5091232",
"0.50909317",
"0.5078116",
"0.5064822",
"0.50621665",
"0.50587326",
"0.5057428",
"0.5057084",
"0.50539225",
"0.5051362",
"0.50492656",
"0.50482994",
"0.5039878",
"0.5038526",
"0.5036927"
]
| 0.55134785 | 32 |
Return current MatchDetails (child) object | public Object getChild(int groupPosition, int childPosititon)
{
return playersDetails.get(groupPosition).get(childPosititon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Match getMatch() {\n return match;\n }",
"@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}",
"private static MatchInfo getMatchInfoStandardSession(int idMatch)\n {\n try\n {\n if( idMatch <= 0)\n {\n //non può essere una partita valida\n return new MatchInfo();\n }\n //match = DAOFactory.getInstance().getMatchDAO().get(idMatch);\n Match match = DAOFactory.getInstance().getMatchDAO().getForMatchInfo(idMatch);\n MatchInfo matchInfo = new MatchInfo();\n matchInfo.load(match);\n // Set values\n return matchInfo;\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving match info\", ex);\n return new MatchInfo();\n }\n }",
"public Object getMatchingInstanceReportRecord() {\n return matchingInstanceReportRecord;\n }",
"public int getMatchID(){\r\n\t\treturn matchID;\r\n\t}",
"public String getMatchName() {\r\n\t\treturn mMatchName;\r\n\t}",
"public ArrayList<CurrentMemo> getChild()\n\t\t{\n\t\t\treturn children;\n\t\t}",
"public final Object getCurrent()\n\t{\n\t\treturn getCapture();\n\t}",
"public SoElement\n\t copyMatchInfo()\n\t {\n//\t #ifdef DEBUG\n\t SoDebugError.post(\"SoLazyElement.copyMatchInfo\",\n\t \"Should never be called\\n\");\n//\t #endif\n\t return null;\n\t }",
"Match getCompleteMatch();",
"public MatchResult getResult() {\n return result;\n }",
"public Object getMatchingInstanceReport() {\n return matchingInstanceReport;\n }",
"public child getChild() {\n return this.child;\n }",
"protected Matcher getMatcher() {\n return matcher;\n }",
"public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}",
"public String getChild() {\n return child;\n }",
"@Override\n\tpublic Object getDetails() {\n\t\treturn details;\n\t}",
"public ReplayedMatch fork() {\n return new ReplayedMatch(this.moveHistory);\n }",
"public Profile getChild() {\n \treturn null;\n\t}",
"public String getMatched() {\r\n\t\treturn matched;\r\n\t}",
"@Override\n public double getMatchTime() {\n return MATCH_DURATION_IN_SECONDS;\n }",
"public RowIterator getHierarchyChildDetailVO() {\r\n return (RowIterator)getAttributeInternal(HIERARCHYCHILDDETAILVO);\r\n }",
"Match createMatch();",
"public boolean getMatch() {\n\t\treturn false;\n\t}",
"public abstract Object findPropertyMatchedChild(Object obj, String property, String bench, boolean exactMatch)\n\t throws SAFSObjectNotFoundException;",
"private List<Map<String, String>> getChildrenDetails(CaseData caseData) {\n return caseData.getAllChildren().stream()\n .map(Element::getValue)\n .map(Child::getParty)\n .map(child -> ImmutableMap.of(\n \"name\", child.getFullName(),\n \"gender\", defaultIfNull(child.getGender(), EMPTY),\n \"dateOfBirth\", child.getDateOfBirth() == null ? EMPTY :\n formatLocalDateToString(child.getDateOfBirth(), FormatStyle.LONG)))\n .collect(toList());\n }",
"public void getMatchDetail(long match_id, final APICallback callback){\n String url = STEAM_API_BASE_URL + GET_MATCH_DETAILS + \"?\" + STEAM_API_KEY_PARAMETER + mContext.getResources().getString(R.string.steam_api_key) +\n \"&match_id=\" + match_id;\n JsonObjectRequest getRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response) {\n // display response\n Log.d(\"Response\", response.toString());\n Gson gson = new Gson();\n MatchDetail.MatchDetailContainer container = gson.fromJson(response.toString(),\n MatchDetail.MatchDetailContainer.class);\n callback.onMatchDetailResponse(container.getResult());\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \" getMatchDetail Error.Response\");\n error.printStackTrace();\n }\n }\n );\n mRequestQueue.add(getRequest);\n }",
"public Object getDetails() {\n return null;\n }",
"Match getMatches();",
"public MeasurementTree prepareMeasurementTree(List<PerformanceTiming> matches) {\r\n Stack<PerformanceTiming> openTimings = new Stack<PerformanceTiming>();\r\n Stack<MeasurementTree> resultingMetrics = new Stack<MeasurementTree>();\r\n int lastNestingLevel = 0;\r\n\r\n for (PerformanceTiming match : matches) {\r\n if (match.isBeginEvent()) {\r\n openTimings.push(match);\r\n } else if (match.isEndEvent()) {\r\n PerformanceTiming startTiming = openTimings.pop();\r\n\r\n MeasurementTree metric = createMetric(match, startTiming);\r\n if (!resultingMetrics.isEmpty()) {\r\n if (lastNestingLevel != openTimings.size()) {\r\n for (MeasurementTree tree : resultingMetrics) {\r\n metric.addChild(tree);\r\n }\r\n resultingMetrics.clear();\r\n }\r\n resultingMetrics.push(metric);\r\n } else {\r\n resultingMetrics.push(metric);\r\n lastNestingLevel = openTimings.size();\r\n }\r\n }\r\n }\r\n\r\n return resultingMetrics.pop();\r\n }",
"private SingleMatch matchBuilder() {\n\t\treturn new SingleMatch(currentMatchSettings.getSequenceLength(), currentMatchSettings.getAttempts(),\n\t\t\t\tcurrentMatchSettings.getGameViewFactory(), currentMatchSettings.getBreakerFactory(),\n\t\t\t\tcurrentMatchSettings.getMakerFactory());\n\t}",
"public MatchDAO getMatchDAO() {\n return matchDAO;\n }",
"@objid (\"808c0841-1dec-11e2-8cad-001ec947c8cc\")\n public final GmNodeModel getChild(MRef ref) {\n for (GmNodeModel child : this.children) {\n if (child.getRepresentedRef().equals(ref)) {\n return child;\n }\n }\n return null;\n }",
"public void fetchMatchInfo(String currMatchId, @NonNull final SimpleCallback<Map<String, Object>> finishedCallback) {\n getDb().getReference(getUserPath() + currMatchId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Map<String, Object> res = new HashMap<>();\n\n for ( DataSnapshot children : dataSnapshot.getChildren() ) {\n res.put( children.getKey(), children.getValue() );\n }\n\n finishedCallback.callback(res);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // Do nothing\n }\n });\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\nMatchID: \"+gameType+\"00\"+matchNum+\"\\n\"\n\t\t\t\t+\"Referee: \"+staff+\"\\n\"\n\t\t\t\t+\"Participator 1: \"+part1 +\" result: \"+result1+\"s\\n\"\n\t\t\t\t+\"Participator 2: \"+part2 +\" result: \"+result2+\"s\\n\"\n\t\t\t\t+\"Participator 3: \"+part3 +\" result: \"+result3+\"s\\n\"\n\t\t\t\t+\"Participator 4: \"+part4 +\" result: \"+result4+\"s\\n\"\n\t\t\t\t+\"Participator 5: \"+part5 +\" result: \"+result5+\"s\\n\"\n\t\t\t\t+\"Participator 6: \"+part6 +\" result: \"+result6+\"s\\n\"\n\t\t\t\t+\"Participator 7: \"+part7 +\" result: \"+result7+\"s\\n\"\n\t\t\t\t+\"Participator 8: \"+part8 +\" result: \"+result8+\"s\\n\\n\";\n\t}",
"Match getResultMatch();",
"public GrandChildOfStringMatch() {}",
"@Override\n\t\tpublic ParentInfo getParentInfo() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return Lesson[groupPosition];\n }",
"public abstract Match match();",
"public NameBuilderInfoImpl(Matcher matcher) {\n\t\tthis.matcher = matcher;\n\t}",
"public Match getMatch(int matchNum){\n\t\tfor(Match match : matches){\n\t\t\tif(match.number == matchNum){\n\t\t\t\treturn match;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Figure getChild() {\n\t\treturn _child;\n\t}",
"private PageableMatchHistoryEmbed getMatchHistoryEmbed(CommandContext context, MatchHistory matchHistory) {\n return new PageableMatchHistoryEmbed(\n context,\n matchHistory,\n codManager.getGameName(),\n thumbnail,\n getTrigger()\n );\n }",
"Match getTeam1LooserOfMatch();",
"public MMatchPO[] getMatchPO()\n\t{\n\t\tif (m_matchPO == null)\n\t\t\tm_matchPO = MMatchPO.get (getCtx(), getM_InOutLine_ID(), get_Trx());\n\t\treturn m_matchPO;\t\t\n\t}",
"@Override\r\n public Match find(Match M) {\n return null;\r\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public ContentScanner getChildLevel(\n )\n {return childLevel;}",
"public Object getCaseInstanceAnalysisRecord() {\n return caseInstanceAnalysisRecord;\n }",
"public Date getLastMatchTime(){\n return lastMatchTime;\n }",
"@Override\n public Object getDetails() {\n return null;\n }",
"public Record getCurrentRecord() {\n return mCurrentRecord;\n }",
"void onOtherInfoToolCard(int id, Match match);",
"@Override\n\tpublic boolean getIsIndividualMatch() {\n\t\treturn _esfTournament.getIsIndividualMatch();\n\t}",
"Match getTeam2LooserOfMatch();",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\t// Header\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (matchNum != -1)\r\n\t\t{\r\n\t\t\tbuilder.append(\"Match \");\r\n\t\t\tbuilder.append(matchNum);\r\n\t\t\tbuilder.append(\": \");\r\n\t\t}\r\n\t\t// Team one\r\n\t\tbuilder.append(team1.toString());\r\n\t\t// Connection\r\n\t\tif (!isByeMatch)\r\n\t\t{\r\n\t\t\tbuilder.append(\" vs \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbuilder.append(\" has a \");\r\n\t\t}\r\n\t\t// Team two\r\n\t\tbuilder.append(team2.toString());\r\n\t\t\r\n\t\treturn builder.toString();\r\n\t}",
"public Map<String, Match> getReferenceMatches();",
"@Override\n public String toString() {\n return \"NodeMatch{\" +\n \"matched='\" + matched + '\\'' +\n \", value=\" + value +\n \", params=\" + Arrays.toString(params) +\n \", trailingSlashRedirect=\" + trailingSlashRedirect +\n '}';\n }",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"private PawnMoveInformation getMoveInformation() {\n\t\treturn this.info;\n\t}",
"private void setCurrentMatch(SingleMatch newMatch) {\n\t\tcurrentMatch = newMatch;\n\t}",
"public void extractFromParent() {\n this.parent.extractChild(this);\n }",
"public void getSceneDetails() {\n Intent sceneIntent = getIntent();\n //TODO: set member strings = intent extras\n storyId = sceneIntent.getStringExtra(\"storyId\");\n chapterId = sceneIntent.getStringExtra(\"chapterId\");\n sceneId = sceneIntent.getStringExtra(\"selectedSceneId\");\n\n getAllFormFields();\n\n setSceneFormFields();\n }",
"public Matchdata(Match match, long _matchID, String _summonerName, long _playerID)\n {\n matchID = _matchID;\n summonerName = _summonerName;\n playerID = _playerID;\n\n \n participantID = getIdentityFromSummonerID(match);\n totalGoldEachMinute = goldEachMinute(match, participantID);\n minutes = totalGoldEachMinute.length;\n \n individualGEM = new int[totalGoldEachMinute.length];\n for(int i = totalGoldEachMinute.length-1; i>0; i--)\n {\n individualGEM[i] = totalGoldEachMinute[i]-totalGoldEachMinute[i-1];\n }\n individualGEM[0] = totalGoldEachMinute[0];\n \n \n totalCreepsEachMinute = creepsEachMinute(match, participantID);\n \n individualCEM = new int[totalCreepsEachMinute.length];\n for(int i = totalCreepsEachMinute.length-1; i>0; i--)\n {\n individualCEM[i] = totalCreepsEachMinute[i]-totalCreepsEachMinute[i-1];\n }\n individualCEM[0] = totalCreepsEachMinute[0];\n \n \n \n gpm = totalGoldEachMinute[totalGoldEachMinute.length-1]/totalGoldEachMinute.length;\n cpm = totalCreepsEachMinute[totalCreepsEachMinute.length-1]/totalCreepsEachMinute.length;\n \n //get(participantID-1) might seem weird, but it's how getParticipants is stored.\n victory = match.getParticipants().get(participantID-1).getStats().getWinner();\n champion = match.getParticipants().get(participantID-1).getChampionID();\n time = match.getCreation().getTime();\n \n lane = match.getParticipants().get(participantID-1).getTimeline().getLane();\n role = match.getParticipants().get(participantID-1).getTimeline().getRole();\n \n roleSanity = sanityCheck(match);\n \n map = match.getMap();\n \n }",
"@Override\r\n\tpublic IMapInfo getMapInfo() {\r\n\t\treturn replay.mapInfo;\r\n\t}",
"public ArrayList<String> GetChild(){\n\t\treturn this.ChildSMILES;\n\t}",
"public void createMatchList()\r\n {\r\n theMatchList = new MatchList();\r\n }",
"@Override\n public void match(Match match) {\n latestStepResult = new StepResult();\n latestStepResult.setArguments(convertArguments(match.getArguments()));\n\n resolveStepResultList().add(latestStepResult);\n }",
"public Match(){\n this(-1, null, 0, 0, null, null);\n }",
"public MiniMap getParent() {\n \t\treturn parent;\n \t}",
"public String getMatchType() {\n return getStringProperty(\"MatchType\");\n }",
"public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }",
"private void extractParseWithObjectId(String selected_Object_id) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Match\");\n query.getInBackground(selected_Object_id, new GetCallback<ParseObject>() {\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n System.out.println(\"Object has been found!!\");\n System.out.println(object.get(\"FromPlayer\"));\n SMA_FromPlayer.setText(object.get(\"FromPlayerToDisp\").toString());\n SMA_ToPlayer.setText(object.get(\"ToPlayerToDisp\").toString());\n SMA_Time.setText(object.get(\"Time\").toString());\n SMA_Location.setText(object.get(\"Location\").toString());\n if (object.get(\"Status\").toString().equals(\"Pending\")) {\n SMA_Label_Pending.setVisibility(View.VISIBLE);\n }\n\n } else {\n System.out.println(\"Object has not been found!!\");\n }\n }\n });\n }",
"public Object getInfo() {\n return info;\n }",
"public RTWLocation parent();",
"public Match( ) {\n\n }",
"public Operator getChild() {\r\n\t\treturn child;\r\n\t}",
"public BSPageinationListItem getListItem()\n {\n return (BSPageinationListItem) getParent();\n }",
"public ViewObjectImpl getQueryRecordVOInstance() {\n return (ViewObjectImpl)findViewObject(\"QueryRecordVOInstance\");\n }",
"@Override\n public String toString() {\n return detail;\n }",
"abstract String getDetails();",
"public GameList getSearchResult(){ return m_NewSearchResult;}",
"public String getDetails() {\n return mDetails;\n }",
"public String getDetails() {\n return mDetails;\n }",
"public Trackmatches getTrackmatches() {\n return trackmatches;\n }",
"public Match getMatchInfo (String id, String field, String foundry,\n String layer, boolean includeSpans, boolean includeHighlights)\n throws QueryException {\n return this.getMatchInfo(id, field, true, foundry, layer, includeSpans,\n includeHighlights, false);\n }",
"protected NodePart getHelmetMoreDetails() {\n\t\treturn instance.nodes.get(0).parts.get(0);\n\t}",
"public IBiNode getChild() {\n return this.child;\n }",
"public Instances getMatchedTest() {\n return this.getMatchedInstances(\"test\", this.test);\n }",
"Object getChild(int groupPosition, int childPosition);",
"@Override\n\tpublic Capture next() {\n\t\treturn getCapture();\n\t}",
"public TreeSet<Team> getTeamTreeFromMatchTree(){\r\n TreeSet<Team> teamTree = new TreeSet<>(lexicalSortByName);\r\n \r\n //Go through the whole tree and find each team\r\n //Add it to the tree if it's not already present\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n \r\n Match m = null;\r\n while (itr.hasNext()){\r\n m = itr.next();\r\n \r\n String team1 = m.getTeam1().getName();\r\n if(teamTree.isEmpty()){\r\n teamTree.add(m.getTeam1());\r\n }\r\n else {\r\n boolean added = false;\r\n Iterator<Team> itTeams = teamTree.iterator();\r\n while(itTeams.hasNext() && !added){\r\n Team currentTeam = itTeams.next();\r\n if(currentTeam.getName().equals(team1)) {\r\n added = true;\r\n }\r\n }\r\n if(!added){\r\n teamTree.add(m.getTeam1());\r\n }\r\n }\r\n }\r\n //Add the last team, the one never in the first column\r\n if (m != null){\r\n teamTree.add(m.getTeam2());\r\n }\r\n return teamTree;\r\n }",
"Card_Model GetCaptureCardOfBuild() {\n return captureCardOfBuild;\n }",
"public Object getObject() {\n return getGroup();\n }",
"public String getDetails() {\n return toString();\n }",
"public Matchdata()\n {\n }",
"@Override\n public VictoryConditionDetails getDetails() {\n Map<String, String> info = new LinkedHashMap<>();\n\n VictoryConditionDetails details = new VictoryConditionDetails();\n\n details.setKey(title);\n details.setInfo(info);\n\n info.put(\"Description:\", description);\n info.putAll(getShipEventInfo());\n info.put(\"Required Points:\", requiredPoints + \"\");\n\n return details;\n }",
"java.lang.String getDetails();",
"private EMFPatternMatcherRuntimeContext() {\r\n \t\tthis.waitingVisitors = new ArrayList<EMFVisitor>();\r\n \t\tthis.traversalCoalescing = false;\r\n \t}"
]
| [
"0.7029776",
"0.6270503",
"0.58434266",
"0.58114475",
"0.5732924",
"0.5708971",
"0.56756145",
"0.56653124",
"0.56579465",
"0.5644104",
"0.56349266",
"0.5601259",
"0.55201894",
"0.5504025",
"0.54814786",
"0.545379",
"0.5452883",
"0.54487437",
"0.5424382",
"0.5414162",
"0.53722245",
"0.5308808",
"0.5308762",
"0.53044665",
"0.5294544",
"0.52925277",
"0.5291469",
"0.5228595",
"0.52180195",
"0.51891446",
"0.51839435",
"0.51666796",
"0.5130466",
"0.5110575",
"0.51099294",
"0.51001453",
"0.50856423",
"0.5082028",
"0.5078275",
"0.50734425",
"0.50733125",
"0.5064706",
"0.50548",
"0.50489986",
"0.5047493",
"0.50453913",
"0.5043638",
"0.50203556",
"0.5016162",
"0.5012401",
"0.49951443",
"0.49935347",
"0.49933696",
"0.49773428",
"0.49727812",
"0.49703607",
"0.49677706",
"0.49659565",
"0.4955827",
"0.49461797",
"0.49199253",
"0.49187988",
"0.49080825",
"0.4907761",
"0.48901996",
"0.48899952",
"0.48865384",
"0.48787448",
"0.4878503",
"0.4878012",
"0.48687077",
"0.48607266",
"0.4859375",
"0.48568216",
"0.485362",
"0.48502883",
"0.48474297",
"0.4846571",
"0.48408172",
"0.48403278",
"0.48263425",
"0.48253286",
"0.48225135",
"0.48206106",
"0.48206106",
"0.48170507",
"0.4816633",
"0.48140806",
"0.48058638",
"0.47960988",
"0.47936967",
"0.47935247",
"0.478091",
"0.47788507",
"0.4778072",
"0.4776154",
"0.4774872",
"0.47684765",
"0.47642145",
"0.47571793"
]
| 0.5141227 | 32 |
Get instance of a single Player (Child) object | public View getChildView(int groupPosition, final int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
Player player = (Player) getChild(groupPosition, childPosition);
// Inflate layout
if (convertView == null) {
LayoutInflater infalInflater = (LayoutInflater) this.context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = infalInflater.inflate(R.layout.item_players_content, parent, false);
}
// Initialize Views from the layout file
TextView tvPosition = (TextView) convertView.findViewById(R.id.tv_player_position);
TextView tvAge = (TextView) convertView.findViewById(R.id.tv_player_age);
TextView tvAppearances = (TextView) convertView.findViewById(R.id.tv_player_appearances);
TextView tvGoals = (TextView) convertView.findViewById(R.id.tv_player_goals);
TextView tvAssists = (TextView) convertView.findViewById(R.id.tv_player_assists);
TextView tvYellowCards = (TextView) convertView.findViewById(R.id.tv_player_yellow_cards);
TextView tvRedCards = (TextView) convertView.findViewById(R.id.tv_player_red_cards);
// Set text on each TextView inside the layout
tvPosition.setText("Position: " + player.getPosition());
tvAge.setText("Age: " + player.getAge());
tvAppearances.setText("Appearances: " + player.getAppearances());
tvGoals.setText("Goals: " + player.getGoals());
tvAssists.setText("Assists: " + player.getAssists());
tvYellowCards.setText("Yellow cards: " + player.getYellowCards());
tvRedCards.setText("Red cards: " + player.getRedCards());
// Get instance of currently logged in user
user = FirebaseAuth.getInstance().getCurrentUser();
// Get value of logged in user's id
String userId = user.getUid();
// Point database reference to the users node of Firebase database
usersDatabase = FirebaseDatabase.getInstance().getReference().child("users");
usersDatabase.child(userId).child("subscriptionType").addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
final String subscriptionType = dataSnapshot.getValue(String.class);
Log.d(TAG, "SUBSCRIPTION TYPE" + subscriptionType);
}
@Override
public void onCancelled(DatabaseError databaseError)
{
Log.w(TAG, "Failed to read value.", databaseError.toException());
}
});
return convertView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Player getPlayer();",
"Player getPlayer(UUID playerId);",
"public Player getPlayer();",
"public Player getPlayer();",
"public static synchronized Player getInstance(){\n if(Player.player == null){\n Player.player = new Player();\n }\n return Player.player;\n }",
"protected Player getPlayer() {\n return getGame().getPlayers().get(0);\n }",
"public Player getPlayer() {\n return me;\n }",
"BPlayer getPlayer(Player player);",
"protected Player getPlayer() { return player; }",
"public Player getPlayer()\r\n {\r\n return player;\r\n }",
"public AbstractGameObject getPlayer() {\n return this.player;\n }",
"public Player getPlayer() { return player; }",
"public Player getPlayer() {\r\n return player;\r\n }",
"public Player getPlayer() {\n return player;\n }",
"public Player getPlayer() {\n return player;\n }",
"public Player getPlayer() {\n return player;\n }",
"public Player getPlayer() {\n return player;\n }",
"public Player getPlayer() {\n return player;\n }",
"public Player getPlayer() {\n return player;\n }",
"public Player getPlayer() { return player;}",
"public Player getPlayer() {\n return player;\n }",
"BPlayer getPlayer(UUID uuid);",
"public Player getPlayer() {\n return p;\n }",
"public Player getClientPlayer() {\n\t\treturn players.get(0);\n\t}",
"public Player getPlayer(){\r\n return player;\r\n }",
"Player createPlayer();",
"public Player getPlayer() {\r\n return world.getPlayer();\r\n }",
"public Player getPlayer(){\n\t\treturn this.player;\n\t}",
"Player getDormantPlayer();",
"Player getCurrentPlayer();",
"Player getCurrentPlayer();",
"public Player getPlayer()\r\n\t{\r\n\t\treturn mPlayer;\r\n\t}",
"public Player getPlayer(String username) {\n for (Player p : players) {\n if (p.username.equals(username))\n return p;\n }\n return null;\n }",
"public final Player getPlayer() {\n return player;\n }",
"public Player getCurrentPlayer(){\n String playerId = getUser().get_playerId();\n\n Player player = null;\n\n try {\n player = getCurrentGame().getPlayer(playerId);\n } catch(InvalidGameException e) {\n e.printStackTrace();\n System.out.println(\"This is the real Error\");\n }\n\n return player;\n }",
"public Player getPlayer() {\n\t\treturn p;\n\t}",
"public Player getPlayer() {\n return (roomPlayer);\n }",
"public Player getPlayer() {\r\n\t\treturn player;\r\n\t}",
"public Player retrieveOnePlayerFromDatabase(String dbMemberName, String dbChildName) {\n\n player = null;\n DatabaseReference dbReference = FirebaseDatabase.getInstance().getReference().child(dbMemberName).child(dbChildName);\n dbReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String name = dataSnapshot.child(\"name\").getValue().toString();\n String userName = dataSnapshot.child(\"userName\").getValue().toString();\n String password = dataSnapshot.child(\"password\").getValue().toString();\n String age = dataSnapshot.child(\"age\").getValue().toString();\n String phone = dataSnapshot.child(\"phone\").getValue().toString();\n String team = dataSnapshot.child(\"team\").getValue().toString();\n String location = dataSnapshot.child(\"location\").getValue().toString();\n String type = dataSnapshot.child(\"type\").getValue().toString();\n\n Log.d(\">>>>>\", \"[\" + name + \", \" + userName + \", \" + password + \", \" + age + \", \" + phone +\n \", \" + team + \", \" + location + \", \" + type + \"]\");\n player = new Player(name, userName, password, age, phone, team, location, type);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n return player;\n }",
"public Player getPlayer(UUID id) {\r\n for (Player player : players) {\r\n if (player.getId().equals(id)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }",
"Player currentPlayer();",
"@Override\n public Player getPlayerById(long id) {\n Player player=entityManager.find(Player.class,id);\n return player;\n }",
"public Player getPlayer() {\n\t\treturn this.player;\r\n\t}",
"public Player getOwner() {\n return owner;\n }",
"public Player getPlayer(String username){\n return this.players.get(username);\n }",
"public static Player getPlayer(Player player){\n Player returnPlayer = null;\n if (player != null) {\n try {\n returnPlayer = mapper.readValue(new File(\"Data\\\\PlayerData\\\\\" + getFileName(player) + \".json\"), Player.class);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return returnPlayer;\n }",
"public PlayerParticipant getPlayer(int playerId) {\n try {\n String query = \"SELECT * from playerparticpant WHERE Id = \" + playerId;\n ResultSet resultSet = dbhelper.ExecuteSqlQuery(query);\n if (resultSet.next()) {\n PlayerParticipant playerParticipant = new PlayerParticipant();\n playerParticipant.matchHistoryUri = resultSet.getString(\"MatchHistoryUri\");\n playerParticipant.profileIcon = resultSet.getInt(\"ProfileIconId\");\n playerParticipant.summonerId = resultSet.getLong(\"SummonerId\");\n playerParticipant.summonerName = resultSet.getString(\"SummonerName\");\n \n return playerParticipant;\n }\n } catch (SQLException | IllegalStateException ex) {\n System.out.println(\"An error occurred: \" + ex.getMessage());\n }\n \n return null;\n }",
"public PlayerEntity getPlayer() {\n return player;\n }",
"public PlayerEntity getPlayer() {\n return player;\n }",
"public PlayerID getPlayer(){\n\t\treturn this.player;\n\t}",
"public Player getPlayer() {\n\t\treturn this.player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n\t\treturn player;\n\t}",
"public Player getCurrentPlayer(){\n return this.currentPlayer;\n }",
"Player getSelectedPlayer();",
"public Player owner() {\n\t\treturn null;\n\t}",
"Player getPlayer(int playerNumber){\n return players.get(playerNumber);\n }",
"public static EntityPlayer getPlayer() {\n\t\treturn ModLoader.getMinecraftInstance().thePlayer;\n\t}",
"public Player getByPlayerID(String playerID) {\n PlayerDB pdb = new PlayerDB(); \n return pdb.getByPlayerID(playerID);\n }",
"GameObject getObject();",
"public Strider getPlayer() {\n return player;\n }",
"public Player getPlayer(String name){ \n\t\tif (players.containsKey(name)) return players.get(name);\n\t\tPlayer player = getModPlayer(name);\n\t\tif (player != null) {\n\t\t\tplayers.put(name, player);\n\t\t\treturn player;\n\t\t}\n\t\treturn player;\n\t}",
"public Player getPlayer() {\n return humanPlayer;\n }",
"public Player getPlayer() {\n\t\t\treturn player;\n\t\t}",
"public Player getPlayer(int idx) {\n\t\ttry {\n\t\t\tPlayer p = players.get(idx);\n\t\t\treturn p;\n\t\t} catch(Exception e) {\n\t\t\treturn null;\n\t\t}\n\t\n\t}",
"@Override\n\tpublic EntityLivingBase getOwner() {\n\t\tif(this.owner!=null&&!(this.owner instanceof EntityPlayer && this.owner.isDead)){\n\t\t\treturn this.owner;\n\t\t}\n\t\telse if(this.getOwnerId()!=null){\n\t\t\treturn this.owner=this.worldObj.getPlayerEntityByUUID(this.getOwnerId());\n\t\t}\n\t\t//System.out.println(\"owner: \"+this.getOwnerId());\n\t\treturn null;\n\t}",
"public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}",
"public Player getPlayerById(int id) {\n\t\tPlayer p = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playerByIdRecords_sql = \"SELECT * FROM \" + player_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(playerByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tp = new Player(rs.getString(3), rs.getString(4), rs.getDate(5), rs.getInt(6));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn p;\n\t}",
"public synchronized Player getPlayerIfNotFull() {\n if (player1 == null) {\n player1 = new Player(order, 'X');\n order++;\n nrOfPlayers++;\n return player1;\n } else if (player2 == null) {\n player2 = new Player(order, 'O');\n order = 0;\n nrOfPlayers++;\n started = true;\n return player2;\n }\n return null;\n }",
"@Override\n\tpublic Player getPlayer() {\n\t\treturn null;\n\t}",
"Player getClone() {\n Player clone = new Player();\n clone.brain = brain.getClone();\n return clone;\n }",
"public Player getCurrent(){\n\t\tPlayer p;\n\t\ttry{\n\t\t\tp = this.players.get(this.currElem);\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.out.println(\"There isn't any players.\");\n\t\t\tp = null;\n\t\t}\n\t\t\t\n\t\treturn p; \n\t}",
"@SuppressWarnings(\"unused\")\n public static IHubParkourPlayer getPlayer(Player player) throws NullPointerException {\n if (player == null) {\n throw new NullPointerException(\"Player cannot be null\");\n }\n return CacheManager.getPlayer(player);\n }",
"@Override\r\n\tpublic Player getTheOwner() {\n\t\treturn null;\r\n\t}",
"@Override\n public Player getHumanPlayer() {\n return batMan.getHumanPlayer();\n }",
"public Sprite getPlayer() {\n\t\treturn player;\n\t}",
"public static Player getHero() {\n return hero;\n }",
"public PlayerModel getOwnerPlayer() {\r\n\t\treturn ownerPlayer;\r\n\t}",
"public int getPlayer()\n {\n return this.player;\n }",
"Player loadPlayer(String playerIdentifier) {\n\n Player load = new Player();\n Table t = Constants.processing.loadTable(\"data/player\" + playerIdentifier + \".csv\");\n load.brain.TableToNet(t);\n return load;\n }",
"private Player selectPlayer (int which) {\n System.out.println();\n int choice = readPlayerChoice(which);\n String name = readPlayerName();\n if (choice == TIMID)\n return new TimidPlayer(name);\n else if (choice == GREEDY)\n return new GreedyPlayer(name);\n else if (choice == CLEVER)\n return new CleverPlayer(name);\n else\n return new InteractivePlayer(name);\n }",
"@Override\npublic Player<T> getCurrentPlayer() {\n\treturn currentPlayer;\n}",
"public Player getPlayer1(){\n return jugador1;\n }",
"public NPC getNPC(){\n return CitizensAPI.getNPCRegistry().getById(id);\n }",
"public HumanPlayer getHuman(){\n\t\treturn ((HumanPlayer)players.get(0));\n\t}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"protected abstract Player getModPlayer(String name);",
"public Player(){}",
"public Player(){}",
"public Player getPlayer(String name, Integer number, String type){\n if(type.equalsIgnoreCase(\"SOCCER\")) {\n return new SoccerPlayer(name, number);\n }\n else if(type.equalsIgnoreCase(\"TENNIS\")){\n return new TennisPlayer(name, number);\n }\n // Type doesn't exist, TODO Throw exception?\n return null;\n }",
"public Player getPlayer(String playerId) {\n\t\topen();\n\t\tPlayer retVal = null;\n\t\tCursor cursor = db.query(PlayerTable.DB_TABLE_PLAYER, null, PlayerTable.KEY_ID + \"='\" + playerId + \"';\",\n\t\t\t\tnull, null, null, null);\n\t\tif(cursor.getCount()>0){\n\t\t\tLog.i(TAG, \"Found player in database with id [\" + playerId +\"]\");\n\t\t\tcursor.moveToFirst();\n\t\t\tint idIndex = cursor.getColumnIndex(PlayerTable.KEY_ID);\n\t\t\tString playerDBId = cursor.getString(idIndex);\n\t\t\tint nameIndex = cursor.getColumnIndex(PlayerTable.KEY_NAME);\n\t\t\tString playerDBName = cursor.getString(nameIndex);\n\t\t\tint descriptionIndex = cursor.getColumnIndex(PlayerTable.KEY_DESCRIPTION);\n\t\t\tString playerDBDescription = cursor.getString(descriptionIndex);\n\t\t\tint eloIndex = cursor.getColumnIndex(PlayerTable.KEY_ELO);\n\t\t\tDouble playerDBElo = cursor.getDouble(eloIndex);\n\t\t\tint matchesIndex = cursor.getColumnIndex(PlayerTable.KEY_NROFMATCHES);\n\t\t\tint matchesPlayed = cursor.getInt(matchesIndex);\n\t\t\tint createdIndex = cursor.getColumnIndex(PlayerTable.KEY_CREATED);\n\t\t\tString playerCreated = cursor.getString(createdIndex);\n\t\t\tDate created = null;\n\t\t\tif(playerCreated!=null){\n\t\t\t\ttry {\n\t\t\t\t\tcreated = sdf.parse(playerCreated);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tLog.w(TAG, \"Error parsing date from DB : \", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//create a Player-object that has all the properties fetched from DB\n\t\t\tretVal = new Player(playerDBName, playerDBDescription);\n\t\t\tretVal.setId(playerDBId);\n\t\t\tretVal.setCurrentElo(playerDBElo);\n\t\t\tretVal.setNrOfMatches(matchesPlayed);\n\t\t\tretVal.setCreated(created);\n\t\t\tLog.d(TAG, \"Objectified player : \" + retVal.getId());\n\t\t}\n\t\tclose();\n\t\tif(cursor!=null)\n\t\t\tcursor.close();\n\t\treturn retVal;\n\t}",
"public AccessUser getMember(EntityPlayer player)\n {\n if (player != null)\n {\n //try UUID first\n UUID id = player.getGameProfile().getId();\n if (uuid_to_profile.containsKey(id))\n {\n return uuid_to_profile.get(id);\n }\n\n //try username last\n return getMember(player.getCommandSenderName());\n }\n return null;\n }",
"public Player load() {\n Player p = loadPlayer();\n\n if (p != null) {\n p.setShip(loadShip());\n p.getShip().setCargo(loadCargo());\n }\n\n return p;\n }"
]
| [
"0.7278698",
"0.71267265",
"0.70149773",
"0.70149773",
"0.70057744",
"0.6876439",
"0.6859934",
"0.6803742",
"0.67994624",
"0.6762182",
"0.67005765",
"0.6699256",
"0.6672306",
"0.66713387",
"0.66587394",
"0.66587394",
"0.66587394",
"0.66587394",
"0.66587394",
"0.6649444",
"0.6625024",
"0.66183484",
"0.66130257",
"0.6580212",
"0.65607923",
"0.65315676",
"0.65068066",
"0.6485839",
"0.6473995",
"0.6465942",
"0.6465942",
"0.6455153",
"0.6432448",
"0.6411626",
"0.6411576",
"0.64040434",
"0.63781816",
"0.6373659",
"0.63729846",
"0.6366773",
"0.635991",
"0.6358522",
"0.6356556",
"0.6341261",
"0.6332606",
"0.63317704",
"0.6330424",
"0.6325239",
"0.6325239",
"0.6290696",
"0.62777054",
"0.62755716",
"0.62755716",
"0.62755716",
"0.62755716",
"0.62755716",
"0.62755716",
"0.62755716",
"0.6248607",
"0.6244127",
"0.62321407",
"0.62292683",
"0.6227698",
"0.62034446",
"0.619651",
"0.61849874",
"0.616745",
"0.61338216",
"0.613192",
"0.61128247",
"0.6102814",
"0.6094215",
"0.6082608",
"0.6081869",
"0.60793597",
"0.60751534",
"0.6045687",
"0.6043538",
"0.6020428",
"0.5992539",
"0.59754014",
"0.5970568",
"0.5964152",
"0.59559995",
"0.5955122",
"0.5954781",
"0.5954696",
"0.5942533",
"0.59359837",
"0.59353286",
"0.5935272",
"0.5935272",
"0.5935272",
"0.5935272",
"0.5933677",
"0.59173906",
"0.59173906",
"0.5915056",
"0.59143364",
"0.5907756",
"0.5903743"
]
| 0.0 | -1 |
"getters" and "setters" autogenerated | public int getDirection() {
return direction;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"@Override\n public void get() {}",
"public void get() {\n }",
"@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"private Get() {}",
"private Get() {}",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"public int getAge() {return age;}",
"public void setAge(int age) { this.age = age; }",
"public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public String getSetter() {\n return \"set\" + getCapName();\n }",
"private GetProperty(Builder builder) {\n super(builder);\n }",
"@Test\n\tpublic static void testGetters() {\n\t\tCompoundMadeOfElementDTO idk = new CompoundMadeOfElementDTO(1, 3, 20);\n\t\tassertEquals(1, idk.getCompoundID());\n\t\tassertEquals(3, idk.getElementID());\n\t\tassertEquals(20, idk.getElementQuantity());\n\t}",
"protected abstract Set method_1559();",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(ShortestPathOutput.class, configuration);\n\t}",
"@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}",
"public String getGetter() {\n return \"get\" + getCapName();\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"@Override\n String get();",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"public int getAge(){\n return age;\n }",
"@Override\n protected void updateProperties() {\n }",
"public String get();",
"public void setAge(int age);",
"public Method getGetter() {\n return this.getter;\n }",
"public FieldModifierPropertyEditor() {\n super(Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE | Modifier.STATIC |\n Modifier.FINAL | Modifier.TRANSIENT | Modifier.VOLATILE);\n }",
"@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}",
"public Student getStudent() { return student; }",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public int getAge()\r\n {\r\n return age;\r\n }",
"public T get() {\n return value;\n }",
"public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"public Set<ObjectLabel> getGetters() {\n if (getters == null)\n return Collections.emptySet();\n if (Options.get().isDebugOrTestEnabled())\n return Collections.unmodifiableSet(getters);\n return getters;\n }",
"public interface Getter<T>\n{\n /**\n * Returns the data.\n * \n * @return data\n */\n public T get();\n}",
"public void setModified();",
"public interface Getter {\r\n\tObject get();\r\n}",
"@Test\r\n\tpublic void test_setter_and_getter_title(){\r\n\t\ttestClassDefinition();\r\n\t\tBook c = new BookMock(\"Old Title\", 1);\r\n\t\tc.setTitle(\"New Title\");\r\n\t\tassertEquals(\"Changed title\", \"New Title\", c.getTitle());\r\n\t}",
"public int getAge()\n {\n return age;\n }",
"@Test @DisplayName(\"Injector - setting (direct)\")\n void injectorSetters() throws Exception {\n val injector = injector(inj -> {\n inj.set(\"text\", \"some text\");\n inj.set(\"label\", \"a label\");\n inj.set(\"attrs\", Map.of(\"alpha\", \"one\"));\n });\n\n val injected = injector.inject(new OtherObject());\n assertEquals(\"some text\", injected.getText());\n assertEquals(\"a label\", injected.label);\n assertEquals(Map.of(\"alpha\", \"one\"), injected.getAttrs());\n }",
"protected abstract MethodDescription accessorMethod();",
"private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }",
"public abstract String get();",
"@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}",
"public int getSet() {\n return set;\n }",
"@Override\n public void updateProperties() {\n // unneeded\n }",
"private DiffProperty() {\n\t\t// No implementation\n\t}",
"@java.lang.Override\n public int getAge() {\n return age_;\n }",
"public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }",
"public interface DataAccessor {\n}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"PropertyRealization createPropertyRealization();",
"public V get() {\n return value;\n }",
"public interface Timestampable {\r\n \r\n /**\r\n * Property which represents createdDate.\r\n */\r\n static final String PROP_CREATED_DATE = \"createdDate\";\r\n \r\n /**\r\n * Property which represents modifiedDate.\r\n */\r\n static final String PROP_MODIFIED_DATE = \"modifiedDate\";\r\n \r\n\r\n \r\n Date getCreatedDate();\r\n \r\n void setCreatedDate(Date createdDate);\r\n \r\n Date getModifiedDate();\r\n \r\n void setModifiedDate(Date modifiedDate);\r\n\r\n}",
"@Override\n Derived get();",
"private SetProperty(Builder builder) {\n super(builder);\n }",
"public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}",
"public int get () { return rating; }",
"@Test\n public void generateImplementationWithDuplicateSetter() throws Exception\n {\n Builder<Exercise> builder;\n builder = new ByteBuddy().subclass(Exercise.class);\n builder = builder.defineField(\"value\", int.class, Visibility.PRIVATE);\n builder = builder.method(named(\"setValue\")).intercept(FieldAccessor.ofField(\"value\"));\n builder = builder.method(named(\"getValue\")).intercept(FieldAccessor.ofField(\"value\"));\n builder = builder.method(named(\"setValue\")).intercept(FieldAccessor.ofField(\"value\"));\n Unloaded<Exercise> unloaded = builder.make();\n Exercise pojo = unloaded.load(Exercise.class.getClassLoader(), INJECTION).getLoaded().newInstance();\n pojo.setValue(42);\n assertEquals(42, pojo.getValue());\n }",
"public void generate() {\n\t\tthis.initializePathBindingClass();\n\t\t// managed at abstract level ; name provided at binding generation time\n\t\t// this.addGetName();\n\t\t// this.addGetType();\n\n\t\t// add all properties methods\n\t\tthis.addProperties();\n\t\t// add getter that provides property list\n\t\tthis.addGetChildBindings();\n\n\t\t// initialize class declaration (*Binding)\n\t\tthis.initializeRootBindingClass();\n\t\t// add constructors\n\t\tthis.addConstructors();\n\t\t// add getWithRoot method\n\t\tthis.addGetWithRoot();\n\t\t// add getSafelyWithRoot method\n\t\tthis.addGetSafelyWithRoot();\n\n\t\tthis.addGeneratedTimestamp();\n\t\tthis.addSerialVersionUID();\n\t\tthis.saveCode(this.pathBindingClass);\n\t\tthis.saveCode(this.rootBindingClass);\n\t}",
"public void setNombre(String nombre) {this.nombre = nombre;}",
"public Age getAge() {\n return age;\n }",
"@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}",
"public static void main(String[] args) {\n Student s1 = new Student();\r\n \r\n //set the age for the student \r\n// s1.age = -500; \r\n// System.out.println(\"Age: \"+s1.age);\r\n\r\n s1.setAge(-500);\r\n System.out.println(s1.getAge()); //23 \r\n\r\n \r\n }",
"Property createProperty();",
"void setAge(int age);",
"@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }",
"private AccessorModels() {\n // Private constructor to prevent instantiation\n }",
"@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }",
"public Option() {\n setAutoFields();\n }",
"@Test\n public void testGetSets() {\n ref.setKey(\"test23\");\n assertEquals(\"test23\", ref.getKey());\n ref.setAuthor(\"test23\");\n assertEquals(\"test23\", ref.getAuthor());\n ref.setEditor(\"test23\");\n assertEquals(\"test23\", ref.getEditor());\n ref.setTitle(\"test23\");\n assertEquals(\"test23\", ref.getTitle());\n ref.setBooktitle(\"test23\");\n assertEquals(\"test23\", ref.getBooktitle());\n ref.setYear(\"1839\");\n assertEquals(\"1839\", ref.getYear());\n ref.setPublisher(\"Otava\");\n assertEquals(\"Otava\", ref.getPublisher());\n ref.setJournal(\"test23\");\n assertEquals(\"test23\", ref.getJournal());\n ref.setVolume(\"3\");\n assertEquals(\"3\", ref.getVolume());\n ref.setNumber(\"123\");\n assertEquals(\"123\", ref.getNumber());\n ref.setSeries(\"test23\");\n assertEquals(\"test23\", ref.getSeries());\n ref.setEdition(\"3rd\");\n assertEquals(\"3rd\", ref.getEdition());\n ref.setPages(\"12-35\");\n assertEquals(\"12-35\", ref.getPages());\n ref.setMonth(\"May\");\n assertEquals(\"May\", ref.getMonth());\n ref.setNote(\"test23\");\n assertEquals(\"test23\", ref.getNote());\n }",
"Subscriptions() {\n // Will get filled in with set methods\n }",
"@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"String getName(){return this.name;}",
"@Deprecated\n final Method setter() {\n return this.setter;\n }",
"private UserPrefernce(){\r\n\t\t\r\n\t}",
"public int getAge() {\r\n return age;\r\n }",
"public Value restrictToGetterSetter() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybePrimitive() && !isMaybeObjectOrSymbol())\n return this;\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.object_labels = null;\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }",
"public void setName(String name){this.name=name;}",
"public int getAge();",
"public int getAge();",
"public int geti(){\r\n return i;\r\n}",
"public void testSetters() {\n String name = \"pop\";\n String version = \"2.3\";\n\n Agent agent = new Agent(\"moo\", \"1.5\");\n\n agent.setName(name);\n agent.setVersion(version);\n assertEquals(agent.getName(), name, \"Unexpected agent name.\");\n assertEquals(agent.getVersion(), version, \"Unexpected agent version.\");\n assertEquals(agent.toString(), name + \"/\" + version, \"Unexpected agent display representation.\");\n }",
"void setMyProperty1(Integer a) {}",
"public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }",
"public interface StatusCodePropertiesEditionPart {\n\n\t/**\n\t * @return the number\n\t * \n\t */\n\tpublic String getNumber();\n\n\t/**\n\t * Defines a new number\n\t * @param newValue the new number to set\n\t * \n\t */\n\tpublic void setNumber(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}",
"public String getAuthor(){return author;}",
"@Override\npublic void setAttributes() {\n\t\n}",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }"
]
| [
"0.67245466",
"0.6616195",
"0.6439289",
"0.6341756",
"0.6268741",
"0.6237879",
"0.6237879",
"0.61868",
"0.6141978",
"0.6141338",
"0.61318845",
"0.61265165",
"0.61009014",
"0.60485125",
"0.6042671",
"0.6039016",
"0.6022867",
"0.6012118",
"0.59885335",
"0.594858",
"0.5923321",
"0.5914517",
"0.5909388",
"0.58264256",
"0.5811317",
"0.58056164",
"0.5784017",
"0.5780092",
"0.57778937",
"0.57736105",
"0.5754225",
"0.5753635",
"0.57132906",
"0.5710061",
"0.5710061",
"0.5709707",
"0.57093215",
"0.5670519",
"0.5669901",
"0.56507325",
"0.56463146",
"0.56381816",
"0.56319135",
"0.56303144",
"0.56256944",
"0.5616426",
"0.5611076",
"0.56099355",
"0.5606998",
"0.560046",
"0.5591901",
"0.5587976",
"0.5583649",
"0.5583541",
"0.5569211",
"0.556742",
"0.55432326",
"0.55405873",
"0.55376905",
"0.553283",
"0.5528984",
"0.5528701",
"0.55282074",
"0.55270135",
"0.55225426",
"0.5522119",
"0.55210316",
"0.5512711",
"0.5510143",
"0.55057234",
"0.5504691",
"0.5503659",
"0.54972833",
"0.5490925",
"0.54857016",
"0.5484711",
"0.5471772",
"0.54712725",
"0.54694",
"0.5460262",
"0.5458395",
"0.5452248",
"0.5441107",
"0.54403937",
"0.5436576",
"0.54340285",
"0.5425765",
"0.5425765",
"0.54207474",
"0.54193634",
"0.54174405",
"0.54174256",
"0.54157645",
"0.54139876",
"0.5412895",
"0.54089814",
"0.54089814",
"0.54089814",
"0.54089814",
"0.54089814",
"0.54089814"
]
| 0.0 | -1 |
Initializes a new event properties map with the OGEMA properties plus the standard bundle, message and timestamp properties. | public static Map<String, ?> createEventProperties(ApplicationManager appman, String message, LocalizableEventMessage title, LocalizableEventMessage messageL10N) {
Map<String, Object> eventProps = new HashMap<>();
eventProps.put(EventConstants.BUNDLE, appman.getAppID().getBundle());
eventProps.put(EventConstants.TIMESTAMP, System.currentTimeMillis());
if (message != null) {
eventProps.put(EventConstants.MESSAGE, System.currentTimeMillis());
}
eventProps.put(OGEMA_TIMESTAMP, appman.getFrameworkTime());
if (title != null) {
eventProps.put(TITLE_L10N, title);
}
if (messageL10N != null) {
eventProps.put(MESSAGE_L10N, messageL10N);
}
return eventProps;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"public void initEventsAndProperties() {\r\n }",
"private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }",
"private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"public static void initialize() {\r\n\t\tgraph = null;\r\n\t\tmseeObjectNames = new HashMap<String, String>();\r\n\t\tmseeEventTypes = new HashMap<String, String>();\r\n\t\tmodifiedIdentifiers = new HashMap<String, String>();\r\n\t}",
"private EventMessageMapper() {\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"@SubscribeEvent(priority = EventPriority.NORMAL)\n\tpublic void getMapGenEvent(InitMapGenEvent event)\n\t{\n\t\tif (dimension == 0){\n\t\t\tswitch(event.getType()){\n\t\t\tcase CAVE:\n\t\t\t\tevent.setNewGen(CyborgUtils.caveGen); //= CyborgUtils.caveGen;\n\t\t\t\tbreak;\n\t\t\tcase CUSTOM:\n\t\t\t\tbreak;\n\t\t\tcase MINESHAFT:\n\t\t\t\tbreak;\n\t\t\tcase NETHER_BRIDGE:\n\t\t\t\tbreak;\n\t\t\tcase NETHER_CAVE:\n\t\t\t\tbreak;\n\t\t\tcase RAVINE:// TODO larger Ravines\n\t\t\t\tbreak;\n\t\t\tcase SCATTERED_FEATURE:\n\t\t\t\tbreak;\n\t\t\tcase STRONGHOLD:\n\t\t\t\tbreak;\n\t\t\tcase VILLAGE:\n\t\t\t\tbreak;\n\t\t\tcase OCEAN_MONUMENT: //TODO Uncomment this line for MC 1.8\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\n\t}",
"public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }",
"private void populateInitMap(AlertTreeNode parent) \n throws AlertException {\n\n AlertComponent parentComp = parent.getComponent();\n if (parentComp == null) {\n return;\n }\n\n AlertTreeNode child = parent.getChild();\n for (int i = 0; i < parentComp.getNbChildren(); i++) {\n \n AlertComponent.AlertProperty prop =\n parentComp.getPropertyChild(i);\n \n if (prop.getType() == AlertType.COMPOSITE) {\n populateInitMap(child); \n } else {\n \n AlertTreeNodeLeaf nodeLeaf = child.getLeaf();\n \n // Add index of the property in the Hash\n propertiesInitMap.put(nodeLeaf.getPath(), nodeLeaf);\n \n if (logger.isLoggable(Level.FINE)) {\n logger.fine(\"add new leaf \" + nodeLeaf.getPath());\n }\n }\n child = child.getSibling();\n }\n }",
"private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}",
"protected HashMap createApplicationProperties(MessageContext context) {\n HashMap props = null;\n if (context.containsProperty(\n JMSConstants.JMS_APPLICATION_MSG_PROPS)) {\n props = new HashMap();\n props.putAll((Map)context.getProperty(\n JMSConstants.JMS_APPLICATION_MSG_PROPS));\n }\n return props;\n }",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"private MessageFeatureMap() {}",
"private void initMapper() {\n final BeanPropertyFilter filterOutAllExcept =\n SimpleBeanPropertyFilter.filterOutAllExcept(\"fname\", \"executionTimeNano\");\n this.mapper.addMixInAnnotations(\n PortalEvent.class, PortletRenderExecutionEventFilterMixIn.class);\n final SimpleFilterProvider filterProvider = new SimpleFilterProvider();\n filterProvider.addFilter(\n PortletRenderExecutionEventFilterMixIn.FILTER_NAME, filterOutAllExcept);\n this.portletEventWriter = this.mapper.writer(filterProvider);\n }",
"private void initialiseEventAliases() {\n eventAliases.put(\"entity\", EntityEvent.class);\n eventAliases.put(\"entityc\", EntityCombustEvent.class);\n eventAliases.put(\"entitydbb\", EntityDamageByBlockEvent.class);\n eventAliases.put(\"entitydbe\", EntityDamageByEntityEvent.class);\n eventAliases.put(\"entitydbp\", EntityDamageByProjectileEvent.class);\n eventAliases.put(\"entityd\", EntityDamageEvent.class);\n eventAliases.put(\"entitye\", EntityExplodeEvent.class);\n }",
"@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }",
"public ManagedHsmProperties() {\n }",
"@Override\n protected void initEventAndData() {\n }",
"public LogProfileProperties() {\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public static void init() throws Exception\r\n\t{\r\n\t\tinit(PROPERTY_FILE, \"Properties\", new String[0]);\r\n\t}",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}",
"public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"private void initializeEvents() {\r\n\t}",
"public PropertyMap createPCDATAMap()\n {\n checkState();\n return super.createPCDATAMap();\n }",
"public BoxEnterprise(Map<String, Object> map) {\n super(map);\n }",
"public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}",
"private void init() {\n listeners = new PropertyChangeSupport(this);\n }",
"private void initializeHeatMapOptions() {\n heatMapOptions = new HashMap<>();\n heatMapOptions.put(\"leftShift\", \"0\");\n heatMapOptions.put(\"rightShift\", \"0\");\n heatMapOptions.put(\"reportColumnDisplayName\", \"\");\n heatMapOptions.put(\"activateHeatMap\", \"false\");\n\n }",
"public ApplicationDefinitionProperties() {\n }",
"private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }",
"private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}",
"public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }",
"private void initialize() {\n\t\tplayerMap = new HashMap<>();\n\t\ttypeMap = new HashMap<>();\n\t\tfor (ProductType type : ProductType.values()) {\n\t\t\tMap<ProductState, Map<Integer, Set<Product>>> stateMap = new HashMap<>();\n\t\t\tfor (ProductState state : ProductState.values()) {\n\t\t\t\tMap<Integer, Set<Product>> map = new HashMap<>();\n\t\t\t\tstateMap.put(state, map);\n\t\t\t}\n\t\t\ttypeMap.put(type, stateMap);\n\t\t}\n\t}",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"public void init(java.util.Properties props) {\r\n }",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}",
"public void init(Properties props) ;",
"private void lazyInitializeMap() {\n if (gestureSenderToGestureListener == null) {\n gestureSenderToGestureListener = new HashMap<Class<? extends IInputProcessor>, IGestureEventListener[]>();\n }\n }",
"private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }",
"@PostConstruct\r\n\tpublic void init() throws Exception {\r\n\r\n\t\ttry {\r\n\t\t\tgetFileList(FILE_CHANGE_LISTENER_LOC);\r\n\r\n//\t\t\tfor (File file : fileList) {\r\n//\t\t\t\t\tFileChangedListener fileChangedListener = this.fileChangedListener;\r\n//\t\t\t\t\tObject filePropertiesMap = this.filePropertiesMap;\r\n//\t\t\t\t\tMethod m = filePropertiesMap.getClass().getMethod(\r\n//\t\t\t\t\t\t\t\"refresh\", File.class);\r\n//\t\t\t\t\tm.invoke(filePropertiesMap, file);\r\n//\t\t\t\t\tFileMonitor fm = FileMonitor.getInstance();\r\n//\t\t\t\t\tfm.addFileChangedListener(file, fileChangedListener,\r\n//\t\t\t\t\t\t\tloadOnStartup);\r\n//\t\t\t\t\r\n//\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"Error creating property map \", ex);\r\n\t\t}\r\n\r\n\t}",
"@Test public void testConstructor() {\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n assertNull(source.getProductionModeProperties());\r\n assertNull(source.getDevelopmentModeProperties());\r\n\r\n Properties baseProperties = new Properties();\r\n source.setProductionModeProperties(baseProperties);\r\n assertSame(baseProperties, source.getProductionModeProperties());\r\n\r\n Properties developmentModeProperties = new Properties();\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n assertSame(developmentModeProperties, source.getDevelopmentModeProperties());\r\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }",
"public PropertiesPlus()\n\t{\n\t\tsuper();\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}",
"public void init(Properties properties) throws IOException;",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic EventMessage initPlugEventMessage() {\n\t\treturn null;\n\t}",
"private static EventData constructMessage(long sequenceNumber) {\n final HashMap<Symbol, Object> properties = new HashMap<>();\n properties.put(getSymbol(SEQUENCE_NUMBER_ANNOTATION_NAME.getValue()), sequenceNumber);\n properties.put(getSymbol(OFFSET_ANNOTATION_NAME.getValue()), String.valueOf(OFFSET));\n properties.put(getSymbol(PARTITION_KEY_ANNOTATION_NAME.getValue()), PARTITION_KEY);\n properties.put(getSymbol(ENQUEUED_TIME_UTC_ANNOTATION_NAME.getValue()), Date.from(ENQUEUED_TIME));\n\n final byte[] contents = \"boo\".getBytes(UTF_8);\n final Message message = Proton.message();\n message.setMessageAnnotations(new MessageAnnotations(properties));\n message.setBody(new Data(new Binary(contents)));\n\n return MESSAGE_SERIALIZER.deserialize(message, EventData.class);\n }",
"public ApplicationResourceProperties() {\n }",
"private void initOMHAConfig() {\n // Set configurations required for starting OM HA service, because that\n // is the serviceID being passed to start Ozone HA cluster.\n // Here setting internal service and OZONE_OM_SERVICE_IDS_KEY, in this\n // way in OM start it uses internal service id to find it's service id.\n conf.set(OMConfigKeys.OZONE_OM_SERVICE_IDS_KEY, omServiceId);\n conf.set(OMConfigKeys.OZONE_OM_INTERNAL_SERVICE_ID, omServiceId);\n String omNodesKey = ConfUtils.addKeySuffixes(\n OMConfigKeys.OZONE_OM_NODES_KEY, omServiceId);\n List<String> omNodeIds = new ArrayList<>();\n\n for (int i = 1; i <= numOfOMs; i++) {\n String omNodeId = OM_NODE_ID_PREFIX + i;\n omNodeIds.add(omNodeId);\n\n configureOMPorts(conf, omServiceId, omNodeId);\n }\n\n conf.set(omNodesKey, String.join(\",\", omNodeIds));\n }",
"@Override\n\tpublic EventMessage initLocalEventMessage() {\n\t\treturn getEventMessage();\n\t}",
"public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}",
"@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }",
"public Map<String, Object> toMap(){\n Map<String, Object> newEvent = new HashMap<>();\n newEvent.put(\"uid\", getUid());\n newEvent.put(\"name\", getName());\n newEvent.put(\"host\", getHost());\n newEvent.put(\"hostContribution\", isHostContribution());\n newEvent.put(\"startTime\", getEpochTime());\n newEvent.put(\"location\", getLocation());\n newEvent.put(\"description\", getDescription());\n newEvent.put(\"coverImageUrl\", getCoverImageUrl());\n newEvent.put(\"amountNeeded\", getAmountNeeded());\n return newEvent;\n }",
"protected MapEvent instantiateMapEvent(\n int nId, Object oKey, Object oValueOld, Object oValueNew)\n {\n return new MapEvent(this, nId, oKey, oValueOld, oValueNew);\n }",
"private static void ajouterPropertiesInitialesEnDur(\r\n\t\t\tfinal Locale pLocale) {\r\n\t\t\r\n\t\tif (pLocale.equals(Locale.FRANCE)) {\r\n\t\t\t\r\n\t\t\tmapPropertiesInitiales.put(KEY_LABEL_PRENOM, \"Prénom\");\r\n\t\t\tmapPropertiesInitiales.put(KEY_LABEL_NOM, \"Nom\");\r\n\t\t\t\r\n\t\t} else if (pLocale.equals(Locale.US)){\r\n\t\t\t\r\n\t\t\tmapPropertiesInitiales.put(KEY_LABEL_PRENOM, \"FirstName\");\r\n\t\t\tmapPropertiesInitiales.put(KEY_LABEL_NOM, \"LastName\");\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tmapPropertiesInitiales.put(KEY_LABEL_PRENOM, \"Prénom\");\r\n\t\t\tmapPropertiesInitiales.put(KEY_LABEL_NOM, \"Nom\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public PSBeanProperties()\n {\n loadProperties();\n }",
"@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}",
"public final Map mo18086e() {\n Map e = super.mo18086e();\n e.put(\"events\", new C2902bm(C3149hp.m7284a(this.f7581c.mo30088b())));\n return e;\n }",
"public Map<EventKey, EventMethod> createEventMap() {\n\t\tfinal Map<EventKey, EventMethod> eventMap = new EnumMap<>(EventKey.class);\n\t\tfinal Pair<Map<String, Object>, Set<Class<?>>> eventPair = prepareEventPair();\n\n\t\tfor (Class<?> eventClass : eventPair.getSecond()) {\n\t\t\tfor (Method eventMethod : prepareEventMethods(eventClass)) {\n\t\t\t\teventMap.put(eventMethod.getAnnotation(EventMapping.class).key(),\n\t\t\t\t\t\tnew EventMethod(eventPair.getFirst().get(eventClass.getName()), eventMethod));\n\t\t\t}\n\t\t}\n\t\treturn eventMap;\n\t}",
"public Map() {\n\n\t\t}",
"public Event() {\r\n\r\n\t}",
"public void init() {\r\n setEventType(4);\r\n }",
"private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}",
"private void initPolylineChartPropsNormol1() {\n\t\tif(polylineData == null) {\n\t\t\tpolylineData = new PolylineData();\n\t\t}\n\n\t\t// -------props-------\n\t\t// axis\n\t\t// grid\n\t\t// cross\n\t\t// polyline color\n\n\t\t// gesture\n\t\tpolylineData.setEnableTouchGesture(true, false, false, false);\n\t\t// display range\n\t\tpolylineData.setEnableShowAll(true);\n\t}",
"public Map<String, Object> initiateEventCreation(final String programName,\n final String duration, final String eventMode, final boolean precoolOpted)\n throws ParseException;",
"public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }",
"public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public static void init(FMLInitializationEvent event) {\n }",
"static void addEventMetadata(Event event) {\n event.setSessionId(AssociationController.getSessionId());\n event.setAppInstallId(Prefs.INSTANCE.getAppInstallId());\n event.setDt(DateUtil.iso8601DateFormat(new Date()));\n }",
"public void initializePOAs()\n throws Exception\n { \n\t// NOTE: The RootPOA manager used to activated here.\n\tReferenceFactoryManager rfm = \n\t (ReferenceFactoryManager)orb.resolve_initial_references( \n\t\tORBConstants.REFERENCE_FACTORY_MANAGER ) ;\n\trfm.activate() ;\n\t_logger.log(Level.FINE, \"POAProtocolMgr.initializePOAs: RFM resolved and activated\");\n }",
"public Event() {\n\t}",
"public void populate(java.util.Map properties) throws LexComponentException;",
"private void createImageMap(final ValueMap properties) {\n if (!(properties.containsKey(\"imageMap\"))) {\n return;\n }\n try {\n final String mapDefinition = properties.get(\"imageMap\", \"\");\n if (StringUtils.isNotEmpty(mapDefinition)) {\n this.imageMap = ImageMap.fromString(mapDefinition);\n this.imageMapId = \"map_\" + Math.round(Math.random() * 2147483647.0D) + \"_\" + System.currentTimeMillis();\n }\n\n } catch (final IllegalArgumentException iae) {\n this.imageMap = null;\n this.imageMapId = null;\n }\n }",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}",
"public AmishMart()\n {\n super(\"PokeMart\");\n\n eventArray[20][14] = new Teleport();\n eventArray[20][14].setCoord(5, 2, 18, 17);\n\n eventArray[15][13] = new ShopKeep();\n }",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"private void initializeMap() {\n FLMotor = hardwareMap.get(DcMotor.class, \"FLMotor\");\n FRMotor = hardwareMap.get(DcMotor.class, \"FRMotor\");\n BLMotor = hardwareMap.get(DcMotor.class, \"BLMotor\");\n BRMotor = hardwareMap.get(DcMotor.class, \"BRMotor\");\n //ods = hardwareMap.get(OpticalDistanceSensor.class, \"ods\");\n //color = hardwareMap.get(ColorSensor.class, \"color\");\n //touch = hardwareMap.get(TouchSensor.class, \"touch\");\n gyro = hardwareMap.get(GyroSensor.class, \"gyro\");\n\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n BRMotor.setDirection(DcMotorSimple.Direction.FORWARD);\n BLMotor.setDirection(DcMotorSimple.Direction.REVERSE);\n FRMotor.setDirection(DcMotorSimple.Direction.FORWARD);\n FLMotor.setDirection(DcMotorSimple.Direction.REVERSE);\n }",
"void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}",
"public final void onCreate(android.os.Bundle param0) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.MapView) this.getHInstance()).onCreate(param0)\");\n ((com.huawei.hms.maps.MapView) this.getHInstance()).onCreate(param0);\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.MapView) this.getGInstance()).onCreate(param0)\");\n ((com.google.android.gms.maps.MapView) this.getGInstance()).onCreate(param0);\n }\n }",
"protected Properties loadData() {\n/* 362 */ Properties mapData = new Properties();\n/* */ try {\n/* 364 */ mapData.load(WorldMapView.class.getResourceAsStream(\"worldmap-small.properties\"));\n/* 365 */ } catch (IOException e) {\n/* 366 */ e.printStackTrace();\n/* */ } \n/* */ \n/* 369 */ return mapData;\n/* */ }",
"private AeRegistration() {\n\t\tnotifications = new HashMap<String, List<JSONObject>>();\n\t\tsubscriptions = new HashMap<String,String>();\n\t\tsubscribedToResourcesSet = new HashMap<String,String>();\n\t\tsubscriptionsPerSessions = new HashMap<String, Set<String>>();\n\t}",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"public void init(Properties properties) throws ExtensionException {\n\t}",
"@PostConstruct\n void init() {\n try {\n parameter = 0;\n inmuebleEntityObj = new InmuebleEntity();\n tipoInmuebleEntityObj = new TipoInmuebleEntity();\n localidadEntityObj = new LocalidadEntity();\n propiedadEntityObj = new PropiedadEntity();\n tipoInmuebleEntityList = selectOptions.cbxTipoInmueble();\n propiedadEntityList = selectOptions.cbxPropiedad(true);\n localidadEntityObj = new LocalidadEntity();\n municipioEntityObj = new MunicipioEntity();\n departamentoEntityObj = new DepartamentoEntity();\n provinciaEntityObj = new ProvinciaEntity();\n tipoInmuebleEntityList = selectOptions.cbxTipoInmueble();\n propiedadEntityList = selectOptions.cbxPropiedad(true);\n departamentoEntityList = selectOptions.cbxDepartamento();\n setEstadoProvincia(true);\n setEstadoMunicipio(true);\n setEstadoLocalidad(true);\n validateParameter = beanApplicationContext.getMapValidateParameters();\n miscParameter = beanApplicationContext.getMapMiscellaneousParameters();\n mapaPropiedades = new MapaGoole(miscParameter.get(EnumParametros.LATITUD_CENTER_MAPA.toString()) + \",\" + miscParameter.get(EnumParametros.LONGITUD_CENTER_MAPA.toString()),\n miscParameter.get(EnumParametros.ZOOM_MAPA.toString()),\n miscParameter.get(EnumParametros.TIPO_MAPA.toString()));\n } catch (Exception e) {\n logger.error(\"[init] Fallo en el init.\", e);\n }\n }"
]
| [
"0.62012583",
"0.58170897",
"0.57942665",
"0.54712313",
"0.53740406",
"0.53610855",
"0.5295105",
"0.5262598",
"0.52614576",
"0.52301896",
"0.5228205",
"0.5221778",
"0.5196976",
"0.51895326",
"0.5128564",
"0.51145357",
"0.5108666",
"0.50952935",
"0.50629425",
"0.5055173",
"0.50336534",
"0.50298643",
"0.50152653",
"0.50098413",
"0.5000177",
"0.49629644",
"0.49585778",
"0.49499333",
"0.4948487",
"0.4946373",
"0.49383715",
"0.49341658",
"0.49290434",
"0.49075422",
"0.4905671",
"0.4903791",
"0.48922497",
"0.4878009",
"0.48744336",
"0.48689944",
"0.48626837",
"0.48568285",
"0.48367417",
"0.48185274",
"0.4816436",
"0.48073235",
"0.47855973",
"0.47762844",
"0.4776239",
"0.4771754",
"0.47716445",
"0.47666132",
"0.4755702",
"0.47526315",
"0.47510406",
"0.4746642",
"0.47460595",
"0.47264802",
"0.47070235",
"0.4701837",
"0.4701089",
"0.46998394",
"0.469907",
"0.46957523",
"0.46951908",
"0.46911132",
"0.46902052",
"0.46845493",
"0.46752864",
"0.46728575",
"0.46708813",
"0.46684206",
"0.4657584",
"0.46491668",
"0.46486044",
"0.46449938",
"0.46435848",
"0.46419707",
"0.46413866",
"0.46410936",
"0.4640956",
"0.46408442",
"0.46377665",
"0.46338686",
"0.46330082",
"0.46288654",
"0.46281996",
"0.46281737",
"0.4624769",
"0.46245328",
"0.4619144",
"0.4617327",
"0.46115512",
"0.46100423",
"0.46092895",
"0.4601772",
"0.45928437",
"0.45914364",
"0.45907506",
"0.45893928"
]
| 0.6353578 | 0 |
Guardar usuari en Cloud | public static void guardarUsuariCloud(SPCloud p_spCloud, Usuari p_usuari) {
try {
// Guardar les dades del Usuari al Cloud
p_spCloud.setValUsuari(p_usuari);
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void effacerEnregistrer(){\n users.clear();\n }",
"public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOException e) {\r\n flujoSalida.println(\"Error de entrada/salida, finalizará la aplicación.\");\r\n }\r\n flujoSalida.println(\"Total usuarios registrados: \"+totalUsuarios);\r\n }",
"private void charge_up() throws GB_Exception {\n try{\n if(PersonalDataController.getInstance().existRegistry(username)){\n putPersonalInformation();\n }else{\n putDefaultInformation();\n }\n } catch (SQLException | IOException ex) {\n LOG.error(ex);\n throw new GB_Exception(\"Error al carga informacion de usuario. Comuniquese con su administrador.\");\n }\n }",
"private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }",
"@Override\n\tpublic void guardar() {\n\t\tLOG.info(\"El usuario fue guardado \"+ usuario.getApellido()+\", \"+ usuario.getNombre());\n\t}",
"boolean registrarUsuario(Usuario usuario) throws Exception;",
"public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }",
"public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"public void registerUser(User user) throws UserManagementException;",
"void regist(User user) throws SQLException;",
"@Override\r\n\tpublic void guardar(Usuario usuario) {\n\t\tString pw = usuario.getPassword();\r\n\t\tBCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder(4);\r\n\t\tusuario.setPassword(bCryptPasswordEncoder.encode(pw));\r\n\t\tiUsuario.save(usuario);\r\n\t}",
"Boolean registerNewUser(User user);",
"public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }",
"private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }",
"public void insertUser() {}",
"private void register(String username,String password){\n\n }",
"void ensureUserCreationAllowed(String email, String userName) throws BadRequestException, ConflictException, ServerException;",
"public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }",
"public void cadastrarUsuario(final Usuario usuario){\n mAuth = ConfiguracaoFirebase.getFirebaseAuth();\n mAuth.createUserWithEmailAndPassword(\n usuario.getEmail(),usuario.getSenha()\n ).addOnCompleteListener(\n this, new OnCompleteListener<AuthResult>() {\n //Verifica exceções e se o usuário se cadastrou\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n Toast.makeText(getApplicationContext(),\"Usuário cadastrado com sucesso!\",Toast.LENGTH_SHORT).show();\n finish();\n //Convertendo email em base 64 para ser usado como uidPessoa\n try {\n String identificadorUsuario = Base64Custom.codificarBase64(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setUidPessoa(identificadorUsuario);\n usuario.setNome(FirebaseAuth.getInstance().getCurrentUser().getDisplayName());\n usuario.setEmail(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setPontos(1);\n usuario.salvar();\n cadastrarUsuario(usuario);\n logarUsuario(usuario);\n abrirTelaPrincipal();\n }catch (Exception e){\n e.printStackTrace();\n }\n }else {String excecao = \"\";\n try{\n throw task.getException();\n\n }catch (FirebaseAuthWeakPasswordException e){\n excecao = \"Digite uma senha forte!\";\n }catch (FirebaseAuthInvalidCredentialsException e){\n excecao = \"Por favor, digite um e-mail válido\";\n }catch (FirebaseAuthUserCollisionException e){\n excecao = \"esta conta já está cadastrada\";\n }catch (Exception e){\n excecao = \"Erro ao cadastrar usuário\" + e.getMessage();\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(),excecao,Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\r\n public void registrarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n UsersManager.getInstance().saveCurrentUser();\n }",
"private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }",
"public void guardar(Usuario u) throws Exception{\r\n //paso1 generar el archivo a guardarse\r\n File f=new File(\"archivaldo.raton\");\r\n if(f.exists()) usuarios= buscarTodos();\r\n //indicar que se va a guardar\r\n FileOutputStream fos=new FileOutputStream(f);\r\n \r\n //generar el objeto que nos va a ayudar a guardar el arraylist de usuarios\r\n ObjectOutputStream oos=new ObjectOutputStream(fos);\r\n //ahora si a guardar el objeto\r\n usuarios.add(u);\r\n oos.writeObject(usuarios);\r\n }",
"void registerUser(User newUser);",
"public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}",
"private void registerUserOnServer() throws IOException {\r\n\t\tdataSending.sendMessage(Server.REGISTER+\" \"+userName, Long.toString(userModel.ID));\r\n\t}",
"@Override\n\tpublic void registerUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}",
"protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }",
"private void guardarCredenciales(String codigo,String contra){\n SharedPreferences sharedPreferences = getPreferences(getApplicationContext().MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"USUARIO\",codigo);\n editor.putString(\"PASSWORD\",contra);\n editor.commit();\n }",
"public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"boolean signUp(User user);",
"public String guardarUsuario() {\n\t\terror=\"\";\n\t\tUsuario nuevoUsuario = new Usuario();\n\t\tnuevoUsuario.setPassword(password);\n\t\tnuevoUsuario.setEmail(email);\n\t\tTokenGenerator miToken = new TokenGenerator();\n\t\tnuevoUsuario.setToken(miToken.generateToken());\n\t\t\n\t\tif(usuarioService.validaUsuarioEmail(nuevoUsuario)==true && usuarioService.validaUsuarioPassword(nuevoUsuario)==true && usuarioService.contraseñasComunes(nuevoUsuario)==true) {\n\t\t\terror=null;\n\t\t\tusuarioService.guardarUsuario(nuevoUsuario);//se guarda usuairo\n\t\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\t\tif (usuarioDb != null) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" registrado.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t}\n\t\t\terror=\"Se envio un correo a su cuenta.\";\n\t\t\treturn \"index\";\n\t\t}\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\tif(usuarioDb==null) {\n\t\t\tString accion = \"Error al registrar usuario \"+email;\n\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t}\n\t\terror=\"Email o Contraseña no validos\";\n\t\treturn \"registro\";\n\t}",
"public void save(SystemUser user);",
"private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void run(String... args) throws Exception {\n\t\taccountService.saveUser(new User(\"daoudi\", \"ayoub\", \"ayoub012\", \"1234\", \"[email protected]\"));\n\t\taccountService.saveUser(new User(\"AHMED\", \"dza\", \"ahm22\", \"1234\", \"[email protected]\"));\n\t\taccountService.saveUser(new User(\"Imad\", \"Imad\", \"imad012\", \"4444\", \"[email protected]\"));\n\t\taccountService.saveRole(new Role(\"AUTEUR\"));\n\t\taccountService.saveRole(new Role(\"COMITE\"));\n\t\taccountService.saveRole(new Role(\"REFEREE\"));\n\t\taccountService.addRoleToUser(\"ahm22\", \"AUTEUR\");\n\t\taccountService.addRoleToUser(\"ayoub012\", \"COMITE\");\n\t\taccountService.addRoleToUser(\"imad012\", \"REFEREE\");\n\t\t\n\t}",
"private void checkUserAuthorities() {\n\t\tAuthority auth = authorityRepository.findTop1ByName(AuthorityType.ROLE_ADMIN);\n\t\tif (null == auth) {\n\t\t\tauth = Authority.createAdmin();\n\t\t\tauthorityRepository.save(auth);\n\t\t}\n\t\tAuthority authUser = authorityRepository.findTop1ByName(AuthorityType.ROLE_USER);\n\t\tif (null == authUser) {\n\t\t\tauthUser = Authority.createUser();\n\t\t\tauthorityRepository.save(authUser);\n\t\t}\n\t}",
"private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}",
"@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}",
"@Test\n public void testCleanupCurrentUser_NonOnBehalfUser() throws Exception {\n idService.cleanUpCurrentUser();\n // user must still exist\n PlatformUser user = getDomainObject(supplierAdminUser,\n PlatformUser.class);\n assertNotNull(user);\n }",
"int insert(PlatformAdminRoleUser record);",
"void denyRegistration(String login);",
"public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"void add(User user) throws AccessControlException;",
"@Override\n public boolean userRegister(User user) \n { \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"INSERT INTO users (firstname,lastname,username,password,city,number) \"\n + \"values ('\"+ user.getFirstname()+\"',\" \n + \"'\" + user.getLastname() + \"',\" \n + \"'\" + user.getUsername() + \"',\" \n + \"'\" + user.getPassword() + \"',\" \n + \"'\" + user.getCity() + \"',\"\n + \"'\" + user.getNumber() + \"')\";\n int result = stmt.executeUpdate(sql);\n \n stmt.close();\n conn.close();\n if(result == 1) return true;\n else return false;\n } \n catch (SQLException ex) { ex.printStackTrace(); return false;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return false;} \n }",
"public void uploadUserDetailsToDatabase(String email, String password){\n User user = new User(email, password);\n FirebaseDatabase.getInstance().getReference(\"Users\").push()\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.i(\"details\", \"uploaded\");\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.i(\"details\", \"upload failed\");\n }\n });\n }",
"private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}",
"public void createSystemUser(String nam, String surnam, String id, String username, String password) {\n\t\ttry {\n\t\t\trestaurant.addUser(nam, surnam, id, username, password);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public boolean registerNewUser(String un, String pw, String fn, String ln, String sq, String sa, int age) {\n\n boolean success;\n\n if (isUsernameExist(un)) {\n success = false;\n }\n else {\n // encrypting input password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // creating new user document based on the input from UI\n Document newUser = new Document(\"username\", un)\n .append(\"password\", shaPW)\n .append(\"firstName\", fn)\n .append(\"lastName\", ln)\n .append(\"age\", age)\n .append(\"secureQ\", sq)\n .append(\"secureA\", sa.toLowerCase())\n .append(\"status\", \"\")\n .append(\"hidefriends\",false)\n .append(\"hideposts\",false)\n .append(\"hideage\",false)\n .append(\"hidestatus\",false);\n\n // insert newUser into registeredUser collection\n collRU.insertOne(newUser);\n System.out.println(\"Username \" + un + \" is registered!\");\n success = true;\n \n // create followList for new user\n db.getCollection(\"followList\").insertOne(\n new Document(\"username\", un).append(\"following\", new ArrayList<String>()));\n }\n\n return success;\n }",
"@Test\n public void t01_buscaAdmin() throws Exception {\n Usuario admin;\n admin = usuarioServico.login(\"administrador\", \".Ae12345\");\n assertNotNull(admin);\n }",
"private void registrarDatosBD(String nombre, String apellido, String usuario, String clave, String fnacim) {\n\t\tUsuario u = new Usuario(0, nombre, apellido, usuario, clave, fnacim, 0, 0);\n\t\t// 02. Registrar el obj usando la clase de gestion y guardando\n\t\tint ok = new GestionUsuarios().registrar(u);\n\n\t\t// salidas\n\t\tif (ok == 0) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Error al registrar\");\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(this, \"Registro OK\");\n\t\t}\n\t}",
"public void grantAdministrate(User user) throws ServiceException{\n }",
"private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }",
"private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }",
"@RolesAllowed({ RoleEnum.ROLE_ADMIN, RoleEnum.ROLE_GUEST })\n\tpublic Integer saveUser(User user);",
"@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}",
"@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"[email protected]\", \"region\");\n }",
"private void createAdmin(String book_email,String book_phone,String book_title) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(bookId)) {\n bookId = mFirebaseDatabase.push().getKey();\n }\n\n Book book = new Book(book_email,book_phone,book_title);\n\n mFirebaseDatabase.child(bookId).setValue(book);\n\n addUserChangeListener();\n }",
"void storeUser(User user) throws DataAccessException;",
"@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }",
"String registerUser(User user);",
"public void signup(View view){\r\n if(editText1.getText().toString().isEmpty()||editText2.getText().toString().isEmpty()||editText3.getText().toString().isEmpty()\r\n ||editText4.getText().toString().isEmpty()||editText5.getText().toString().isEmpty()){\r\n Toast.makeText(this, \"Παρακαλώ εισάγετε όλα τα απαραίτητα πεδία προκειμένου να εγγραφείτε.\", Toast.LENGTH_SHORT).show();\r\n }\r\n else{\r\n mAuth.createUserWithEmailAndPassword(editText1.getText().toString(), editText2.getText().toString())\r\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n\r\n if (task.isSuccessful()) {\r\n new_user = mAuth.getCurrentUser();\r\n create_users_list(new_user.getUid());\r\n String userid=new_user.getUid();\r\n String firstname=editText3.getText().toString();\r\n String lastname=editText4.getText().toString();\r\n String address=editText5.getText().toString();\r\n SharedPreferences.Editor editor=pref.edit();\r\n editor.putString(userid+\"firstname\",firstname);\r\n editor.putString(userid+\"lastname\",lastname);\r\n editor.putString(userid+\"address\",address);\r\n editor.apply();\r\n Intent intent = new Intent(getApplicationContext(), MainActivity3.class);\r\n intent.putExtra(\"userid\", new_user.getUid());\r\n\r\n startActivity(intent);\r\n\r\n\r\n } else {\r\n Toast.makeText(getApplicationContext(), task.getException().getMessage(),\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }\r\n }\r\n }\r\n );}}",
"public void creatUser(String name, String phone, String email, String password);",
"@Test\n public void testRegistrar() throws Exception { \n long sufijo = System.currentTimeMillis();\n Usuario usuario = new Usuario(\"Alexander\" + String.valueOf(sufijo), \"alex1.\", TipoUsuario.Administrador); \n usuario.setDocumento(sufijo); \n usuario.setTipoDocumento(TipoDocumento.CC);\n servicio.registrar(usuario); \n Usuario usuarioRegistrado =(Usuario) servicioPersistencia.findById(Usuario.class, usuario.getLogin());\n assertNotNull(usuarioRegistrado);\n }",
"public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }",
"@Override\n public void saveUser(User user) {\n }",
"@Override\n public void intsertUser(SysUser user) {\n System.out.println(\"user插入到mysql数据库中(oracle数据库):\"+user);\n }",
"public boolean register(String u_Name, String u_pw, String f_name){\n List<User> userList = userDao.getUserFromUsername(u_Name);\n //1.check if userName is used\n if (userList.size() != 0){ \n return false;\n }\n //2.create user and add to the DB\n User user = new User(u_Name, u_pw, f_name);\n userDao.addUser(user);\n //3.return true\n return true;\n }",
"public void insereUsuario( Usuario usuario ) {\n\t\ttry {\n\t\t\t// le dados antigos\n\t\t\tArrayList<Usuario> usuarios = new ArrayList<Usuario>();\n\t\t\tusuarios = leUsuarios();\n\t\t\t\n\t\t\tFileOutputStream arq = new FileOutputStream(\"database/usuarios.dat\");\n\t\t\tObjectOutputStream out = new ObjectOutputStream(arq);\n\t\t\t\n\t\t\t// reescreve dados antigos\n\t\t\tboolean existe = false;\n\t\t\tfor ( int i = 0; i < usuarios.size() ; i++ ) {\n\t\t\t\tUsuario aux = usuarios.get(i);\n\t\t\t\t// Não cadastra usuário se login ou crm não for único\n\t\t\t\tif ( aux.getLogin().equals(usuario.getLogin()) || aux.getCrm().equals(usuario.getCrm()) ) {\n\t\t\t\t\texiste = true;\n\t\t\t\t}\n\t\t\t\tout.writeObject(aux);\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t\t\n\t\t\t// insere novo usuário abaixo dos antigos usuários\n\t\t\tif ( !existe ) {\n\t\t\t\tUsuario aux = new Usuario(usuario.getNome(), usuario.getCrm(), \n\t\t\t\t\t\t\t\t\t\t\tusuario.getLogin(), usuario.getSenha());\n\t\t\t\tout.writeObject(aux);\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(\"Usuário cadastrado com sucesso\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Login ou CRM já cadastrada.\");\n\t\t\t}\n\t\t\t\t\n\t\t\tout.close();\t\n\t\t}\n\t\tcatch( IOException exc ) {\n\t\t\t\n\t\t\tSystem.out.println(\"Erro ao gravar arquivo.\");\n\t\t}\n\t}",
"private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }",
"void setUser(OSecurityUser user);",
"public static void main(String[] args) {\n \n \n \n Admin admin = new Admin();\n admin.setFirstName(\"Admin\");\n admin.setLastName(\"Admin\");\n admin.setEmail(\"[email protected]\");\n admin.setGender(\"Male\");\n admin.setUserName(\"admin\");\n admin.setPassword(\"7110eda4d09e062aa5e4a390b0a572ac0d2c0220\");\n admin.setPhoneNumber(\"514-999-0000\");\n //cl.setClientCard(new ClientCard(\"12-34-56\", DateTime.now(),cl));\n admin.saveUser();\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 \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 }",
"@Override\n public void registrarMiembro(UsuarioDTO miembroDTO) {\n if (usuarioDAO.buscar(miembroDTO.getLogin()) != null) {\n throw new ExcepcionUsuarioYaExistente(\"Error: El usuario ya existe\");\n }\n\n Miembro miembro = new Miembro(miembroDTO.getLogin(), miembroDTO.getNombre(), miembroDTO.getClave(), miembroDTO.getUbicacion(), miembroDTO.getBiografia());\n\n if (miembroDTO.getAvatar() != null) {\n miembro.setAvatar(miembroDTO.getAvatar());\n\n } else {\n try {\n ClassPathResource backImgFile = new ClassPathResource(\"image/generic-avatar.jpg\");\n byte[] arrayPic = new byte[(int) backImgFile.contentLength()];\n backImgFile.getInputStream().read(arrayPic);\n miembro.setAvatar(arrayPic);\n\n } catch (IOException ex) {\n throw new ExcepcionErrorInterno(\"Error: No se pudo crear el miembro\");\n }\n }\n\n usuarioDAO.crear(miembro);\n }",
"private void checkAdminInDB(DB db) {\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tlong hashCode = (long) \"admin\".hashCode();\n\t\tif(!users.containsKey(hashCode))\n\t\t\tusers.put(hashCode, new Admin(\"admin\", \"admin\"));\n\t}",
"private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }",
"void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);",
"public boolean saveUser(Owner user) {\r\n boolean f = false;\r\n try {\r\n //user -->database\r\n\r\n String query = \"insert into Owner(name,email,password) values (?,?,?)\";\r\n PreparedStatement pstmt = this.con.prepareStatement(query);\r\n pstmt.setString(1, user.getName());\r\n pstmt.setString(2, user.getEmail());\r\n pstmt.setString(3, user.getPassword());\r\n pstmt.executeUpdate();\r\n f = true;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return f;\r\n\r\n }",
"public void registerUser(RegisterForm form) throws DAOException;",
"@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}",
"public static void createMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"CREATE USER '\" + e.getAbreviation() + \"'@'%' IDENTIFIED BY '\" + e.getPwd() + \"'; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }",
"@Override\n public void success(Object object, Response response) {\n mStorage.save(mSystemUser);\n mServiceGen.release();\n }",
"@Ignore(\"Test is not done yet\")\n @Test\n public void testChangingUsernameToExisting() {\n final UserRequest request = new UserRequest();\n // We're currently logged in as Austria, so we're trying to change the\n // username to Germany.\n request.setNewUsername(\"[email protected]\");\n final Response response = administration.controlUserAccount(token, request);\n assertThat(response.getError(), is(IWSErrors.FATAL));\n }",
"int insertSelective(PlatformAdminRoleUser record);",
"public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n\n\n Usuario usuario2 = new Usuario();\n usuario2.setUsername(\"gustavo\");\n usuario2.setEmail(\"[email protected]\");\n usuario2.setSenha(\"12345\");\n usuario2.setNome(\"Gustavo\");\n usuario2.setCPF(\"666\");\n\n Usuario usuario3 = new Usuario();\n usuario1.setUsername(\"peixe\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"1111\");\n usuario1.setNome(\"quem dera ser um peixe\");\n usuario1.setCPF(\"1111\");\n\n Usuario usuario4 = new Usuario();\n usuario1.setUsername(\"segundo\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n inserir(usuario1);\n inserir(usuario2);\n inserir(usuario3);\n inserir(usuario4);\n }",
"private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }",
"private void writeNewUser(String name,String email,String password) {\n mDatabase.child(\"User\").child(name).child(\"Email\").setValue(email);\n mDatabase.child(\"User\").child(name).child(\"Password\").setValue(password);\n }",
"@Override\n public void run() {\n P2PContext.getInstance().createShardProfilePreferences();\n String userId = P2PContext.getLoggedInUser();\n String deviceId = P2PContext.getCurrentDevice();\n DBSyncManager.getInstance(that).upsertUser(userId, deviceId, \"Photo Message\");\n that.manager.notifyUI(\"Added user -> \" + userId, \" --------> \", LOG_TYPE);\n that.manager.startBluetoothBased();\n }",
"@Override\n public void onClick(View v) {\n trasferisci_utente();\n\n // controlla se tutti i dati sono inseriti\n if (checkInput())\n {\n creaUser();\n NOME = username.getText().toString();\n CHIAVE = password.getText().toString();\n\n // controlla se l'utente USER con i dati inseriti negli edit_text è gia presente\n if (checkUser(persone, NOME, CHIAVE)) {\n\n errore_utente.setVisibility(View.GONE);\n\n // impedisce a due utenti di avere lo stesso username\n if(checkUsername(persone, NOME)) {\n\n errore_duplicato_username.setVisibility(View.GONE);\n\n persone.add(user);\n\n Intent showResult = new Intent(Registration.this, MainActivity.class);\n showResult.putExtra(PERSONA_PATH, persone);\n //showResult.putExtra(UTENTE_PATH, user);\n startActivity(showResult);\n } else {\n errore_duplicato_username.setVisibility(View.VISIBLE);\n }\n } else {\n errore_utente.setVisibility(View.VISIBLE);\n }\n }\n }",
"private void managePreCreatedUsers() {\n int numberRequestedGuests = CarProperties.number_pre_created_guests().orElse(0);\r\n int numberRequestedUsers = CarProperties.number_pre_created_users().orElse(0);\r\n Slog.i(TAG, \"managePreCreatedUsers(): OEM asked for \" + numberRequestedGuests\r\n + \" guests and \" + numberRequestedUsers + \" users\");\r\n if (numberRequestedGuests < 0 || numberRequestedUsers < 0) {\r\n Slog.w(TAG, \"preCreateUsers(): invalid values provided by OEM; \"\r\n + \"number_pre_created_guests=\" + numberRequestedGuests\r\n + \", number_pre_created_users=\" + numberRequestedUsers);\r\n return;\r\n }\r\n\r\n if (numberRequestedGuests == 0 && numberRequestedUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): not defined by OEM\");\r\n return;\r\n }\r\n\r\n // Then checks how many exist already\r\n List<UserInfo> allUsers = mUserManager.getUsers(/* excludePartial= */ true,\r\n /* excludeDying= */ true, /* excludePreCreated= */ false);\r\n\r\n int allUsersSize = allUsers.size();\r\n if (DBG) Slog.d(TAG, \"preCreateUsers: total users size is \" + allUsersSize);\r\n\r\n int numberExistingGuests = 0;\r\n int numberExistingUsers = 0;\r\n\r\n // List of pre-created users that were not properly initialized. Typically happens when\r\n // the system crashed / rebooted before they were fully started.\r\n SparseBooleanArray invalidUsers = new SparseBooleanArray();\r\n\r\n for (int i = 0; i < allUsersSize; i++) {\r\n UserInfo user = allUsers.get(i);\r\n if (!user.preCreated) continue;\r\n if (!user.isInitialized()) {\r\n Slog.w(TAG, \"Found invalid pre-created user that needs to be removed: \"\r\n + user.toFullString());\r\n invalidUsers.append(user.id, /* notUsed=*/ true);\r\n continue;\r\n }\r\n if (user.isGuest()) {\r\n numberExistingGuests++;\r\n } else {\r\n numberExistingUsers++;\r\n }\r\n }\r\n if (DBG) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): system already has \" + numberExistingGuests\r\n + \" pre-created guests,\" + numberExistingUsers + \" pre-created users, and these\"\r\n + \" invalid users: \" + invalidUsers );\r\n }\r\n\r\n int numberGuests = numberRequestedGuests - numberExistingGuests;\r\n int numberUsers = numberRequestedUsers - numberExistingUsers;\r\n int numberInvalidUsers = invalidUsers.size();\r\n\r\n if (numberGuests <= 0 && numberUsers <= 0 && numberInvalidUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): all pre-created and no invalid ones\");\r\n return;\r\n }\r\n\r\n // Finally, manage them....\r\n\r\n // In theory, we could submit multiple user pre-creations in parallel, but we're\r\n // submitting just 1 task, for 2 reasons:\r\n // 1.To minimize it's effect on other system server initialization tasks.\r\n // 2.The pre-created users will be unlocked in parallel anyways.\r\n new Thread( () -> {\r\n TimingsTraceLog t = new TimingsTraceLog(TAG, Trace.TRACE_TAG_SYSTEM_SERVER);\r\n\r\n t.traceBegin(\"preCreateUsers\");\r\n if (numberUsers > 0) {\r\n preCreateUsers(t, numberUsers, /* isGuest= */ false);\r\n }\r\n if (numberGuests > 0) {\r\n preCreateUsers(t, numberGuests, /* isGuest= */ true);\r\n }\r\n t.traceEnd();\r\n\r\n if (numberInvalidUsers > 0) {\r\n t.traceBegin(\"removeInvalidPreCreatedUsers\");\r\n for (int i = 0; i < numberInvalidUsers; i++) {\r\n int userId = invalidUsers.keyAt(i);\r\n Slog.i(TAG, \"removing invalid pre-created user \" + userId);\r\n mUserManager.removeUser(userId);\r\n }\r\n t.traceEnd();\r\n }\r\n }, \"CarServiceHelperManagePreCreatedUsers\").start();\r\n }",
"private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }",
"public void guardarSesion(String usuario, String Password, Button boton, boolean estadoBoton) {\n SharedPreferences preferences = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"usuario\",usuario);\n editor.commit();\n }",
"public void delUtente(Utente u);",
"@PostMapping(\"/guardarPerfil\")\n public String guardarPerfil(Usuario usuario) {\n repoUsuario.save(usuario);\n\n return \"redirect:/gestion/perfil\";\n }",
"public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }",
"public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }",
"public void GuardarSerologia(RecepcionSero obj)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(obj);\n }",
"public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}"
]
| [
"0.60838187",
"0.6049282",
"0.6011283",
"0.5994908",
"0.59537613",
"0.59117824",
"0.58286065",
"0.58203447",
"0.5817833",
"0.58158976",
"0.57977057",
"0.5792862",
"0.57923156",
"0.57767934",
"0.5761554",
"0.5748731",
"0.5741247",
"0.57388663",
"0.5727461",
"0.57062966",
"0.56660545",
"0.56368214",
"0.56141794",
"0.56090724",
"0.5604816",
"0.5600045",
"0.5596382",
"0.55924946",
"0.55883884",
"0.5572743",
"0.5572738",
"0.55691266",
"0.5555431",
"0.55440277",
"0.5538843",
"0.553704",
"0.55277413",
"0.5502346",
"0.54802006",
"0.5472793",
"0.5471129",
"0.54659265",
"0.5458877",
"0.54526275",
"0.5446857",
"0.54432493",
"0.54421073",
"0.5436789",
"0.5435908",
"0.54274786",
"0.5422494",
"0.5421546",
"0.5414455",
"0.54123837",
"0.5411558",
"0.5408578",
"0.5407875",
"0.5401601",
"0.5400458",
"0.5395089",
"0.53933525",
"0.5393283",
"0.5389815",
"0.5388442",
"0.53833747",
"0.5382837",
"0.5382041",
"0.53784126",
"0.5365752",
"0.5363788",
"0.5347961",
"0.53463495",
"0.5337743",
"0.5336475",
"0.53363514",
"0.5334221",
"0.5333573",
"0.5322404",
"0.53209394",
"0.5317686",
"0.53166837",
"0.5316207",
"0.5312684",
"0.531138",
"0.53082085",
"0.52997816",
"0.5297641",
"0.5295928",
"0.5295461",
"0.52915883",
"0.52913564",
"0.5285841",
"0.52847064",
"0.528448",
"0.52806586",
"0.52793926",
"0.5278484",
"0.52781594",
"0.52771676",
"0.5276728"
]
| 0.6562854 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner input = new Scanner(System.in);//creates a scanner to scan input
String[] heroes = {"Spiderman","Ironman","Doctor Strange","Hulk","Thor"};//a string array of heroes
String[] powers = new String[heroes.length];//creates string array 'powers' to store within the heroes
//includes a string for each powers variable
powers[0] = "spider-senses";
powers[1] = "durability";
powers[2] = "spells";
powers[3] = "strength";
powers[4] = "lightning";
boolean[] isHuman = new boolean[heroes.length];//creates boolean array 'isHuman' to store within 'heroes'
//initial boolean to determine if the hero is human
isHuman[0] = true;
isHuman[1] = true;
isHuman[2] = true;
isHuman[3] = false;
isHuman[4] = false;
//prints the array list of heroes and their status
for(int i = 0; i < heroes.length; i++) {
System.out.println("i: " + i + " Name: " + heroes[i] + " \t\tPowers: " + powers[i] + " \tAre they human?: " + isHuman[i]);
}
//checks if the heroes are human
//if not human, their powers changes to 'NONE'
for(int i = 0; i < heroes.length; i++) {
if(isHuman[i] == false) {
powers[i] = "NONE";
}
}
System.out.println();//spacer
System.out.println("A disease known as the Couprinite has been exposed to the Avengers. Everyone survived its effect, however, " + heroes[4] + " and the " + heroes[3] + " loose all their "
+ "\npowers...");//a brief story as to how they lost their powers
System.out.println();//spacer
System.out.println("...status updated.");//informs user the status has updated
System.out.println();//spacer
//prints the array list of heroes and their current status
for(int i = 0; i < powers.length; i++) {
System.out.println("i: " + i + " Name: " + heroes[i] + " \t\tPowers: " + powers[i] + " \t\tAre they human?: " + isHuman[i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
method takes in an employeeID to be deleted. It them prepares the URL needed to send to the API | public static void deleteEmployee(int employeeID) {
try {
// request holds the complete URL to be passed sent to the API
URL request = new URL(endpoint + "/" + employeeID);
// opens connection with API, sends data via URL request
HttpURLConnection connection = (HttpURLConnection) request.openConnection();
connection.setRequestMethod("DELETE");
// if anything other than a successful connection occurs, stop
// program and display the error code
if (connection.getResponseCode() != 200) {
throw new RuntimeException("Failed : HTTP error code : " + connection.getResponseCode());
}
// print out confirmation to the console if successful
System.out.println("Employee Deleted.\n");
} /* try */ catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteEmployee(Long employeeId) throws ApiDemoBusinessException;",
"private void deleteEmployee(HttpServletRequest request, HttpServletResponse response)\r\n\t\tthrows Exception {\n\t\tString theEmployeeId = request.getParameter(\"employeeId\");\r\n\t\t\r\n\t\t// delete employee from database\r\n\temployeeDAO.deleteEmployee(theEmployeeId);\r\n\t\t\r\n\t\t// send them back to \"list employees\" page\r\n\t\tlistEmployees(request, response);\r\n\t}",
"@DELETE\n @Transactional\n @Path(\"/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response delete(\n @PathParam(\"id\") @NotNull(message = ValidationMessages.EMPLOYEE_ID_MUST_NOT_BE_NULL)\n UUID employeeId) {\n\n deleteEmployeeById.handle(employeeId);\n return Response.ok().build();\n }",
"public String deleteEmployee(EmployeeDetails employeeDetails);",
"@Override\n public void deleteEmployee(int employeeId) {\n\n }",
"@DeleteMapping(\"/employees/{employeeId}\")\n\tpublic String deleteEmployee (@PathVariable int employeeId) {\n\t\tEmployee theEmployee = employeeService.fndById(employeeId);\n\t\t\n\t\t// if employee null\n\t\tif (theEmployee == null) {\n\t\t\tthrow new RuntimeException(\"Employee xx his idEmpl not found \"+ employeeId);\n\t\t\t \n\t\t}\n\t\temployeeService.deleteById(employeeId);\n\t\treturn \"the employe was deleted \"+ employeeId;\n\t\t\n\t}",
"public void deleteById(Integer employeeid) {\n\t\temployeerepository.deleteById(employeeid);\n\t}",
"@Override\n\tpublic void deleteEmployeeById(int empId) {\n\t\t\n\t}",
"@DELETE\n\t@Path(\"{empID}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response remove(@PathParam(\"empID\") int id) {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\t\tboolean result = employeeFacade.removeById(id);\n\t\tif (result) {\n\t\t\treturn Response.status(200).build();\n\t\t}\n\t\treturn Response.status(409).build();\n\t}",
"@DeleteMapping(\"/{ecode}\")\n\tpublic ResponseEntity<Employee> deleteEmployee( @PathVariable (value =\"ecode\") long id) {\n\t\tEmployee existingEmployee = this.employeeRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Employee not found with id: \"+ id));\n\t\t\n\t\tthis.employeeRepository.delete(existingEmployee);\n\t\treturn ResponseEntity.ok().build();\n\t}",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)\n public final void deleteEmployee(@PathVariable(\"id\") long id) {\n try {\n LOGGER.info(\"deleting Employee with id=\" + id);\n employeeFacade.removeEmployee(id);\n } catch (NonExistingEntityException | IllegalArgumentException e) {\n throw new RequestedResourceNotFound(\"Employee with id=\" + id + \" does not exist in system.\", e);\n }\n }",
"@DeleteMapping(\"/DeleteEmployee/{empId}\")\r\n public String deleteEmployee(@PathVariable String empId) {\r\n return admin.deleteEmployeeService(empId);\r\n }",
"@Override\r\n\tpublic void deleteEmployeeByEmployeeId(long emplloyeeId) {\n\t\t\r\n\t}",
"@GET\n\t@Path(\"delete\")\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic String deleteEmployee(@QueryParam(\"id\") String id) throws ParseException {\n\t\t\n\t\tJSONObject employeesJsonObject = (JSONObject) parser.parse(getFileContent());\n\t\tJSONArray employeesArray = (JSONArray) employeesJsonObject.get(\"employee\");\n\t\tJSONObject employee;\n\t\t\n\t\t/*checking each employee*/\n\t\tfor ( int i = 0 ; i < employeesArray.size() ; i++ ){\n\t\t\temployee = ((JSONObject) employeesArray.get(i));\n\t\t\t\n\t\t\tif(employee.get(\"id\").toString().equalsIgnoreCase(id)){\n\t\t\t\temployeesArray.remove(employee);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tinsertIntoFile(employeesJsonObject.toString());\n\t\treturn \"success\";\n\t}",
"@Override\n\tpublic void deleteEmployeeById(int id) {\n\t\t\n\t}",
"@DeleteMapping(\"/deleteEmployee/{id}\")\n\tpublic void deleteEmployee(@PathVariable Long id){\n repo.deleteById(id);\n\t}",
"public ResponseEntity<Void> deleteEmployeeDetails(@ApiParam(value = \"employee id to delete\",required=true) @PathVariable(\"empId\") Long empId) {\n \tEmployee newEmp= empService.getEmployeeById(empId);\n\t\t\n\t\tif(newEmp==null) {\n\t\t\tthrow new ResourceNotFoundException(\"Skill with id \"+empId+\" is not found\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n//\t\t\tLOGGER.trace(\" Trying to trace skills to delete details\");\n\t\t\tempService.deleteEmployeeDetails(empId);\n\t\t\treturn new ResponseEntity<>(HttpStatus.ACCEPTED);\n\t\t}\n }",
"@DeleteMapping(\"/employee/{id}\")\r\n\tpublic void delete(@PathVariable Integer id) {\r\n\t\tempService.delete(id);\r\n\t}",
"public void deleteEmployee(int employeeID) {\n try {\r\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\r\n Connection con = DriverManager.getConnection(DatabaseManager.CONNECTION_TO_DATABASE, DatabaseManager.USER_NAME, DatabaseManager.PASSWORD);\r\n\r\n String query = \"DELETE FROM employees WHERE id = '\"+employeeID+\"'\";\r\n\r\n PreparedStatement preparedStatement = con.prepareStatement(query);\r\n preparedStatement.execute();\r\n \r\n if(getEmployeeCount() == 0) \r\n {\r\n DatabaseManager.locations.deleteAllLocations();\r\n }\r\n\r\n con.close();\r\n\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(e.getMessage());\r\n\r\n JOptionPane.showMessageDialog(null, e.getMessage());\r\n } catch (SQLException e2) {\r\n System.out.println(e2.getMessage());\r\n\r\n JOptionPane.showMessageDialog(null, e2.getMessage());\r\n }\r\n\r\n }",
"public String deleteEmployee(String employeeID) {\n\t\t\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tst.executeUpdate(\n\t\t\t\t\t\"DELETE Employee, Login FROM mwcoulter.Employee INNER JOIN mwcoulter.Login WHERE \"\n\t\t\t\t\t+ \"Email = Username AND ID = \" + Integer.valueOf(employeeID));\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn \"failure\";\n\t\t}\n\t\treturn \"success\";\n\n\t}",
"@DeleteMapping(\"employee/{employeeId}\")\n\tpublic void deleteEmployeeById(@PathVariable(\"employeeId\") int employeeId, Principal principal)\n\t{\n\t\temployeeService.deleteEmployeeById(employeeId,principal);\n\t}",
"@RequestMapping(path = \"/employee/{id}\", method = RequestMethod.DELETE)\r\n\t@ResponseBody\r\n\tpublic String deleteEmployeeById(@PathVariable int id) {\r\n\t\ter.deleteById(id);\r\n\t\treturn \"Employee deleted with id: \" + id;\r\n\t}",
"@GET\n @Path(\"/removeEmployeeById/{empId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String removeEmployeeById(@PathParam(\"empId\") String empId){\n String output = \"\";\n try {\n output = EmployeeFacade.getInstance().removeEmployeeById(empId);\n } catch (IOException e) {\n output = \"Error\";\n }\n return output;\n }",
"@GetMapping(\"/deleteEmployee/{emp_no}\")\n\tpublic String deleteEmployee(@PathVariable(value = \"emp_no\") Integer emp_no) {\n\t\tthis.service.deleteEmployeeById(emp_no);\n\t\treturn \"redirect:/employees\";\n\t}",
"@DeleteMapping(\"/{id}\")\n public ResponseEntity deleteEmployee(@PathVariable(\"id\") Long id){\n Employee employee = employeeService.deleteEmployee(id);\n String responseMessage = String.format(\"Employee: %s ID: %s has been deleted from records.\", employee.getName(), employee.getEmployeeId());\n return new ResponseEntity<>(responseMessage, HttpStatus.OK);\n }",
"@Override\n\tpublic void deleteEmployee(Employee employee) {\n\t\t\n\t}",
"public ResponseEntity<Void> deleteEmp(@ApiParam(value = \"employee id to delete\",required=true) @PathVariable(\"empId\") Long empId) {\n \tEmployee newEmp= empService.getEmployeeById(empId);\n\t\t\n\t\tif(newEmp==null) {\n\t\t\tthrow new ResourceNotFoundException(\"Skill with id \"+empId+\" is not found\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n//\t\t\tLOGGER.trace(\" Trying to trace skills to delete details\");\n\t\t\tempService.deleteEmp(empId);\n\t\t\treturn new ResponseEntity<>(HttpStatus.ACCEPTED);\n\t\t}\n }",
"@DeleteMapping(\"/remove/{id}\")\n\tpublic ResponseEntity<String> deleteEmployee(@PathVariable Integer id) {\n\t\tResponseEntity<String> response = null;\n\t\ttry {\n\t\t\tservice.deleteEmployee(id);\n\t\t\tString message = \"Employee '\" + id + \"' Deleted!\";\n\t\t\tresponse = new ResponseEntity<String>(message, HttpStatus.OK);\n\t\t} catch (EmployeeNotFoundException e) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn response;\n\t}",
"@Override\n\tpublic ResponseEntity<Employee> deleteById(Long id) {\n\t\treturn null;\n\t}",
"@RequestMapping(value = BASE_URL_API + DELETE_EMPLOYEE_BY_ID, method=RequestMethod.DELETE)\r\n public HttpEntity<?> deleteEmployee(@PathVariable(\"id\") String id) {\r\n\r\n checkLogin();\r\n\r\n employeeService.deleteEmployeeById(id);\r\n\r\n return new ResponseEntity<>(HttpStatus.OK);\r\n }",
"@GetMapping(\"/deleteEmployee/{id}\")\n public String deleteEmployee(@PathVariable(value =\"id\") long id){\n employeeService.deleteEmployeeById(id);\n return \"redirect:/\";\n }",
"@Override\r\n\tpublic void deleteEmployee(int id) {\n\t\ttry {\r\n\t DirectlyDatabase.update(PropertyManager.getProperty(\"db_employee_delete\"), id +\"\"); \r\n\t\t} catch (SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\t\r\n\t}",
"@DeleteMapping(value=\"/employes/{Id}\")\n\tpublic void deleteEmployeeDetailsByEmployeeId(@PathVariable Long Id) {\n\t\t\n\t\temployeeService.deleteEmployeeDetails(Id);\t\n\t}",
"@Override\r\n\tpublic Map deleteEmployee(long employeeId) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void deleteEmpByID(int employeeID) {\n\t\temployeeRepository.deleteById(employeeID);\n\t}",
"@DeleteMapping(\"/employee/{id}\")\n\tpublic ResponseEntity<Map<String, Boolean>> deleteEmployee(@PathVariable Long id){\n\t\tEmployee employee = emprepo.findById(id).orElseThrow(()-> new ResourceNotFoundException(\"Employee not exist with id: \"+id ));\n\t\t\n\t\temprepo.delete(employee);\n\t\tMap<String, Boolean> response = new HashMap<>();\n\t\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\t\treturn ResponseEntity.ok(response);\n\t\t\t\n\n\t}",
"@Override\n\tpublic void delete(Integer employeeId) {\n\t\tEmployee e = employeeDao.getById(employeeId);\n\t\temployeeDao.delete(e);\n\t}",
"@Override\n\tpublic String deleteEmployee(int id) {\n\t\treturn employeeDao.deleteEmployee(id);\n\t}",
"@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.DELETE)\r\n\tpublic void deleteCustomerDetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\teService.deleteEmployeeDetails(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void deleteEmployee(Employee e) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteEPAData(int empId) {\n\t}",
"public void deleteEmployee(ActionRequest request, ActionResponse response) throws SystemException, PortalException {\n\t\tString stringKey = request.getParameter(\"deleteKey\");\n\t\tlong employeeId = Long.valueOf(stringKey);\n\t\tEmployee employee = EmployeeLocalServiceUtil.getEmployee(employeeId);\n\t\tServiceContext serviceContext = ServiceContextFactory.getInstance(DLFolder.class.getName(), request);\n\t\tEmployeeLocalServiceUtil.deleteEmployee(employeeId);\n\t\tResourceLocalServiceUtil.deleteResource(serviceContext.getCompanyId(), Employee.class.getName(),\n\t\t\t\tResourceConstants.SCOPE_INDIVIDUAL, employee.getEmployeeId());\n\t\tif (employee.getFileEntryId() > 0) {\n\t\t\tDLFileEntryLocalServiceUtil.deleteDLFileEntry(employee.getFileEntryId());\n\t\t}\n\t\tresponse.setRenderParameter(\"mvcPath\", \"/html/employee/view.jsp\");\n\t}",
"@Override\n\tpublic void deleteEmployee() {\n\n\t}",
"public void deleteEmployee(Long id) {\n employeeRepository.deleteById(id);\n }",
"private void deleteEmployee() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }",
"public void deleteEmployee(int id) {\r\n\t\temployee1.remove(id);\r\n\t}",
"@Override\n\tpublic boolean deleteEmployeeById(int employeeId) {\n\t\tint isDeleted = template.update(\"delete from employee where empid = ?\", employeeId);\n\t\tif (isDeleted > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void DeleteEmployee(int idEmployee)\n\t{\n\t\tfor(int i = 0; i < departments.size() ; i++)\n\t\t\tfor(Employee emp : departments.get(i).getEmployeeList())\n\t\t\t{\n\t\t\t\tif(emp.getIdEmployee()==idEmployee) \n\t\t\t\t{\n\t\t\t\t\tdepartments.get(i).delEmployee(emp);break;\n\t\t\t\t}\n\t\t\t}\n\t}",
"public void deleteEmp(int empno) {\n\t\t\n\t}",
"@Override\r\n\tpublic void delete(Employee arg0) {\n\t\t\r\n\t}",
"@DELETE\n\t@Path(\"/{exerciseId}\")\n\t@Nonnull\n\tString deleteExerciseById(@Nonnull @PathParam(\"exerciseId\") Long exerciseId);",
"@DELETE\n\t@Path(\"/{exerciseId}\")\n\t@Nonnull\n\tResponse deleteExerciseById(@Nonnull @PathParam(\"exerciseId\") Long exerciseId);",
"@Override\r\n\tpublic ResponseEntity<String> deleteEmployee(int employeeId,String authToken) throws ManualException{\r\n\t\tfinal\tSession session=sessionFactory.openSession();\r\n\t\t\r\n\t\tResponseEntity<String> responseEntity=new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\r\n\t\t\r\n\t\t/* check for authToken of admin */\r\n\t\tsession.beginTransaction();\r\n\t\ttry{\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\t\tUser userAdmin=session.get(User.class, authtable.getUser().getEmpId());\r\n\t\t\tif(userAdmin.getUsertype().equals(\"Admin\")){\r\n\t\t\t\tUser user = session.get(User.class, employeeId);\r\n\t\t\t\tif(user!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* delete from user_skill */\r\n\t\t\t\t\tString sql = \"delete FROM user_skill WHERE user_employeeId = :employee_id\";\r\n\t\t\t\t\tSQLQuery query = session.createSQLQuery(sql);\r\n\t\t\t\t\tquery.setParameter(\"employee_id\", user.getEmpId() );\r\n\t\t\t\t\tquery.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* delete from authtable */\r\n\t\t\t\t\tString hql = \"delete FROM authtable where employeeId= :empId\" ;\r\n\t\t\t\t\tQuery query2 = session.createQuery(hql);\r\n\t\t\t\t\tquery2.setInteger(\"empId\", user.getEmpId());\r\n\t\t\t\t\tquery2.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* delete from operations table */\r\n\t\t\t\t\thql = \"delete FROM operations where employeeId= :empId\" ;\r\n\t\t\t\t\tquery2 = session.createQuery(hql);\r\n\t\t\t\t\tquery2.setInteger(\"empId\", user.getEmpId());\r\n\t\t\t\t\tquery2.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t/* delete from user */\r\n\t\t\t\t\tsession.delete(user);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* delete from usercredential */\r\n\t\t\t\t\tsession.delete(user.getUserCredential());\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* entry in operation table */\r\n\t\t\t\t\tOperationImpl operationImpl= new OperationImpl();\r\n\t\t\t\t\toperationImpl.addOperation(session, userAdmin, \"Deleted Employee \"+user.getName());\r\n\t\t\t\t\t\r\n\t\t\t\t\tresponseEntity=new ResponseEntity<String>(HttpStatus.OK);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tresponseEntity=new ResponseEntity<String>(HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tresponseEntity=new ResponseEntity<String>(HttpStatus.UNAUTHORIZED);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tresponseEntity=null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn responseEntity;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void deleteEmployee(Employee t) {\n\t\t\r\n\t}",
"public void delete(Employee employee){\n employeeRepository.delete(employee);\n }",
"@DeleteMapping(\"/deleteByID/{id}\")\n\t\tpublic ResponseEntity deleteByID(@PathVariable Integer id) {\n\t\t\tOptional<EmployeeMon> empId = repository.findById(id);\n\t\t\tif(empId.isPresent()) {\n\t\t\t\trepository.deleteById(id);\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t}",
"@Override\n\tpublic int deleteEmployeeByID(int empid) throws RemoteException {\n\t\treturn DAManager.deleteEmployeeByID(empid);\n\t}",
"@Override\n public final void doDelete() {\n try {\n checkPermissions(getRequest());\n final List<APIID> ids = new ArrayList<APIID>();\n\n // Using ids in json input stream\n if (id == null) {\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n throw new APIMissingIdException(\"Id of the element to delete is missing [\" + inputStream + \"]\");\n }\n\n // Parsing ids in Json input stream\n final AbstractTreeNode<String> tree = JSonSimpleDeserializer.unserializeTree(inputStream);\n\n if (tree instanceof Tree<?>) {\n final List<AbstractTreeNode<String>> nodes = ((Tree<String>) tree).getNodes();\n\n for (final AbstractTreeNode<String> node : nodes) {\n if (node instanceof Tree<?>) {\n ids.add(APIID.makeAPIID(((Tree<String>) node).getValues()));\n } else if (node instanceof TreeLeaf<?>) {\n ids.add(APIID.makeAPIID(((TreeLeaf<String>) node).getValue()));\n } else {\n throw new APIMissingIdException(\"Id of the elements to delete are missing or misswritten \\\"\" + inputStream + \"\\\"\");\n }\n }\n } else {\n throw new APIMissingIdException(\"Id of the elements to delete are missing or misswritten \\\"\" + inputStream + \"\\\"\");\n }\n }\n\n // Using id in URL\n else {\n ids.add(id);\n }\n\n api.runDelete(ids);\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@RequestMapping( method = RequestMethod.DELETE)\r\n\tpublic void deleteEmp(@RequestParam(\"employeeBankId\") String employeeBankId, HttpServletRequest req) {\r\n\t\tlogger.info(\"deleteEmp is calling :\" + \"employeeBankId\" + employeeBankId);\r\n\t\tLong empBankId = Long.parseLong(employeeBankId);\r\n\t\tbankDetailsService.delete(empBankId);\r\n\t}",
"@Override\r\n\tpublic int deleteEmployee(Connection con, Employee employee) {\n\t\treturn 0;\r\n\t}",
"HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;",
"public void delete(Long id) {\n log.debug(\"Request to delete Employee : {}\", id);\n employeeRepository.deleteById(id);\n }",
"@Override\r\n\tpublic Map deleteEmployee(String str, HttpServletResponse response) throws JSONException {\n\t\tobj=new JSONObject(str);\r\n\t\tlong employeeId=0;\r\n\t\tObject persistentInstance=null;\r\n\t\tmap=new HashMap();\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tif(!obj.isNull(\"employeeId\")) {\r\n\t\t\temployeeId=obj.getLong(\"employeeId\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tpersistentInstance = employeeDao.getEmployee(employeeId);\r\n\t\t}catch(Exception e) {\r\n\t\t\tSystem.out.println(\"coming\");\r\n\t\t\treturn (Map) map.put(\"msg\", \"Entered employee Id not found\");\r\n\t\t}\r\n\t\t\r\n\t if (persistentInstance != null && employeeId!=0) {\r\n\t session.delete(persistentInstance);\r\n\t map.put(\"msg\", \"Employee Deleted Successsfully\");\r\n\t response.setStatus(200);\r\n\t }else {\r\n\t \t map.put(\"msg\", \"Employee Id is not exist\");\r\n\t \t response.setStatus(402);\r\n\t }\r\n\t\treturn map;\r\n\t}",
"public boolean removeEmployee(int empID){\n log.debug(\"Inside removeEmployee Method.\");\n String deleteSQL;\n\n log.debug(\"User entered only employeeID, removing employee by ID\");\n deleteSQL = \"DELETE FROM employeeDetails where empID = \" + empID;\n\n if(database.updateDatabase(deleteSQL)){\n removeEmployeeAvailability(empID);\n log.debug(\"Successfully removed employee, returning to controller.\");\n return true;\n }\n log.debug(\"Failed to removed employee, returning to controller.\");\n return false;\n }",
"@DeleteMapping(\"{id}\")\n\t@Secured(Roles.ADMIN)\n\tpublic ResponseEntity<?> delete(@PathVariable long id) {\n\t\tLogStepIn();\n\n\t\tEmployee employee = employeeRepository.findById(id);\n\t\tif (employee == null) {\n\t\t\treturn LogStepOut(ResponseEntity.notFound().build());\n\t\t}\n\t\telse {\n\t\t\tuserRepository.deleteById(employee.getUser().getId());\n\t\t\temployeeRepository.deleteById(id);\n\t\t\treturn LogStepOut(ResponseEntity.noContent().build());\n\t\t}\n\t}",
"public void deleteEmployee(Integer employeeID) {\n\t\tSession session = factory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\tEmployee employee = (Employee) session.get(Employee.class, employeeID);\n\t\t\tsession.delete(employee);\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}",
"@Override\n\tpublic String deleteEmp(int eid) {\n\t\treturn eb.deleteEmp(eid);\n\t}",
"@Override\n\tpublic void deleteEmployee(Employee employee) {\n\t\tEmployee deleteEmployee = em.find(Employee.class, employee.getId());\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tem.remove(deleteEmployee);\n\t\t\tem.getTransaction().commit();\n\t\t\tSystem.out.println(\"Employee Data Removed successfully\");\n\t\t\tlogger.log(Level.INFO, \"Employee Data Removed successfully\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Not found\");\n\t\t}\n\n\t}",
"@Override\n\tpublic void deleteByEmployeeId(Long id) {\n\t\temployeeRepository.deleteById(id);\n\t}",
"public static int doDelete(String id) {\n int status = 0;\n try {\n // pass the id on the URL line\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\" + \"//\"+id);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"DELETE\");\n status = conn.getResponseCode();\n String output = \"\";\n String response = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return status;\n }",
"public boolean deleteEmployee(int employeeID){\n try {\n DatabaseSupport.deleteEmployee(employeeID);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n return false;\n }\n return true;\n }",
"@Override\n\tpublic void delete(Employee employee) {\n\t\temployeeDao.delete(employee);\n\t}",
"public static void deleteRecord(Integer employeeId) {\n\t\ttry {\n\t\t\t// Getting Session Object From SessionFactory\n\t\t\tsessionObj = buildSessionFactory().openSession();\n\t\t\t// Getting Transaction Object From Session Object\n\t\t\tsessionObj.beginTransaction();\n\n\t\t\tFuncionario employeeObj = findRecordById(employeeId);\n\t\t\tsessionObj.delete(employeeObj);\n\n\t\t\t// Committing The Transactions To The Database\n\t\t\tsessionObj.getTransaction().commit();\n\t\t} catch (Exception sqlException) {\n\t\t\tif (null != sessionObj.getTransaction()) {\n\t\t\t\tsessionObj.getTransaction().rollback();\n\t\t\t}\n\t\t\tsqlException.printStackTrace();\n\t\t} finally {\n\t\t\tif (sessionObj != null) {\n\t\t\t\tsessionObj.close();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic EmployeeBean deleteEmployeeDetails(Integer id) throws Exception {\n\t\treturn employeeDao.deleteEmployeeDetails(id);\n\t}",
"@RequestMapping(value = \"/delete/{bookId}\", method = RequestMethod.GET)\n\tpublic @ResponseBody()\n\tStatus deleteEmployee(@PathVariable(\"bookId\") long bookId) {\n\t\ttry {\n\t\t\tbookService.deleteBook(bookId);;\n\t\t\treturn new Status(1, \"book deleted Successfully !\");\n\t\t} catch (Exception e) {\n\t\t\treturn new Status(0, e.toString());\n\t\t}\n\t}",
"@Override\n\tpublic void deleteEmp(int id) {\n\t\tConnection con=null;\n\t\tPreparedStatement stmt=null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\n\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/ems?user=root&password=root\");\n\t\tString query=\"delete from employee where id=?\";\n\t\tstmt=con.prepareStatement(query);\n\t\tstmt.setInt(1, id);\n\t\tstmt.execute();\n\t\t\n\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Override\n public Mechanic deleteEmployee(Long id) {\n LOGGER.info(\"Delete Mechanic with id {}\", id);\n Mechanic mechanic = getEmployee(id);\n mechanicRepository.delete(mechanic);\n return mechanic;\n }",
"public abstract Employee deleteEmployee(int id) throws DatabaseExeption;",
"@Override\n\tpublic void deleteEmployee(Employee emp) {\n\t\tlog.debug(\"EmplyeeService.deleteEmployee(Employee emp) delete Employee object whos id is\" + emp.getId());\n\n\t\trepositary.delete(emp);\n\n\t}",
"@RequestMapping(value = \"/monthlypasses/{id}\", method = RequestMethod.DELETE)\n\tpublic void removeEmployee(@PathVariable Integer id) {\n\t\tmonthPathService.deleteMonthlyPassById(id);\n\t}",
"void delete(URI url) throws RestClientException;",
"@Override\n public void deleteById(int theId) {\n Query theQuery = entityManager.createQuery(\n \"delete from Employee where id=:employeeId\");\n theQuery.setParameter(\"employeeId\", theId);\n theQuery.executeUpdate();\n }",
"@DELETE\n public void delete(@PathParam(\"id\") String id) {\n }",
"@RequestMapping(value = \"/empregado/deletar/{empregadoId}\\r\\n\",method = RequestMethod.DELETE)\n\tpublic ResponseEntity<EmpregadoDto> deletar(Integer id, EmpregadoDto empDto){\n\t\tOptional<EmpregadoDto> dto = repoEmp.findById(id);\n\t\tif(dto.isPresent()) {\n\t\t\trepoEmp.delete(empDto);\n\t\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t\t}else {\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t}",
"HttpResponse httpDelete(URI uri, String id);",
"@Override\r\n\tpublic void deleteEmployee(int id) {\n\t\temployees.removeIf(emp -> emp.getEmpId()==(id));\r\n\t}",
"@DeleteMapping(\"/etape-examen/{id}\")\n public ResponseEntity<Void> deleteEtapeExamen(@PathVariable Long id) {\n log.debug(\"REST request to delete EtapeExamen : {}\", id);\n etapeExamenService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\r\n\tpublic int deleteEmployee(int empId) {\n\t\tint added = 0;\r\n\t\tString insertData = \"delete from employee where empId=?\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(insertData);\r\n\t\t\tps.setInt(1, empId);\r\n\t\t\tadded = ps.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn added;\r\n\r\n\t}",
"@DeleteMapping(\"/offers/{id}\")\n @Timed\n public ResponseEntity<Void> deleteOffer(@PathVariable Long id) {\n log.debug(\"REST request to delete Offer : {}\", id);\n offerService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public String deleteUrl(String id)\r\n\t{\n\t\treturn null;\r\n\t}",
"public static void deleteEmployee(Employee employee) {\n try {\n if (employeeRepository.delete(dataSource, employee) == 0) {\n LOGGER.info(\"The employee \" + employee.getFirstName() + \" \" + employee.getLastName() +\n \" \" + employee.getBirthday() + \" was successfully deleted from the list of employees\");\n System.out.println(\"\\n\" + resourceBundle.getString(\"emp\") + \" \" + employee.getFirstName() + \" \" + employee.getLastName() +\n \" \" + employee.getBirthday() + \" \" + resourceBundle.getString(\"success.delete\") + \"\\n\");\n } else {\n LOGGER.warn(\"The employee \" + employee.getFirstName() + \" \" + employee.getLastName() + \" \" + employee.getBirthday() + \" was not found in the list of employees\");\n System.out.println(\"\\n\" + resourceBundle.getString(\"emp\") + \" \" + employee.getFirstName() + \" \" + employee.getLastName() + \" \" + employee.getBirthday() + \" \" + resourceBundle.getString(\"not.in.list\") + \"\\n\");\n }\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n }",
"public void delete(EmployeeEntity entity){\n EmployeeDB.getInstance().delete(entity);\n }",
"@Override\n\tpublic ClientResponse delete(Integer id) {\n\t\tWebResource webResource = this.webResource.path(\"/location/\" + id);\t\t\n\t\tBuilder builder = getBuilder (webResource);\n\t\t\n\t\t// Invocation de la méthode DELETE HTTP\n\t\tClientResponse clientResponse = builder.delete(ClientResponse.class);\n\t\t\t\t\n\t\treturn clientResponse;\n\t}",
"private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"private void deleteFun() throws IOException {\n String jsonObject = \"{\\\"age\\\":10,\\\"dateOfBirth\\\":1471455886564,\\\"fullName\\\":\\\"Johan Doe\\\"}\";\n IndexRequest indexRequest = new IndexRequest(\"people\");\n indexRequest.source(jsonObject, XContentType.JSON);\n\n IndexResponse response = client.index(indexRequest, RequestOptions.DEFAULT);\n String id = response.getId();\n\t System.out.println(\"id = \" + id);\n\n GetRequest getRequest = new GetRequest(\"people\");\n getRequest.id(id);\n\n GetResponse getResponse = client.get(getRequest, RequestOptions.DEFAULT);\n System.out.println(getResponse.getSourceAsString());\n\n DeleteRequest deleteRequest = new DeleteRequest(\"people\");\n deleteRequest.id(id);\n\n DeleteResponse deleteResponse = client.delete(deleteRequest, RequestOptions.DEFAULT);\n\t System.out.println(\"deleteResponse = \" + deleteResponse.toString());\n }",
"@RequestMapping(\"/deleteemployee\")\npublic ModelAndView deleteEmployeeRecord(@RequestParam int employee_id)\n{\n\tergserv.delEmployee(employee_id);\n\tModelAndView mv= new ModelAndView();\n\tmv.addObject(\"msg\",\"RECORD DELETED\");\n\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\treturn mv;\n}",
"public EmployeeEntity deleteEmployeeData(int employeeId, StorageContext context) throws PragmaticBookSelfException {\n\t\tEmployeeEntity result = null;\n\t\tSession hibernateSession = context.getHibernateSession();\n\t\tresult = (EmployeeEntity) hibernateSession.get(EmployeeEntity.class, employeeId);\n\t\treturn result;\n\n\t}",
"void delete(String url, Map<String, ?> uriVariables) throws RestClientException;",
"public abstract Response delete(Request request, Response response);",
"public void delete(Employee employee) {\r\n\r\n String sql = \"delete from db.emp where id= ?\";\r\n try {\r\n Connection connection = ConnectDB();\r\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\r\n preparedStatement.setInt(1,employee.getId());\r\n\r\n int rows=preparedStatement.executeUpdate();\r\n String message=rows==1 ? \"A fost sters cu succes\": \"Nu este nimic de sters\";\r\n\r\n System.out.println(message);\r\n\r\n } catch (SQLException Ex) {\r\n System.out.println(Ex.getMessage());\r\n System.out.println(\"Eroare la stergere\"+ Ex.getMessage());\r\n\r\n }\r\n }"
]
| [
"0.73687094",
"0.71472615",
"0.7121791",
"0.7033502",
"0.6996115",
"0.69952357",
"0.6930787",
"0.6869495",
"0.68462884",
"0.6830383",
"0.6802696",
"0.6776946",
"0.6747148",
"0.67469674",
"0.67274725",
"0.67237455",
"0.6709003",
"0.66998166",
"0.6676465",
"0.6636108",
"0.6633147",
"0.66208684",
"0.66149724",
"0.6608166",
"0.65781796",
"0.65250385",
"0.65244013",
"0.64966905",
"0.6495192",
"0.6491875",
"0.64792675",
"0.64480317",
"0.64304155",
"0.63959223",
"0.6389084",
"0.6360038",
"0.6332394",
"0.6328394",
"0.6326586",
"0.631626",
"0.6301113",
"0.62857574",
"0.6282816",
"0.6259235",
"0.623831",
"0.62285477",
"0.62270457",
"0.6211218",
"0.61861885",
"0.6164051",
"0.61463416",
"0.6135742",
"0.61324006",
"0.6126417",
"0.611099",
"0.610877",
"0.6106282",
"0.6106119",
"0.6088375",
"0.6080339",
"0.60795754",
"0.6078965",
"0.60506356",
"0.6050606",
"0.60445446",
"0.60255885",
"0.602314",
"0.6004449",
"0.5959775",
"0.5949391",
"0.5940878",
"0.59288806",
"0.5918523",
"0.59166867",
"0.59068006",
"0.59026164",
"0.5892947",
"0.58890533",
"0.58788",
"0.58672065",
"0.5847681",
"0.58267796",
"0.5818538",
"0.5803441",
"0.5803226",
"0.5792205",
"0.57812935",
"0.5768809",
"0.57553715",
"0.57531047",
"0.5738351",
"0.57332253",
"0.5728372",
"0.57275903",
"0.572656",
"0.572326",
"0.5716393",
"0.5715468",
"0.5705958",
"0.5703031"
]
| 0.7896763 | 0 |
Creates new form cusRegister | public cusRegister() throws ClassNotFoundException {
initComponents();
con = DBConnect.connection();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public String createRegisterForm(Register reg)\n {\n DBConnect db = new DBConnect();\n Connection con;\n \n try\n {\n con = (Connection) db.establishConnection();\n String q = \"insert into registerUser (register_name, register_email, register_phone, register_pass)\"\n + \"values (?, ?, ?, ?)\";\n \n PreparedStatement prepareState = con.prepareStatement(q);\n \n prepareState.setString(1, reg.getRegisterName());\n prepareState.setString(2, reg.getRegisterEmail());\n prepareState.setString(3, reg.getRegisterPhone());\n prepareState.setString(4, reg.getRegisterPassword());\n \n prepareState.execute();\n con.close();\n \n return \"Successfully Registered..!!\";\n }\n \n catch(Exception ex)\n {\n System.err.println(\"Exception..!!\");\n System.err.println(\"Message: \" + ex.getMessage());\n \n return \"Data Not Registered..!!\";\n }\n \n }",
"public Successful_Registration() {\n initComponents();\n }",
"@GetMapping(\"/register\")\r\n\tpublic String showRegistrationForm(Model theModel) {\r\n\t\ttheModel.addAttribute(\"user\", new UserCrm());\r\n\t\treturn \"registration\";\r\n\t}",
"@RequestMapping(\"/register\")\r\n\tpublic ModelAndView register(@ModelAttribute(\"registerForm\") final UserRegisterForm form) {\r\n\t\treturn new ModelAndView(\"users/register\");\r\n\t}",
"void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }",
"public signup() {\n initComponents();\n }",
"public Doctor_register() {\n initComponents();\n }",
"public\n RegisterView()\n {\n super(ViewKeys.REGISTER);\n\n setAccount(null);\n setAccountChooser(new ElementComboBoxChooser(getAccounts()));\n setFilter(new TransactionFilter());\n setPanel(new Panel());\n setSearchWidget(new SearchWidget(createPopupMenu()));\n\n // Build panel.\n setFill(GridBagConstraints.BOTH);\n add(createToolsPanel(), 0, 0, 1, 1, 0, 0);\n add(getPanel(), 0, 1, 1, 1, 100, 100);\n\n getAccountChooser().setAllowInactiveAccounts(false);\n\n // Add listeners.\n getAccountChooser().addActionListener(new ActionHandler());\n getSearchWidget().addActionListener(new ActionHandler());\n }",
"public Sign_up() {\n initComponents();\n }",
"public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }",
"public Read_userregister() {\n initComponents();\n }",
"public Signup() {\n initComponents();\n }",
"@GetMapping(\"register\")\n public String registerForm(RegisterForm registerForm) {\n return \"register\";\n }",
"public RegisterView() {\r\n\r\n\t\tcontainer = getContentPane();\r\n\t\tcontainer.setLayout(new BorderLayout());\r\n\t\tpanelRegister = new JPanel(new GridLayout(8, 1));\r\n\t\tpanelButton = new JPanel(new GridLayout(1, 2));\r\n\t\ttextFieldUser = new JTextField();\r\n\t\tpasswordFieldPassword = new JPasswordField();\r\n\t\tpasswordFieldRePassword = new JPasswordField();\r\n\t\tcheckBoxIsFarmer = new JCheckBox();\r\n\t\tlabelUser = new JLabel(\"Username: \");\r\n\t\tlabelPassword = new JLabel(\"Password: \");\r\n\t\tlabelRePassword = new JLabel(\"Confirm Password: \");\r\n\t\tlabelIsFarmer = new JLabel(\"Farmer? (Yes/No)\");\r\n\r\n\t\tpanelRegister.add(labelUser);\r\n\t\tpanelRegister.add(textFieldUser);\r\n\t\tpanelRegister.add(labelPassword);\r\n\t\tpanelRegister.add(passwordFieldPassword);\r\n\t\tpanelRegister.add(labelRePassword);\r\n\t\tpanelRegister.add(passwordFieldRePassword);\r\n\t\tpanelRegister.add(labelIsFarmer);\r\n\t\tpanelRegister.add(checkBoxIsFarmer);\r\n\r\n\t\tpanelRegister.setBackground(Util.orange);\r\n\t\tpanelButton.setBackground(Util.orange);\r\n\t\t\r\n\t\tregisterCancelController = new RegisterCancelController();\r\n\t\t\r\n\t\tbuttonRegister = new JButton(\"Confirm Registration\");\r\n\t\tregisterController = new RegisterController();\r\n\t\tbuttonRegister.addActionListener(e -> registerController.startProcess(this));\r\n\t\tbuttonCancel = new JButton(\"Cancel\");\r\n\t\tregisterCancelController = new RegisterCancelController();\r\n\t\tbuttonCancel.addActionListener(e -> registerCancelController.startProcess(this));\r\n\t\t\r\n\t\tpanelButton.add(buttonRegister);\r\n\t\tpanelButton.add(buttonCancel);\r\n\r\n\r\n\r\n\t\tcontainer.add(panelRegister, BorderLayout.CENTER);\r\n\t\tcontainer.add(panelButton, BorderLayout.SOUTH);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setSize(500, 500);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setTitle(\"Register\");\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\r\n\t}",
"public RegisterPanel() {\n control = new ControlRegister();\n initComponents();\n }",
"public SignUp() {\n initComponents();\n }",
"public SignUp() {\n initComponents();\n }",
"public void registerUser(RegisterForm form) throws DAOException;",
"private FormLayout initRegisterForm() {\r\n final FormLayout formLayout = new FormLayout();\r\n formLayout.getElement().getThemeList().removeAll(formLayout.getElement().getThemeList());\r\n formLayout.setClassName(StyleConstants.REGISTER_CONTENT.getName());\r\n\r\n nameField = new VTextField(getTranslation(\"name.label\"));\r\n\r\n lastNameField = new VTextField(getTranslation(\"lastName.label\"));\r\n\r\n birthDate = new VDatePicker(getTranslation(\"birthDate.label\"));\r\n birthDate.setMax(LocalDate.now().minusYears(5));\r\n birthDate.setMin(LocalDate.now().minusYears(100));\r\n final DatePickerI18n calendarLocalization = new DatePickerI18n();\r\n birthDate.setI18n(calendarLocalization);\r\n\r\n identificationNumberField = new VTextField(getTranslation(\"identificationNumber.label\"));\r\n identificationNumberField.addValueChangeListener(e -> {\r\n if (setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^[0-9]*$\"), \"field.onlyNumbers\")) {\r\n return;\r\n }\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 4);\r\n });\r\n identificationNumberField.setMinLength(4);\r\n identificationNumberField.setMaxLength(8);\r\n identificationNumberField.setValueChangeMode(ValueChangeMode.EAGER);\r\n\r\n emailField = new VEmailField(getTranslation(\"email.label\"));\r\n emailField.setValueChangeMode(ValueChangeMode.EAGER);\r\n emailField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^\\\\w+@[a-zA-Z_]+?\\\\.[a-zA-Z]{2,3}$\"), \"field.notEmail\");\r\n });\r\n usernameField = new VTextField(getTranslation(\"username.label\"));\r\n\r\n passwordField = new VPasswordField(getTranslation(\"password.label\"));\r\n repeatPasswordField = new VPasswordField(getTranslation(\"repeatPassword.label\"));\r\n passwordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n passwordField.setMinLength(5);\r\n passwordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 5);\r\n });\r\n\r\n repeatPasswordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n repeatPasswordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(),\r\n !e.getValue().equals(passwordField.getValue()) && StringUtils.isNotBlank(passwordField.getValue()), \"field.passwordNotMatch\");\r\n });\r\n\r\n professionSelect = new VSelect<>(getTranslation(\"profession.label\"));\r\n professionSelect.setItemLabelGenerator(item -> getTranslation(item.getProfessionTranslationKey()));\r\n professionSelect.setItems(Arrays.asList(Professions.values()));\r\n\r\n organizationSelect = new VSelect<>(getTranslation(\"organization.label\"));\r\n organizationSelect.setItemLabelGenerator(item -> item.getName());\r\n\r\n final VButton requestAccessButton = new VButton(getTranslation(\"requestAccess.label\"));\r\n requestAccessButton.addClassName(StyleConstants.BUTTON_BLUE.getName());\r\n requestAccessButton.addClickListener(e -> requestAccess());\r\n\r\n final RouterLink signInButton = new RouterLink(getTranslation(\"signIn.label\"), LoginView.class);\r\n\r\n formLayout.add(nameField, lastNameField, birthDate, identificationNumberField, emailField, usernameField, passwordField, repeatPasswordField,\r\n professionSelect, organizationSelect);\r\n formLayout.setColspan(requestAccessButton, 2);\r\n\r\n formLayout.add(requestAccessButton, signInButton);\r\n requestAccessButton.addClickListener(e -> {\r\n\r\n });\r\n return formLayout;\r\n }",
"public Sign_Up() {\n initComponents();\n }",
"@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tRegister theRegister = new Register();\n\t\t\n\t // add register object to the model\n\t\ttheModel.addAttribute(\"register\", theRegister);\n\t\t\n\t\treturn \"register-form\";\n\t}",
"public Register() {\n initComponents();\n }",
"public Register() {\n initComponents();\n }",
"public Register() {\n initComponents();\n }",
"public Register() {\n initComponents();\n }",
"@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"[email protected]\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}",
"public Register() {\n initComponents();\n\n }",
"public Register_beneficiary() {\n initComponents();\n }",
"public VentanaDialogRegister(ListadoUsuarios listadoUsuarios) {\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\tthis.listadoUsuarios = listadoUsuarios;\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(0, 139, 139));\n\t\tpanel.setBounds(0, 0, 444, 271);\n\t\tgetContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\ttxtContrasea = new JPasswordField();\n\t\ttxtContrasea.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtContrasea.setBounds(183, 114, 113, 23);\n\t\tpanel.add(txtContrasea);\n\t\ttxtContrasea.setColumns(10);\n\t\t\n\t\ttxtNombreDeUsuario = new JTextField();\n\t\ttxtNombreDeUsuario.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtNombreDeUsuario.setBounds(183, 73, 113, 30);\n\t\tpanel.add(txtNombreDeUsuario);\n\t\ttxtNombreDeUsuario.setColumns(10);\n\t\t\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Registrar\");\n\t\t\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\tauxUsuario = listadoUsuarios.buscarUnUsuario(txtNombreDeUsuario.getText());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(auxUsuario==null){\n\t\t\t\t\tauxUsuario= new Usuario();\n\t\t\t\t\tauxUsuario.setAdmin(false);\n\t\t\t\t\tauxUsuario.setNombreU(txtNombreDeUsuario.getText());\n\t\t\t\t\tauxUsuario.setClave(txtContrasea.getText());\n\t\t\t\t\tlistadoUsuarios.agregarUsuario(auxUsuario);\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"USUARIO REGISTRADO\");\n\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"ERROR! ESE NOMBRE DE USUARIO YA EXISTE\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(172, 205, 124, 30);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"REGISTRO DE USUARIOS\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(134, 11, 196, 37);\n\t\tpanel.add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Nombre de Usuario:\");\n\t\tlblNewLabel_1.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 14));\n\t\tlblNewLabel_1.setBounds(54, 76, 128, 23);\n\t\tpanel.add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Clave:\");\n\t\tlblNewLabel_1_1.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 14));\n\t\tlblNewLabel_1_1.setBounds(119, 113, 79, 23);\n\t\tpanel.add(lblNewLabel_1_1);\n\t}",
"@RequestMapping(value = \"/register\", method = RequestMethod.GET)\n public ModelAndView displayRegisterForm() {\n return new ModelAndView(\"registerForm\", \"customer\", new Customer());\n }",
"public RegisterPanel() {\n initComponents();\n }",
"@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }",
"@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }",
"public CreateCustomer() {\n initComponents();\n }",
"public void displayRegisterForm(View v) {\n\n Intent intent = new Intent(getApplicationContext(), RegistrationScreenActivity.class);\n startActivityForResult(intent, NEW_USER_REGISTER);\n }",
"public sign_up_page() {\n initComponents();\n }",
"private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }",
"public Register() {\n initComponents();\n \n }",
"public PatientRegForm() {\n initComponents();\n }",
"@GetMapping(\"/register\")\n\tpublic String provideRegistrationForm(Model map)\n\t{\n\t\tSystem.out.println(\"inside vendor reg form\" + getClass().getName());\n\t\tmap.addAttribute(\"vendor_details\", new Vendor());\n\t\tmap.addAttribute(\"payment_modes\", PaymentMode.values());\n\t\tSystem.out.println(map);\n\t\treturn \"/admin/register\";\n\t}",
"public Admin_SignUp() {\n initComponents();\n }",
"public NewUser() {\n initComponents();\n }",
"@RequestMapping(value = \"/user/registrationForm\", method = RequestMethod.GET)\n\tpublic ModelAndView registrationForm(HttpServletRequest request) {\n\t\tlog.debug(\"User registration\");\n\t\tString communityId = \"-1\";\n\t\tModelAndView model=new ModelAndView(\"form/registration\",\"command\",new User()); \n\t\tmodel.addObject(\"selectedCommunity\", communityId);\n\t\treturn model; \n\t}",
"public RegistrarPagoCXC() {\n initComponents();\n HoraFecha ob2 = new HoraFecha();\n jdfecha.setDate(ob2.obtenerFechamascienanos());\n Buscar_cxc.restropagocxcCxpexitoso = false;\n Buscar_cxp.restropagocxpCxpexitoso = false;\n\n//// spinerDiasCredito.setValue(30);\n//// HoraFecha ob2 = new HoraFecha();\n//// fecha = ob2.obtenerFecha();\n//// jDateChooser1.setDate(fecha);\n//// \n//// jDateChooser1.setDate(sumarRestarDiasFecha(fecha, Integer.valueOf(spinerDiasCredito.getValue().toString())));\n//// txt_entrada.grabFocus(); \n//// txt_entrada.selectAll();\n//// \n ////formas de pago\n fp = OperacionesForms.FormasPagoCXC_seExceptualaformadePago_Credito(jComboBox1);\n\n//OperacionesForms.getAllComponents(this)\n// jComboBox1.setSelectedItem(Principal.formadepagopredeterminada);\n /// HoraFecha.fecha(fecha)\n }",
"@GetMapping(\"register\")\n public String registerForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"register_form\";\n }",
"@RequestMapping(value = \"/create\", method = RequestMethod.GET)\n public final String create(final ModelMap model) {\n model.addAttribute(REGISTER, new Register());\n return \"create\";\n }",
"private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n nametxt = new javax.swing.JTextField();\n register = new javax.swing.JButton();\n cancel = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n passwordtxt = new javax.swing.JPasswordField();\n cPasswordtxt = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n setPreferredSize(new java.awt.Dimension(800, 600));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 0));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Register\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Name\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Password\");\n\n nametxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n nametxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nametxtActionPerformed(evt);\n }\n });\n\n register.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n register.setText(\"Register\");\n register.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerActionPerformed(evt);\n }\n });\n\n cancel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n cancel.setText(\"Cancel\");\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Confirm Password\");\n\n passwordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n cPasswordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(274, 274, 274)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(167, 167, 167)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nametxt)\n .addComponent(passwordtxt, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE)\n .addComponent(cPasswordtxt)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(224, 224, 224)\n .addComponent(register, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(146, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(59, 59, 59)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(passwordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(cPasswordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(register)\n .addComponent(cancel))\n .addGap(40, 40, 40))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}",
"@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}",
"@GetMapping(value=\"/\")\n\tpublic String showRegistrationForm(WebRequest request, Model model) {\n\t\tUserDTO userDTO = new UserDTO();\n\t\tmodel.addAttribute(\"user\", userDTO);\n\t\treturn \"security/register\";\n\t}",
"@GetMapping(\"/register\")\n public String showRegister(Model model){\n model.addAttribute(\"user\", new User());\n return \"registerForm\";\n }",
"public CoachRegisterGUI() {\n initComponents();\n \n policyTP.setContentType(\"text/html\");\n policyTP.setEditable(true);\n policyTP.setText(new Policy().getPolicy());\n policyTP.setEditable(false);\n PolicySP.getVerticalScrollBar().setValue(0);\n this.setLocationRelativeTo(null);\n ArrayList<Country> countries = CountryDAO.findAll();\n DefaultComboBoxModel model = new DefaultComboBoxModel();\n for(Country country: countries){\n model.addElement(country.getName());\n }\n countryCbx.setModel(model);\n CoachUserNameTF.setText(\"test\");\n CoachNameTF.setText(\"test\");\n CoachLastNameTF.setText(\"test\");\n CoachEmailTF.setText(\"[email protected]\");\n hegihtTF.setText(\"180\");\n weightTF.setText(\"50\");\n ageTF.setText(\"30\");\n coachDescriptionTA.setText(\"soy un usuario de test\");\n }",
"@RequestMapping(\"/processForm\")\n\tpublic String processForm( @Valid @ModelAttribute(\"register\") Register theRegister, BindingResult theBindingResult) {\n\t\tSystem.out.println(\"Register new: \" + theRegister.getFirstName() \n\t\t\t\t\t\t+ \" \" + theRegister.getLastName());\n\t\t\n\t\tif(theBindingResult.hasErrors()) {\n\t\t\t\n\t\t\treturn \"register-form\";\n\t\t}else {\n\t\t\treturn \"register-confirmation\";\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public SignUpForm(Context ctx) {\n super(ctx);\n init();\n }",
"public SignUP() {\n initComponents();\n }",
"@Override\n public void onRegisterClick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n if (fm.findFragmentByTag(TAG_FRG_REG_1) != null)\n ft.hide(fm.findFragmentByTag(TAG_FRG_REG_1));\n ft.add(site.getId(), new ControladorRegistro(),TAG_FRG_REG_12);\n ft.addToBackStack(TAG_FRG_REG_12);\n ft.commit();\n\n }",
"public Register() {\n \n initComponents();\n \n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"@GetMapping(\"/register-particular\")\n\tpublic ModelAndView goToRegisterPartForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-particular\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}",
"public void RegisterClick(View view) {\n Intent intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n Toast.makeText(getApplicationContext(), \"Register as a new user\", Toast.LENGTH_SHORT).show();\n }",
"public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }",
"public PnNewCustomer() {\n initComponents();\n }",
"@RequestMapping(\"/createnewuser\")\r\n\tpublic ModelAndView userCreated(@ModelAttribute(\"rg\") Register reg) {\r\n\t\t\r\n\t\tBigInteger num = reg.getMb_no();\r\n\t\tSystem.out.println(\"mbno=\"+num.toString());\r\n\t\t//Doing the entry of New User in Spring_Users table\r\n\t\t\r\n\t\tString username = reg.getEmail_id();\r\n\t\tString password = reg.getPassword();\r\n\t\tSpringUsers su = new SpringUsers();\r\n\t\tsu.setUsername(username);\r\n\t\tsu.setPassword(password);\r\n\t\tsu.setEnabled(1);\r\n\t\tSystem.out.println(\"username=\"+username);\r\n\t\tSystem.out.println(\"password=\"+password);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString r = reg.getUser_type();\r\n\t\t\r\n\t\t//if(r.equals(\"ROLE_INDIVIDUAL\"))\r\n\t\t\t//return new ModelAndView(\"individualhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BROKER\"))\r\n\t//\t\treturn new ModelAndView(\"brokerhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BUILDER\"))\r\n\t\t//\treturn new ModelAndView(\"builderhomepage\");\r\n\t\t\r\n\t//\tint i = susvc.entryOfNewUser(su);\r\n\t\t\r\n\t\tint j = regsvc.registerNewUser(reg);\r\n\t\t \r\n\t\treturn new ModelAndView(\"usercreated\");\r\n\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n txtPhone = new javax.swing.JTextField();\n txtAddress = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n txtRepassword = new javax.swing.JPasswordField();\n btnRegister = new javax.swing.JButton();\n btnBackLogin = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 0, 51));\n jLabel1.setText(\"Đăng Ký\");\n\n jLabel2.setText(\"Họ Tên\");\n\n jLabel3.setText(\"SĐT\");\n\n jLabel4.setText(\"Địa chỉ\");\n\n jLabel5.setText(\"Mật khẩu\");\n\n jLabel6.setText(\"Nhập lại mật khẩu\");\n\n btnRegister.setText(\"Đăng Ký\");\n btnRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterActionPerformed(evt);\n }\n });\n\n btnBackLogin.setText(\"Trở lại\");\n btnBackLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackLoginActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(444, 444, 444)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(btnBackLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtName)\n .addComponent(txtPhone)\n .addComponent(txtAddress)\n .addComponent(txtPassword)\n .addComponent(txtRepassword, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel1)))\n .addContainerGap(470, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(104, 104, 104)\n .addComponent(jLabel1)\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel3))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel4))\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(txtAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtRepassword, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBackLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(237, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public StudentRegistration() {\n initComponents();\n }",
"UserRegistrationResponse registrationPost(RegistrationForm registrationForm);",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"public RegisterFrm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n registerBtn = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox<>();\n passwordTxt = new javax.swing.JPasswordField();\n\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel3.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 640, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"SF Pro Rounded\", 1, 18)); // NOI18N\n jLabel8.setText(\"Registro de nuevos usuarios\");\n jPanel3.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 40, -1, -1));\n\n jLabel10.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel10.setText(\"Primer apellido del usuario\");\n jPanel3.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 260, -1, -1));\n\n jLabel11.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel11.setText(\"Correo\");\n jPanel3.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 100, -1, -1));\n\n jTextField1.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jTextField1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel3.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 280, 240, 30));\n\n jTextField2.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jTextField2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n jPanel3.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 120, 240, 30));\n\n jLabel12.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel12.setText(\"Numero de documento\");\n jPanel3.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100, -1, -1));\n\n jLabel13.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel13.setText(\"Primer nombre del usuario\");\n jPanel3.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 180, -1, -1));\n\n jTextField3.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jTextField3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel3.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 200, 240, 30));\n\n jTextField4.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jTextField4.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField4ActionPerformed(evt);\n }\n });\n jPanel3.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 120, 240, 30));\n\n jLabel14.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel14.setText(\"Rol\");\n jPanel3.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 180, -1, -1));\n\n jLabel15.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel15.setText(\"Contraseña\");\n jPanel3.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 260, -1, -1));\n\n jLabel17.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jLabel17.setText(\"Registrar usuario\");\n jPanel3.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 430, -1, -1));\n\n registerBtn.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n registerBtn.setForeground(java.awt.Color.darkGray);\n registerBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerBtnActionPerformed(evt);\n }\n });\n jPanel3.add(registerBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 420, 160, 40));\n registerBtn.addMouseListener(escuchaM);\n\n jComboBox1.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Administrador\", \"Gerente\", \"Operador\" }));\n jPanel3.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 200, 240, 30));\n\n passwordTxt.setFont(new java.awt.Font(\"SF Pro Rounded\", 0, 14)); // NOI18N\n jPanel3.add(passwordTxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 280, 240, 30));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 870, 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(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 870, 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, 670, 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(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 670, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n }",
"public Registration() {\n initComponents();\n managerpassword_label.setVisible(false);\n managerpassword_passfield.setVisible(false);\n \n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"public FormInserir() {\n initComponents();\n }",
"@RequestMapping(value = \"register\", method = RequestMethod.POST)\n public String register(@ModelAttribute @Valid RegisterForm registerForm, Errors errors, HttpServletRequest request, Model model) {\n\n if (errors.hasErrors()) {\n model.addAttribute(\"title\", \"Register to RandNums\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User existingUser = userDao.findByUsername(registerForm.getUsername());\n\n if (existingUser != null) {\n errors.rejectValue(\"username\", \"username.alreadyexists\", \"A user with that username already exists\");\n model.addAttribute(\"title\", \"Register\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User newUser = new User(registerForm.getUsername(), registerForm.getEmail(), registerForm.getPassword());\n\n userDao.save(newUser);\n setUserInSession(request.getSession(), newUser);\n\n return \"redirect:/home\";\n }",
"public RegisterPage goRegisterPage () {\n return topBar.goRegisterPage();\n }",
"public void registerNewUser(View v) {\n Intent intent = new Intent(this, com.mms.memorizationgame.RegisterActivity.class);\n\n finish();\n startActivity(intent);\n }",
"public Registracija() {\n initComponents();\n }",
"public adduser() {\n initComponents();\n }",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}",
"private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }",
"@RequestMapping(value = \"/registreren\", method = RequestMethod.POST)\n\tpublic String register(HttpServletRequest req, @ModelAttribute(\"form\") RegisterForm form,\n Errors errors, HttpSession session) {\n synchronized(AccountController.class) { // hopefully registrations don't occur too much\n User user = userSessionService.getCurrentUser(session);\n if (user == null || user.isAnonymous()) {\n validator.validate(form, errors);\n if (!errors.hasErrors()) {\n try {\n user = new User();\n form.applyTo(user);\n userRepo.store(user);\n userSessionService.login(session, user);\n int userId = user.getId();\n\t\t\t\t\t\t\n String userName = \"anonymous\";\n userName = Integer.toString(userId);\n\t\t\t\t\t\tString userIP = ipUtil.getClientIp(req);\n\t\t\t\t\t\tString action = \"register\";\n\t\t\t\t\t\tString userAgent = req.getHeader(\"user-agent\");\n\t\t\t\t\t\tString referer = req.getHeader(\"Referer\");\n\t\t\t\t\t\tif (referer == null){\n\t\t\t\t\t\t\treferer = \"register\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog4jPrefix.initialise(userName, userIP, action, userAgent, referer);\n log.info(String.format(\"Registered %s!\", user.getShortDescription()));\n } catch(Exception e) {\n // this exception may have been caused by duplicate user\n // so we'll simply validate again. If validation fails\n // we'll return this page, otherwise we'll rethrow,\n // resulting in the error page\n validator.validate(form, errors);\n if (!errors.hasErrors()) {\n if (e instanceof RuntimeException) {\n throw (RuntimeException) e;\n }\n throw new RuntimeException(e);\n }\n // show form again\n return \"register\";\n }\n } else {\n // show form again\n return \"register\";\n }\n }\n }\n return \"redirect:/\";\n\t}",
"@RequestMapping(value = {\"/register\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model) {\n User user = new User();\n Customer customer = new Customer();\n List<UserProfile> userProfileList = new ArrayList();\n user.setCustomer(customer);\n user.setUserProfileList(userProfileList);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"edit\", false);\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }",
"public Registro() {\n initComponents();\n }",
"public Registro() {\n initComponents();\n }",
"@GetMapping(\"/register-pro\")\n\tpublic ModelAndView goToRegisterProForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-pro\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}",
"public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }",
"public AddCustomer() {\n initComponents();\n }",
"public void register(View view){\n Intent i = new Intent(this, RegisterActivity.class);\n startActivity(i);\n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"public Registro_Usuario() {\r\n System.out.println(\"hola mundo \");\r\n initComponents();\r\n System.out.println(\"hola\");\r\n }",
"private void registrar(HttpServletRequest request, HttpServletResponse response) throws ServletException {\n\t\ttry {\n\t\t\t//leo lo que nos envia el formulario de la vista nuevoCliente.jsp y los almaceno en un objeto tipo Cliente\n\t\t\tCliente miCliente = new Cliente();\n\t\t\t\t\n\t\t\t//agregamos al objeto lo que proviene del formulario usando el constructor de clase Cliente\n\t\t\tmiCliente.setNombre(request.getParameter(\"nombre\"));\n\t\t\tmiCliente.setEmail(request.getParameter(\"email\"));\n\t\t\tmiCliente.setPass(request.getParameter(\"password\"));\n\t\t\tmiCliente.setEdad(Integer.parseInt(request.getParameter(\"edad\")));\n\t\t\tmiCliente.setDomicilioCalle(request.getParameter(\"domicilioCalle\"));\n\t\t\tmiCliente.setDomicilioNumero(Integer.parseInt(request.getParameter(\"domicilioNumero\")));\n\t\t\tmiCliente.setLocalidad(request.getParameter(\"localidad\"));\n\t\t\t\n\t\t\t//seteamos la fecha/hora de sesion\n\t\t\tDate d=new Date();\n\t\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"yy-MM-dd hh:mm:ss\");//objeto tipo formato de fecha. Le pasamos el formato de la fecha\n\t\t\tString ultimaSesion=sdf.format(d);\n\t\t\tmiCliente.setUltimaSesion(ultimaSesion);\n\t\t\t\n\t\t\tmiCliente.setIdUsuario(Integer.parseInt(request.getParameter(\"idUsuario\")));//seteo el valor 2 que viene oculto desde el form\n\t\t\t\n\t\t\t//llamo al modelo para hacer el INSERT verfico si pudo insertar\n\t\t\tif(modelo.crearCliente(miCliente)) {\n\t\t\t\tresponse.getWriter().println(\"Usted se ha registrado Correctamente\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\tresponse.getWriter().println(\"No se pudo efectuar registrar\");\n\t\t\t\t}\n\t\t} catch (NumberFormatException | NoSuchAlgorithmException | SQLException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n reg_label = new javax.swing.JLabel();\n reg_panel = new javax.swing.JPanel();\n firstname_lab = new javax.swing.JLabel();\n firstname_txt = new javax.swing.JTextField();\n lastname_lab = new javax.swing.JLabel();\n lastname_txt = new javax.swing.JTextField();\n addr_lab = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n addr_txt = new javax.swing.JTextArea();\n pos_lab = new javax.swing.JLabel();\n pos_combox = new javax.swing.JComboBox<>();\n email_lab = new javax.swing.JLabel();\n email_txt = new javax.swing.JTextField();\n pwd_lab = new javax.swing.JLabel();\n pwd_txt = new javax.swing.JPasswordField();\n crm_pwd_lab = new javax.swing.JLabel();\n crm_pwd_txt = new javax.swing.JPasswordField();\n contact_no = new javax.swing.JLabel();\n contact_no_txt = new javax.swing.JTextField();\n crm_reg_but = new javax.swing.JButton();\n bac_but = new javax.swing.JButton();\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setName(\"Register\"); // NOI18N\n\n reg_label.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n reg_label.setText(\"Register\");\n\n firstname_lab.setText(\"First Name:\");\n\n firstname_txt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n firstname_txtActionPerformed(evt);\n }\n });\n\n lastname_lab.setText(\"Last Name:\");\n\n lastname_txt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lastname_txtActionPerformed(evt);\n }\n });\n\n addr_lab.setText(\"Address:\");\n\n addr_txt.setColumns(20);\n addr_txt.setRows(5);\n jScrollPane2.setViewportView(addr_txt);\n\n pos_lab.setText(\"Register as:\");\n\n pos_combox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Admin\", \"Customer\" }));\n pos_combox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pos_comboxActionPerformed(evt);\n }\n });\n\n email_lab.setText(\"Email:\");\n\n pwd_lab.setText(\"Password:\");\n\n crm_pwd_lab.setText(\"Confirm Password:\");\n\n contact_no.setText(\"Contact number:\");\n\n contact_no_txt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n contact_no_txtActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout reg_panelLayout = new javax.swing.GroupLayout(reg_panel);\n reg_panel.setLayout(reg_panelLayout);\n reg_panelLayout.setHorizontalGroup(\n reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(reg_panelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(reg_panelLayout.createSequentialGroup()\n .addComponent(pos_lab)\n .addGap(73, 73, 73)\n .addComponent(pos_combox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(reg_panelLayout.createSequentialGroup()\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lastname_lab)\n .addComponent(firstname_lab)\n .addComponent(crm_pwd_lab))\n .addGap(32, 32, 32)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(firstname_txt)\n .addComponent(lastname_txt)\n .addComponent(pwd_txt)\n .addComponent(email_txt)\n .addComponent(crm_pwd_txt, javax.swing.GroupLayout.DEFAULT_SIZE, 291, Short.MAX_VALUE)))\n .addGroup(reg_panelLayout.createSequentialGroup()\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(email_lab)\n .addComponent(pwd_lab)\n .addComponent(addr_lab)\n .addComponent(contact_no))\n .addGap(47, 47, 47)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(contact_no_txt)\n .addComponent(jScrollPane2))))\n .addContainerGap())\n );\n reg_panelLayout.setVerticalGroup(\n reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(reg_panelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(email_lab)\n .addComponent(email_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pwd_lab)\n .addComponent(pwd_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(crm_pwd_lab)\n .addComponent(crm_pwd_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(firstname_lab)\n .addComponent(firstname_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lastname_lab)\n .addComponent(lastname_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(contact_no)\n .addComponent(contact_no_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addr_lab)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addGroup(reg_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pos_combox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pos_lab))\n .addContainerGap())\n );\n\n firstname_lab.getAccessibleContext().setAccessibleName(\"first_name_lab\");\n firstname_txt.getAccessibleContext().setAccessibleName(\"first_name_txt\");\n firstname_txt.getAccessibleContext().setAccessibleDescription(\"\");\n lastname_lab.getAccessibleContext().setAccessibleName(\"last_name_lab\");\n lastname_txt.getAccessibleContext().setAccessibleName(\"last_name_lab\");\n pos_combox.getAccessibleContext().setAccessibleName(\"\");\n crm_pwd_txt.getAccessibleContext().setAccessibleName(\"\");\n\n crm_reg_but.setText(\"Confirm\");\n crm_reg_but.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n crm_reg_butActionPerformed(evt);\n }\n });\n\n bac_but.setText(\"Back\");\n bac_but.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bac_butActionPerformed(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)\n .addGroup(layout.createSequentialGroup()\n .addComponent(reg_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(reg_label, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(379, 379, 379))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(crm_reg_but, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(bac_but, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(54, 54, 54))))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(reg_label, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(reg_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(crm_reg_but, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(bac_but, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50))\n );\n\n reg_label.getAccessibleContext().setAccessibleName(\"Reg_label\");\n\n pack();\n }",
"private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }",
"static void register() {\r\n\t\tSystem.out.println(\"enter no of customers\");\r\n\t\tint n=scan.nextInt();\r\n\t\tfor(int i=0;i<n;i++) {\r\n\t\tCustomer cust=new Customer();\r\n\t\tSystem.out.println(\"enter first name\");\r\n\t\tcust.setFirstName(scan.next());\r\n\t\tSystem.out.println(\"enter last name\");\r\n\t\tcust.setLastName(scan.next());\r\n\t\tSystem.out.println(\"enter aadhar number\");\r\n\t\tcust.setAadharNo(scan.nextLong());\r\n\t\tSystem.out.println(\"enter address\");\r\n\t\tcust.setAddress(scan.next());\r\n\t\tSystem.out.println(\"enter mobile number\");\r\n\t\tcust.setMobileNo(scan.nextLong());\r\n\t\tSystem.out.println(\"enter password\");\r\n\t\tcust.setPassword(scan.next());\r\n\t\tSystem.out.println(\"enter account number\");\r\n\t\tlong no= 10000 + new Random().nextInt(90000);\r\n\t\t//System.out.println(Math.abs(cust.getAccNo()));\r\n\t\tlist.add(cust);\r\n\t\t}\r\n\t}",
"public CreateProfile() {\n initComponents();\n }",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }"
]
| [
"0.69619364",
"0.69619364",
"0.69619364",
"0.6918036",
"0.66362685",
"0.65476006",
"0.65247196",
"0.6436979",
"0.63706917",
"0.63559675",
"0.63435566",
"0.63431644",
"0.63400686",
"0.6318826",
"0.6316217",
"0.6277238",
"0.6266646",
"0.62662464",
"0.6251259",
"0.6251259",
"0.6235172",
"0.62301975",
"0.62274903",
"0.6215641",
"0.61388475",
"0.61388475",
"0.61388475",
"0.61388475",
"0.61229634",
"0.6122275",
"0.6120554",
"0.6101512",
"0.60976124",
"0.6081063",
"0.606146",
"0.60582966",
"0.60537446",
"0.6049284",
"0.60426587",
"0.6012247",
"0.60090286",
"0.6003625",
"0.59768283",
"0.59706527",
"0.5963628",
"0.59629786",
"0.5961706",
"0.59562135",
"0.59496814",
"0.5937996",
"0.59334344",
"0.59291804",
"0.59282583",
"0.5906245",
"0.58943176",
"0.5894303",
"0.5888112",
"0.5883669",
"0.58795005",
"0.58365947",
"0.58290344",
"0.5815835",
"0.58128095",
"0.58112985",
"0.58073467",
"0.5806624",
"0.58032554",
"0.5779721",
"0.5774079",
"0.57715565",
"0.57599306",
"0.5755346",
"0.5751779",
"0.57489765",
"0.5731376",
"0.57100743",
"0.57018685",
"0.5699224",
"0.56946254",
"0.56888646",
"0.5672031",
"0.5662952",
"0.5662451",
"0.5660667",
"0.56598663",
"0.56490314",
"0.5647431",
"0.5647431",
"0.56379926",
"0.56289625",
"0.56246096",
"0.56136626",
"0.5606767",
"0.5603724",
"0.5602482",
"0.5598842",
"0.5590346",
"0.55903023",
"0.55830973",
"0.558024",
"0.55744255"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
userNameBox = new javax.swing.JTextField();
emailBox = new javax.swing.JTextField();
passwordBox = new javax.swing.JPasswordField();
mobileNumberBox = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
registerButton = new javax.swing.JButton();
showPasswordCheckBox = new javax.swing.JCheckBox();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Register");
jLabel3.setText("Password");
jLabel4.setText("Mobile number");
userNameBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
userNameBoxActionPerformed(evt);
}
});
passwordBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
passwordBoxActionPerformed(evt);
}
});
jLabel1.setText("User name");
jLabel2.setText("Email");
registerButton.setText("Register");
registerButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
registerButtonActionPerformed(evt);
}
});
showPasswordCheckBox.setText("Show Password");
showPasswordCheckBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
showPasswordCheckBoxActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(50, 50, 50)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(37, 37, 37)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(passwordBox)
.addComponent(userNameBox)
.addComponent(emailBox)
.addComponent(mobileNumberBox, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(showPasswordCheckBox))
.addGroup(layout.createSequentialGroup()
.addGap(84, 84, 84)
.addComponent(registerButton)))
.addContainerGap(44, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(64, 64, 64)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(userNameBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(emailBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(passwordBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(showPasswordCheckBox))
.addGap(28, 28, 28)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mobileNumberBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(71, 71, 71)
.addComponent(registerButton)
.addContainerGap(56, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
]
| 0.0 | -1 |
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see | public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
new cusRegister().setVisible(true);
} catch (ClassNotFoundException ex) {
Logger.getLogger(cusRegister.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n\n // TODO: Configure theming colors. UIManager.put(property, new Color(...));\n // {@see http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults.html}\n\n\t\t\tfinal NimbusLookAndFeel laf = new NimbusLookAndFeel();\n UIManager.setLookAndFeel(laf);\n UIDefaults defaults = laf.getDefaults();\n defaults.put(\"List[Selected].textForeground\",\n laf.getDerivedColor(\"nimbusLightBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Selected].textBackground\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Disabled+Selected].textBackground\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Disabled].textForeground\",\n laf.getDerivedColor(\"nimbusDisabledText\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List:\\\"List.cellRenderer\\\"[Disabled].background\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n\n } catch (Exception e) {}\n }",
"@SuppressWarnings(\"unused\")\n private static void activateNimbus() //just for testing reasons\n {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (Exception e) {\n log.warn(\"error in nimbus activation?\", e);\n }\n }",
"static void customizeNimbus()\r\n\t\tthrows Exception\r\n\t{\n\t\tUIManager.put(\"control\", BACKGROUND);\r\n\r\n\t\t// TODO: imilne 04/SEP/2009 - No longer working since JRE 1.6.0_u13\r\n\t\tif (SystemUtils.isWindows())\r\n\t\t{\r\n\t\t\tUIManager.put(\"defaultFont\", FONT);\r\n\t\t\tUIManager.put(\"Label[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Table[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TableHeader[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TabbedPane[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ComboBox[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Button[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ToggleButton[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TextField[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"CheckBox[Enabled].font\", FONT);\r\n\t\t}\r\n\r\n\t\tfor (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels())\r\n\t\t\tif (laf.getName().equals(\"Nimbus\"))\r\n\t\t\t\tUIManager.setLookAndFeel(laf.getClassName());\r\n\r\n\r\n\t\tUIManager.put(\"SplitPane[Enabled].size\", 8);\r\n\r\n\t\tUIManager.put(\"nimbusOrange\", new Color(51, 98, 140));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(57, 105, 138));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(115, 164, 209));\r\n\r\n\r\n\t\t// Reset non-Aqua look and feels to use CMD+C/X/V rather than CTRL for copy/paste stuff\r\n\t\tif (SystemUtils.isMacOS())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Setting OS X keyboard shortcuts\");\r\n\r\n\t\t\tInputMap textField = (InputMap) UIManager.get(\"TextField.focusInputMap\");\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\r\n\t\t\tInputMap textArea = (InputMap) UIManager.get(\"TextArea.focusInputMap\");\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\t\t}\r\n\t}",
"public final static void setDesign() {\n\t\t\ttry{\n\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Prob with setDesign()\");\n\t\t\t}\n\t\t\t\n\t\t}",
"public static void LookAndFeel() {\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); // uniformed\n\t\t} catch (Exception exc) {\n\t\t}\n\t}",
"public examreports() {\n dblogincred();\n initComponents();\n try {\n for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n} catch (Exception e) {\n // If Nimbus is not available, you can set the GUI to another look and feel.\n}\n }",
"private static void setLook() {\r\n try {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n } catch (IllegalAccessException ex) {\r\n ex.printStackTrace();\r\n } catch (UnsupportedLookAndFeelException ex) {\r\n ex.printStackTrace();\r\n } catch (ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n } catch (InstantiationException ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"private boolean isNimbus()\n/* */ {\n/* 152 */ return UIManager.getLookAndFeel().getName().contains(\"Nimbus\");\n/* */ }",
"private void LookAndFeel() {\n try {\n // Set System L&F\n BasicLookAndFeel darcula = new DarculaLaf();\n UIManager.setLookAndFeel(darcula);\n } catch (UnsupportedLookAndFeelException e) {\n // handle exception\n }\n }",
"private String getLookAndFeelClassName(String nimbus) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"protected static void initLnF() {\r\n try {\r\n if (!\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\".equals(UIManager.getSystemLookAndFeelClassName())\r\n && !\"com.sun.java.swing.plaf.gtk.GTKLookAndFeel\".equals(UIManager.getSystemLookAndFeelClassName())\r\n && !UIManager.getSystemLookAndFeelClassName().equals(UIManager.getLookAndFeel().getClass().getName())) {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private static void setLookAndFeel() { \r\n try {\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\"); \r\n } catch (final UnsupportedLookAndFeelException e) {\r\n System.out.println(\"UnsupportedLookAndFeelException\");\r\n } catch (final ClassNotFoundException e) {\r\n System.out.println(\"ClassNotFoundException\");\r\n } catch (final InstantiationException e) {\r\n System.out.println(\"InstantiationException\");\r\n } catch (final IllegalAccessException e) {\r\n System.out.println(\"IllegalAccessException\");\r\n } \r\n }",
"private void configuraInterface() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\ttry\t{\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Falhou o carregamento do L&F: \");\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}",
"public static void windowLookAndFeel(){\r\n\t try{\r\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t }catch (Exception e) {\r\n\t System.out.println(\"Look and Feel error: \" + e);\r\n\t }\r\n\t}",
"private static void setLookAndFeel() {\n\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\n\ttry {\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\n\t //copy progress bar of System LAF\n\t HashMap<Object, Object> progressDefaults = new HashMap<Object, Object>();\n\t for (Map.Entry<Object, Object> entry : UIManager.getDefaults()\n\t\t .entrySet()) {\n\t\tif (entry.getKey().getClass() == String.class\n\t\t\t&& ((String) entry.getKey()).startsWith(\"ProgressBar\")) {\n\t\t progressDefaults.put(entry.getKey(), entry.getValue());\n\t\t}\n\t }\n\n\t prepareLayout();\n\n\t UIManager\n\t\t .setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\n\t // copy back progress bar of metal Look and Feel\n\t for (Map.Entry<Object, Object> entry : progressDefaults.entrySet()) {\n\t\tUIManager.getDefaults().put(entry.getKey(), entry.getValue());\n\t }\n\t} catch (ClassNotFoundException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (InstantiationException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IllegalAccessException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (UnsupportedLookAndFeelException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n }",
"private void nativeLookAndFeel() {\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {\n e.printStackTrace();\n }\n }",
"private void setNativeLAndF() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t//do nothing. It will default to normal\r\n\t\t}\r\n\t}",
"public void applyLookAndFeel() {\n\r\n\t\tLookAndFeelInfo[] infos = UIManager.getInstalledLookAndFeels();\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"NIMBUS\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"WINDOW\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlook = (Math.abs(look) % infos.length);\r\n\r\n\t\tString lookName = infos[look].getName();\r\n\r\n\t\ttry {\r\n \t\tUIManager.setLookAndFeel(infos[look].getClassName());\r\n \t\tsetTitle(JMTKResizer.ABOUT + \" - \" + lookName);\r\n \tSwingUtilities.updateComponentTreeUI(this);\r\n \t\t//pack();\r\n\r\n \t} catch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n\t}",
"private void menuNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNimbusActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private static void initLookAndFeel()\n {\n try \n {\n UIManager.setLookAndFeel(\"de.javasoft.plaf.synthetica.SyntheticaAluOxideLookAndFeel\");\n }\n \n catch(ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e)\n {\n JOptionPane.showMessageDialog(null, \"Failed to load resource package\");\n }\n }",
"private void setupLookAndFeel() {\n SwingUtilities.invokeLater(() -> {\n model.getUserPreferences().getThemeSubject().subscribe((skin) -> {\n try {\n UIManager.setLookAndFeel(new SubstanceLookAndFeel(\n (SubstanceSkin) skin.getTheme().newInstance()\n ) {\n });\n if (frame != null) {\n frame.repaint();\n }\n } catch (UnsupportedLookAndFeelException | InstantiationException | IllegalAccessException e) {\n ExceptionHandler.get().handle(e);\n }\n });\n });\n }",
"public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}",
"public static String setLookAndFeel(String look) {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); //$NON-NLS-1$\n // Display slider value is set to false (already in all LAF by the panel title), used by GTK LAF\n UIManager.put(\"Slider.paintValue\", Boolean.FALSE); //$NON-NLS-1$\n\n String laf = getAvailableLookAndFeel(look);\n try {\n UIManager.setLookAndFeel(laf);\n } catch (Exception e) {\n laf = UIManager.getSystemLookAndFeelClassName();\n LOGGER.error(\"Unable to set the Look&Feel\", e); //$NON-NLS-1$\n }\n // Fix font issue for displaying some Asiatic characters. Some L&F have special fonts.\n setUIFont(new javax.swing.plaf.FontUIResource(\"SansSerif\", Font.PLAIN, 12)); //$NON-NLS-1$\n return laf;\n }",
"public JFind2() {\n try {\n String metal = \"javax.swing.plaf.metal.MetalLookAndFeel\";\n String synth = \"javax.swing.plaf.synth.SynthLookAndFeel\"; // --> since JDK-1.5\n\n String gtk = \"com.sun.java.swing.plaf.gtk.GTKLookAndFeel\"; // -> since JDK-1.4\n\n String motif = \"com.sun.java.swing.plaf.motif.MotifLookAndFeel\";\n String windows = \"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\";\n\n String os = System.getProperty(\"os.name\");\n if (os.startsWith(\"Linux\")) {\n try // Install client system look and feel.\n {\n UIManager.setLookAndFeel(metal);\n } catch (Exception e) {\n }\n } else {\n try // Install client system look and feel.\n {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n preInit();\n initComponents();\n postInit();\n\n }",
"public void lookandfeel(){\n \n try{\n UIManager.setLookAndFeel(seta_look);\n SwingUtilities.updateComponentTreeUI(this);\n }\n catch(Exception erro){\n JOptionPane.showMessageDialog(null, erro);\n \n }\n}",
"public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException,\n\t\t\tUnsupportedLookAndFeelException {\n\t\tdetermineOS();\n\t\tif (currentOs == MAC_OS) {\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.apple.menu.about.name\", \"UP-Admin\");\n\t\t\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.live-resize\", \"true\");\n\n\t\t\ttry {\n\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if ((currentOs == WIN_OS) || (currentOs == null)) {\n\n\t\t\tUIManager.put(\"nimbusBase\", new Color(0x525252));\n\t\t\tUIManager.put(\"control\", new Color(0x949494));\n\t\t\tUIManager.put(\"nimbusSelectionBackground\", new Color(0x171717));\n\t\t\tUIManager.put(\"Menu.background\", new Color(0x2B2B2B));\n\t\t\tUIManager.put(\"background\", new Color(0x171717));\n\t\t\tUIManager.put(\"DesktopIcon.background\", new Color(0x171717));\n\t\t\tUIManager.put(\"nimbusLightBackground\", new Color(0xE3E3E3));\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t\n\t\t}\n\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tFrame frame = new Frame();\n\t\t\t\t\tframe.setVisible(true);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void setupSwing() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n \r\n try {\r\n for (LookAndFeelInfo info: UIManager.getInstalledLookAndFeels()) {\r\n if (info.getName().equals(\"Windows\")) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n }\r\n }\r\n } catch (ClassNotFoundException \r\n | InstantiationException\r\n | IllegalAccessException \r\n | UnsupportedLookAndFeelException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n \r\n window = new ManagerWindow(MetagridManager.this);\r\n window.pack();\r\n window.setVisible(true);\r\n }\r\n });\r\n }",
"public static void main(String[] args) {\r\n SageLife sagelife = new SageLife();\r\n\r\n try {\r\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (Exception e) {\r\n // If Nimbus is not available, you can set the GUI to another look and feel.\r\n }\r\n\r\n sagelife.createLayout();\r\n }",
"private LookAndFeelManager() {}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n \n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n \n \n /* Create and display the form */ \n \n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new home().setVisible(true);\n }\n });\n }",
"public Q4() {\n initComponents();\n looks=UIManager.getInstalledLookAndFeels();\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n UI tesis = new UI();\n tesis.setVisible(true);\n try {\n tesis.inicializar(); \n } catch (NullPointerException e) {\n System.out.println(\"Ejecución terminada forzosamente\");\n System.exit(1);\n }\n }\n });\n }",
"@Override\n public void init() {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the applet */\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"@Override\r\n public void init() {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \r\n */\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the applet */\r\n try {\r\n java.awt.EventQueue.invokeAndWait(new Runnable() {\r\n public void run() {\r\n initComponents();\r\n }\r\n });\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new siniestro());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }",
"@Override\n public void init() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n getContentPane().setBackground(Color.BLUE);\n this.setSize(450, 350);\n\n /* Create and display the applet */\n /*try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n */\n run();\n }",
"public static void start() {\n\t\ttry {\n\t\t\tfor (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n\t\t\t\tif (\"Nimbus\".equals(info.getName())) {\n\t\t\t\t\tjavax.swing.UIManager.setLookAndFeel(info.getClassName());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (InstantiationException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n //</editor-fold>\n\n\t\t/* Create and display the form */\n\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew GUInterface().setVisible(true);\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HFGUI().setVisible(true);\n }\n });\n }",
"public void setTheme(String name) {\n\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (name.equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new InicioSesion().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n \n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n try {\n new JFrame_Accueil(0).setVisible(true);\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n }",
"public static void main(String[] args) {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html\r\n */\r\n try {\r\n javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n\r\n /* Create and display the form */\r\n EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n JFrame frame = new JFrame();\r\n frame.setContentPane(new FrameCuentasContablesAdmin());\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n frame.setVisible(true);\r\n }\r\n });\r\n }",
"private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tLookAndFeelInfo look[] = UIManager.getInstalledLookAndFeels();\r\n\t\t\tfor (LookAndFeelInfo lookAndFeelInfo : look) {\r\n\r\n\t\t\t\tSystem.out.println(lookAndFeelInfo.getClassName());\r\n\t\t\t}\r\n\t\t\tUIManager.setLookAndFeel(this.config.getLookAndFeel());\r\n\t\t} catch (ClassNotFoundException | InstantiationException\r\n\t\t\t\t| IllegalAccessException | UnsupportedLookAndFeelException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetVisible(true);\r\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n Logger.getLogger(InterpreterGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n new InterpreterGui().setVisible(true);\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Calculator().setVisible(true);\n }\n } \n );\n}",
"public void setLAF(String lookAndFeelStr) {\n String exceptionNotice = \"\";\n try {\n // Set the font for Metal LAF to non-bold, in case Metal is used\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n if (lookAndFeelStr == null || lookAndFeelStr.equalsIgnoreCase(\"Metal\")) {\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } else\n if (lookAndFeelStr.equalsIgnoreCase(\"Nimbus\")) {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (info.getName().equals(\"Nimbus\")) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } else {\n UIManager.setLookAndFeel(lookAndFeelStr);\n }\n } catch (UnsupportedLookAndFeelException e) {\n exceptionNotice = \"UnsupportedLookAndFeelException\";\n } catch (ClassNotFoundException e) {\n exceptionNotice = \"ClassNotFoundException\";\n } catch (InstantiationException e) {\n exceptionNotice = \"InstantiationException\";\n } catch (IllegalAccessException e) {\n exceptionNotice = \"IllegalAccessException\";\n } finally {\n if (! exceptionNotice.isEmpty()) {\n try {\n // The desired LAF was not created, so try to use the Metal LAF as a default.\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } catch (UnsupportedLookAndFeelException e) {\n logger.error(\"Could not initialize the Swing Look and Feel settings, MCT is closing.\");\n System.exit(1);\n }\n }\n }\n // Look and Feel has been successfully created, now set colors\n initializeColors(UIManager.getLookAndFeel());\n Properties props = new Properties();\n String filename = System.getProperty(viewColor,\"resources/properties/viewColor.properties\");\n FileReader reader = null;\n try {\n \treader = new FileReader(filename);\n \tprops.load(reader);\n BASE_PROPERTIES = new ColorScheme(props);\n BASE_PROPERTIES.applyColorScheme(); // Apply top-level color bindings\n } catch (Exception e) {\n logger.warn(\"Using default color and font properties because could not open viewColor properties file :\"+filename);\n BASE_PROPERTIES = new ColorScheme();\n } finally {\n \ttry {\n if (reader != null) reader.close();\n } catch(IOException ioe1){ }\n }\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Form().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new LibroDiario().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new KamarFrom().setVisible(true);\n }\n });\n }",
"protected void installDefaults() {\n this.controlPanel.setBackground(null);\n\n Font font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = RadianceThemingCortex.GlobalScope.getFontPolicy().getFontSet().\n getControlFont();\n this.controlPanel.setFont(toSet);\n }\n }",
"static public LookAndFeelManager createDefaultLookAndFeelManager()\n {\n LookAndFeelManager manager = new LookAndFeelManager();\n\n /* =-=AEW DO NOT register the external look-and-feels; these\n class names are UIX 2.2 look-and-feels, which won't (and can't)\n work in UIX 3, given the different class names. Only uncomment\n if and when such classes are ported to UIX 3.\n // support requests from iasWireless if laf can be found\n _registerExternalLookAndFeel(manager, iaswLaf, _IASW_SCORER);\n\n // register OA's Text LAF if laf can be found\n _registerExternalLookAndFeel(manager, _OA_TEXT_LAF, _OA_TEXT_SCORER);\n */\n\n // Base lafs\n BaseDesktopUtils.registerLookAndFeel(manager);\n\n SimpleDesktopUtils.registerLookAndFeel(manager);\n SimplePdaUtils.registerLookAndFeel(manager);\n\n return manager;\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Puntos().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HW3().setVisible(true);\n }\n });\n }",
"public Vista_Login() {\n \t\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FrmLoguin().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Musica().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Register().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) throws Exception{\n\t\tUIManager.setLookAndFeel(new NimbusLookAndFeel());\n\t\t\n\t\t\n\t\tMyWindow myWindow = new MyWindow();\n\t\tmyWindow.setVisible(true);\n\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Setup().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new CadContasReceitasDespesasView());\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n frame.setTitle(args[0]);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /*\n * Create and display the form\n */\n java.awt.EventQueue.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n new sinavlar2().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Registracija().setVisible(true);\n }\n });\n }",
"private void applyInitialLook() {\r\n\t\tthis.control.setFont(this.initialFont);\r\n\t\tthis.control.setBackground(this.initialBackgroundColor);\r\n\t\tthis.control.setForeground(this.initialForegroundColor);\r\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new main().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n JFrame frame = new JFrame(\"Inscrição\");\n frame.add(new InscricaoView());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new RamkaGui().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new adminhome().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) \n\t{\n\t\tCommonMethods.openConnection();\n\t\ttry {\n \t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n \t if (\"Nimbus\".equals(info.getName())) {\n \t UIManager.setLookAndFeel(info.getClassName());\n \t break;\n \t }\n \t }\n \t} catch (Exception e) {\n \t // If Nimbus is not available, you can set the GUI to another look and feel.\n \t}\n\t\t\n\t\tnew AddNewCustomer();\n\n\t}",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Stock_Management().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new kullaniciEkrani().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new UIHorariosLista().setVisible(true);\n }\n });\n }",
"public static void startTrayIcon() {\r\n try {\r\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (Exception ex) {\r\n \tJOptionPane.showMessageDialog(null, \"Error setting Look & Feel \"+ex, \"Error setting Look & Feel\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n /* Turn off metal's use of bold fonts */\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n //Schedule a job for the event-dispatching thread:\r\n //adding TrayIcon.\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }",
"protected void installDefaults() {\n spinner.setLayout(createLayout());\n LookAndFeel.installBorder(spinner, \"Spinner.border\");\n LookAndFeel.installColorsAndFont(spinner, \"Spinner.background\", \"Spinner.foreground\", \"Spinner.font\"); }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new UrunListele().setVisible(true);\n }\n });\n }",
"public static void main(final String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new ClienteView());\n frame.pack();\n frame.setVisible(true);\n frame.setTitle(args[0]);\n \n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new Register().setVisible(true);\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new CatcTitles());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }",
"public CalculatorGUI() {\n initComponents();\n setTitle(\"Calculator\");\n //setLookAndFeel(\"Windows\");\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold> \n\n /* Create and display the form */\n \n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Kayıt_Sil().setVisible(true);\n }\n });\n }",
"private void menuMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuMotifActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n }",
"private void setAppearance(String className) {\n DweezilUIManager.setLookAndFeel(className, new Component[]{MainFrame.getInstance(), StatusWindow.getInstance(),\n PrefsSettingsPanel.this.getParent().getParent()});\n\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(SpaceSim.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n new SpaceSim().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new segundapartepestaña5().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n frmBuscarRemitentes dialog = new frmBuscarRemitentes(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent e) {\n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FRM_Venta().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new TelaCliente().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ImagenesProducto().setVisible(true);\n }\n });\n }",
"protected void installDefaults() {\n\t\tColor bg = this.controlPanel.getBackground();\n\t\tif (bg == null || bg instanceof UIResource) {\n\t\t\tthis.controlPanel.setBackground(FlamingoUtilities.getColor(\n\t\t\t\t\tColor.lightGray, \"ControlPanel.background\",\n\t\t\t\t\t\"Panel.background\"));\n\t\t}\n\n\t\tBorder b = this.controlPanel.getBorder();\n\t\tif (b == null || b instanceof UIResource) {\n\t\t\tBorder toSet = UIManager.getBorder(\"ControlPanel.border\");\n\t\t\tif (toSet == null)\n\t\t\t\tnew BorderUIResource.EmptyBorderUIResource(1, 2, 1, 2);\n\t\t\tthis.controlPanel.setBorder(toSet);\n\t\t}\n\t\t\n\t\tFont font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = UIManager.getFont(\"Panel.font\");\n this.controlPanel.setFont(toSet);\n }\n\t}",
"public MainFrame() throws Exception {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n //SynthLookAndFeel laf = new SynthLookAndFeel();\r\n //UIManager.setLookAndFeel(laf);\r\n initComponents();\r\n }",
"public static void main(String args[]) {\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the form */\r\n java.awt.EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n new Roysched().setVisible(true);\r\n }\r\n });\r\n }",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\t}",
"protected void uninstallDefaults() {\n\t\tLookAndFeel.uninstallBorder(this.controlPanel);\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(jfmActividades.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n new jfmActividades().setVisible(true);\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ThermalInfo().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HomePage().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new VentaForm().setVisible(true);\n }\n });\n }"
]
| [
"0.7948844",
"0.77676886",
"0.770006",
"0.75052917",
"0.7287361",
"0.7227688",
"0.72236377",
"0.72196996",
"0.71810573",
"0.7155472",
"0.7119134",
"0.71118087",
"0.70989954",
"0.70609176",
"0.7049158",
"0.6913391",
"0.681691",
"0.6704903",
"0.669436",
"0.6584968",
"0.6573832",
"0.65285206",
"0.65267015",
"0.65056354",
"0.6415645",
"0.64032096",
"0.6260413",
"0.6259631",
"0.62198114",
"0.61889774",
"0.6168479",
"0.6137368",
"0.61344767",
"0.6077272",
"0.60602736",
"0.6055614",
"0.6029982",
"0.60269403",
"0.5995318",
"0.59474826",
"0.589904",
"0.5883183",
"0.5860684",
"0.5854079",
"0.5805013",
"0.5792267",
"0.5785199",
"0.5769751",
"0.5744337",
"0.57387435",
"0.5725369",
"0.565851",
"0.56542873",
"0.565279",
"0.56495535",
"0.5621286",
"0.5604963",
"0.55994266",
"0.5584325",
"0.5573259",
"0.55703914",
"0.55669487",
"0.5566896",
"0.5561775",
"0.5546179",
"0.5544241",
"0.55162734",
"0.5513804",
"0.5497242",
"0.54898065",
"0.54890496",
"0.5472154",
"0.54709107",
"0.5454056",
"0.545154",
"0.54509455",
"0.5446175",
"0.5442453",
"0.5437607",
"0.5430731",
"0.54288113",
"0.5424183",
"0.541862",
"0.54147875",
"0.5401846",
"0.5401325",
"0.53848934",
"0.53759325",
"0.53631246",
"0.5361944",
"0.53523225",
"0.5350778",
"0.533346",
"0.5329027",
"0.53208524",
"0.53205806",
"0.53205556",
"0.5319904",
"0.5319552",
"0.5312421"
]
| 0.55118644 | 68 |
Get the current MBean Server. | protected MBeanServer getMBeanServer() throws Exception {
if (mbeanServer == null) {
mbeanServer = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
}
return mbeanServer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public MBeanServer getMBeanServer() {\n return mBeanServer;\n }",
"public MBeanInfo getMBeanInfo() {\n buildDynamicMBeanInfo();\n return dMBeanInfo;\n }",
"public Object server() {\n return this.server;\n }",
"public ServerInstance getServerInstance() {\n return serverInstance;\n }",
"public MinecraftServer getServer() {\n\t\treturn MinecraftServer.getServer();\n\t}",
"public ServerConfigManager getServerConfigManager() {\n return this.serverConfigManager;\n }",
"@Override\n public MBeanInfo getMBeanInfo() {\n mBeanInfo = super.getMBeanInfo();\n return mBeanInfo;\n }",
"public Server getServer() {\n return server;\n }",
"public LocalServer getServer() {\n return server;\n }",
"public SocketIOServer getServer() {\n return server;\n }",
"public static server getServer(){\n return thisServer;\n }",
"public MetricManagementService getMetricsManagementService() {\n return metricManagementService;\n }",
"public interface ServerSocketMXBean {\r\n\r\n /**\r\n * Returns all live server-socket IDs. Some server-socket included in the\r\n * returned array may have been terminated when this method returns.\r\n * \r\n * @return an array of <tt>long</tt>, each is a server-socket ID.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n long[] getAllServerSocketIds();\r\n\r\n /**\r\n * Returns the total number of server-sockets opened since the Java virtual\r\n * machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalServerSocketsCount();\r\n\r\n /**\r\n * Returns the peak open server-socket count since the Java virtual machine\r\n * started or the peak was reset.\r\n * \r\n * @return the peak live server-socket count.\r\n */\r\n int getPeakServerSocketCount();\r\n\r\n /**\r\n * Returns the current number of open server-sockets.\r\n * \r\n * @return the current number of open server-sockets.\r\n */\r\n int getServerSocketCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by all server-sockets since\r\n * the Java virtual machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by a server-socket with the\r\n * specified <tt>id</tt>.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount(long id);\r\n\r\n /**\r\n * Returns the server-socket info for a server-socket of the specified\r\n * <tt>id</tt>.\r\n * <p>\r\n * This method returns a <tt>ServerSocketInfo</tt> object representing the\r\n * server-socket information for the server-socket of the specified ID. If a\r\n * server-socket of the given ID is not open or does not exist, this method\r\n * will return <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return a {@link ServerSocketInfo}object for the server-socket of the\r\n * given ID; <tt>null</tt> if the server-socket of the given ID is\r\n * not open or it does not exist.\r\n * @throws IllegalArgumentException if <tt>id <= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo getServerSocketInfo(long id);\r\n\r\n /**\r\n * Returns the server-socket info for each server-socket whose ID is in the\r\n * input array <tt>ids</tt>.\r\n * <p>\r\n * This method returns an array of the <tt>ServerSocketInfo</tt> objects.\r\n * If a server-socket of a given ID is not open or does not exist, the\r\n * corresponding element in the returned array will contain <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param ids an array of server-socket IDs\r\n * @return an array of the {@link ServerSocketInfo}objects, each containing\r\n * information about a server-socket whose ID is in the\r\n * corresponding element of the input array of IDs.\r\n * @throws IllegalArgumentException if any element in the input array\r\n * <tt>ids</tt> is <tt><= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo[] getServerSocketInfo(long[] ids);\r\n\r\n /**\r\n * Resets the peak server-socket count to the current number of open\r\n * server-sockets.\r\n * \r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"control\").\r\n * @see #getPeakServerSocketCount\r\n * @see #getServerSocketCount\r\n */\r\n void resetPeakServerSocketCount();\r\n}",
"public IServerService getService() {\n return ServerService.this;\n }",
"public String getServer()\n {\n return server;\n }",
"public String getServer() {\r\n return server;\r\n }",
"public String getJMXURL() {\n try {\n final JMXServiceURL url = \n JmxServiceUrlFactory.forRmiWithJndiInAppserver(getHost(), Integer.parseInt(getPort()));\n return ( url.toString() );\n }\n catch (final Exception e) {\n throw new RuntimeException (e);\n }\n }",
"public String getServerName() {\n if (server == null) {\n final String version = OpenEjbVersion.get().getVersion();\n final String os = System.getProperty(\"os.name\") + \"/\" + System.getProperty(\"os.version\") + \" (\" + System.getProperty(\"os.arch\") + \")\";\n server = \"OpenEJB/\" + version + \" \" + os;\n }\n return server;\n }",
"public String getServerName() {\n return serverName;\n }",
"public String getServerName() {\n return serverName;\n }",
"public Server getServer() {\n\t\treturn null;\r\n\t}",
"public ServerSocket getServerSocket()\n\t{\n\t\treturn serverSocket;\n\t}",
"public String managementEndpoint() {\n return this.managementEndpoint;\n }",
"public org.omg.PortableServer.Servant getServant() {\n return this.value;\n }",
"public static synchronized SparkServer getInstance() {\n return getInstance(instance == null ? Runtime.LOCAL_CONTEXT : instance.getRuntime());\n }",
"public String getSERVER() {\n \t\treturn SERVER;\n \t}",
"public ServerSocket getServerSocket() {\n\t\treturn serverSocket;\n\t}",
"public ExtasysTCPServer getMyExtasysTCPServer()\n {\n return fMyExtasysServer;\n }",
"protected static AuoServer getServer() {\n return server;\n }",
"public static ObjectInstance getFauxJBossManagementMBeanObjectInstance()\n {\n ObjectName o = null;\n try\n {\n o = new ObjectName(getFauxJBossWebApplicationMBean().getObjectName());\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'JBoss Web Application' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new J2EEApplication().getClass().getName());\n }",
"public String getServerName();",
"public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}",
"public static AsteriskServer getAsteriskServer()\n\t{\n\t\treturn asteriskServer;\n\t}",
"public GENServer getServer() {\n return server;\n }",
"public static KitchenServer getInstance() {\r\n if (instance == null) {\r\n instance = new KitchenServer();\r\n }\r\n return instance;\r\n }",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.manageable.modelAdapter.ReporterMBean();\n }",
"public HazelcastMQInstance getHazelcastMQInstance() {\n return hazelcastMQInstance;\n }",
"public ManagementInfo getManagementInfo() {\n return managementInfo;\n }",
"public String getServerName() {\n\t\treturn m_serverName;\n\t}",
"protected ServerConnection getMasterServer()\n {\n if (!m_lMasterLoaded && m_oMasterServerConnection == null)\n {\n m_lMasterLoaded = true;\n m_oMasterServerConnection = Application.getInstance().getPropertyHandlerProperty(\"WebServer.MasterServerConnection\");\n }\n return m_oMasterServerConnection;\n }",
"public ServerConnection getServerConnection()\n {\n return m_oServerConnection;\n }",
"public String getHttpServer() {\n return httpServer;\n }",
"public ServerSocket getServerSocket() {\n return this.ss;\n }",
"public EventInterface getServer() {\r\n return this.server;\r\n }",
"public ServerList getServers() {\r\n return this.servers;\r\n }",
"public RMIServerInvokerInf getServerStub()\n {\n return this.server;\n }",
"public WorldServer getWorldServer()\r\n {\r\n return this.theWorldServer;\r\n }",
"public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}",
"public EmailServer getServer()\r\n\t{\r\n\t\treturn server;\r\n\t}",
"public static ServerModel getInstance() {\n if (SINGLETON == null) {\n SINGLETON = new ServerModel();\n }\n return SINGLETON;\n }",
"public static ServerConfiguration getServerConfiguration() {\n return getOctaneDescriptor().getServerConfiguration();\n }",
"public SystemServiceManager getSystemServiceManager() {\n return this.mService.mSystemServiceManager;\n }",
"public synchronized static JettyEmbeddedAppServer getInstance() {\n if (instance == null) {\n instance = new JettyEmbeddedAppServer();\n }\n return instance;\n }",
"public List<Server> getServerList() {\n return serverList;\n }",
"public static RRCPServer getInstance() {\n if (instance == null) {\n instance = new RRCPServer();\n }\n return instance;\n }",
"public static ServerModelFacade getInstance() {\n if(m_theFacade == null)\n m_theFacade = new ServerModelFacade(new ServerProxy(new HttpCommunicator()));\n return m_theFacade;\n }",
"public static IdServer getInstance() {\n\t\tif (server == null) {\n\t\t\tserver = new IdServer();\n\t\t}\n\t\treturn server;\n\t}",
"public static JvnServerImpl jvnGetServer() {\n\t\tif (js == null){\n\t\t\ttry {\n\t\t\t\tjs = new JvnServerImpl();\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn js;\n\t}",
"public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity getServer() {\n return server_ == null ? ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance() : server_;\n }",
"public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}",
"public Server getServer(int pos) {\n Server server = this.serversList.get(pos);\n return server;\n }",
"public static synchronized HotspotRuntimeMBean getHotspotRuntimeMBean()\n/* */ {\n/* 282 */ if (hsRuntimeMBean == null) {\n/* 283 */ hsRuntimeMBean = new HotspotRuntime(jvm);\n/* */ }\n/* 285 */ return hsRuntimeMBean;\n/* */ }",
"public ArrayList<Server> getServers(){\n return this.serversList;\n }",
"public interface ServerMonitorMXBean extends Statistic {\n\n String getHostName();\n\n int getPort();\n\n String getStartupAt();\n\n /**\n * The block IPs\n */\n Set<String> getBlackList();\n}",
"public static server getNameServer(){\n return nameServer;\n }",
"public Handler getHandler() {\n\t\treturn this.serverHandler;\n\t}",
"public ServerSocket getSocket() {\n\t\treturn socket;\n\t}",
"public static MonitorManager getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new MonitorManager();\n\t\t}\n\t\treturn instance;\n\t}",
"public MBeanInfo getInfo() throws InstanceNotFoundException,\r\n\t\t\tIntrospectionException, ReflectionException, IOException {\r\n\t\treturn home.getInfo(objectName);\r\n\t}",
"public String getServerPort() {\n\t\treturn mServerPort;\n\t}",
"@Override\n public EventServer getEventServer() {\n if (eventServer == null) {\n synchronized (lock) {\n if (eventServer == null) {\n eventServer = new EventServerHandler(serverModelFactory.getEventServerModel());\n }\n }\n }\n return eventServer;\n }",
"private String getJmxDomain() {\n return \"metrics.session.\" + configuration.getNamespace();\n }",
"public static SubjectManagement getInstance() {\n\n\t\tif (instance == null) {\n\t\t\tinstance = new SubjectManagement();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public String getServerPort() {\r\n\t\treturn this.serverPort;\r\n\t}",
"public String getServername() {\r\n return servername;\r\n }",
"public String getStunServer();",
"public LocalServerConfig getConfig() {\n return serverConfig;\n }",
"public static org.jboss.management.j2ee.J2EEApplication getFauxJBossWebApplicationMBean()\n {\n return new org.jboss.management.j2ee.J2EEApplication();\n }",
"private JiraManagementService getJiraManagementServicePort() throws JiraManagerException {\r\n try {\r\n return serviceClient.getJiraManagementServicePort();\r\n } catch (WebServiceException e) {\r\n Util.logError(log, e);\r\n throw new JiraManagerException(\"Unable to create JiraManagementService proxy.\", e);\r\n }\r\n }",
"public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity getServer() {\n if (serverBuilder_ == null) {\n return server_ == null ? ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance() : server_;\n } else {\n return serverBuilder_.getMessage();\n }\n }",
"public String getServerName(){\n return this.serverName;\n }",
"public Servidor getServidor() {\n\t\treturn servidor;\n\t}",
"public String getEventingServer() {\n\t\treturn eventingServer;\n\t}",
"public static ServerSocket getServerSocket(){\n if (listener == null) {\n listener = createServerSocket();\n }\n return listener;\n }",
"private static GenericContainer jmxService() {\n GenericContainer container = new GenericContainer<>(\"testserver:latest\")\n .withExposedPorts(4567, 7199)\n .withEnv(\"JAVA_OPTS\", \"-Dcom.sun.management.jmxremote.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.rmi.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.local.only=false\" +\n \"-Djava.rmi.server.hostname=0.0.0.0 \" +\n \"-Dcom.sun.management.jmxremote=true \" +\n \"-Dcom.sun.management.jmxremote.authenticate=false \" +\n \"-Dcom.sun.management.jmxremote.ssl=false \");\n container.setPortBindings(Arrays.asList(\"7199:7199\", \"4567:4567\"));\n Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(LoggerFactory.getLogger(\"TESTCONT\"));\n container.setLogConsumers(Collections.singletonList(logConsumer));\n return container;\n }",
"public static synchronized HotspotMemoryMBean getHotspotMemoryMBean()\n/* */ {\n/* 312 */ if (hsMemoryMBean == null) {\n/* 313 */ hsMemoryMBean = new HotspotMemory(jvm);\n/* */ }\n/* 315 */ return hsMemoryMBean;\n/* */ }",
"public interface PaxosMBeanInfo {\n /**\n * @return a string identifying the MBean \n */\n public String getName();\n /**\n * If isHidden returns true, the MBean won't be registered with MBean server,\n * and thus won't be available for management tools. Used for grouping MBeans.\n * @return true if the MBean is hidden.\n */\n public boolean isHidden();\n}",
"public AccountDao getActiveServer(int currentPort) {\r\n\t\tUtil util = new Util();\r\n\t\tAccountDao stub = null;\r\n\t\tMap<String, String> serverMap = util.getPropValue();\r\n\t\tfor (String entry : serverMap.keySet()) {\r\n\t\t\tfinal int port = Integer.parseInt(serverMap.get(entry));\r\n\t\t\tif (port != currentPort)\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tRegistry registry = LocateRegistry.getRegistry(port);\r\n\t\t\t\t\tstub = (AccountDao) registry.lookup(entry);\r\n\t\t\t\t\treturn stub;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.println(\"Exception get the instance of server \" + entry);\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\r\n\t}",
"public static Server getServer(String serverID){\r\n return (Server)servers.get(serverID);\r\n }",
"public String getMailServer() {\r\n\t\treturn mailServer;\r\n\t}",
"public Server get_server(String host) {\n return servers.get(host);\n }",
"@Override\n\t\tpublic String getServerName() {\n\t\t\treturn null;\n\t\t}",
"public String notebookServerEndpoint() {\n return this.innerProperties() == null ? null : this.innerProperties().notebookServerEndpoint();\n }",
"public int getCurrentServerId() {\n return currentServerId;\n }",
"public static synchronized ChatAdministration getInstance(){\n\t\treturn singleInstance;\n\t}",
"public static ConnectionServer getInstance(Activity ctx) {\n if (instance == null) {\n instance = new ConnectionServer(ctx);\n }\n\n return instance;\n }",
"public String getMailServer()\n {\n return _mailServer;\n }",
"public synchronized String getManager()\r\n {\r\n return manager;\r\n }",
"public int getServerPort() {\n return serverPort;\n }",
"@Override\n public UserServer getUserServer() {\n if (userServer == null) {\n synchronized (lock) {\n if (userServer == null) {\n userServer = new UserServerHandler(serverModelFactory.getUserServerModel());\n }\n }\n }\n return userServer;\n }"
]
| [
"0.808723",
"0.70726454",
"0.6616849",
"0.6552534",
"0.6463708",
"0.6429862",
"0.62918615",
"0.6270511",
"0.62690914",
"0.6269036",
"0.62526083",
"0.6214537",
"0.60685503",
"0.60629946",
"0.59799206",
"0.59082526",
"0.59062064",
"0.58867097",
"0.5820038",
"0.5820038",
"0.5811112",
"0.58007115",
"0.58001965",
"0.5798461",
"0.5792608",
"0.57653433",
"0.57489836",
"0.5737806",
"0.569579",
"0.56714857",
"0.5670515",
"0.56700754",
"0.56664366",
"0.56619143",
"0.5660877",
"0.56418914",
"0.5629148",
"0.5611704",
"0.5586191",
"0.5563977",
"0.55582",
"0.5538087",
"0.5522754",
"0.55192554",
"0.55189866",
"0.55046797",
"0.55037045",
"0.5483677",
"0.5451717",
"0.54507005",
"0.5430198",
"0.5424276",
"0.54105496",
"0.53974503",
"0.5393006",
"0.5389581",
"0.53856874",
"0.53618705",
"0.5361715",
"0.5357729",
"0.53533477",
"0.535285",
"0.5351414",
"0.5345903",
"0.5333881",
"0.53243333",
"0.53192294",
"0.5305938",
"0.52874804",
"0.52791125",
"0.5277931",
"0.52680165",
"0.5266203",
"0.525525",
"0.5254264",
"0.5253862",
"0.5242615",
"0.5241684",
"0.52392286",
"0.52384156",
"0.52308816",
"0.52255017",
"0.5218033",
"0.52177787",
"0.52167284",
"0.519658",
"0.51892775",
"0.5180096",
"0.5165166",
"0.5157652",
"0.51538724",
"0.51511055",
"0.5140245",
"0.5127356",
"0.512376",
"0.51133716",
"0.508535",
"0.5074879",
"0.5074492",
"0.505899"
]
| 0.763532 | 1 |
Recoge los datos de la vista antes de comenzar con la busqueda | @Override
public boolean startSearch() {
String str = "";
Dimension d = view.getInit();
if (d == null) {
str = str + "Falta la posicion de inicio.\n";
} else {
y0 = (int) d.getHeight();
x0 = (int) d.getWidth();
}
d = view.getGoal();
if (d == null) {
str = str + "Falta la posicion de meta.\n";
} else {
yf = (int) d.getHeight();
xf = (int) d.getWidth();
}
if (view.isBreadth()) {
strategy = new Breadth();
} else if (view.isDepth()) {
strategy = new Depth();
} else if (view.isAStar()) {
strategy = new AStar();
if (view.isH0()) {
heuristic = Horse.H0;
} else if (view.isH1()) {
heuristic = Horse.H1;
} else if (view.isH2()) {
heuristic = Horse.H2;
} else
str = str + "Falta por escoger el tipo de heurstica.\n";
} else
str = str + "Falta la estrategia de bsqueda.\n";
board = view.getBoard();
if (str.equals("")) {
rootNode = new Node(new Horse(x0,y0,xf,yf, board, heuristic));
}
if (view.isTree()) {
if (str.equals(""))
search = new Tree(rootNode, strategy);
} else if (view.isGraph()) {
if (str.equals(""))
search = new Graph(rootNode, strategy);
} else
str = str + "Falta el algoritmo de bsqueda.\n";
if (!str.equals("")) {
view.showError(str);
return false;
}
goSearch();
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void buscar (String valor){\n try {\n int f,i;\n conn=App.ConnectionBd.Enlace(conn);\n String sql1=\"Select * from Reserva where idReserva like '%\"+valor+\"%' or tipoReserva like '%\"+valor+\"%';\";\n \n Statement st1=conn.createStatement();\n ResultSet rs1=st1.executeQuery(sql1);\n String datos[]=new String[7];\n f=datostabla.getRowCount();\n if(f>0)\n for(i=0;i<f;i++)\n datostabla.removeRow(0);\n while(rs1.next()) {\n datos[0]=(String)rs1.getString(1);\n datos[1]=(String)rs1.getString(2);\n datos[2]=(String)rs1.getString(3);\n datos[3]=(String)rs1.getString(5);\n datos[4]=(String)rs1.getString(6);\n datos[5]=(String)rs1.getString(7);\n datos[6]=(String)rs1.getString(9);\n datostabla.addRow(datos);\n }\n conn.close();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Error al buscar datos, verifique porfavor\");\n }\n }",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"public void buscarEntidad(){\r\n\t\tlistaEstructuraDetalle.clear();\r\n\t\tPersona persona = null;\r\n\t\tList<EstructuraDetalle> lstEstructuraDetalle = null;\r\n\t\ttry {\r\n\t\t\tstrFiltroTextoPersona = strFiltroTextoPersona.trim();\r\n\t\t\tif(intTipoPersonaC.equals(Constante.PARAM_T_TIPOPERSONA_JURIDICA)){\r\n\t\t\t\tif (intPersonaRolC.equals(Constante.PARAM_T_TIPOROL_ENTIDAD)) {\r\n\t\t\t\t\tlstEstructuraDetalle = estructuraFacade.getListaEstructuraDetalleIngresos(SESION_IDSUCURSAL,SESION_IDSUBSUCURSAL);\r\n\t\t\t\t\tif (lstEstructuraDetalle!=null && !lstEstructuraDetalle.isEmpty()) {\r\n\t\t\t\t\t\tfor (EstructuraDetalle estructuraDetalle : lstEstructuraDetalle) {\r\n\t\t\t\t\t\t\tpersona = personaFacade.getPersonaPorPK(estructuraDetalle.getEstructura().getJuridica().getIntIdPersona());\r\n\t\t\t\t\t\t\tif (persona.getStrRuc().trim().equals(\"strFiltroTextoPersona\")) {\r\n\t\t\t\t\t\t\t\testructuraDetalle.getEstructura().getJuridica().setPersona(persona);\r\n\t\t\t\t\t\t\t\tlistaEstructuraDetalle.add(estructuraDetalle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t}\r\n\t}",
"public void busqueda_Aestrella(Estado estado_inicial, Estado estado_final) {\r\n\t\tabiertos.add(estado_inicial); // Añado como nodo abierto el punto de partida del laberinto\r\n\t\tEstado actual = abiertos.get(0); // Selecciono como punto actual el primero de los nodos abiertos (el punto de partida)\r\n\t\ttrata_repe = 1; // Variable para indicar al switch como tiene que tratar los repetidos en el switch del metodo tratar_repetidos\r\n\t\twhile (actual != estado_final && !abiertos.isEmpty()) { // Mientras que actual no sea el punto final y haya nodos abiertos\r\n\t\t\titeraciones++; // Contador de iteraciones del bucle while\r\n\t\t\tabiertos.remove(0); // Elimino el nodo actual de la lista de abiertos\r\n\t\t\tcerrados.add(actual); // Y lo añado a nodos cerrados\t\t\t\r\n\t\t\testados_cerrados = cerrados.size(); // Contador para estados cerrados\r\n\r\n\t\t\thijos = generar_sucesores(actual); // Genero los hijos del punto actual (Limpio de muros o punto de inicio)\r\n\t\t\thijos = tratar_repetidos(cerrados, abiertos, hijos); // Trato los repetidos\r\n\t\t\tinsertar(hijos); // Acolo los hijos en la lista de abiertos\r\n\t\t\testados_visitados += hijos.size(); // Contador para estados visitados\r\n\r\n\t\t\tCollections.sort(abiertos, getCompHeuristicaMasProf()); // Ordeno por heuristica Manhattan + Profundidad la cola de abiertos\r\n\r\n\t\t\tactual = abiertos.get(0); // Selecciono como actual el primero en la cola de abiertos\r\n\r\n\t\t\tif (actual.equals(estado_final)) { //Compruebo si estamos en el estado final\r\n\t\t\t\tmostrarcamino(actual, estado_final); // Muestro el camino solucion\r\n\t\t\t\tbreak; //Salgo del bucle while\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }",
"public String[][] obtenerConsultasBusqueda(String nombre){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n String[][] datos = new String[obtenerRegistrosBusqueda(nombre)][5];\n int i = 0;\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n \n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id WHERE nombre = ?\");\n ps.setString(1, nombre);\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\");\n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }",
"public ArrayList<Producto> busquedaProductos(Producto.Categoria categoria,String palabrasClave){\n try{\n ArrayList<Producto>productosFiltrados = new ArrayList<>();\n ArrayList<Producto>productosEncontrados = busquedaProductos(categoria);\n ArrayList<String>palabras = new ArrayList<>();\n StringTokenizer tokens = new StringTokenizer(palabrasClave);\n\n while(tokens.hasMoreTokens()){\n palabras.add(tokens.nextToken()); \n }\n \n if(palabras.size()>1){\n for(String cadaPalabra : palabras){\n for(Producto cadaProducto : productosEncontrados){\n String titulo=cadaProducto.getTitulo().toLowerCase();\n if(titulo.contains(cadaPalabra.toLowerCase()) && !productosFiltrados.contains(cadaProducto)){\n productosFiltrados.add(cadaProducto);\n }\n }\n }\n }else{\n for(Producto cadaProducto : productosEncontrados){\n String titulo=cadaProducto.getTitulo().toLowerCase();\n if(titulo.contains(palabrasClave.toLowerCase()) && !productosFiltrados.contains(cadaProducto)){\n productosFiltrados.add(cadaProducto);\n }\n }\n }\n ArrayList <Producto> productosFiltradosOrdenado=getProductosOrdenados(productosFiltrados, this);\n return productosFiltradosOrdenado;\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n return null;\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"private void buscar(final String filtro) {\n refAnimales.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n long size = dataSnapshot.getChildrenCount();\n ArrayList<String> animalesFirebase = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n\n String code = dataSnapshot.child(\"\" + i).child(\"codigo\").getValue(String.class);\n String nombre = dataSnapshot.child(\"\" + i).child(\"nombre\").getValue(String.class);\n String tipo = dataSnapshot.child(\"\" + i).child(\"tipo\").getValue(String.class);\n String raza = dataSnapshot.child(\"\" + i).child(\"raza\").getValue(String.class);\n String animal = code + \" | \" + nombre + \" | \" + tipo + \" | \" + raza;\n\n if (code.equalsIgnoreCase(filtro) || nombre.equalsIgnoreCase(filtro) || tipo.equalsIgnoreCase(filtro) || raza.equalsIgnoreCase(filtro)) {\n animalesFirebase.add(animal);\n }\n }\n if (animalesFirebase.size() == 0) {\n animalesFirebase.add(\"No se encuentran animales con ese código\");\n }\n adaptar(animalesFirebase);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public void resolver(){\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras(); j++){\n\t\t\t\tif(tablero.getTablero()[i].contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tE\");\n\t\t\t\t} else if (tablero.getTablero()[i].contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tO\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Busca sentido Norte y Sur\n\t\tString aux = \"\";\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < tablero.getTamanio(); j++){\n\t\t\t\taux += tablero.getTablero()[j].charAt(i);\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras() ; j++){\n\t\t\t\tif(aux.contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tS\");\n\t\t\t\t} else if(aux.contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tN\");\n\t\t\t\t}\n\t\t\t}\n\t\t\taux = \"\";\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(\"Rapigrama1.out\"));\n\t\t\tfor(int i = 0 ; i < respuesta.size(); i++){\n\t\t\t\tpw.println(respuesta.get(i));\n\t\t\t}\n\t\t\tpw.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void cargarDatos() {\r\n txtRucDni.setText(objVentas.getObjCliente().getStr_rucdni());\r\n txtCliente.setText(objVentas.getObjCliente().getStr_razonSocial());\r\n txtDocumento.setText(objVentas.getStr_numeroDocumento());\r\n txtMonto.setText(String.valueOf(Util.redondeo(objVentas.getDbTotal(), 2) ));\r\n txtPaga.requestFocus();\r\n setLocationRelativeTo(null);\r\n\r\n String arr[] = objVentas.getStr_numeroDocumento().split(\"-\");\r\n \r\n \r\n \r\n \r\n List<Ventas> listaVentaDetalle = new ArrayList<>();\r\n listaVentaDetalle = PaqueteBusinessDelegate.getFlujoCajaService().\r\n listarVenta(String.valueOf(gui.getLocal().getInt_idLocal()), Util.SINPAGO, objVentas.getStr_numeroDocumento(), 2);\r\n cargarTabla(listaVentaDetalle);\r\n \r\n int cantidadDocumentos;\r\n if (!this.gui.getListaConfig().get(0).getTipoImpresion().equals(Config.TICKETERA)){\r\n //Determinar la cantidad de productos por documentos\r\n cantidadDocumentos=(listaVentaDetalle.size()/10);\r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n\r\n if(listaVentaDetalle.size()%10!=0)\r\n cantidadDocumentos++;\r\n }else{\r\n cantidadDocumentos = 1;\r\n }\r\n \r\n \r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n \r\n// System.out.println(\"local : \"+objVentas.getObjLocal().getInt_idLocal()+\" tD :\"+arr[2].trim());\r\n txtNroDocumento.setText(PaqueteBusinessDelegate.getVentasService().\r\n consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n \r\n// System.out.println(\"consulta : \"+PaqueteBusinessDelegate.getVentasService().\r\n// consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n String documento=txtNroDocumento.getText();\r\n String statico=txtNroDocumento.getText().split(\"/\")[0];\r\n// System.out.println(\"estatico : \"+statico);\r\n statico=statico.split(\"-\")[0].concat(\"-\").concat(statico.split(\"-\")[1]).concat(\"-\");\r\n \r\n\r\n if (cantidadDocumentos>1){\r\n for (int i=1;i<cantidadDocumentos;i++){\r\n \r\n if (i<cantidadDocumentos)\r\n documento+=\";\";\r\n \r\n documento+=statico.concat(String.valueOf( Util.stringTOint(\r\n txtNroDocumento.getText().split(\"/\")[0].split(\"-\")[2])+i)).\r\n concat(\"/\").concat(txtNroDocumento.getText().split(\"/\")[1]);\r\n\r\n \r\n log.info(\"NRO: \"+documento);\r\n }\r\n txtNroDocumento.setText(documento);\r\n }\r\n \r\n \r\n \r\n \r\n }",
"public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }",
"public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\n\t\t\tgetServiceLocator().getHisc_urgencia_odontologicoService()\n\t\t\t\t\t.setLimit(\"limit 25 offset 0\");\n\n\t\t\tList<Hisc_urgencia_odontologico> lista_datos = getServiceLocator()\n\t\t\t\t\t.getHisc_urgencia_odontologicoService().listar(parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Hisc_urgencia_odontologico hisc_urgencia_odontologico : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\thisc_urgencia_odontologico, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }",
"public void buscar() {\r\n sessionProyecto.getProyectos().clear();\r\n sessionProyecto.getFilterProyectos().clear();\r\n try {\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(null, sessionProyecto.getCarreraSeleccionada().getId() != null\r\n ? sessionProyecto.getCarreraSeleccionada().getId() : null, null, Boolean.TRUE));\r\n \r\n if (proyectoCarreraOfertas == null) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : proyectoCarreraOfertas) {\r\n proyectoCarreraOferta.getProyectoId().setEstado(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getEstadoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setCatalogo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getCatalogoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setTipo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getTipoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setAutores(autores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setDirectores(directores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setNombreOferta(ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId()).getNombre());\r\n if (!this.sessionProyecto.getProyectos().contains(proyectoCarreraOferta.getProyectoId())) {\r\n proyectoCarreraOferta.getProyectoId().setCarrera(carreraService.find(proyectoCarreraOferta.getCarreraId()).getNombre());\r\n this.sessionProyecto.getProyectos().add(proyectoCarreraOferta.getProyectoId());\r\n }\r\n }\r\n sessionProyecto.setFilterProyectos(sessionProyecto.getProyectos());\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\n }",
"public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }",
"public void buscarDatos()throws Exception{\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue().toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\t\t\t\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\n\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\t\t\t\n\t\t\tfor (Ficha_epidemiologia_n13 ficha_epidemiologia_n13 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(ficha_epidemiologia_n13, this));\n\t\t\t}\n\t\t\t\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\t\t\t\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }",
"public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }",
"private void cargarRegistro() {\n\t\tif (filaId != null) {\n\t\t\tCursor bar = bdHelper.getBar(filaId);\n // Indicamos que queremos controlar el Cursor\n\t\t\tstartManagingCursor(bar);\n\n\t\t\t// Obtenemos el campo categoria\n\t\t\tString categoria = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_CATEGORIA));\n\t\t\t// Seleccionamos la categoría en el Spinner\n\t\t\tfor (int i=0; i<categoriaSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) categoriaSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(categoria)){\n\t\t\t\t\tcategoriaSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo relacion calidad-precio\n\t\t\tString relacion = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_RELACION));\n\t\t\t// Seleccionamos en el Spinner la relacion c-p\n\t\t\tfor (int i=0; i<relacionSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) relacionSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(relacion)){\n\t\t\t\t\trelacionSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo del acompañante\n\t\t\tString acompanante = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_ACOMPANANTE));\n\t\t\t// Seleccionamos el formato en el Spinner\n\t\t\tfor (int i=0; i<acompananteSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) acompananteSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(acompanante)){\n\t\t\t\t\tacompananteSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Rellenamos las Vistas\n\t\t\tnombreText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOMBRE)));\n\t\t\tdireccionText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_DIRECCION)));\n\t\t\tnotasText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOTAS)));\n\t\t\tprecioText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_PRECIO)));\n\t\t\tvaloracionRB.setRating(bar.getFloat(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_VALORACION)));\n\n // Tratamos las fechas del registro\n\t\t\tlong fecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_ULT_VIS));\n\t\t\tprimeraFecha.setTimeInMillis(fecha);\n\t\t\tfecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_PRI_VIS));\n\t\t\tif (fecha>0) {\n\t\t\t\tultimaFecha=Calendar.getInstance();\n\t\t\t\tultimaFecha.setTimeInMillis(fecha);\n\t\t\t}\n\t\t\t// Dejamos de controlar el cursor de la BD\n\t\t\tstopManagingCursor(bar);\n\t\t}\n\t}",
"public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_partoService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_parto> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_partoService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_parto his_parto : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_parto, this));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}",
"public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\n\t\t\t\t\t\"limit 25 offset 0\");\n\n\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Ficha_epidemiologia_n3 ficha_epidemiologia_n3 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\tficha_epidemiologia_n3, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"public String[][] obtenerConsultas(){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n int i = 0;\n String[][] datos = new String[obtenerRegistros()][5];\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n\n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id;\");\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\"); \n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }",
"public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_atencion_embarazadaService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_atencion_embarazada> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_atencion_embarazadaService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_atencion_embarazada his_atencion_embarazada : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_atencion_embarazada,\r\n\t\t\t\t\t\tthis));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}",
"public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }",
"public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }",
"public void searchAll() {\r\n\t\tconfiguracionUoDet = new ConfiguracionUoDet();\r\n\t\tidConfiguracionUoDet = null;\r\n\t\tidBarrio = null;\r\n\t\tidCiudad = null;\r\n\t\tidCpt = null;\r\n\t\tidDpto = null;\r\n\t\tmodalidadOcupacion = null;\r\n\t\tcodigoUnidOrgDep = null;\r\n\t\tdenominacion = null;\r\n\t\tllenarListado1();\r\n\t}",
"private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;",
"public void buscar(){\n \n String atributo=txtBuscar.getText();\n String consulta=extraerCombo();\n DefaultTableModel modelo=da.consultar(consulta, atributo);\n tblConsultar.setModel(modelo);\n lblTotal.setText(\"Se encontraron: \"+Integer.toString(da.getTotalRegistros())+\" resultados\");\n \n }",
"@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}",
"public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public List<Norma> buscarPorAno(final String ano, final Integer estado) {\n\tfinal Connection connection = Conexao.getConexao();\n\tfinal List<Norma> normas = new ArrayList<Norma>();\n\ttry {\n\t final String sql = \"select norma.id_norma, norma.numero, norma.ano, \"\n\t\t + \"norma.data_publicacao, norma.resumo, norma.descricao, \"\n\t\t + \"tipo.id_tipo, tipo.descricao \"\n\t\t + \"from norma, tipo, esfera, esfera_estadual, estado \"\n\t\t + \"where norma.fk_id_esfera = esfera.id_esfera \"\n\t\t + \"and esfera.id_esfera = esfera_estadual.id_esfera \"\n\t\t + \"and norma.fk_id_tipo = tipo.id_tipo \"\n\t\t + \"and esfera_estadual.fk_id_estado = estado.id_estado \"\n\t\t + \"and estado.id_estado = \"\n\t\t + estado\n\t\t + \" and norma.ano like '\" + ano + \"'\";\n\n\t final PreparedStatement preparedStatement = connection\n\t\t .prepareStatement(sql);\n\t final ResultSet resultSet = preparedStatement.executeQuery();\n\t while (resultSet.next()) {\n\t\tfinal Norma norma = new Norma();\n\t\tnorma.setIdentificador(resultSet.getInt(1));\n\t\tnorma.setNumero(resultSet.getString(2));\n\t\tnorma.setAno(resultSet.getString(3));\n\t\tnorma.setDataPublicacao(Util.converterParaDataBrasileira(resultSet.getString(4)));\n\t\tnorma.setResumo(resultSet.getString(5));\n\t\tnorma.setDescricao(resultSet.getString(6));\n\t\tfinal TipoDeNorma tipoDeNorma = new TipoDeNorma(\n\t\t\tresultSet.getInt(7), resultSet.getString(8));\n\t\tnorma.setTipoDeNorma(tipoDeNorma);\n\t\tnormas.add(norma);\n\t }\n\t} catch (final SQLException exception) {\n\t System.out.println(\"Buscar Normas Federais: Erro => \"\n\t\t + exception.getMessage());\n\t} finally {\n\t try {\n\t\tconnection.close();\n\t\tConexao.fechaConexao();\n\t } catch (final SQLException e) {\n\t\tSystem.out\n\t\t\t.println(\"Buscar Normas Federais: Erro ao fechar conexão => \"\n\t\t\t\t+ e.getMessage());\n\t\te.printStackTrace();\n\t }\n\t}\n\treturn normas;\n }",
"public void limpiarCamposFormBusqueda() {\n\t}",
"protected void evento_cambioEstadoFiltrosLocales() {\r\n\t\tfinal List<PataBidireccional> allPatas = getPatas();\r\n\t\tfor (final PataBidireccional pataConectora : allPatas) {\r\n\t\t\tfinal Condicion nuevoFiltro = calcularFiltroDeEntradaPara(pataConectora);\r\n\t\t\tpataConectora.actualizarFiltroDeEntrada(nuevoFiltro);\r\n\t\t}\r\n\t}",
"public void buscaxnombre() {\r\n try {\r\n modelo.setNombre(vistabuscapro.jTvnombre.getText());//C.P.M le mandamos a el modelo el nombre para consultarlo\r\n rs = modelo.Buscarxnombre();//C.P.M ejecutamo el metodo del modelo y atrapamos el resultado\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M se establese el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M no sera editable\r\n return false;\r\n }\r\n };\r\n vistabuscapro.Tproductos.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"los encabeados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de el resultado\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un objeto con la cantidad de columnas obtenidas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos\r\n fila[i] = rs.getObject(i + 1);//C.P.M le agregamos la informacion obtenida\r\n }\r\n buscar.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por nombre\");\r\n }\r\n }",
"private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }",
"public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}",
"public void busqueda() {\r\n\r\n try {\r\n\r\n String preg = JOptionPane.showInputDialog(\"Buscar:\");\r\n Query query = new Query(preg);\r\n QueryResult result = twitter.search(query);\r\n for (Status status : result.getTweets()) {\r\n System.out.println(\"@\" + status.getUser().getScreenName() + \":\" + status.getText());\r\n }\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\n public List<Caja> buscarMovimientos(){\n List<Caja> listaCaja= cajaRepository.findAll();\n\n return listaCaja;\n\n }",
"public void buscarDocentes() {\r\n try {\r\n List<DocenteProyecto> docenteProyectos = docenteProyectoService.buscar(new DocenteProyecto(\r\n sessionProyecto.getProyectoSeleccionado(), null, null, Boolean.TRUE, null));\r\n if (docenteProyectos.isEmpty()) {\r\n return;\r\n }\r\n for (DocenteProyecto docenteProyecto : docenteProyectos) {\r\n DocenteProyectoDTO docenteProyectoDTO = new DocenteProyectoDTO(docenteProyecto, null,\r\n docenteCarreraService.buscarPorId(new DocenteCarrera(docenteProyecto.getDocenteCarreraId())));\r\n docenteProyectoDTO.setPersona(personaService.buscarPorId(new Persona(docenteProyectoDTO.getDocenteCarrera().getDocenteId().getId())));\r\n sessionProyecto.getDocentesProyectoDTO().add(docenteProyectoDTO);\r\n }\r\n sessionProyecto.setFilterDocentesProyectoDTO(sessionProyecto.getDocentesProyectoDTO());\r\n } catch (Exception e) {\r\n }\r\n }",
"private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}",
"@Override\n\t/*Método para usarse en el momento de ver las reservas de un determinado usuaario en el panel del mismo*/\n\tpublic String verReservas(String nombreusuario) {\n\t\tGson json= new Gson(); \n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"Select * from alquileres alq, peliculas p where alq.pelicula=p.id and alq.usuario LIKE '\"+nombreusuario+\"' order by p.titulo\"; //Seleccion de los alquileres relacionados con el usuario \n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Alquiler> datos= new ArrayList<Alquiler>(); //ArrayList que va a almacenar los alquileres del usuario\n\t\t\t\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t\n\t\t\t//Se cogen los datos necesarios \n\t\t\twhile(rs.next()) {\n\t\t\t\tString idpelicula=rs.getString(\"id\");\n\t\t\t\tint numero_alquiler=rs.getInt(\"numero_alquiler\");\n\t\t\t\tString fecha=rs.getString(\"fecha_alquiler\");\n\t\t\t\tString titulo= rs.getString(\"titulo\"); \n\t\t\t\tString genero= rs.getString(\"genero\"); \n\t\t\t\tString cadenaestreno=rs.getString(\"estreno\");\n\t\t\t\tString estreno=\"\"; \n\t\t\t\t\n\t\t\t\t//comprobación y asignación del atributo estreno:\n\t\t\t\t/*Como en la base de datos se guarda como una cadena de texto, cuando se devuelve\n\t\t\t\t * hay que comprobar su valor y dependiendo del que sea pasarlo a una cadena para pasarla a la clase \n\t\t\t\t * Alquiler*/\n\t\t\t\t\n\t\t\t\tif(cadenaestreno.equals(\"true\")) {\n\t\t\t\t\testreno=\"Si\";\n\t\t\t\t}else if(cadenaestreno.equals(\"false\")) {\n\t\t\t\t\testreno=\"No\";\n\t\t\t\t}\n\t\t\t\tAlquiler alquiler=new Alquiler(numero_alquiler,idpelicula,fecha,titulo,genero,estreno); //uso esta clase para poder enviar los datos\n\t\t\t\tdatos.add(alquiler); //añado el alquiler a los datos que se van a devolver\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tst.close();\n\t\treturn json.toJson(datos); //devuelvo la lista de los datos en JSON \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t}",
"@Override\n\tpublic ArrayList<Object> leer(Connection connection, String campoBusqueda, String valorBusqueda) {\n\t\tString query = \"\";\n\t\tDetalleSolicitud detalleSolicitud = null;\n\t\tArrayList<Object> listaDetalleSolicitud = new ArrayList<Object>();\n\t\tif (campoBusqueda.isEmpty() || valorBusqueda.isEmpty()) {\n\t\t\tquery = \"SELECT * FROM detallesolicitudes ORDER BY sysPK;\";\n\t\t\ttry {\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(query); \t\t\t\t\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tdetalleSolicitud = new DetalleSolicitud();\n\t\t\t\t\tdetalleSolicitud.setSysPk(resultSet.getInt(1));\n\t\t\t\t\tdetalleSolicitud.setCantidad(resultSet.getInt(2));\n\t\t\t\t\tdetalleSolicitud.setFechaEntrega(resultSet.getDate(3));\n\t\t\t\t\tdetalleSolicitud.setDisenoFk(resultSet.getInt(4));\n\t\t\t\t\tdetalleSolicitud.setSolicitudFk(resultSet.getInt(5));\n\t\t\t\t\tlistaDetalleSolicitud.add(detalleSolicitud);\n\t\t\t\t}//FIN WHILE\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tNotificacion.dialogoException(ex);\n\t\t\t}//FIN TRY/CATCH\n\t\t} else {\n\t\t\tquery = \"SELECT * FROM detallesolicitudes WHERE \" + campoBusqueda + \" = ? ORDER BY sysPK;\";\n\t\t\ttry {\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(query);\n\t\t\t\tpreparedStatement.setString(1, valorBusqueda);\n\t\t\t\tResultSet resultSet=preparedStatement.executeQuery();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tdetalleSolicitud = new DetalleSolicitud();\n\t\t\t\t\tdetalleSolicitud.setSysPk(resultSet.getInt(1));\n\t\t\t\t\tdetalleSolicitud.setCantidad(resultSet.getInt(2));\n\t\t\t\t\tdetalleSolicitud.setFechaEntrega(resultSet.getDate(3));\n\t\t\t\t\tdetalleSolicitud.setDisenoFk(resultSet.getInt(4));\n\t\t\t\t\tdetalleSolicitud.setSolicitudFk(resultSet.getInt(5));\n\t\t\t\t\tlistaDetalleSolicitud.add(detalleSolicitud);\n\t\t\t\t}//FIN WHILE\n\t\t\t}catch (SQLException ex) {\n\t\t\t\tNotificacion.dialogoException(ex);\n\t\t\t}//FIN TRY/CATCH\n\t\t}//FIN IF/ELSE\n\t\treturn listaDetalleSolicitud;\n\t}",
"public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }",
"private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}",
"@Override\n\tprotected BaseSearchForm devuelveFormBusqueda() throws Exception {\n\t\tMantenimientoCRAMatrizDiasSearchForm form = new MantenimientoCRAMatrizDiasSearchForm();\n\t\treturn form;\n\t}",
"public List<Norma> buscarAnos(final Integer estado) {\n\tif (estado == null) {\n\t return new ArrayList<Norma>();\n\t}\n\n\tfinal Connection connection = Conexao.getConexao();\n\tfinal List<Norma> normas = new ArrayList<Norma>();\n\ttry {\n\t final String sql = \"select distinct norma.ano \"\n\t\t + \"from norma, esfera, esfera_estadual, estado \"\n\t\t + \"where esfera.id_esfera = esfera_estadual.id_esfera \"\n\t\t + \"and esfera_estadual.fk_id_estado = estado.id_estado \"\n\t\t + \"and estado.id_estado = \"\n\t\t + estado\n\t\t + \" and norma.fk_id_esfera = esfera.id_esfera order by 1 desc\";\n\n\t final PreparedStatement preparedStatement = connection\n\t\t .prepareStatement(sql);\n\t final ResultSet resultSet = preparedStatement.executeQuery();\n\t while (resultSet.next()) {\n\t\tfinal Norma norma = new Norma();\n\t\tnorma.setAno(resultSet.getString(1));\n\t\tnormas.add(norma);\n\t }\n\t} catch (final SQLException exception) {\n\t System.out.println(\"Buscar Normas Estaduais: Erro => \"\n\t\t + exception.getMessage());\n\t} finally {\n\t try {\n\n\t\tconnection.close();\n\t\tConexao.fechaConexao();\n\t } catch (final SQLException e) {\n\t\tSystem.out\n\t\t\t.println(\"Buscar Normas Estaduais: Erro ao fechar conexão => \"\n\t\t\t\t+ e.getMessage());\n\t\te.printStackTrace();\n\t }\n\t}\n\n\treturn normas;\n }",
"public void buscarproducto() {\r\n try {\r\n modelo.setNombre(vista.jTbnombre2.getText());//C.P.M le mandamos al modelo el nombre del producto\r\n rs = modelo.Buscar();//C.P.M obtenemos el resultado del modelos\r\n if (rs.equals(\"\")) {//C.P.M en caso de que el resultado venga vacio notificamos a el usuario que no encontro el producto\r\n JOptionPane.showMessageDialog(null, \"No se encontro: \" + vista.jTbnombre2.getText() + \" en la base de datos.\");\r\n }\r\n //C.P.M Para establecer el modelo al JTable\r\n DefaultTableModel buscar = new DefaultTableModel() {\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M Aqui le decimos que no seran editables los campos de la tabla\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M Auui obtenemos la estructura de la tabla(\"Los encabezados\")\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n Object[] fila = new Object[cantidadColumnas];//C.P.M Creamos un objeto con el numero de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recoremos ese vector\r\n fila[i] = rs.getObject(i + 1);//C.P.M Aqui vamos insertando la informacion obtenida de la base de datos\r\n }\r\n buscar.addRow(fila);//C.P.M y agregamos el arreglo como una nueva fila a la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurio un error al buscar el producto\");\r\n }\r\n\r\n }",
"public ArrayList<Factura> recuperaFacturaCompletaPorFiltro(String filtro) {\r\n\t\tString sql = \"\";\r\n\t\tsql += \"SELECT * FROM facturas WHERE \";\r\n\t\tsql += filtro;\r\n\t\tsql += \" ORDER BY facturas.numero\";\r\n\t\tSystem.out.println(sql);\r\n\t\tArrayList<Factura> lista = new ArrayList<>();\r\n\t\tConnection c = new Conexion().getConection();\r\n\t\tif (c != null) {\r\n\t\t\ttry {\r\n\t\t\t\t// Crea un ESTAMENTO (comando de ejecucion de un sql)\r\n\t\t\t\tStatement comando = c.createStatement();\r\n\t\t\t\tResultSet rs = comando.executeQuery(sql);\r\n\t\t\t\twhile (rs.next() == true) {\r\n\t\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\t\tint clienteId = rs.getInt(\"clienteId\");\r\n\t\t\t\t\tString nombreCliente = rs.getString(\"nombreCliente\");\r\n\t\t\t\t\tint numero = rs.getInt(\"numero\");\r\n\t\t\t\t\tDate fecha = rs.getDate(\"fecha\");\r\n\t\t\t\t\tdouble porcDescuento = rs.getDouble(\"porcDescuento\");\r\n\t\t\t\t\tdouble porcRecargoEquivalencia = rs.getDouble(\"porcRecargoEquivalencia\");\r\n\t\t\t\t\tdouble impTotal = rs.getDouble(\"impTotal\");\r\n\t\t\t\t\tdouble impRecargo = rs.getDouble(\"impRecargo\");\r\n\t\t\t\t\tdouble impIva = rs.getDouble(\"impIva\");\r\n\t\t\t\t\tString dirCorreo = rs.getString(\"dirCorreo\");\r\n\t\t\t\t\tString dirFactura = rs.getString(\"dirFactura\");\r\n\t\t\t\t\tString dirEnvio = rs.getString(\"dirEnvio\");\r\n\t\t\t\t\tboolean cobrada = rs.getBoolean(\"cobrada\");\r\n\t\t\t\t\tArrayList<FacturaDetalle> detalles = new FacturasDetallesBDD().recuperaPorFacturaId(id);\r\n\t\t\t\t\tlista.add(new Factura(id, clienteId, nombreCliente, numero, fecha, porcDescuento, porcRecargoEquivalencia, impTotal, impRecargo, impIva, dirCorreo, dirFactura, dirEnvio, cobrada, detalles));\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"public Collection<FlujoDetalleDTO> cargarTodos(int codigoFlujo) {\n/* 138 */ Collection<FlujoDetalleDTO> resultados = new ArrayList<FlujoDetalleDTO>();\n/* */ try {\n/* 140 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" order by t.secuencia\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 178 */ boolean rtaDB = this.dat.parseSql(s);\n/* 179 */ if (!rtaDB) {\n/* 180 */ return resultados;\n/* */ }\n/* 182 */ this.rs = this.dat.getResultSet();\n/* 183 */ while (this.rs.next()) {\n/* 184 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 187 */ catch (Exception e) {\n/* 188 */ e.printStackTrace();\n/* 189 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarTodos \", e);\n/* */ } \n/* 191 */ return resultados;\n/* */ }",
"public static void searchAll(){\r\n try {\r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(general);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM articulos\");\r\n //SELECT a.*,c.nombre FROM articulos a,categorias c,prodcategoria p WHERE a.codigo = p.articulo AND c.categoria_id = p.categoria\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }",
"public ArrayList<ServicioDTO> consultarServicios(String columna, String informacion) throws Exception {\r\n ArrayList<ServicioDTO> dtos = new ArrayList<>();\r\n conn = Conexion.generarConexion();\r\n String sql = \"\";\r\n if (columna.equals(\"nom\")) \r\n sql = \" WHERE SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ?\";\r\n else if (columna.equals(\"cod\"))\r\n sql = \" WHERE SerCodigo = ? \";\r\n if (conn != null) {\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT SerCodigo, \"\r\n + \"SerNombre, SerCaracter, SerNotas, SerHabilitado \"\r\n + \"FROM tblservicio\" + sql);\r\n if (columna.equals(\"cod\")) {\r\n stmt.setString(1, informacion);\r\n } else if (columna.equals(\"nom\")) {\r\n stmt.setString(1, informacion);\r\n stmt.setString(2, \"%\" + informacion);\r\n stmt.setString(3, informacion + \"%\");\r\n stmt.setString(4, \"%\" + informacion + \"%\");\r\n }\r\n ResultSet rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n ServicioDTO dto = new ServicioDTO();\r\n dto.setCodigo(rs.getInt(1));\r\n dto.setNombre(rs.getString(2));\r\n dto.setCaracter(rs.getString(3));\r\n dto.setNotas(rs.getString(4));\r\n String habilitado = rs.getString(5);\r\n if(habilitado.equals(\"si\"))\r\n dto.setHabilitado(true);\r\n else\r\n dto.setHabilitado(false);\r\n dtos.add(dto);\r\n }\r\n stmt.close();\r\n rs.close();\r\n conn.close();\r\n }\r\n return dtos;\r\n }",
"@Listen(\"onChange = #txtNombreMostrarTematica,#txtAreaMostrarTematica,#txtDescripcionMostrarTematica\")\r\n\tpublic void filtrarDatosCatalogo() {\r\n\t\tList<Tematica> tematicas1 = servicioTematica.buscarActivos();\r\n\t\tList<Tematica> tematicas2 = new ArrayList<Tematica>();\r\n\r\n\t\tfor (Tematica tematica : tematicas1) {\r\n\t\t\tif (tematica\r\n\t\t\t\t\t.getNombre()\r\n\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t.contains(txtNombreMostrarTematica.getValue().toLowerCase())\r\n\t\t\t\t\t&& tematica\r\n\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\ttxtDescripcionMostrarTematica.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toLowerCase())) {\r\n\t\t\t\ttematicas2.add(tematica);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tltbTematica.setModel(new ListModelList<Tematica>(tematicas2));\r\n\r\n\t}",
"public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }",
"public String buscarTrabajadoresPorParametros() {\r\n try {\r\n inicializarFiltros();\r\n listaTrabajadores = null;\r\n //listaTrabajadores = administrarGestionarTrabajadoresBO.consultarTrabajadoresPorParametro(filtros);\r\n return null;\r\n } catch (Exception e) {\r\n System.out.println(\"Error ControllerAdministrarTrabajadores buscarTrabajadoresPorParametros : \" + e.toString());\r\n return null;\r\n }\r\n }",
"private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }",
"@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }",
"public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }",
"public List<SpasaCRN> obtenerSpasaFiltros() {\n\n if (conectado) {\n try {\n String bool = \"false\";\n List<SpasaCRN> filtrosCRNs = new ArrayList();\n\n String Query = \"SELECT * FROM `spasa_filtros` WHERE anio = YEAR(NOW()) AND ciclo = CURRENT_CICLO() ;\";\n Logy.mi(\"Query: \" + Query);\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n\n SpasaCRN crn = new SpasaCRN();\n SpasaMateria mat = new SpasaMateria();\n crn.setCodigoProf(resultSet.getString(\"usuario\")); //modificado ahora que se cambio in a String\n crn.setCrnCpr(resultSet.getString(\"crn\"));\n String mc = resultSet.getString(\"materia_cod\");\n if (mc != null && !mc.isEmpty() && !mc.equals(\"null\")) {\n crn.setMateriaRuta(mc);\n mat.setMateriaRuta(mc);\n }\n String m = resultSet.getString(\"materia_nom\");\n if (m != null && !m.isEmpty() && !m.equals(\"null\")) {\n mat.setNombreMat(m);\n }\n String d = resultSet.getString(\"departamento_nom\");\n if (d != null && !d.isEmpty() && !d.equals(\"null\")) {\n mat.setNombreDepto(d);\n }\n String dia = resultSet.getString(\"dia\");\n if (dia != null && !dia.isEmpty() && !dia.equals(\"null\")) {\n crn.setDiaHr(dia);\n }\n String h = resultSet.getString(\"hora\");\n if (h != null && !h.isEmpty() && !h.equals(\"null\")) {\n crn.setHiniHr(h);\n }\n crn.setMateria(mat);\n filtrosCRNs.add(crn);\n }\n\n return filtrosCRNs;\n\n } catch (SQLException ex) {\n Logy.me(\"No se pudo consultar tabla spasa_filtros : \" + ex.getMessage());\n return null;\n }\n } else {\n Logy.me(\"No se ha establecido previamente una conexion a la DB\");\n return null;\n }\n }",
"Tablero consultarTablero();",
"@Override\r\n\tpublic void buscarCliente(String dato) {\n\t\tList<Cliente> listaEncontrados = clienteDao.buscarContrato(dato);\r\n\t\tvistaCliente.mostrarClientes(listaEncontrados);\r\n\t}",
"private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }",
"public void llenarDatos() {\n String nombre = \"\";\n String descripcion = \"\";\n try {\n ResultSet resultado = buscador.getResultSet(\"select nombre, descripcion from NODO where ID = \" + IDNodoPadre + \";\");\n if (resultado.next()) {\n nombre = resultado.getObject(\"nombre\").toString();\n descripcion = resultado.getObject(\"descripcion\").toString();\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n campoNombre.setText(nombre);\n campoDescripcion.setText(descripcion);\n //Si esta asociada a categorias\n if(conCategorias)\n llenarComboCategoria();\n else{\n comboCategoria.setVisible(false);\n labelCategoria.setVisible(false);\n }\n }",
"List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;",
"public void cargarTablaFiltro(JTable table, int tipo, String restriccion) {\n\t\t\n\t\tString filtro = restriccion + \"-\" + tipo; \n\t\tList<CocheTaller> coches = mecanicoController.filtrarCocheTaller(filtro);\n\t\tString[] columnNames = {\"Marticula\", \"Marca\", \"Modelo\", \"DNI Cliente\", \"Mecanico\", \"Coste\", \"Estado\"};\n\t\t\n\t\tif (!coches.isEmpty()) {\n\t\t\t DefaultTableModel model = new DefaultTableModel();\n\t\t\t table.setModel(model);\n\t\t\t model.setColumnIdentifiers(columnNames);\n\t\t\t \n\t\t\t for (CocheTaller c : coches) {\n\t\t\t\t Object[] o = new Object[7];\n\t\t\t\t o[0] = c.getMatricula();\n\t\t\t\t o[1] = c.getMarca();\n\t\t\t\t o[2] = c.getModelo();\n\t\t\t\t o[3] = c.getDniCliente();\n\t\t\t\t o[4] = c.getMecanico();\n\t\t\t\t o[5] = c.getCoste() + \"€\";\n\t\t\t\t o[6] = mecanicoController.traducirEstado(c.getEstado());\n\t\t\t\t model.addRow(o);\n\t\t\t\t }\n\t\t} else {\n\t\t\tlogger.error(\"No se dispone ningun vehiculo con ese filtrado.\");\n\t\t}\n\t}",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}",
"public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }",
"@Override\n\tpublic List<Comisiones> buscar(Comisiones comisiones) {\n\t\tEntityManager manager = createEntityManager();\n\t\tCriteriaBuilder builder = manager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Comisiones> criteriaQuery = builder.createQuery(Comisiones.class);\n\t\tRoot<Comisiones> root = criteriaQuery.from(Comisiones.class);\n\t\t\n\t\t \n\t\tPredicate valor1 = builder.equal(root.get(\"region\"), comisiones.getRegion().getrEgionidpk());\n\t\tPredicate valor2 = builder.equal(root.get(\"vCodcomision\"),comisiones.getvCodcomision());\n\t\tPredicate valor3 = builder.equal(root.get(\"vNumdocapr\"),comisiones.getvNumdocapr());\n\t\tPredicate valor4 = null;\n\t\tPredicate valor6 = null; \n\t\tif(comisiones.getvDescripcion().length() >0) {\n\t\t\t valor4 = builder.like(root.get(\"vDescripcion\"), \"%\"+comisiones.getvDescripcion()+\"%\"); \n\t\t\t valor6 = builder.or(valor4);\n\t\t}else {\n\t\t\t if(comisiones.getNombrencargado().length()>0) {\n\t\t\t\t valor4 = builder.like(root.get(\"consejero\").get(\"vDesnombre\"), \"%\"+comisiones.getNombrencargado()+\"%\"); \n\t\t\t\t valor6 = builder.or(valor4);\n\t\t\t }else {\n\t\t\t\t valor6 = builder.or(valor2,valor3); \n\t\t\t }\n\t\t\t \n\t\t}\n\t\tPredicate valor7 = builder.and(valor1,valor6);\n\t\tcriteriaQuery.where(valor7);\n\t\tQuery<Comisiones> query = (Query<Comisiones>) manager.createQuery(criteriaQuery);\n\t\tList<Comisiones> resultado = query.getResultList();\n\t\tmanager.close();\n\t\treturn resultado; \n\t}",
"public ArrayList<TicketDto> consultarVentasChance(String fecha, String moneda) {\n ArrayList<TicketDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,sum(vrl_apuesta) \"\n + \"FROM ticket\"\n + \" where \"\n + \" fecha='\" + fecha + \"' and moneda='\" + moneda + \"' group by codigo\";\n\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n TicketDto dto = new TicketDto();\n dto.setCodigo(rs.getString(1));\n dto.setValor(rs.getInt(2));\n dto.setMoneda(moneda);\n lista.add(dto);\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}",
"public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }",
"public Cursor CargarTodosLosDatos()\n {\n return db.query(DATABASE_TABLE, new String[] {KEY_ATRIBUTO01}, null, null, null, null, null);\n }",
"public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parametro = lbxParametros.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tlbTotal_admisiones.setValue(\"\");\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (!value.isEmpty()) {\n\t\t\t\tif (parametro.equals(\"paramTodo\")) {\n\t\t\t\t\tparameters.put(\"paramTodo\", \"paramTodo\");\n\t\t\t\t\tparameters.put(\"value\", value);\n\t\t\t\t} else {\n\t\t\t\t\tparameters.put(parametro, value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tparameters.put(\"atendida\", chkFiltro_atendidas.isChecked());\n\t\t\tparameters.put(\"estado\", \"1\");// Estado 1 significa que esta activa\n\n\t\t\tif (lbxVias_ingreso.getSelectedItems().size() > 0\n\t\t\t\t\t|| chkFiltro_incluir_hosp.isChecked()\n\t\t\t\t\t|| chkFiltro_incluir_urgencia.isChecked()) {\n\t\t\t\tList<String> listado_vias = new ArrayList<String>();\n\t\t\t\tfor (Listitem listitem : lbxVias_ingreso.getSelectedItems()) {\n\t\t\t\t\tlistado_vias.add((String) listitem.getValue());\n\t\t\t\t}\n\n\t\t\t\t// incluimos las areas\n\t\t\t\tif (chkFiltro_incluir_hosp.isChecked()) {\n\t\t\t\t\tlistado_vias.add(IVias_ingreso.HOSPITALIZACIONES);\n\t\t\t\t}\n\n\t\t\t\tif (chkFiltro_incluir_urgencia.isChecked()) {\n\t\t\t\t\tlistado_vias.add(IVias_ingreso.URGENCIA);\n\t\t\t\t}\n\n\t\t\t\tbtnFiltro_ingreso.setImage(\"/images/filtro1.png\");\n\t\t\t\tparameters.put(\"vias_ingreso\", listado_vias);\n\t\t\t} else {\n\t\t\t\tbtnFiltro_ingreso.setImage(\"/images/filtro.png\");\n\t\t\t\tList<String> vias_ingreso = new ArrayList<String>();\n\t\t\t\tvias_ingreso.add(IVias_ingreso.HOSPITALIZACIONES);\n\t\t\t\tvias_ingreso.add(IVias_ingreso.URGENCIA);\n\t\t\t\tparameters.put(\"vias_ingreso_excluyentes\", vias_ingreso);\n\t\t\t}\n\n\t\t\tif (dtbxFecha_inicial.getValue() != null\n\t\t\t\t\t&& dtbxFecha_final.getValue() != null) {\n\t\t\t\tif (dtbxFecha_inicial.getValue().compareTo(\n\t\t\t\t\t\tdtbxFecha_final.getValue()) > 0) {\n\t\t\t\t\tthrow new ValidacionRunTimeException(\n\t\t\t\t\t\t\t\"La fecha inicial en la busqueda no puede ser mayor a la fecha final\");\n\t\t\t\t}\n\t\t\t\tparameters.put(\"fecha_inicial_p\", new Timestamp(\n\t\t\t\t\t\tdtbxFecha_inicial.getValue().getTime()));\n\t\t\t\tparameters.put(\"fecha_final_p\", new Timestamp(dtbxFecha_final\n\t\t\t\t\t\t.getValue().getTime()));\n\t\t\t} else if (dtbxFecha_inicial.getValue() != null) {\n\t\t\t\tparameters.put(\"fecha_inicial_p\", new Timestamp(\n\t\t\t\t\t\tdtbxFecha_inicial.getValue().getTime()));\n\t\t\t} else if (dtbxFecha_final.getValue() != null) {\n\t\t\t\tparameters.put(\"fecha_final_p\", new Timestamp(dtbxFecha_final\n\t\t\t\t\t\t.getValue().getTime()));\n\t\t\t}\n\n\t\t\tAdministradora administradora = bandboxAseguradora\n\t\t\t\t\t.getRegistroSeleccionado();\n\n\t\t\tif (administradora != null) {\n\t\t\t\tparameters.put(\"codigo_administradora\",\n\t\t\t\t\t\tadministradora.getCodigo());\n\t\t\t\tif (lbxContratos.getSelectedIndex() != 0) {\n\t\t\t\t\tContratos contratos = (Contratos) lbxContratos\n\t\t\t\t\t\t\t.getSelectedItem().getValue();\n\t\t\t\t\tparameters.put(\"id_plan\", contratos.getId_plan());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tList<String> listado_centros = new ArrayList<String>();\n\t\t\tif (!lbxCentros_atencion.getSelectedItems().isEmpty()) {\n\t\t\t\tfor (Listitem listitem : lbxCentros_atencion.getSelectedItems()) {\n\t\t\t\t\tCentro_atencion centro_atencion = (Centro_atencion) listitem\n\t\t\t\t\t\t\t.getValue();\n\t\t\t\t\tlistado_centros.add(centro_atencion.getCodigo_centro());\n\t\t\t\t}\n\t\t\t\tbtnFiltro_centros.setImage(\"/images/filtro1.png\");\n\t\t\t\tparameters.put(\"listado_centros\", listado_centros);\n\t\t\t} else {\n\t\t\t\tbtnFiltro_centros.setImage(\"/images/filtro.png\");\n\t\t\t}\n\t\t\tpopupViasIngreso.close();\n\t\t\tpopupCentros_atencion.close();\n\n\t\t\t// for (String key_map : parameters.keySet()) {\n\t\t\t// log.info(key_map + \" ===> \" + parameters.get(key_map));\n\t\t\t// }\n\n\t\t\tList<Admision> lista_datos = admisionService\n\t\t\t\t\t.listarResultados(parameters);\n\t\t\tlistboxResultado.getItems().clear();\n\n\t\t\tfor (Admision admision : lista_datos) {\n\t\t\t\tlistboxResultado.appendChild(crearFilas(admision, this));\n\t\t\t}\n\n\t\t\tlbTotal_admisiones.setValue(lista_datos.size() + \"\");\n\n\t\t\tlistboxResultado.setVisible(true);\n\t\t\t// listboxResultado.setMold(\"paging\");\n\t\t\t// listboxResultado.setPageSize(20);\n\n\t\t\tlistboxResultado.applyProperties();\n\t\t\tlistboxResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"public void llenarListaColocacion(){\n\n //capturar el texto y filtrar\n txtBuscar.textProperty().addListener((prop,old,text) ->{\n colocaciondata.setPredicate(colocacion ->{\n if (text==null || text.isEmpty()){\n return true;\n }\n String texto=text.toLowerCase();\n if(String.valueOf(colocacion.getIdColocacion()).toLowerCase().contains(texto)){\n return true;\n }\n else if(colocacion.getNombre().toLowerCase().contains(texto)){\n return true;\n }\n else if(colocacion.getEstado().toLowerCase().contains(texto)){\n return true;\n }\n\n return false;\n });\n });\n\n\n\n }",
"private void agregarFiltrosAdicionales() {\r\n if ((Utilidades.validarNulo(parametroUsuario) == true) && (!parametroUsuario.isEmpty())) {\r\n filtros.put(\"parametroUsuario\", parametroUsuario);\r\n }\r\n if ((Utilidades.validarNulo(parametroNombre) == true) && (!parametroNombre.isEmpty())) {\r\n filtros.put(\"parametroNombre\", parametroNombre);\r\n }\r\n if ((Utilidades.validarNulo(parametroApellido) == true) && (!parametroApellido.isEmpty())) {\r\n filtros.put(\"parametroApellido\", parametroApellido);\r\n }\r\n if ((Utilidades.validarNulo(parametroDocumento) == true) && (!parametroDocumento.isEmpty())) {\r\n filtros.put(\"parametroDocumento\", parametroDocumento);\r\n }\r\n if ((Utilidades.validarNulo(parametroCorreo) == true) && (!parametroCorreo.isEmpty())) {\r\n filtros.put(\"parametroCorreo\", parametroCorreo);\r\n }\r\n if (1 == parametroEstado) {\r\n filtros.put(\"parametroEstado\", \"true\");\r\n } else {\r\n if (parametroEstado == 2) {\r\n filtros.put(\"parametroEstado\", \"false\");\r\n }\r\n }\r\n if (1 == parametroGenero) {\r\n filtros.put(\"parametroGenero\", \"M\");\r\n } else {\r\n if (parametroGenero == 2) {\r\n filtros.put(\"parametroGenero\", \"F\");\r\n }\r\n }\r\n if (!\"TODOS\".equalsIgnoreCase(parametroTipoDocumento)) {\r\n filtros.put(\"parametroTipoDocumento\", parametroTipoDocumento);\r\n }\r\n }",
"public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }",
"public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }",
"public void cadastrarOfertasQuad1(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q1.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(1);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas1LazyModel = null;\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }",
"List<Videogioco> retriveByNome(String nome);",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n clear();\n Datos=(ArrayList<Busqueda>)results.values;\n addAll(Datos);\n notifyDataSetChanged();\n }",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }",
"@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }",
"public void limpiarDatos() {\r\n FormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\r\n tbxNro_identificacion.setValue(\"\");\r\n tbxNro_identificacion.setDisabled(false);\r\n deshabilitarCampos(true);\r\n\r\n }",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }",
"public List<Cuenta> buscarCuentasList(Map filtro);",
"public ArrayList<Producto> busquedaProductos(Producto.Categoria categoria){\n ArrayList <Producto> productosEncontrados = new ArrayList<>();\n for(Producto cadaProducto : UtilidadJavaPop.getProductosTotales()){\n if(cadaProducto.getCategoria().equals(categoria) && !productosEncontrados.contains(cadaProducto)\n && !cadaProducto.getVendedor().getCorreo().equals(this.getCorreo())){\n productosEncontrados.add(cadaProducto);\n }\n }\n ArrayList<Producto>productosEncontradosOrdenado = getProductosOrdenados(productosEncontrados, this);\n return productosEncontradosOrdenado;\n \n }",
"protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public List<Madeira> buscaCidadesEstado(String estado);",
"public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }",
"public void colocarComentariosResultado()\r\n\t{\r\n\t\tresultadoprueba.colocarTextoComentarios(\"\");\r\n\t}",
"DetalleVenta buscarDetalleVentaPorId(Long id) throws Exception;",
"public List<FaturamentoVO> validaSelecionaSinistros(String ano, int tipo) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0%\");\n\n\t\tUteis uteis = new Uteis();\n\t\tString anoAnterior = Integer.toString((Integer.parseInt(uteis.cortaRetornaAno(ano)) - 1));\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\n\t\tList<FaturamentoVO> listaAnoParam = dadosFaturamentoDetalhado;\n\t\tList<FaturamentoVO> listaAnoAnterior = dadosFaturamentoDetalhadoAnoAnterior;\n\n\t\tString quantidadeTextoBancoDados = \"\";\n\t\tString quantidadeTextoApresentacao = \"\";\n\t\tString valorTextoBancoDados = \"\";\n\t\tString valorTextoApresentacao = \"\";\n\n\t\tswitch (tipo) {\n\t\tcase 1: // AVISADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS AVISADOS\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS AVISADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 2: // INDENIZADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS INDENIZADOS\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS INDENIZADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 3: // PENDENTE\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS PENDENTES\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS PENDENTES\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 4: // DESPESA\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS - DESPESAS\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS - DESPESAS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaAnoParam.size(); i++) {\n\t\t\tif (listaAnoParam.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoParam.get(i).getProduto().equals(valorTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoParam.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoParam\n\n\t\tfor (int i = 0; i < listaAnoAnterior.size(); i++) {\n\t\t\tif (listaAnoAnterior.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(anoAnterior);\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoAnterior.get(i).getProduto().equals(valorTextoBancoDados)) {\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(anoAnterior);\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoAnterior\n\n\t\tbyte qtdAnoParam = 0;\n\t\tbyte qtdAnoAnterior = 2;\n\n\t\tbyte vlrAnoParam = 1;\n\t\tbyte vlrAnoAnterior = 3;\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 QTD\n\t\tString[] mesesQtdTratado = new String[13];\n\t\tdouble totalQtd = 0.0D;\n\t\tFaturamentoVO variacaoQtdVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\t\t\tBigDecimal bigQtdAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\")));\n\n\t\t\ttry {\n\t\t\t\ttotalQtd = Double.parseDouble((bigQtdAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 4,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalQtd = 0D;\n\t\t\t}\n\n\t\t\tmesesQtdTratado[j] = percentForm.format(totalQtd);\n\n\t\t}\n\t\tvariacaoQtdVO.setProduto(\"Variação Qtd.\");\n\t\tvariacaoQtdVO.setMeses(mesesQtdTratado);\n\t\tlistaTratada.add(variacaoQtdVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 Valor\n\t\tString[] mesesVlrTratado = new String[13];\n\t\tdouble totalVlr = 0.0D;\n\t\tFaturamentoVO variacaoVlrVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalVlr = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\tlistaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t4, RoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalVlr = 0D;\n\t\t\t}\n\n\t\t\tmesesVlrTratado[j] = percentForm.format(totalVlr);\n\n\t\t}\n\t\tvariacaoVlrVO.setProduto(\"Variação Valor\");\n\t\tvariacaoVlrVO.setMeses(mesesVlrTratado);\n\t\tlistaTratada.add(variacaoVlrVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoParam - anoAtual\n\t\tString[] mesesAvisoMedioAnoParamTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoParam = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoParamVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoParam = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t2, RoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoParam = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoParamTratado[j] = uteis.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoParam));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoParamVO.setAno(uteis.cortaRetornaAno(ano));\n\t\tvariacaoAvisoMedioAnoParamVO.setProduto(\"Aviso Médio\");\n\t\tvariacaoAvisoMedioAnoParamVO.setMeses(mesesAvisoMedioAnoParamTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoParamVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoAnterior\n\t\tString[] mesesAvisoMedioAnoAnteriorTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoAnterior = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoAnteriorVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoAnterior = new BigDecimal(Double\n\t\t\t\t\t.parseDouble(listaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoAnterior = Double.parseDouble((bigVlrAnoAnterior.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 2,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoAnterior = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoAnteriorTratado[j] = uteis\n\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoAnterior));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setAno(anoAnterior);\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setProduto(\"Aviso Médio\");\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setMeses(mesesAvisoMedioAnoAnteriorTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoAnteriorVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao Media\n\t\tshort avisoMedioAnoParam = 6;\n\t\tshort avisoMedioAnoAnterior = 7;\n\n\t\tString[] meses_AM_Tratado = new String[13];// AM -aviso medio\n\t\tdouble total_AM = 0.0D;\n\t\tFaturamentoVO variacao_AM_VO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal big_AM_AnoParam = new BigDecimal(Double.parseDouble(\n\t\t\t\t\tlistaTratada.get(avisoMedioAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotal_AM = Double\n\t\t\t\t\t\t.parseDouble((big_AM_AnoParam\n\t\t\t\t\t\t\t\t.divide(new BigDecimal(listaTratada.get(avisoMedioAnoAnterior).getMeses()[j]\n\t\t\t\t\t\t\t\t\t\t.replace(\".\", \"\").replace(\",\", \".\")), 4, RoundingMode.HALF_DOWN)).toString())\n\t\t\t\t\t\t- 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotal_AM = 0D;\n\t\t\t}\n\n\t\t\tmeses_AM_Tratado[j] = percentForm.format(total_AM);\n\n\t\t}\n\t\tvariacao_AM_VO.setProduto(\"Variação Média\");\n\t\tvariacao_AM_VO.setMeses(meses_AM_Tratado);\n\t\tlistaTratada.add(variacao_AM_VO);\n\n\t\treturn listaTratada;\n\t}"
]
| [
"0.6959833",
"0.6924135",
"0.68292856",
"0.6824132",
"0.67960036",
"0.6653335",
"0.66329867",
"0.66246",
"0.6623336",
"0.65720844",
"0.6512536",
"0.6507414",
"0.645299",
"0.64467275",
"0.6421578",
"0.6386944",
"0.63837445",
"0.63805765",
"0.63787705",
"0.63748616",
"0.6367442",
"0.63314205",
"0.6327416",
"0.6321584",
"0.6321549",
"0.6307435",
"0.63069993",
"0.629673",
"0.62678456",
"0.6252384",
"0.6248103",
"0.6247128",
"0.62237453",
"0.6192787",
"0.61875004",
"0.6181149",
"0.61798507",
"0.6155499",
"0.6151486",
"0.61467737",
"0.6145674",
"0.61133325",
"0.61101454",
"0.61047286",
"0.61014205",
"0.6097942",
"0.60913557",
"0.60904634",
"0.60816765",
"0.60752004",
"0.6067422",
"0.60658985",
"0.60619104",
"0.60498446",
"0.6034578",
"0.6024768",
"0.6015752",
"0.59965456",
"0.59806645",
"0.59747905",
"0.5963247",
"0.59531343",
"0.59474784",
"0.5946177",
"0.59291",
"0.59161663",
"0.5913297",
"0.59111166",
"0.59109116",
"0.58973366",
"0.5890402",
"0.5889856",
"0.58803666",
"0.5876291",
"0.5870767",
"0.5865058",
"0.58610886",
"0.5860219",
"0.58502316",
"0.5847972",
"0.58460337",
"0.5845363",
"0.5841948",
"0.5840871",
"0.5840028",
"0.58380395",
"0.58289814",
"0.58263505",
"0.58260006",
"0.582288",
"0.58128536",
"0.5810662",
"0.58086675",
"0.5806033",
"0.58008295",
"0.57962453",
"0.57879746",
"0.57872254",
"0.5785352",
"0.5783516",
"0.5779764"
]
| 0.0 | -1 |
Para que no se quede bloqueda la interfaz | private void goSearch() {
Thread t = new Thread(this);
t.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }",
"public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }",
"public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }",
"protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"public boolean getIncluyeInformeAvance() {\n\t\treturn this.adjuntos.size() > 0;\n\t}",
"@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }",
"private boolean limpiarTablaDocs(Table t)\n\t{\n\t\tt.removeAll(); //borra todo?\n\t\treturn true;\n\t}",
"public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;",
"@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}",
"public void resetIdiomaBusqueda()\r\n {\r\n this.idiomaBusqueda = null;\r\n }",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"@Override\n\tpublic void search() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 조회를 하다.\");\n\t}",
"public final void nonRedefinissableParEnfant(){\n\n }",
"private void elegiCasillaQueNoEsBomba(Casilla casilla) {\n\t\tif( !this.getJugadorDeTurno().equals( casilla.getJugador() ) && casilla.getJugador() != null )\t\t\t\n\t\t\tthis.getTablero().voltearTodasLasCasillasDelJugador( casilla.getJugador(), casilla );\n\t\t\n\t\t//Fuerzo el jugador a la casilla para evaluar si gane\n\t\tcasilla.setJugador( this.getJugadorDeTurno() );\n\t\t\n\t\tif( this.terminoJuego() )\n\t\t\tthis.mostrarGanador( this.getJugadorDeTurno() );\n\t}",
"private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }",
"public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private NodoBin<T> buscarAS(T dato){\n if(esVacio())\n return (null);\n return (biselar(super.getRaiz(), dato));\n }",
"@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }",
"public void busqueda_Aestrella(Estado estado_inicial, Estado estado_final) {\r\n\t\tabiertos.add(estado_inicial); // Añado como nodo abierto el punto de partida del laberinto\r\n\t\tEstado actual = abiertos.get(0); // Selecciono como punto actual el primero de los nodos abiertos (el punto de partida)\r\n\t\ttrata_repe = 1; // Variable para indicar al switch como tiene que tratar los repetidos en el switch del metodo tratar_repetidos\r\n\t\twhile (actual != estado_final && !abiertos.isEmpty()) { // Mientras que actual no sea el punto final y haya nodos abiertos\r\n\t\t\titeraciones++; // Contador de iteraciones del bucle while\r\n\t\t\tabiertos.remove(0); // Elimino el nodo actual de la lista de abiertos\r\n\t\t\tcerrados.add(actual); // Y lo añado a nodos cerrados\t\t\t\r\n\t\t\testados_cerrados = cerrados.size(); // Contador para estados cerrados\r\n\r\n\t\t\thijos = generar_sucesores(actual); // Genero los hijos del punto actual (Limpio de muros o punto de inicio)\r\n\t\t\thijos = tratar_repetidos(cerrados, abiertos, hijos); // Trato los repetidos\r\n\t\t\tinsertar(hijos); // Acolo los hijos en la lista de abiertos\r\n\t\t\testados_visitados += hijos.size(); // Contador para estados visitados\r\n\r\n\t\t\tCollections.sort(abiertos, getCompHeuristicaMasProf()); // Ordeno por heuristica Manhattan + Profundidad la cola de abiertos\r\n\r\n\t\t\tactual = abiertos.get(0); // Selecciono como actual el primero en la cola de abiertos\r\n\r\n\t\t\tif (actual.equals(estado_final)) { //Compruebo si estamos en el estado final\r\n\t\t\t\tmostrarcamino(actual, estado_final); // Muestro el camino solucion\r\n\t\t\t\tbreak; //Salgo del bucle while\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean cadastrar(Loja loja) {\n\t\treturn false;\r\n\t}",
"public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }",
"public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}",
"private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }",
"private void searchFunction() {\n\t\t\r\n\t}",
"void negarAnalise();",
"@Override\n\tpublic String getQueryDeExiste(Onibus entidade) {\n\t\treturn null;\n\t}",
"public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }",
"protected boolean colaVacia() {\r\n return ini == -1;\r\n }",
"public void cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\n }",
"@Test\r\n public void testSearch() throws Exception {\r\n System.out.println(\"rechNom\");\r\n Bureau obj1 = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau obj2 = new Bureau(0,\"Test2\",\"000000001\",\"\");\r\n String nomrech = \"Test\";\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj1=instance.create(obj1);\r\n obj2=instance.create(obj2);\r\n \r\n \r\n String result = instance.search(nomrech);\r\n if(result.contains(obj1.getSigle())) fail(\"record introuvable \"+obj1);\r\n if(result.contains(obj2.getSigle())) fail(\"record introuvable \"+obj2);\r\n instance.delete(obj1);\r\n instance.delete(obj2);\r\n }",
"public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }",
"public void noSearch() {\n\t\tprintMsg(\"검색결과없음\");\n\t\t//굳이 필요는 없지만 편의성\n\t\t//System.out.println(\"검색결과없음\");\n\t}",
"private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\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// O BOTAO FOR VISIVEL,\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// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }",
"private void avaliaTagObrigatoria() throws SQLException {\r\n\t\t/*\r\n\t\t * busca as tags obrigatorias do documento.\r\n\t\t */\r\n\t\t// TODO ESTE SELECT SOH TRAZ A TAG !DOCTYPE, OU SEJA, SE ELE TRAZ AS\r\n\t\t// TAGS OBRIGATORIAS,\r\n\t\t// ENTAO ELE SOH TAH CONSIDERANDO O !DOCTYPE COMO OBRIGATORIO. OU ENTAO\r\n\t\t// TEM ALGUMA\r\n\t\t// COISA ERRADA NO BANCO DE DADOS. OBS: NA BASE DE DADOS SOH TEM\r\n\t\t// CADASTRADA UMA LINHA\r\n\t\t// COM ID_ATITUDE = 4 (TABELA ESPERADO) : (9,4,9,0,0,'','',0)\r\n\t\t// TRECHO COMENTADO E HARDCODED PARA DIMINUIR AS CONSULTAS A BANCO DE\r\n\t\t// DADOS\r\n\t\t// final String sql = \"SELECT ta.nome_tag, v.pv3 \"\r\n\t\t// + \" FROM esperado e, validante v, tipoavaliacaoerro t, tag ta \"\r\n\t\t// + \" WHERE e.idesperado=v.idesperado \"\r\n\t\t// + \" AND v.pv3=t.pv3 AND idatitude = 4 \"\r\n\t\t// + \" AND v.idtag=ta.idtag AND t.idorgao = \" + orgao;\r\n\t\t//\r\n\t\t// ResultSet rs = con.getCon().createStatement().executeQuery(sql);\r\n\t\t//\r\n\t\t// String nome = null;\r\n\t\t// ArrayList<Validado> validados = null;\r\n\t\t//\r\n\t\t// /*\r\n\t\t// * Monta as tags especificas.\r\n\t\t// */\r\n\t\t// while (rs.next()) {\r\n\t\t// nome = rs.getString(1);\r\n\t\t// validados = new ArrayList<Validado>();\r\n\t\t// validados.add(new Validado(nome, rs.getInt(2)));\r\n\t\t// this.erradosMap.put(nome, validados);\r\n\t\t// }\r\n\t\t// gambiarra?????\r\n\t\t// TRECHO HARDCODED QUE SUBSTITUI A CONSULTA AO BD ACIMA\r\n\r\n\t\tArrayList<ArmazenaErroOuAvisoAntigo> validados = new ArrayList<ArmazenaErroOuAvisoAntigo>();\r\n\r\n\t\tvalidados.add(new ArmazenaErroOuAvisoAntigo(\"!DOCTYPE\", 33));\r\n\r\n\t\tthis.erradosMap.put(\"!DOCTYPE\", validados);\r\n\r\n\t\t// FIM DO TRECHO\r\n\t\tfor (String element : this.erradosMap.keySet()) {\r\n\r\n\t\t\t/*\r\n\t\t\t * Verifica se a existencia da tag dentro do documento. N�o\r\n\t\t\t * existindo a tag, adiciona a mesma a lista de erros.\r\n\t\t\t */\r\n\t\t\tif (!tag.contains(element)) {\r\n\r\n\t\t\t\tthis.errados.addAll(this.erradosMap.get(element));\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"private int indexOfClef(Object c) {\n for (int i = 0; i < nbAssoc; i++)\n if (associations[i].premier().equals(c))\n return i;\n return -1;\n }",
"@Override\n\tpublic Livros busca(String titulo) {\n\t\treturn null;\n\t}",
"public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}",
"private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}",
"private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}",
"@Override\n public boolean reconoce(String entrada) {\n\t\n\tchar simbolos[] = entrada.toCharArray();\n\t\n\tauxiliarClausuraLambda.clear();\n\tclausuraLambda(q0);\n\n\testadosActuales.clear();\n\testadosActuales.addAll(auxiliarClausuraLambda);\n\t// Clausura lambda\n\tfor(char s : simbolos) {\n\n\t estadosAuxiliar.clear();\n\n\t // Transiciones de los estados con el simbolo\n\t for(int q : estadosActuales)\n\t\tif(q != 0)\n\t\t transita(q, s);\n\n\t auxiliarClausuraLambda.clear();\n\t for(int q : estadosAuxiliar)\n\t\tclausuraLambda(q);\n\n\t estadosActuales.clear();\n\t estadosActuales.addAll(auxiliarClausuraLambda);\n\t // Clausura lambda de los estados\n\t}\n\n\tboolean acepta = false;\n\tfor(int q : estadosActuales)\n\t if( (acepta = F.contains(q)) == true )\n\t\tbreak;\n\n\treturn acepta;\n }",
"@Override\n\tpublic boolean datiUscitaImpegno() {\n\t\treturn false;\n\t}",
"private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }",
"public void busqueda() {\r\n\r\n try {\r\n\r\n String preg = JOptionPane.showInputDialog(\"Buscar:\");\r\n Query query = new Query(preg);\r\n QueryResult result = twitter.search(query);\r\n for (Status status : result.getTweets()) {\r\n System.out.println(\"@\" + status.getUser().getScreenName() + \":\" + status.getText());\r\n }\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }",
"public ArrayList<Producto> busquedaProductos(Producto.Categoria categoria,String palabrasClave){\n try{\n ArrayList<Producto>productosFiltrados = new ArrayList<>();\n ArrayList<Producto>productosEncontrados = busquedaProductos(categoria);\n ArrayList<String>palabras = new ArrayList<>();\n StringTokenizer tokens = new StringTokenizer(palabrasClave);\n\n while(tokens.hasMoreTokens()){\n palabras.add(tokens.nextToken()); \n }\n \n if(palabras.size()>1){\n for(String cadaPalabra : palabras){\n for(Producto cadaProducto : productosEncontrados){\n String titulo=cadaProducto.getTitulo().toLowerCase();\n if(titulo.contains(cadaPalabra.toLowerCase()) && !productosFiltrados.contains(cadaProducto)){\n productosFiltrados.add(cadaProducto);\n }\n }\n }\n }else{\n for(Producto cadaProducto : productosEncontrados){\n String titulo=cadaProducto.getTitulo().toLowerCase();\n if(titulo.contains(palabrasClave.toLowerCase()) && !productosFiltrados.contains(cadaProducto)){\n productosFiltrados.add(cadaProducto);\n }\n }\n }\n ArrayList <Producto> productosFiltradosOrdenado=getProductosOrdenados(productosFiltrados, this);\n return productosFiltradosOrdenado;\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n return null;\n }",
"public boolean hayIzquierdo() {\n return this.izquierdo != null;\n }",
"public void ordenarXNombreBurbuja() {\r\n\t\tfor (int i = datos.size(); i > 0; i-- ) {\r\n\t\t\tfor (int j=0; j<i-1; j++) {\r\n\t\t\t\tif(\tdatos.get(j).compare(datos.get(j), datos.get(j+1)) == (1)) {\r\n\t\t\t\t\tJugador tmp = datos.get(j);\r\n\t\t\t\t\tdatos.set(j, datos.get(j+1));\r\n\t\t\t\t\tdatos.set((j+1), tmp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected boolean colaLlena() {\r\n return fin == datos.length - 1;\r\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() throws ExcFiltroExcepcion {\n\n\t}",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}",
"@Override\r\n\tpublic int buscarIndice(String nomeEmpresa) {\n\t\treturn 0;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Encuesta> getEncuestasCodigoDuplicado() {\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t// Create a Hibernate query (HQL)\n\t\tQuery query = session.createQuery(\"FROM Encuesta enc where (enc.codigo in (Select enc2.codigo from Encuesta enc2 where enc.pasive ='0' group by (enc2.codigo) Having count(enc2.codigo)>1 ))\");\n\t\t// Retrieve all\n\t\treturn query.list();\n\t}",
"public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}",
"public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}",
"public Mediatheque() {\n\n Document libro1 = new Document(new Id(1), new Titre(\"El senor de los anillos\"), new Livre(new Auteur(\"Tolkin\")));\n Document libro2 = new Document(new Id(2), new Titre(\"Dracula\"), new Livre(new Auteur(\"Copola\")));\n Document libro3 = new Document(new Id(3), new Titre(\"The Tower\"), new Livre(new Auteur(\"Charles\")));\n Document libro4 = new Document(new Id(4), new Titre(\"Game Of Thrones\"), new Livre(new Auteur(\"George Martin\")));\n Document libro5 = new Document(new Id(5), new Titre(\"Spiderman\"), new Livre(new Auteur(\"Raimi\")));\n\n Document cd1 = new Document(new Id(6), new Titre(\"Briam Adams\"), new Livre(new Auteur(\"John\")));\n Document cd2 = new Document(new Id(7), new Titre(\"Green Day\"), new Livre(new Auteur(\"They\")));\n Document cd3 = new Document(new Id(8), new Titre(\"Poker Face\"), new Livre(new Auteur(\"Lady Gaga\")));\n Document cd4 = new Document(new Id(9), new Titre(\"Hans Zimmer\"), new Livre(new Auteur(\"Him\")));\n Document cd5 = new Document(new Id(10), new Titre(\"Briam Adams\"), new Livre(new Auteur(\"John\")));\n\n //se agregan estos documentos\n ajoutDoc(libro1, libro2, libro3, libro4, libro5, cd1, cd2, cd3, cd4, cd5);\n\n Adherant adherant1 = new Adherant(\"jorgelu5\");\n Adherant adherant2 = new Adherant(\"jorgel_fant\");\n Adherant adherant3 = new Adherant(\"200311402\");\n Adherant adherant4 = new Adherant(\"Mario\");\n Adherant adherant5 = new Adherant(\"Luis\");\n\n //se agregan estos documentos\n ajoutAd(adherant1, adherant2, adherant3, adherant4, adherant5);\n }",
"@Override\n public int contarHojas(){\n return (super.contarHojas());\n }",
"static void citajSveRedoveAlt(String imeFajla) {\n\n /* Koriste se pogodnosti biblioteke za citanje svih redova odjednom */\n Svetovid.out.println(Svetovid.in(imeFajla).readAll());\n\n }",
"private void ignorarIndexVazioAgendaHorario(ProfissionalFullForm form) {\r\n if ( !CollectionUtils.isEmpty(form.getClinicas()) ){\r\n for (ClinicaForm c : form.getClinicas()){\r\n c.setAgendaHorarios(this.ignorarIndexVazioAgendaHorario(c.getAgendaHorarios()));\r\n }\r\n }\r\n }",
"public void resetBusquedaSimpleAvanzada()\r\n {\r\n this.busquedaSimpleAvanzada = null;\r\n }",
"public void resetBusquedaSimpleAvanzada()\r\n {\r\n this.busquedaSimpleAvanzada = null;\r\n }",
"@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void naoAtirou() {\n\t\tatirou=false;\n\n\t}",
"private boolean sortieNonAtteint(){\n\t\t\t//return this.terrainDeLaPartie.getTerrain()[this.terrainDeLaPartie.getAbSortie()][this.terrainDeLaPartie.getOrdSortie()]!='R' ;\t\t\t\n\t\t\tif(this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]=='R'){\n\t\t\t\tSystem.out.println(\"###################################### SORTIE #################################\");\n\t\t\t}\n\t\t\treturn this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]!='R';\n\t\t}",
"@Override\n\tpublic Vehiculo leerVehiculos(String matricula) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic List<Tramite_presentan_info_impacto> busquedaById(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.busquedaById(nuevo);\r\n\t}",
"public static void main(String[] args) {\n\t\tSet<String> nomes = new HashSet<String>();\n\t\tnomes.add(\"Mauricio\");\n\t\tnomes.add(\"Guilherme\");\n\t\tnomes.add(\"Guilherme\");\n\t\t\n\t\tSystem.out.println(nomes.size());\n\t\t\n\t\t/*System.out.println(nomes.get(0));\n\t\tSystem.out.println(nomes.contains(\"Guilherme\"));*/\n\t\t\n\t\t/*for(int i = 0; i < nomes.size(); i++){\n\t\t\tSystem.out.println(nomes.get(i));\n\t\t}*/\n\t/*\t\n\t\tfor(String nome : nomes){\n\t\t\tSystem.out.println(nome);\n\t\t}\n\t\t\n\t\t//Collections.sort(nomes);\n\t\t\n\t\tSystem.out.println(\"Ordenado: \");\n\t\t\n\t\tfor(String nome : nomes){\n\t\t\tSystem.out.println(nome);\n\t\t}\n\t\t\n\t\tArrayList<Conta> contas = new ArrayList<Conta>();\n\t\tConta c1 = new Conta(1500.0);\n\t\tConta c2 = new Conta(700.0);\n\t\tcontas.add(c1);\n\t\tcontas.add(c2);\n\t\t\n\t\tCollections.sort(contas);\n\t\t\n\t\tfor(Conta c : contas){\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//System.out.println(contas.get(1));\n\t\t*/\n\t\t\n\t\t/*Set<Conta> contas = new HashSet<Conta>();\n\t\tConta c1 = new Conta(200.0);\n\t\tConta c2 = new Conta(200.0);\n\t\tcontas.add(c1);\n\t\tcontas.add(c1);\n\t\tcontas.add(c2);\n\t\t\n\t\tSystem.out.println(contas.size());*/\n\t\t\n\t\tMap<String, Conta> contas = new HashMap<String, Conta>();\n\t\tConta c1 = new Conta(200.0);\n\t\tConta c2 = new Conta(500.0);\n\t\tcontas.put(\"Diretor\", c1);\n\t\tcontas.put(\"Gerente\", c2);\n\t\t\n\t\tSystem.out.println(contas.get(\"Diretor\").getSaldo());\n\t\tSystem.out.println(contas.get(\"Gerente\").getSaldo());\n\t\tSystem.out.println(contas.size());\n\t\t\n\t}",
"public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public void ordenarXNombreInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( (datos.get(j-1).compare(datos.get(j-1), datos.get(j)))==(1) ); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void testbusquedaSimple() {\n// \t try{\n//\t\t\t\tindexarODEs();\n//\t\t\t\tDocumentosVO respuesta =this.servicio.busquedaSimple(generarParametrosBusquedaSimple(\"key*Avanzad?\"));\n//\t\t\t\tassertNotNull(respuesta.getResultados());\n//\t\t\t\tcomprobarRespuesta(respuesta.getResultados()[0]);\n//\t\t\t\trespuesta =this.servicio.busquedaSimple(generarParametrosBusquedaSimple(\"}f2e_-i3299(--5\"));\n//\t\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\tassertEquals(respuesta.getSugerencias().length,0);\n// \t }catch(Exception e){\n// \t\t \tlogger.error(\"ERROR: fallo en test buscador-->\",e);\n// \t\t\tthrow new RuntimeException(e);\n// \t }finally{\n// \t\teliminarODE(new String [] { \"asdf\",\"hjkl\"});\n// \t }\n \t String prueba = null; \n \t\tassertNull(prueba);\n }",
"public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}",
"public void disconnetti() {\n\t\tconnesso = false;\n\t}",
"public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }",
"public String eliminar()\r\n/* 504: */ {\r\n/* 505:518 */ return null;\r\n/* 506: */ }",
"public void resetTesauroBusqueda()\r\n {\r\n this.tesauroBusqueda = null;\r\n }",
"public boolean irAIndice(int indice){\n Nodo_bodega_actual = Nodo_bodega_inicial;\n if(indice == 0 ){\n return true;\n }\n while(SiguienteBodega()){\n if(Nodo_bodega_actual.obtenerIndice()==indice){\n return true;\n }\n }\n return false;\n }",
"private int searchCurrentWord() {\n\n\n int tmpsize2;\n\n\n boolean sw2 = false;\n\n\n boolean retour = false;\n\n\n boolean sw = false;\n\n\n int sub_end = parent.getTextGrp_TField_affiche().length();\n\n\n int size = parent.data.size();\n\n\n int tmpsize = parent.position.size();\n\n\n int i = 0;\n\n\n String TfieldParse;\n\n\n int test = 0;\n\n\n String text = parent.getTextGrp_TField_affiche();\n\n\n System.out.println(\"size de parent.position :\" + tmpsize);\n\n\n String str;\n\n\n String tmpstring;\n\n\n Object[] obj;\n\n\n Object tmpobj;\n\n\n String transMaj1 = null;\n\n\n String transMaj2 = null;\n\n\n tmpobj = parent.position.get(tmpsize - 1);\n\n\n tmpstring = tmpobj.toString();\n\n\n i = Integer.parseInt(tmpstring);\n\n\n retour = verifBorne();\n\n\n if (retour == true) {\n\n\n do {\n\n\n str = getObjectInArray(i, 1, parent.data).toString();\n\n // obj = (Object[]) parent.data.get(i);\n\n //str = (String) obj[1];\n\n\n tmpsize2 = str.length();\n\n\n if (tmpsize2 < sub_end) {\n\n\n TfieldParse = str;\n\n\n i++;\n\n\n sw = false;\n\n\n } else\n\n\n {\n\n\n TfieldParse = str.substring(0, sub_end);\n\n\n }\n\n\n transMaj1 = TfieldParse.toUpperCase();\n\n\n transMaj2 = text.toUpperCase();\n\n\n test = transMaj2.compareTo(transMaj1);\n\n\n if (sw == true && test != 0) {\n\n\n i++;\n\n\n }\n\n\n sw = true;\n\n\n }\n\n\n while (i < size && test > 0);\n\n\n if (transMaj2.compareTo(transMaj1) == 0) {\n\n\n if (i != 0)\n\n\n parent.position.add(new Integer(i));\n\n\n parent.setRowSelectionIntervalGrp_Table_Affiche(i, i);\n\n\n parent.scrollRectToVisibleGrp_table_Affiche(new java.awt.Rectangle(0, parent.getGrp_Table_Affiche().getRowHeight() * i, 20, parent.getGrp_Table_Affiche().getRowHeight()));\n\n\n } else {\n\n\n parent.setTextGrp_TField_affiche(this.tmpText);\n\n\n }\n\n\n }\n\n\n return (i - 1);\n\n\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }",
"@Test\n\tpublic void testIncluye() {\n\t\tassertFalse(l.incluye(0));\n\t\t\n\t\t//Test de busqueda sobre el primer elemento\n\t\tl.agregar(0, 0);\n\t\tassertTrue(l.incluye(0));\n\t\tassertFalse(l.incluye(1));\n\t\t\n\t\t//Test con mas elementos\n\t\tl.agregar(1, 1);\n\t\tl.agregar(2, 2);\n\t\tassertTrue(l.incluye(1));\n\t\tassertFalse(l.incluye(4));\n\t\t\n\t}",
"private boolean cursoAsignado(Curso curso, Curso[] cursoAsignado) {\n\n for (int i = 0; i < cursoAsignado.length; i++) {\n\n if (cursoAsignado[i] != null) {\n if (curso.getNombre().equals(cursoAsignado[i].getNombre())) {\n return true;\n }\n }\n }\n return false;\n }",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }",
"public void leerDeFichero() {\n try\n {\n Scanner sc = new Scanner(new File(\"texto.txt\"));\n while (sc.hasNextLine() && !textoCompleto())\n addFrase(sc.nextLine());\n sc.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"public void crearIndiceInvertido() throws IOException {\n BufferedReader archivoVocabulario = new BufferedReader(new InputStreamReader(new FileInputStream(this.rutaVocabulario), \"utf-8\"));\n String lineaVocabularioActual = archivoVocabulario.readLine();\n\n while(lineaVocabularioActual != null){\n String[] entradaVocabulario = lineaVocabularioActual.split(\"\\\\s\");\n this.archivoIndice.escribirEnArchivo(entradaVocabulario[0] + \" \" + this.posicionActual + \" \" + entradaVocabulario[1], true);\n this.posicionActual += Integer.parseInt(entradaVocabulario[1]);\n\n System.out.println(\"Palabra: \" + entradaVocabulario[0] + \" agregada al índice\\n\");\n\n Integer archivosEncontrados = 0;\n Integer archivoFrecuenciaActual = 0;\n while(archivoFrecuenciaActual < this.cantidadDocumentos){\n System.out.println(\"Archivo \" + archivoFrecuenciaActual + \"\\n\");\n if(archivosEncontrados < Integer.parseInt(entradaVocabulario[1])){\n /** Carga el archivo de frecuencia */\n BufferedReader archivoFrecuencia = new BufferedReader(new InputStreamReader(new FileInputStream(this.rutaFrecuencias + \"/\" + archivoFrecuenciaActual + \".freq\"), \"utf-8\"));\n String lineaFrecuenciaActual = archivoFrecuencia.readLine();\n\n while(lineaFrecuenciaActual != null){\n String[] entradaFrecuencia = lineaFrecuenciaActual.split(\"\\\\s\");\n\n if(entradaFrecuencia[0].equals(entradaVocabulario[0])){\n Double tf = 1 + log(Double.parseDouble(entradaFrecuencia[1]));\n Double idf = log(1 + (cantidadDocumentos/Integer.parseInt(entradaVocabulario[1])));\n Double peso = tf*idf;\n\n this.archivoPostings.escribirEnArchivo(archivoFrecuenciaActual + \" \" + peso, true);\n archivosEncontrados++;\n System.out.println(\"posting agregado\\n\");\n break;\n }\n\n lineaFrecuenciaActual = archivoFrecuencia.readLine();\n }\n\n archivoFrecuencia.close();\n }\n else{\n System.out.println(\"no más postings\\n\");\n break;\n }\n archivoFrecuenciaActual++;\n }\n lineaVocabularioActual = archivoVocabulario.readLine();\n }\n\n archivoVocabulario.close();\n }",
"public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }",
"public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }",
"private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }",
"static Producto busqueda(int codigo, Vector productos){ \r\n \tboolean band = false;\r\n \t//si return no es igual a null nos regresara el codigo\r\n Producto p,retornP = null; \r\n //For para comparar todos los codigos del vector que digitamos\r\n for(int x = 0; x < productos.size(); x++){ \r\n \tp = (Producto) productos.elementAt(x);\r\n \t//si el codigo es el mismo regresamos el producto que encontramos\r\n if(p.getCodigo() == codigo) \r\n \tretornP = p;\r\n }\r\n return retornP;\r\n }",
"public void limpiarCamposFormBusqueda() {\n\t}",
"public void disparar(){}",
"public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"public void treureDeBultoSortida(Number iddoc, Number idlin)\n {\n Object [] obj = {getIdexped(), getIdbulto(), iddoc, idlin};\n Key key = new Key(obj);\n Row [] rows = getSgaexpedlbulto().findByKey(key, 1);\n if (rows != null && rows.length > 0)\n {\n SgaexpedlbultoImpl lbulto = (SgaexpedlbultoImpl)((ViewRowImpl)rows[0]).getEntity(0); \n lbulto.remove();\n }\n \n \n // Si no queden lbultos, esborrem el bulto\n if (getSgaexpedlbulto().getRowCount() == 0)\n remove();\n }"
]
| [
"0.59116733",
"0.57047844",
"0.5604084",
"0.55484456",
"0.5542527",
"0.5530446",
"0.5494076",
"0.5490857",
"0.5457317",
"0.5447883",
"0.54391253",
"0.543823",
"0.54179865",
"0.54064626",
"0.53860414",
"0.5383465",
"0.5373862",
"0.5338342",
"0.53239363",
"0.53058815",
"0.53022504",
"0.5299166",
"0.5297761",
"0.5291713",
"0.52898073",
"0.52757156",
"0.5267639",
"0.5262242",
"0.5261451",
"0.52584517",
"0.5250295",
"0.5248429",
"0.52414787",
"0.5239481",
"0.52391833",
"0.5234726",
"0.52338785",
"0.5231937",
"0.52259815",
"0.52259773",
"0.5224362",
"0.5208831",
"0.5208556",
"0.5190571",
"0.51861376",
"0.51823866",
"0.51809",
"0.5179189",
"0.5171067",
"0.51680917",
"0.51630694",
"0.51610076",
"0.51594394",
"0.5155039",
"0.5155039",
"0.5154673",
"0.51541084",
"0.515014",
"0.51436645",
"0.5140828",
"0.51375175",
"0.51328206",
"0.5127624",
"0.5123196",
"0.51223546",
"0.51223546",
"0.512019",
"0.51055396",
"0.5100359",
"0.5098978",
"0.5096073",
"0.5092719",
"0.5090489",
"0.5089952",
"0.50871044",
"0.50842524",
"0.5078133",
"0.5075666",
"0.5075207",
"0.5074751",
"0.5073959",
"0.507095",
"0.5070307",
"0.5068344",
"0.50656897",
"0.5064554",
"0.50594014",
"0.5059078",
"0.50587916",
"0.5057587",
"0.5054085",
"0.5052053",
"0.50513124",
"0.5050559",
"0.5042237",
"0.50382835",
"0.50354755",
"0.5035214",
"0.5034486",
"0.5034044",
"0.5029678"
]
| 0.0 | -1 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
mhl = new HighScore();
showHighScoreView();
//showTestView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
]
| [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
]
| 0.0 | -1 |
/ id = (String) bd.get("id"); nome = (String) bd.get("nome"); raca = (String) bd.get("raca"); idade = (String) bd.get("idade"); sexo = (String) bd.get("sexo"); cor = (String) bd.get("cor"); imgPerfil = (String) bd.get("imgPerfil"); img01 = (String) bd.get("img01"); img02 = (String) bd.get("img02"); img03 = (String) bd.get("img03"); tipo = (String) bd.get("tipo"); | public void recuperarDados() {
id = getArguments().getString("id");
nome = getArguments().getString("nome");
raca = getArguments().getString("raca");
idade = getArguments().getString("idade");
sexo = getArguments().getString("sexo");
cor = getArguments().getString("cor");
imgPerfil = getArguments().getString("imgPerfil");
img01 = getArguments().getString("img01");
img02 = getArguments().getString("img02");
img03 = getArguments().getString("img03");
tipo = getArguments().getString("tipo");
Log.e("id", "idedit"+id);
Log.e("nome", "nomeedit"+nome);
assert sexo != null;
if (sexo.equals("Macho")) {
machoAnimal.setChecked(true);
} else {
femeaAnimal.setChecked(true);
}
nomeAnimal.setText(nome);
idadeAnimal.setText(idade);
corAnimal.setText(cor);
if (imgPerfil != null)
Picasso.get().load(imgPerfil).into(perfilImagem);
/* if (img01 != null)
Picasso.get().load(img01).into(imagem01);
if (img02 != null)
Picasso.get().load(img02).into(imagem02);
if (img03 != null)
Picasso.get().load(img03).into(imagem03);*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<tipoDetalle> obtenerDetallesBD(){\n List<tipoDetalle> detalles=new ArrayList<>();\n try{\n //Obteniendo el ID del auto desde la activity de Mostrar_datos\n String idAuto;\n Bundle extras=getIntent().getExtras();\n if(extras!=null)\n {\n idAuto=extras.getString(\"id_auto\");\n Log.e(\"auto\",\"el auto id es= \"+idAuto);\n ResultSet rs = (ResultSet) TNT.mostrarDetalles(idAuto);\n while (rs.next()){\n detalles.add(new tipoDetalle(rs.getString(\"id\"), rs.getString(\"nombre\"), rs.getString(\"fecha_entrada\"), rs.getString(\"fecha_salida\"), rs.getString(\"fecha_terminacion\"), rs.getString(\"estado\"), rs.getString(\"descripcion\"), rs.getString(\"costo\")));\n }\n }\n }catch(SQLException e){\n Toast.makeText(getApplicationContext(),e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n return detalles;\n }",
"Object getDados(long id);",
"public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }",
"@Override\n public List<Map<String, Object>> tareasOrdenadasPorDistancia(long id_emergencia){\n try(Connection conn = sql2o.open()){\n List<Emergencia> emergencia = conn.createQuery(\"SELECT ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud FROM emergencia WHERE id = :id_eme\")\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetch(Emergencia.class);\n String punto = \"POINT(\" + emergencia.get(0).getLongitud() + \" \" + emergencia.get(0).getLatitud() + \")\";\n return conn.createQuery(\"SELECT id, nombre, ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud, ST_Distance(ST_GeomFromText(:tar_punto, 4326), ubicacion::geography) AS distancia FROM tarea WHERE id_emergencia = :id_eme ORDER BY distancia ASC\")\n .addParameter(\"tar_punto\", punto)\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetchTable()\n .asList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }",
"public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }",
"public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }",
"public List<Map<String, Object>> LISTA_HIJOS(String id) {\r\n sql = \"select ID_DATOS_HIJOS_TRABAJADOR, ID_TRABAJADOR,\"\r\n + \"AP_PATERNO,AP_MATERNO,NO_HIJO_TRABAJADOR,\"\r\n + \"TO_CHAR(FE_NACIMIENTO,'yyyy-mm-dd') AS FE_NACIMIENTO, \"\r\n + \"ES_SEXO, ES_TIPO_DOC, NU_DOC, ES_PRESENTA_DOCUMENTO, \"\r\n + \"ES_INSCRIPCION_VIG_ESSALUD, ES_ESTUDIO_NIV_SUPERIOR, \"\r\n + \"US_CREACION,FE_CREACION,US_MODIF,FE_MODIF,IP_USUARIO,\"\r\n + \"ES_DATOS_HIJO_TRABAJADOR from \"\r\n + \"RHTD_DATOS_HIJO_TRABAJADOR where ID_TRABAJADOR=?\";\r\n return jt.queryForList(sql, id);\r\n }",
"public static RutaDTO consultarRutaById(int identificador){\n RutaDTO ruta = null;\n HttpClient httpClient = new DefaultHttpClient();\n HttpGet del = new HttpGet(HOST_BACKEND+\"mycityviewBE/rest/ruta/\"+identificador);\n del.setHeader(\"content-type\", CONTENT_TYPE);\n del.setHeader(\"Authorization\", getAuthorization().trim());\n try {\n HttpResponse resp = httpClient.execute(del);\n if(resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n String respStr = EntityUtils.toString(resp.getEntity());\n Gson gson = new GsonBuilder().create();\n ruta = gson.fromJson(respStr, RutaDTO.class);\n }\n } catch (Exception ex) {\n Log.e(\"ServicioRest\", \"Error!\", ex);\n }\n return ruta;\n }",
"private Map<String,Object> getParams(String nombre , int id){\n\t\t\tMap <String,Object> mapa;\n\t\t\tmapa = new HashMap<String,Object>();\n\t\t\t//Pasar parametros en de JasperReport\n\t\t\tmapa.put(\"alumnoNombre\", nombre);\n\t\t\tmapa.put(\"alumnoId\", id);\n\t\t\t\n\t\t\treturn mapa;\n\t\t\t\n\t\t}",
"RespuestaRest<ParqueaderoEntidad> consultar(String id);",
"public synchronized String composeJSONfromSQLite(){\n ArrayList<HashMap<String, String>> wordList;\n wordList = new ArrayList<HashMap<String, String>>();\n String selectQuery = \"SELECT * FROM farmers where updateStatus = '\"+\"no\"+\"' LIMIT 10\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"userId\", cursor.getString(0));\n map.put(\"title\", cursor.getString(1));\n map.put(\"farmerID\", cursor.getString(2));\n map.put(\"surname\", cursor.getString(3));\n map.put(\"firstname\", cursor.getString(4));\n map.put(\"middlename\", cursor.getString(5));\n map.put(\"gender\", cursor.getString(6));\n map.put(\"dob\", cursor.getString(7));\n map.put(\"educationlevel\", cursor.getString(8));\n map.put(\"phoneNumber\", cursor.getString(9));\n map.put(\"phoneNumber2\", cursor.getString(10));\n\n map.put(\"village\", cursor.getString(11));\n map.put(\"farmersaddress\", cursor.getString(12));\n map.put(\"maritalstatus\", cursor.getString(13));\n map.put(\"preferredlanguage\", cursor.getString(14));\n map.put(\"county\", cursor.getString(15));\n map.put(\"district\", cursor.getString(16));\n map.put(\"area\", cursor.getString(17));\n map.put(\"vcr\", cursor.getString(18));\n\n map.put(\"primary_crop\", cursor.getString(19));\n map.put(\"farmerscrop\", cursor.getString(20));\n map.put(\"tree_crops\", cursor.getString(21));\n map.put(\"roots\", cursor.getString(22));\n map.put(\"fruits\", cursor.getString(23));\n map.put(\"legumes\", cursor.getString(24));\n map.put(\"vegetables\", cursor.getString(25));\n\n map.put(\"farmsize\", cursor.getString(26));\n map.put(\"farmlocation\", cursor.getString(27));\n map.put(\"farmerslivestock\", cursor.getString(28));\n map.put(\"farmersfisheries\", cursor.getString(29));\n\n map.put(\"member_question\", cursor.getString(30));\n map.put(\"groupname\", cursor.getString(31));\n map.put(\"groupleadername\", cursor.getString(32));\n map.put(\"groupleaderphone\", cursor.getString(33));\n map.put(\"picture\", cursor.getString(34));\n map.put(\"adminfullName\", cursor.getString(35));\n map.put(\"adminphoneNumber\", cursor.getString(36));\n map.put(\"admincounty\", cursor.getString(37));\n map.put(\"admindistrict\", cursor.getString(38));\n map.put(\"imei\", cursor.getString(39));\n map.put(\"dateCreated\", cursor.getString(40));\n map.put(\"updateStatus\", cursor.getString(41));\n\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n Gson gson = new GsonBuilder().create();\n //Use GSON to serialize Array List to JSON\n return gson.toJson(wordList);\n }",
"@Override\r\npublic List<Map<String, Object>> readAll() {\n\treturn detalle_pedidoDao.realAll();\r\n}",
"public static void getProduto(){\r\n try {\r\n PreparedStatement stmn = connection.prepareStatement(\"select id_produto, codigo, produto.descricao pd,preco, grupo.descricao gd from produto inner join grupo on grupo.id_grupo = produto.idgrupo order by codigo\");\r\n ResultSet result = stmn.executeQuery();\r\n\r\n System.out.println(\"id|codigo|descricao|preco|grupo\");\r\n while (result.next()){\r\n long id_produto = result.getLong(\"id_produto\");\r\n String codigo = result.getString(\"codigo\");\r\n String pd = result.getString(\"pd\");\r\n String preco = result.getString(\"preco\");\r\n String gd = result.getString(\"gd\");\r\n\r\n\r\n\r\n System.out.println(id_produto+\"\\t\"+codigo+\"\\t\"+pd+\"\\t\"+preco+\"\\t\"+gd);\r\n }\r\n\r\n }catch (Exception throwables){\r\n throwables.printStackTrace();\r\n }\r\n\r\n }",
"public Collection<FlujoDetalleDTO> cargarTodos(int codigoFlujo) {\n/* 138 */ Collection<FlujoDetalleDTO> resultados = new ArrayList<FlujoDetalleDTO>();\n/* */ try {\n/* 140 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" order by t.secuencia\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 178 */ boolean rtaDB = this.dat.parseSql(s);\n/* 179 */ if (!rtaDB) {\n/* 180 */ return resultados;\n/* */ }\n/* 182 */ this.rs = this.dat.getResultSet();\n/* 183 */ while (this.rs.next()) {\n/* 184 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 187 */ catch (Exception e) {\n/* 188 */ e.printStackTrace();\n/* 189 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarTodos \", e);\n/* */ } \n/* 191 */ return resultados;\n/* */ }",
"private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }",
"public List<Object[]> getRetencionSRI(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden)\r\n/* 59: */ {\r\n/* 60:107 */ StringBuilder sql = new StringBuilder();\r\n/* 61: */ \r\n/* 62:109 */ sql.append(\" SELECT f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, \");\r\n/* 63:110 */ sql.append(\" CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), \");\r\n/* 64:111 */ sql.append(\" f.identificacionProveedor, c.descripcion, \");\r\n/* 65:112 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) \");\r\n/* 66:113 */ sql.append(\" \\t+COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) ELSE COALESCE(dfp.baseImponibleRetencion, 0) END,0), \");\r\n/* 67:114 */ sql.append(\" coalesce(dfp.porcentajeRetencion, 0), coalesce(dfp.valorRetencion, 0), coalesce(c.codigo, 'NA'), \");\r\n/* 68:115 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA THEN 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD THEN 'ISD' ELSE '' END,'NA'), \");\r\n/* 69:116 */ sql.append(\" CONCAT(f.establecimientoRetencion,'-',f.puntoEmisionRetencion,'-',f.numeroRetencion), \");\r\n/* 70:117 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 71:118 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, f.autorizacion, f.claveAcceso, f.estado,f.idFacturaProveedorSRI, fp.descripcion \");\r\n/* 72:119 */ sql.append(\" FROM DetalleFacturaProveedorSRI dfp \");\r\n/* 73:120 */ sql.append(\" RIGHT OUTER JOIN dfp.conceptoRetencionSRI c \");\r\n/* 74:121 */ sql.append(\" RIGHT OUTER JOIN dfp.facturaProveedorSRI f \");\r\n/* 75:122 */ sql.append(\" LEFT OUTER JOIN f.facturaProveedor fp \");\r\n/* 76:123 */ sql.append(\" LEFT JOIN f.creditoTributarioSRI ct \");\r\n/* 77:124 */ sql.append(\" WHERE MONTH(f.fechaRegistro) =:mes AND f.documentoModificado IS NULL \");\r\n/* 78:125 */ sql.append(\" AND YEAR(f.fechaRegistro) =:anio \");\r\n/* 79:126 */ sql.append(\" AND f.estado!=:estadoAnulado \");\r\n/* 80:127 */ sql.append(\" AND f.indicadorSaldoInicial!=true \");\r\n/* 81:128 */ sql.append(\" AND f.idOrganizacion = :idOrganizacion \");\r\n/* 82:129 */ if (sucursalFP != null) {\r\n/* 83:130 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 84: */ }\r\n/* 85:132 */ if (sucursalRetencion != null) {\r\n/* 86:133 */ sql.append(\" AND f.establecimientoRetencion = :sucursalRetencion \");\r\n/* 87: */ }\r\n/* 88:135 */ if (puntoVentaRetencion != null) {\r\n/* 89:136 */ sql.append(\" AND f.puntoEmisionRetencion = :puntoVentaRetencion \");\r\n/* 90: */ }\r\n/* 91:138 */ sql.append(\" GROUP BY f.idFacturaProveedorSRI, c.codigo, f.numero, f.puntoEmision, \");\r\n/* 92:139 */ sql.append(\" f.establecimiento, f.identificacionProveedor, \");\r\n/* 93:140 */ sql.append(\" c.descripcion, dfp.baseImponibleRetencion, dfp.porcentajeRetencion, dfp.valorRetencion, f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, f.numeroRetencion, \");\r\n/* 94:141 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 95:142 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, c.tipoConceptoRetencion, f.autorizacion, f.claveAcceso, f.estado, \");\r\n/* 96:143 */ sql.append(\" f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion, fp.descripcion \");\r\n/* 97:144 */ if ((orden != null) && (orden.equals(\"POR_RETENCION\"))) {\r\n/* 98:145 */ sql.append(\" ORDER BY f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion \");\r\n/* 99:146 */ } else if ((orden != null) && (orden.equals(\"POR_FACTURA\"))) {\r\n/* 100:147 */ sql.append(\" ORDER BY f.establecimiento, f.puntoEmision, f.numero \");\r\n/* 101:148 */ } else if ((orden != null) && (orden.equals(\"POR_CONCEPTO\"))) {\r\n/* 102:149 */ sql.append(\" ORDER BY c.descripcion \");\r\n/* 103: */ }\r\n/* 104:151 */ Query query = this.em.createQuery(sql.toString());\r\n/* 105:152 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 106:153 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 107:154 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 108:155 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 109:156 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 110:157 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 111:158 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 112:159 */ if (sucursalFP != null) {\r\n/* 113:160 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 114: */ }\r\n/* 115:162 */ if (sucursalRetencion != null) {\r\n/* 116:163 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 117: */ }\r\n/* 118:165 */ if (puntoVentaRetencion != null) {\r\n/* 119:166 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 120: */ }\r\n/* 121:169 */ return query.getResultList();\r\n/* 122: */ }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String name;\n String email;\n String password;\n String imagen;\n\n name = campoName.getText().toString().toUpperCase();\n email = campoEmail.getText().toString().toLowerCase();\n password = campoPassword.getText().toString().toUpperCase();\n\n imagen = convertirImgString(bitmaphoto);\n\n //Llenamos la structura de datos getParams, para enviar webservices\n Map<String,String> parametros=new HashMap<>();\n parametros.put(\"id\",\"\");\n parametros.put(\"name\",name);\n parametros.put(\"email\",email);\n parametros.put(\"password\",password);\n\n parametros.put(\"imagen\",imagen);\n return parametros;\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String name;\n String email;\n String password;\n String imagen;\n\n name = campoName.getText().toString().toUpperCase();\n email = campoEmail.getText().toString().toLowerCase();\n password = campoPassword.getText().toString().toUpperCase();\n\n imagen = convertirImgString(bitmaphoto);\n\n //Llenamos la structura de datos getParams, para enviar webservices\n Map<String,String> parametros=new HashMap<>();\n parametros.put(\"id\",\"\");\n parametros.put(\"name\",name);\n parametros.put(\"email\",email);\n parametros.put(\"password\",password);\n\n parametros.put(\"imagen\",imagen);\n return parametros;\n }",
"public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }",
"public Map<String,String> selectByCode(Context pActividad,int pId)\n {\n //tenemos que devolver un mapa con los valores resultantes del Select, solo sera una row\n Map<String,String> rst = new HashMap<String,String>();\n\n try\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n SQLiteDatabase db = admin.getWritableDatabase();\n\n //lanzamos una sentencia select --> el resultado de esta query vamos ha hacer que se guarde en una variable de tipo cursor\n //raw query es un metodo que hace eso precisamente, el resultado de un select a un cursor\n Cursor filas = db.rawQuery(\"Select descripcion, precio from Articulos where codigo = \" + pId, null);\n if (filas.moveToFirst())\n {\n rst.put(\"descripcion\", filas.getString(0));\n rst.put(\"precio\", filas.getString(1));\n }\n }\n catch (Exception e)\n {\n Toast.makeText(pActividad,\"Error al recuperar valores\",Toast.LENGTH_SHORT).show();\n }\n finally\n {\n return rst;\n }\n }",
"public String getDenumireBuget(String id){\n c = db.rawQuery(\"select denumire from buget where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"HashMap<String, Object[]> getUbicaciones();",
"@PostMapping(\"/abrir1\")\r\n String abrir1(@RequestParam(\"ava_0\") String ava_0,\r\n @RequestParam(\"ava_log\") String ava_log,\r\n Model model) {\n\r\n try (Connection connection = dataSource.getConnection()) {\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM avaliacao WHERE id=\"+ava_0);\r\n\r\n ArrayList<String> output = new ArrayList<String>();\r\n //Se achou a ficha\r\n int i=1;\r\n if (rs.next()) {\r\n model.addAttribute(\"ava_0\", (Integer) rs.getObject(i++)); //id\r\n model.addAttribute(\"ava_cpf\", (String) rs.getObject(i++)); //cpf\r\n model.addAttribute(\"ava_1\", (String) rs.getObject(i++)); //dataavaliacao\r\n model.addAttribute(\"ava_2\", (String) rs.getObject(i++)); //datanascimento\r\n model.addAttribute(\"ava_3\", (Integer) rs.getObject(i++)); //idade\r\n model.addAttribute(\"ava_4\", (String) rs.getObject(i++)); //nome\r\n model.addAttribute(\"ava_5\", (String) rs.getObject(i++)); //objetivo\r\n model.addAttribute(\"ava_6\", (String) rs.getObject(i++)); //exercicios\r\n model.addAttribute(\"ava_7\", (String) rs.getObject(i++)); //outrasAF\r\n model.addAttribute(\"ava_8\", (String) rs.getObject(i++)); //especificar\r\n model.addAttribute(\"ava_9\", (String) rs.getObject(i++)); //diagnostico\r\n model.addAttribute(\"ava_10\", (String) rs.getObject(i++)); //medicacao\r\n model.addAttribute(\"ava_11\", (Double) rs.getObject(i++)); //peso\r\n model.addAttribute(\"ava_12\", (Double) rs.getObject(i++)); //altura\r\n model.addAttribute(\"ava_13\", (Double) rs.getObject(i++)); //imc\r\n model.addAttribute(\"ava_14\", (Double) rs.getObject(i++)); //fc\r\n\r\n model.addAttribute(\"ava_log\", \"Ficha aberta com sucesso!\");\r\n\r\n //////////////////////\r\n //Nome\r\n String ava_4 = (String) rs.getObject(6);\r\n rs = stmt.executeQuery(\"SELECT peso FROM avaliacao WHERE nome='\"+ava_4+\"'\");\r\n String ava_peso=\"\";\r\n while (rs.next()) {\r\n ava_peso += (Double) rs.getObject(1) + \" \";\r\n }\r\n model.addAttribute(\"ava_peso\", ava_peso);\r\n ////////////////////////\r\n } else\r\n model.addAttribute(\"ava_log\", \"Ficha não encontrada.\");\r\n\r\n\r\n //2.Goniometria\r\n rs = stmt.executeQuery(\"SELECT * FROM goniometria WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n model.addAttribute(\"gonio_1\", (Integer) rs.getObject(2)); //ofdir\r\n model.addAttribute(\"gonio_2\", (Integer) rs.getObject(3)); //ofesq\r\n String dor=\"Não\";\r\n if ( !((String) rs.getObject(4)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_3\", dor); //dor1\r\n model.addAttribute(\"gonio_4\", (String) rs.getObject(5)); //ana1\r\n model.addAttribute(\"gonio_5\", (String) rs.getObject(6)); //local1\r\n\r\n model.addAttribute(\"gonio_6\", (Integer) rs.getObject(7)); //oredir\r\n model.addAttribute(\"gonio_7\", (Integer) rs.getObject(8)); //oreesq\r\n dor=\"Não\";\r\n if ( !((String) rs.getObject(9)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_8\", dor); //dor2\r\n model.addAttribute(\"gonio_9\", (String) rs.getObject(10)); //ana2\r\n model.addAttribute(\"gonio_10\", (String) rs.getObject(11)); //local2\r\n\r\n model.addAttribute(\"gonio_11\", (Integer) rs.getObject(12)); //qfdir\r\n model.addAttribute(\"gonio_12\", (Integer) rs.getObject(13)); //qfesq\r\n dor=\"Não\";\r\n if ( !((String) rs.getObject(14)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_13\", dor); //dor3\r\n model.addAttribute(\"gonio_14\", (String) rs.getObject(15)); //ana3\r\n model.addAttribute(\"gonio_15\", (String) rs.getObject(16)); //local3\r\n\r\n model.addAttribute(\"gonio_16\", (Integer) rs.getObject(17)); //qrdir\r\n model.addAttribute(\"gonio_17\", (Integer) rs.getObject(18)); //qeesq\r\n dor=\"Não\";\r\n if ( !((String) rs.getObject(19)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_18\", dor); //dor4\r\n model.addAttribute(\"gonio_19\", (String) rs.getObject(20)); //ana4\r\n model.addAttribute(\"gonio_20\", (String) rs.getObject(21)); //local4\r\n\r\n model.addAttribute(\"gonio_21\", (Integer) rs.getObject(22)); //jfdir\r\n model.addAttribute(\"gonio_22\", (Integer) rs.getObject(23)); //jfesq\r\n dor=\"Não\";\r\n if ( !((String) rs.getObject(24)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_23\", dor); //dor5\r\n model.addAttribute(\"gonio_24\", (String) rs.getObject(25)); //ana5\r\n model.addAttribute(\"gonio_25\", (String) rs.getObject(26)); //local5\r\n\r\n model.addAttribute(\"gonio_26\", (Integer) rs.getObject(27)); //tfddir\r\n model.addAttribute(\"gonio_27\", (Integer) rs.getObject(28)); //tfdesq\r\n dor=\"Não\";\r\n if ( !((String) rs.getObject(29)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_28\", dor); //dor6\r\n model.addAttribute(\"gonio_29\", (String) rs.getObject(30)); //ana6\r\n model.addAttribute(\"gonio_30\", (String) rs.getObject(31)); //local6\r\n\r\n model.addAttribute(\"gonio_31\", (Integer) rs.getObject(32)); //tfpdir\r\n model.addAttribute(\"gonio_32\", (Integer) rs.getObject(33)); //tfpesq\r\n dor=\"Não\";\r\n if ( !((String) rs.getObject(34)).equals(\"0\")) dor=\"Sim\";\r\n model.addAttribute(\"gonio_33\", dor); //dor7\r\n model.addAttribute(\"gonio_34\", (String) rs.getObject(35)); //ana7\r\n model.addAttribute(\"gonio_35\", (String) rs.getObject(36)); //local7\r\n\r\n model.addAttribute(\"gonio_36\", (String) rs.getObject(37)); //obs\r\n model.addAttribute(\"gonio_37\", (String) rs.getObject(38)); //sentar\r\n\r\n model.addAttribute(\"gonio_log\", \"Ficha aberta com sucesso!\");\r\n } else\r\n model.addAttribute(\"gonio_log\", \"Ficha não encontrada.\");\r\n\r\n\r\n ////////////////////\r\n //3.Preensao\r\n rs = stmt.executeQuery(\"SELECT * FROM preensao WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n model.addAttribute(\"preensao_1\", (String) rs.getObject(2)); //ladodominante\r\n model.addAttribute(\"preensao_2\", (Double) rs.getObject(3)); //dir1\r\n model.addAttribute(\"preensao_3\", (Double) rs.getObject(4)); //esq1\r\n model.addAttribute(\"preensao_4\", (Double) rs.getObject(5)); //dir2\r\n model.addAttribute(\"preensao_5\", (Double) rs.getObject(6)); //esq2\r\n model.addAttribute(\"preensao_6\", (Double) rs.getObject(7)); //dir3\r\n model.addAttribute(\"preensao_7\", (Double) rs.getObject(8)); //esq3\r\n\r\n model.addAttribute(\"preensao_log\", \"Ficha aberta com sucesso!\");\r\n } else\r\n model.addAttribute(\"preensao_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////////\r\n //4.Composicao\r\n rs = stmt.executeQuery(\"SELECT * FROM composicao WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"compo_1\", (Double) rs.getObject(i++)); //cintura\r\n model.addAttribute(\"compo_2\", (String) rs.getObject(i++)); //prof\r\n model.addAttribute(\"compo_3\", (Double) rs.getObject(i++)); //dbraco\r\n model.addAttribute(\"compo_4\", (Double) rs.getObject(i++)); //ebraco\r\n model.addAttribute(\"compo_5\", (Double) rs.getObject(i++)); //quadril\r\n model.addAttribute(\"compo_6\", (Double) rs.getObject(i++)); //dpantu\r\n model.addAttribute(\"compo_7\", (Double) rs.getObject(i++)); //epantu\r\n model.addAttribute(\"compo_8\", (Double) rs.getObject(i++)); //rqc\r\n model.addAttribute(\"compo_9\", (Double) rs.getObject(i++)); //dcoxa\r\n model.addAttribute(\"compo_10\", (Double) rs.getObject(i++)); //ecoxa\r\n model.addAttribute(\"compo_11\", (Double) rs.getObject(i++)); //emediacoxa\r\n model.addAttribute(\"compo_12\", (Double) rs.getObject(i++)); //dmediacoxa\r\n model.addAttribute(\"compo_13\", (Double) rs.getObject(i++)); //resistencia\r\n model.addAttribute(\"compo_14\", (Double) rs.getObject(i++)); //reactancia\r\n model.addAttribute(\"compo_15\", (Double) rs.getObject(i++)); //agua\r\n model.addAttribute(\"compo_16\", (Double) rs.getObject(i++)); //mmagra\r\n model.addAttribute(\"compo_17\", (Double) rs.getObject(i++)); //mgordura\r\n model.addAttribute(\"compo_18\", (Double) rs.getObject(i++)); //massacel\r\n model.addAttribute(\"compo_19\", (Double) rs.getObject(i++)); //triceps\r\n model.addAttribute(\"compo_20\", (Double) rs.getObject(i++)); //subes\r\n model.addAttribute(\"compo_21\", (Double) rs.getObject(i++)); //supra\r\n model.addAttribute(\"compo_22\", (Double) rs.getObject(i++)); //abd\r\n model.addAttribute(\"compo_23\", (Double) rs.getObject(i++)); //coxa\r\n model.addAttribute(\"compo_24\", (Double) rs.getObject(i++)); //total\r\n model.addAttribute(\"compo_15_2\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_16_2\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_17_2\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_25\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_26\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_27\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_28\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_29\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_30\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_31\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_32\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_33\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_34\", (Double) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_35\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"compo_36\", (Double) rs.getObject(i++)); //\r\n\r\n model.addAttribute(\"compo_log\", \"Ficha aberta com sucesso!\");\r\n } else\r\n model.addAttribute(\"compo_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////////\r\n //5.Avaliacao da Dor\r\n rs = stmt.executeQuery(\"SELECT * FROM avaliacaodor WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"dor_1\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_2\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_3\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_4\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_5\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_6\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_7\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_8\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_9\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_10\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_11\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_12\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_13\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_14\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_15\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_16\", (Integer) rs.getObject(i++)); //\r\n model.addAttribute(\"dor_obs\", (String) rs.getObject(i++)); //\r\n\r\n model.addAttribute(\"dor_log\", \"Ficha aberta com sucesso!\");\r\n\r\n } else\r\n model.addAttribute(\"dor_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////\r\n //6.Evolucao da Dor\r\n rs = stmt.executeQuery(\"SELECT * FROM evolucaodor WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"evolucaodor_1\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_2\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_3\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_4\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_5\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_6\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_7\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_8\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_9\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_10\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_11\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_12\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_13\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_14\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_15\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_16\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"evolucaodor_obs\", (String) rs.getObject(i++)); //\r\n\r\n model.addAttribute(\"evolucaodor_log\", \"Ficha aberta com sucesso!\");\r\n\r\n } else\r\n model.addAttribute(\"evolucaodor_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////\r\n //7.Gural\r\n rs = stmt.executeQuery(\"SELECT * FROM gural WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"gural_1\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_2\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_3\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_4\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_5\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_6\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_7\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_8\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_9\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_10\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_11\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"gural_12\", (String) rs.getObject(i++)); //\r\n\r\n model.addAttribute(\"gural_log\", \"Ficha aberta com sucesso!\");\r\n\r\n } else\r\n model.addAttribute(\"gural_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////\r\n //8.Qualidade\r\n rs = stmt.executeQuery(\"SELECT * FROM qualidade WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"qualidade_1\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_2\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_3\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_4\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_5\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_6\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_7\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_8\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_9\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_10\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_11\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_12\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_13\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_14\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_15\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_16\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_17\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_18\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"qualidade_log\", \"Ficha aberta com sucesso!\");\r\n\r\n } else\r\n model.addAttribute(\"qualidade_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////\r\n //9.Forca\r\n rs = stmt.executeQuery(\"SELECT * FROM forca WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"forca_1\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_2\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_3\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_4\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_5\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_6\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_7\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_8\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_9\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_10\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_11\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_12\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_13\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_14\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"forca_log\", \"Ficha aberta com sucesso!\");\r\n\r\n } else\r\n model.addAttribute(\"forca_log\", \"Ficha não encontrada.\");\r\n\r\n ////////////////\r\n //10.Pressao\r\n rs = stmt.executeQuery(\"SELECT * FROM pressao WHERE id=\"+ava_0);\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n //model.addAttribute(\"ava_0\", (Integer) rs.getObject(1)); //id\r\n i=2;\r\n model.addAttribute(\"pressao_1\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"pressao_2\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"pressao_3\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"pressao_4\", (String) rs.getObject(i++)); //\r\n model.addAttribute(\"pressao_5\", (String) rs.getObject(i++)); //\r\n\r\n model.addAttribute(\"pressao_log\", \"Ficha aberta com sucesso!\");\r\n\r\n } else\r\n model.addAttribute(\"pressao_log\", \"Ficha não encontrada.\");\r\n\r\n return \"dashboard_ficha\";\r\n\r\n } catch (Exception e) {\r\n //model.put(\"message\", e.getMessage());\r\n model.addAttribute(\"ava_log\", \"LOG: \" + e.getMessage() + \" ava_0: \" + ava_0);\r\n return \"dashboard_ficha\";\r\n }\r\n }",
"public List<Map<String, Object>> Lis_Hijos_id_tr(String idtr) {\r\n sql = \"select ID_DATOS_HIJOS_TRABAJADOR, ID_TRABAJADOR, \"\r\n + \"AP_PATERNO, AP_MATERNO, NO_HIJO_TRABAJADOR,\"\r\n + \"TO_CHAR( TO_DATE(FE_NACIMIENTO,'YYYY/MM/DD'),\"\r\n + \"'DD/MM/YYYY') AS FE_NACIMIENTO , SEXO, NU_DOC, \"\r\n + \"ES_PRESENTA_DOCUMENTO, ESSALUD, SUPERIOR, \"\r\n + \"US_CREACION, FE_CREACION, US_MODIF, FE_MODIF, \"\r\n + \"IP_USUARIO, ES_DATOS_HIJO_TRABAJADOR, \"\r\n + \"DE_TIP_DOC from rhvd_detalle_hijo where \"\r\n + \"ID_TRABAJADOR=? and ES_DATOS_HIJO_TRABAJADOR = '1' \";\r\n return jt.queryForList(sql,idtr);\r\n }",
"public AnuncioDTO ObtenerAnuncioID(int id){\n AnuncioDTO anuncioDTO=null;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getById.Anuncio\"));\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n \n TipoAnuncio tipoAnuncio = TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin = new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas = null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico))\n temas=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n anuncioDTO= new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas, destinatarios);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return anuncioDTO;\n }",
"@POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n /*public String getJson(@FormParam(\"operador\")String operador,@FormParam(\"idFile\")int idFile, \r\n @FormParam(\"idUser\")int idUser,@FormParam(\"grupo\")boolean grupo,@FormParam(\"lat\")double latitud, \r\n @FormParam(\"lon\")double longitud, @FormParam(\"hora\")String hora, @FormParam(\"fecha\")String fecha,\r\n @FormParam(\"timeMask\")String timeMask,@FormParam(\"dateMask\")String dateMask,\r\n @FormParam(\"wifis\")String wifis) throws SQLException, URISyntaxException, ClassNotFoundException{*/\r\n public String getJson(Parametros parametros) throws SQLException, URISyntaxException, ClassNotFoundException{\r\n //TODO return proper representation object\r\n \r\n Integer idFile = parametros.idFile;\r\n Integer idUser = parametros.idUser;\r\n boolean grupo = parametros.grupo;\r\n String operador = parametros.operador;\r\n float longitud = parametros.lon;\r\n float latitud = parametros.lat;\r\n String hora = parametros.hora;\r\n String dateMask = parametros.dateMask;\r\n String fecha = parametros.fecha;\r\n String timeMask = parametros.timeMask;\r\n String wifis = parametros.wifis;\r\n \r\n boolean userRegistrado=false;\r\n Fichero fichero = new Fichero(0,0,\"hola\",\"estoy aqui\",\"a esta hora\",\"en esta fecha\",\"con estas wifis\");\r\n try{\r\n Calendar ahora = Calendar.getInstance();\r\n int grupoBBDD =0;\r\n double lat=0;\r\n double lon=0;\r\n String horaBBDD=\"8:00\";\r\n String timeMaskBBDD=\"4\";\r\n String dateMaskBBDD=\"4\";\r\n \r\n ahora.add(Calendar.HOUR, 1);//Cambio de hora por el servidor de Heroku\r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs= stmt.executeQuery(\"SELECT Id, Departamento FROM Usuarios\");\r\n while(rs.next()){\r\n if((rs.getInt(\"Id\"))==idUser){\r\n userRegistrado=true;\r\n grupoBBDD=rs.getInt(\"Departamento\");\r\n if(grupo && grupoBBDD!=0){\r\n Statement stmt2 = connection.createStatement();\r\n ResultSet rs2= stmt2.executeQuery(\"SELECT * FROM Departamentos WHERE Id='\" +Integer.toString(grupoBBDD)+\"'\"); \r\n while(rs2.next()){\r\n horaBBDD=rs2.getString(\"Horario\");\r\n timeMaskBBDD=rs2.getString(\"Mascara_hora\");\r\n dateMaskBBDD=rs2.getString(\"Mascara_fecha\");\r\n break;\r\n }\r\n rs2.close();\r\n stmt2.close();\r\n }\r\n Statement stmt3 = connection.createStatement();\r\n ResultSet rs3= stmt3.executeQuery(\"SELECT ssid, potencia FROM wifis\");\r\n while(rs3.next()){\r\n wifisFijas.add(rs3.getString(\"ssid\"));\r\n wifisPotencias.add(Integer.toString(rs3.getInt(\"potencia\")));\r\n }\r\n rs3.close();\r\n stmt3.close();\r\n Statement stmt4 = connection.createStatement();\r\n ResultSet rs4= stmt4.executeQuery(\"SELECT * FROM coordenadas\");\r\n while(rs4.next()){\r\n lat=rs4.getFloat(\"Latitud\");\r\n lon=rs4.getFloat(\"Longitud\");\r\n radio=rs4.getInt(\"Radio\");\r\n }\r\n rs4.close();\r\n stmt4.close();\r\n break;\r\n }\r\n\r\n\r\n }\r\n //Gson gson = new Gson();\r\n //String ficheroJSON = gson.toJson(fichero);\r\n rs.close();\r\n stmt.close();\r\n connection.close();\r\n //return ficheroJSON;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n //for (int i=0;i<listaUsers.length;i++){\r\n //if(listaUsers[i][0]==idUser){\r\n if(userRegistrado){\r\n //userRegistrado = true;\r\n if(!grupo){\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, idUser),claveGPS(lat,lon,latitud,longitud,radio,idFile,idUser),claveHora(idFile, idUser,ahora,timeMask,hora),claveFecha(idFile, idUser,ahora,dateMask,fecha),claveWifi(wifis, idUser, idFile));\r\n //fichero.setClaveHora(\"Estoy entrando donde no hay grupo\");\r\n //break;\r\n }\r\n else{\r\n //if(listaUsers[i][1]==0){\r\n if(grupoBBDD==0){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"Estoy entrando donde el grupo es 0\");\r\n }\r\n else{\r\n //fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, listaUsers[i][1]),claveGPS(lat,lon,idFile,listaUsers[i][1]),claveHora(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[1],mapHora.get(listaUsers[i][1])[0]),claveFecha(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[2],fecha),claveWifi(wifis,listaUsers[i][1],idFile));\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, grupoBBDD),claveGPS(lat,lon,latitud,longitud,radio,grupoBBDD,grupoBBDD),claveHora(idFile, grupoBBDD,ahora,timeMaskBBDD,horaBBDD),claveFecha(idFile, grupoBBDD,ahora,dateMaskBBDD,fecha),claveWifi(wifis,grupoBBDD,idFile));\r\n //fichero.setClaveHora(\"Estoy entrando en mi cifrado de grupo\");\r\n }\r\n //break;\r\n }\r\n }\r\n //}\r\n if(!userRegistrado){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"No estoy registrado\");\r\n }\r\n }catch(Exception e){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n }\r\n \r\n \r\n Gson gson = new Gson();\r\n String ficheroJSON = gson.toJson(fichero);\r\n return ficheroJSON;\r\n }",
"public List<Photo> getPhotos(int id_annonce) {\n List<Photo> allPhoto = new ArrayList<>();\n\n String table = \"photo\"; // nom de la table.\n String[] colums = {\"id_photo\", \"nom_photo\", \"id_annonce\"}; // Colonnes de la table.\n String condition = \"id_annonce = ?\";\n String[] value = {\"\"+id_annonce};\n\n Cursor cursor = this.getReadableDatabase().query(table, colums, condition,\n value, null, null, null);\n\n // Le deplacement du curseur.\n if (cursor.moveToFirst())\n do {\n int id_photo = cursor.getInt(cursor.getColumnIndex(\"id_photo\"));\n String nom_photo = cursor.getString(cursor.getColumnIndex(\"nom_photo\"));\n\n Photo photo = new Photo(id_photo, nom_photo, id_annonce);\n\n allPhoto.add(photo);\n\n }while(cursor.moveToNext());\n cursor.close();\n return allPhoto;\n }",
"@Override\n public ArrayList<byte[]> getFotografias(String id) throws SQLException {\n ArrayList<byte[]> resultado = new ArrayList<byte[]>();\n resultado = (ArrayList<byte[]>) bdPropiedad.getFotografias(id);\n return resultado;\n }",
"ResPartnerBankEntityWithBLOBs selectByPrimaryKey(Integer id);",
"public List<Usuario> getAll(){\n String sql = \"SELECT * FROM usuarios \" +\n \" INNER JOIN ciudades ON ciudades.id = usuarios.id_ciudad\" +\n \" INNER JOIN provincias ON provincias.id = usuarios.id_provincia\" +\n \" INNER JOIN paises ON paises.id = usuarios.id_pais\";\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(sql);\n List<Usuario> usuarios = new ArrayList<Usuario>();\n while (rs.next()){\n Ciudad ciudad = new Ciudad(rs.getInt(\"ciudades.id\"),rs.getString(\"ciudades.nombre\"));\n\n Provincia provincia = new Provincia(rs.getInt(\"provincias.id\"),rs.getString(\"provincias.nombre\"));\n\n Pais pais = new Pais(rs.getInt(\"paises.id\"),rs.getString(\"paises.nombre\"));\n\n Usuario usuario = new Usuario(rs.getString(\"nombre\"),rs.getString(\"apellido\"),\n rs.getString(\"direccion\"), rs.getString(\"telefono\"),\n ciudad, provincia, pais, rs.getString(\"email\"),\n rs.getString(\"username\"), rs.getString(\"contrasena\"));\n usuario.setId(rs.getInt(\"usuarios.id\"));\n usuarios.add(usuario);\n }\n return usuarios;\n }catch (SQLException e){\n e.printStackTrace();\n }\n return null;\n }",
"public ArrayList<HashMap<String, String>> getdisp(String idped) {\n ArrayList<HashMap<String, String>> wordList;\n //crea lista\n wordList = new ArrayList<HashMap<String, String>>();\n\n ///////QUERY DE DISPOSITIVOS\n String selectQuery = \"SELECT code_scan,name,description,comments,latitude,longitude,time_install,fk_order_id,photos, price, warranty FROM things where fk_order_id = '\"+idped+\"'\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"code_scan\", cursor.getString(0));\n map.put(\"name\", cursor.getString(1));\n map.put(\"description\", cursor.getString(2));\n map.put(\"comments\", cursor.getString(3));\n map.put(\"latitude\", cursor.getString(4));\n map.put(\"longitude\", cursor.getString(5));\n map.put(\"time_install\", cursor.getString(6));\n map.put(\"fk_order_id\", cursor.getString(7));\n map.put(\"photos\", cursor.getString(8));\n map.put(\"price\", cursor.getString(9));\n map.put(\"warranty\", cursor.getString(10));\n\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }",
"public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }",
"List<AliUserInfoDO> selectByExampleWithBLOBs(AliUserInfoDOExample example);",
"@PostMapping(\"/salvar\")\r\npublic String salvar(\r\n@RequestParam(\"id_gel\") String id_gel,\r\n@RequestParam(\"prateleira_ali\") String prateleira_ali,\r\n@RequestParam(\"nome_ali\") String nome_ali,\r\n@RequestParam(\"status_ali \") String status_ali ,\r\n@RequestParam(\"validade_ali \") String validade_ali ,\r\n@RequestParam(\"entrada_ali \") String entrada_ali ,\r\n@RequestParam(\"ava_log\") String ava_log, //retorno do login\r\n\r\nModel model) {\nif (id_gel.equals(\"\")) id_gel = \"0\"; model.addAttribute(\"id_gel\", id_gel);\r\n\r\n//---1.Geladeira acesso de dados\r\n//Map<String, Object> m=new HashMap<String, Object>();\r\ntry (Connection connection = dataSource.getConnection()) {\r\nStatement stmt = connection.createStatement();\r\ntry {\r\n\r\n//Faz um select\r\n//se retornar resultado\r\n//atualiza o cadastro\r\nResultSet rs = stmt.executeQuery(\"SELECT * FROM geladeira where id_gel=\"+id_gel);\r\nArrayList<String> output = new ArrayList<String>();\r\n//Achou cadastro\r\nif (rs.next()) {\r\n// String prateleira=new String(\"2\");\r\n// String nome=new String(\"1\");\r\n// String status=new String(\"1\");\r\n// String validade=new String(\"11/11/2020\");\r\n// String entrada=new String(\"10/11/2020\");\r\n\r\nstmt.executeUpdate(\"insert into alimentos(prateleira_ali,nome_ali,status_ali,validade_ali,entrada_ali,id_gel) values ( '\"+ prateleira_ali +\"', '\"+nome_ali+\"', '\"+status_ali+\"', \"+validade_ali+\", '\"+entrada_ali+\"', '\"+id_gel+\"' )\");\r\n\r\nava_log += \"[insert into: OK] \";\r\nmodel.addAttribute(\"ava_log\", ava_log);\r\n}//fim do if\r\n\r\nelse {\r\n ava_log = \"Não encontrada a geladeira!\";\r\n}//else\r\n\r\n} catch (Exception e){\r\nava_log += \"[insert into: FAIL \" + e.getMessage() + \"] \";\r\nmodel.addAttribute(\"ava_log\", ava_log);\r\nreturn \"cadastro_alimentos\";\r\n}\r\n\r\n} catch (Exception e) {\r\nava_log += \"[select * from alimentos: FAIL \" + e.getMessage() + \"]\";\r\nmodel.addAttribute(\"avaliacao_log\", ava_log);\r\nreturn \"cadastro_alimentos\";\r\n}\r\nreturn \"cadastro_alimentos\";\r\n}",
"public static ArrayList<Table> listBan(int idKhuVuc){\n ArrayList<Table> listban = null;\n SVConnect connect = new SVConnect();\n String url = SVConnect.urlAPI + \"area/\" + idKhuVuc;\n try {\n String result = connect.sendGet(url);\n System.out.println(result);\n Gson gson = new Gson();\n listban = gson.fromJson(result, new TypeToken<ArrayList<Table>>(){}.getType());\n System.out.println(listban.toString());\n return listban;\n } catch (Exception ex) {\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null; \n }",
"public void listarImg(int id, HttpServletResponse response) {\n\n String sql = \"select foto from producto where idProducto=?;\";\n\n InputStream inputStream = null;\n OutputStream outputStream = null;\n BufferedInputStream bufferedInputStream = null;\n BufferedOutputStream bufferedOutputStream = null;\n response.setContentType(\"image/*\"); //que hace esto?? uu\n\n try (Connection conn = getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sql);) {\n outputStream = response.getOutputStream();\n\n pstmt.setInt(1, id);\n\n try (ResultSet rs = pstmt.executeQuery()) {\n if (rs.next()) {\n inputStream = rs.getBinaryStream(\"foto\");\n }\n }\n bufferedInputStream = new BufferedInputStream(inputStream);\n bufferedOutputStream = new BufferedOutputStream(outputStream);\n\n int i = 0;\n while ((i = bufferedInputStream.read()) != -1) {\n bufferedOutputStream.write(i);\n }\n bufferedOutputStream.flush();\n\n } catch (SQLException | IOException e) {\n e.printStackTrace();\n }\n }",
"public HashMap<String, String> getUpsoDetails() {\n HashMap<String, String> upso = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_UPSO;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Move to first row\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n upso.put(\"id\", cursor.getString(1));\n upso.put(\"crtfc_upso_mgt_sno\", cursor.getString(2));\n upso.put(\"upso_sno\", cursor.getString(3));\n upso.put(\"upso_nm\", cursor.getString(4));\n upso.put(\"cgg_code\", cursor.getString(5));\n upso.put(\"cgg_code_nm\", cursor.getString(6));\n upso.put(\"cob_code_nm\", cursor.getString(7));\n upso.put(\"bizcnd_code_nm\", cursor.getString(8));\n upso.put(\"owner_nm\", cursor.getString(9));\n upso.put(\"crtfc_gbn\", cursor.getString(10));\n upso.put(\"crtfc_gbn_nm\", cursor.getString(11));\n upso.put(\"crtfc_chr_nm\", cursor.getString(12));\n upso.put(\"crtfc_chr_id\", cursor.getString(13));\n upso.put(\"map_indict_yn\", cursor.getString(14));\n upso.put(\"crtfc_class\", cursor.getString(15));\n upso.put(\"y_dnts\", cursor.getString(16));\n upso.put(\"x_cnts\", cursor.getString(17));\n upso.put(\"tel_no\", cursor.getString(18));\n upso.put(\"rdn_detail_addr\", cursor.getString(19));\n upso.put(\"rdn_addr_code\", cursor.getString(20));\n upso.put(\"rdn_code_nm\", cursor.getString(21));\n upso.put(\"bizcnd_code\", cursor.getString(22));\n upso.put(\"cob_code\", cursor.getString(23));\n upso.put(\"crtfc_sno\", cursor.getString(24));\n upso.put(\"crt_time\", cursor.getString(25));\n upso.put(\"upd_time\", cursor.getString(26));\n upso.put(\"food_menu\", cursor.getString(27));\n upso.put(\"gnt_no\", cursor.getString(28));\n upso.put(\"crtfc_yn\", cursor.getString(29));\n }\n cursor.close();\n db.close();\n // return upso\n Log.d(TAG, \"Fetching upso from Sqlite: \" + upso.toString());\n\n return upso;\n }",
"List<BufferedImage> listarHuellas(Integer fcdc_id) throws SQLException, IOException;",
"private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }",
"List<DashboardGoods> selectByExampleWithBLOBs(DashboardGoodsExample example);",
"ProductPricelistEntityWithBLOBs selectByPrimaryKey(Integer id);",
"public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}",
"private Bitmap getGoodsImageFromDatabase(String goodId) {\r\n Cursor cursor = helper.getSpecifyGoodImage(goodId);\r\n cursor.moveToFirst();\r\n byte bytes[] = Base64.decode(cursor.getString(0), Base64.DEFAULT);\r\n cursor.close();\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\r\n return bitmap;\r\n }",
"public List<Medico> getAllMedicos() {\n List<Medico> medicos = new ArrayList<Medico>();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM medico\";\n pstm = con.prepareStatement(query);\n rs = pstm.executeQuery();\n while (rs.next()) {\n Medico medico = new Medico();\n medico.setId(rs.getInt(\"id_medico\"));\n medico.setArea(rs.getString(\"area\"));\n medico.setNombre(rs.getString(\"nombre\"));\n medico.setAp_pat(rs.getString(\"apell_pat\"));\n medico.setAp_mat(rs.getString(\"apell_mat\"));\n medico.setDireccion(rs.getString(\"direccion\"));\n medico.setEmail(rs.getString(\"email\"));\n medico.setTel(rs.getString(\"tel\"));\n medico.setHora_inc(rs.getString(\"hora_inic\"));\n medico.setHora_fin(rs.getString(\"hora_fin\"));\n medicos.add(medico);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return medicos;\n }",
"public Map get_carrer_profile_honor_award(Connection con, int user_id,int carrer_profile_honor_award_id)\n\t{\n\t\n\t\t String honor_award_title = null, honor_award_associated_with = null, honor_award_issuer = null, honor_award_website_link = null, honor_award_instgram_link = null, honor_award_facebook_link = null, honor_award_twitter_link = null, honor_award_other_link = null,honor_award_description = null;\n\t\t Blob[] carrer_profile_honor_award_audio = null,carrer_profile_honor_award_video = null, carrer_profile_honor_award_images = null;\n\t\t Date honor_award_date = null;\n\t\t ArrayList<Object> audio= new ArrayList<Object>();\n\t\t ArrayList<Object> video= new ArrayList<Object>();\n\t\t ArrayList<Object> images= new ArrayList<Object>();\n\t\t Map carrer_profile_honor_award = new HashMap();\n\t\t \n\t\t ResultSet rs; \n\t\t PreparedStatement pst;\n\t\t\n\t\ttry {\n\t\t\tpst=con.prepareStatement(\"select honor_award_title,honor_award_associated_with,honor_award_issuer,honor_award_date,honor_award_description,honor_award_website_link,honor_award_instgram_link,honor_award_facebook_link,honor_award_twitter_link,honor_award_other_link from carrer_profile_honor_award where e_id=? and carrer_profile_honor_award_id=?\");\n\t\t\tpst.setInt(1, user_id);\n\t\t\tpst.setInt(2, carrer_profile_honor_award_id);\n\t\t\trs=pst.executeQuery();\n\t\t\twhile(rs.next()) \n\t\t\t{\n\t\t\t\thonor_award_title=rs.getString(1);\n\t\t\t\thonor_award_associated_with=rs.getString(2);\n\t\t\t\thonor_award_issuer=rs.getString(3);\n\t\t\t\thonor_award_date=rs.getDate(4);\n\t\t\t\thonor_award_description=rs.getString(5); \n\t\t\t\thonor_award_website_link=rs.getString(6);\n\t\t\t\thonor_award_instgram_link=rs.getString(7);\n\t\t\t\thonor_award_facebook_link=rs.getString(8);\n\t\t\t\thonor_award_twitter_link=rs.getString(9);\n\t\t\t\thonor_award_other_link=rs.getString(10);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\n\t\t\taudio=get_carrer_profile_media(con,user_id,carrer_profile_honor_award_id,\"carrer_profile_honor_award\",\"audio\");\n\t\t\tvideo=get_carrer_profile_media(con,user_id,carrer_profile_honor_award_id,\"carrer_profile_honor_award\",\"video\");\n\t\t\timages=get_carrer_profile_media(con,user_id,carrer_profile_honor_award_id,\"carrer_profile_honor_award\",\"images\");\n\t\t\t\n\t\t\t}catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\tcarrer_profile_honor_award.put(\"honor_award_title\", honor_award_title);\n\t\tcarrer_profile_honor_award.put(\"honor_award_associated_with\", honor_award_associated_with);\n\t\tcarrer_profile_honor_award.put(\"honor_award_issuer\", honor_award_issuer);\n\t\tcarrer_profile_honor_award.put(\"honor_award_description\", honor_award_description);\n\t\tcarrer_profile_honor_award.put(\"honor_award_website_link\", honor_award_website_link);\n\t\tcarrer_profile_honor_award.put(\"honor_award_instgram_link\", honor_award_instgram_link);\n\t\tcarrer_profile_honor_award.put(\"honor_award_facebook_link\", honor_award_facebook_link);\n\t\tcarrer_profile_honor_award.put(\"honor_award_twitter_link\", honor_award_twitter_link);\n\t\tcarrer_profile_honor_award.put(\"honor_award_other_link\", honor_award_other_link);\n\t\tcarrer_profile_honor_award.put(\"audio\", audio);\n\t\tcarrer_profile_honor_award.put(\"video\", video);\n\t\tcarrer_profile_honor_award.put(\"images\", images);\n\t\t\n\t\treturn carrer_profile_honor_award;\n\t}",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public String getData() {\n\t\t\tString[] columns = new String[] { KEY_ID, KEY_IMAGE, KEY_NAME ,KEY_DES};\n\t\t\tCursor c = ourDatabase.query(DATABASE_NAME, columns, null, null, null, null, null);\n\t\t\tString result = \"\";\n\n\t\t\tint irow = c.getColumnIndex(KEY_ID);\n\t\t\tint iimg = c.getColumnIndex(KEY_IMAGE);\n\t\t\tint iname = c.getColumnIndex(KEY_NAME);\n\t\t\tint ides = c.getColumnIndex(KEY_DES);\n\n\t\t\tfor (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()) {\n\t\t\t\tresult = result + c.getString(irow) + \" \"+c.getString(iimg) + \" \"+c.getString(iname) + \" \"+c.getString(ides) + \" \"+\"\\n\";\n\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}",
"public BufferedImage readImage(String id) {\n BufferedImage bufImg = null;\n try {\n PreparedStatement pstmt = conn.prepareStatement(\n \"SELECT photo FROM vehicles WHERE veh_reg_no = ?\");\n pstmt.setString(1, id);\n System.out.println(pstmt); // for debugging\n ResultSet rset = pstmt.executeQuery();\n // Only one result expected\n rset.next();\n // Read image via InputStream\n InputStream in = rset.getBinaryStream(\"photo\"); \n // Decode the inputstream as BufferedImage\n bufImg = ImageIO.read(in); \n } catch(Exception ex) {\n ex.printStackTrace();\n }\n return bufImg;\n }",
"@GET\n @Produces(\"application/json\")\n public String getJson(@PathParam(\"id\") String id) throws ClassNotFoundException, SQLException, JSONException {\n JSONObject jQoD = null;\n\n Class.forName(\"org.sqlite.JDBC\");\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:/data/googleflu.db\");\n Statement stat = conn.createStatement();\n String query = \"select Date,\" + id + \" from fludata;\";\n System.out.println(query);\n ResultSet rs = stat.executeQuery(query);\n JSONObject jDataSet = new JSONObject();\n JSONArray jEntries = new JSONArray();\n while (rs.next()) {\n JSONObject jEntry = new JSONObject();\n jEntry.put(\"Date\", rs.getString(\"Date\"));\n jEntry.put(\"Value\", rs.getInt(id));\n jEntries.put(jEntry);\n }\n jDataSet.put(\"dataset\", jEntries);\n rs.close();\n conn.close();\n return jDataSet.toString(5);\n }",
"public Antecedentes getData(long dni) {\n\n\t\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\t\tparams.addValue(\"dni\", dni);\n\t\t\t\n\n\t\t \n\t\t\ttry {\n\t\t\t\treturn jdbc.queryForObject(\"select * from antecedentes where dni = :dni \", params, new RowMapper<Antecedentes>() {\n\t\t\n\t\t\t\t\t\t\tpublic Antecedentes mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tAntecedentes antecedentes = new Antecedentes();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tantecedentes.setDni(rs.getBigDecimal(\"dni\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecario(rs.getString(\"becario\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_doctoral(rs.getString(\"tesista_doctoral\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_maestria(rs.getString(\"tesista_maestria\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_grado(rs.getString(\"tesista_grado\"));\n\t\t\t\t\t\t\t\tantecedentes.setInvestigadores(rs.getString(\"investigadores\"));\n\t\t\t\t\t\t\t\tantecedentes.setPasantes_id_y_facademica(rs.getString(\"pasantes_id_y_facademica\"));\n\t\t\t\t\t\t\t\tantecedentes.setPersonal_apoyo_id(rs.getString(\"personal_apoyo_id\"));\n\t\t\t\t\t\t\t\tantecedentes.setFinanciamiento_cientifico_tecnologico(rs.getString(\"financiamiento_cientifico_tecnologico\"));\n\t\t\t\t\t\t\t\tantecedentes.setActividades_divulgacion(rs.getString(\"actividades_divulgacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setExtension_rural_industrial(rs.getString(\"extension_rural_industrial\"));\n\t\t\t\t\t\t\t\tantecedentes.setPrestacion_servicios_sociales(rs.getString(\"prestacion_servicios_sociales\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion_divulgacion_artistica(rs.getString(\"produccion_divulgacion_artistica\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_actividad(rs.getString(\"otro_tipo_actividad\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_personal(rs.getString(\"evaluacion_personal\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_programas(rs.getString(\"evaluacion_programas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_institucional(rs.getString(\"evaluacion_institucional\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_evaluacion(rs.getString(\"otro_tipo_evaluacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecas(rs.getString(\"becas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEstancias_pasantias(rs.getString(\"estancias_pasantias\"));\n\t\t\t\t\t\t\t\tantecedentes.setOperacion_mantenimiento(rs.getString(\"operacion_mantenimiento\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion(rs.getString(\"produccion\"));\n\t\t\t\t\t\t\t\tantecedentes.setNormalizacion(rs.getString(\"normalizacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setEjercicio_profesion_ambito_no_academico(rs.getString(\"ejercicio_profesion_ambito_no_academico\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtra_actividad_cyt(rs.getString(\"otra_actividad_cyt\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn antecedentes;\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t\t catch(EmptyResultDataAccessException erdae) {\n\t\t\t\t System.out.println(\"en antecedentesDAO devuelve null\");\n\t\t\t return null;\n\t\t\t }\n\t\t}",
"UsuarioDetalle cargaDetalle(int id);",
"public List<Anuncio> getAnuncios(String idRevista) throws Exception{\n List<Anuncio> artigos = new ArrayList<>();\n Anuncio a = null;\n String idR, titulo, conteudo, categoria,nrConsultas,contacto,empresaID;\n\n try{\n connection = con.connect();\n PreparedStatement\n stm = connection.prepareStatement(\"SELECT Anuncio_ID FROM AnuncioRevista \" +\n \"WHERE Revista_ID = \" + idRevista);\n ResultSet rs = stm.executeQuery();\n ResultSet r;\n while(rs.next()){\n stm = connection.prepareStatement(\"SELECT * FROM Anuncio \" +\n \"WHERE ID = \" + rs.getString(\"Anuncio_ID\"));\n r = stm.executeQuery();\n if(r.next()){\n idR = r.getString(\"ID\");\n titulo = r.getString(\"Titulo\");\n conteudo = r.getString(\"Conteudo\");\n categoria = r.getString(\"Categoria\");\n nrConsultas = r.getString(\"NrConsultas\");\n contacto = r.getString(\"Contacto\");\n empresaID = r.getString(\"Empresa_ID\");\n a = new Anuncio(idR,titulo,conteudo,categoria,nrConsultas,contacto,empresaID);\n artigos.add(a);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n con.close(connection);\n }\n return artigos;\n }",
"QuestionWithBLOBs selectByPrimaryKey(Integer id);",
"SysPic selectByPrimaryKey(Integer id);",
"@GET\n @Path(\"/getdetallealquilerfactura_id/{token}/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getdetallealquilerfactura_id(\n @PathParam(\"token\") String token,\n @PathParam(\"id\")int id) throws Exception{\n \n Respuesta respon = new Respuesta();\n \n CheckToken check = new CheckToken();\n \n \n //instancie el objeto de DB\n DB dbase = new DB(\"itla2\",\"itlajava\",\"12345678@itla\");\n \n if (check.checktocken2(token)==0) \n { \n respon.setId(2);\n respon.setMensaje(\"Lo Sentimos token Desactivado, Comuniquese Con el Administrador, Gracias\");\n return respon.ToJson(respon);\n \n } \n \n //realizo el sql de busqueda\n String sql =\"SELECT f_id,f_id_t_alquiler_factura,f_tipo_factura_t_alquiler_factura,f_id_t_productos,\";\n sql+=\"f_fecha_salida,f_fecha_entrada,f_fecha_real_entrada,f_cantidad,f_precio,f_costo,f_itbis \";\n sql+=\" FROM public.t_detalle_alquiler_factura where f_id = \"+id;\n \n try\n {\n ResultSet rs = dbase.execSelect(sql); \n if(!rs.next())\n {\n \n Respuesta respo = new Respuesta();\n \n respo.setId(0);\n respo.setMensaje(\"No hay registros actualmente en la base de datos\");\n return respo.ToJson(respo);\n \n }\n while (rs.next())\n { \n \n \n detalleAlquilerFactura daf = new detalleAlquilerFactura();\n \n daf.setF_id(rs.getInt(1));\n daf.setF_id_t_alquiler_factura(rs.getInt(2));\n daf.setF_tipo_Factura_t_alquiler_factura(rs.getString(3));\n daf.setF_id_t_Producto(rs.getInt(4));\n daf.setF_fecha_salida(rs.getString(5));\n daf.setF_fecha_entrada(rs.getString(6));\n daf.setF_fecha_entrada_real(rs.getString(6));\n daf.setF_cantidad(rs.getInt(7));\n daf.setF_precio(rs.getInt(7));\n daf.setF_costo(rs.getInt(7));\n daf.setF_itbis(rs.getInt(8));\n \n //asigno elrs a la lista\n \n respon.setId(1);\n respon.setMensaje(respon.ToJson(daf));\n \n \n }\n } \n catch (SQLException e) \n {\n //si falla un error de base de datos\n respon.setId(-1);\n respon.setMensaje(\"Error de la base de datos \"+e.getMessage());\n return respon.ToJson(respon);\n \n }\n dbase.CerrarConexion();\n return respon.ToJson(respon); //retornando el Gson \n\n }",
"AutoAssessDetailWithBLOBs selectByPrimaryKey(Long id);",
"@Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"concepts\");\n //System.out.println(\"array: \" + jsonArray);\n\n for (int i = 0; i < jsonArray.length(); i++){\n JSONObject datos = jsonArray.getJSONObject(i);\n JSONObject datosTop = datos.getJSONObject(\"imgTop\");\n JSONObject datosBot = datos.getJSONObject(\"imgBottom\");\n JSONObject datosMisc = datos.getJSONObject(\"imgMisc\");\n JSONObject datosShoes = datos.getJSONObject(\"imgShoes\");\n JSONObject datosConjunto = datos.getJSONObject(\"imgConjunto\");\n\n imgBase64TopObtenidoDetalle = datosTop.getString(\"img64top\");\n imgBase64BottomObtenidoDetalle = datosBot.getString(\"img64bottom\");\n imgBase64MiscObtenidoDetalle = datosMisc.getString(\"img64misc\");\n imgBase64ShoesObtenidoDetalle = datosShoes.getString(\"img64shoes\");\n imgBase64ConjuntoObtenidoDetalle = datosConjunto.getString(\"img64conjunto\");\n }\n\n //System.out.println(\"top: \" + imgBase64TopObtenidoDetalle);\n //System.out.println(\"bottom: \" + imgBase64BottomObtenidoDetalle);\n //System.out.println(\"misc: \" + imgBase64MiscObtenidoDetalle);\n //System.out.println(\"shoes: \" + imgBase64ShoesObtenidoDetalle);\n //System.out.println(\"conjunto: \" + imgBase64ConjuntoObtenidoDetalle);\n\n byte[] decodedStringTop = Base64.decode(imgBase64TopObtenidoDetalle, Base64.DEFAULT);\n Bitmap decodedByteTop = BitmapFactory.decodeByteArray(decodedStringTop, 0, decodedStringTop.length);\n imgViewTop.setImageBitmap(decodedByteTop);\n\n byte[] decodedStringBottom = Base64.decode(imgBase64BottomObtenidoDetalle, Base64.DEFAULT);\n Bitmap decodedByteBottom = BitmapFactory.decodeByteArray(decodedStringBottom, 0, decodedStringBottom.length);\n imgViewBottom.setImageBitmap(decodedByteBottom);\n\n byte[] decodedStringMisc = Base64.decode(imgBase64MiscObtenidoDetalle, Base64.DEFAULT);\n Bitmap decodedByteMisc = BitmapFactory.decodeByteArray(decodedStringMisc, 0, decodedStringMisc.length);\n imgViewMisc.setImageBitmap(decodedByteMisc);\n\n byte[] decodedStringShoes = Base64.decode(imgBase64ShoesObtenidoDetalle, Base64.DEFAULT);\n Bitmap decodedByteShoes = BitmapFactory.decodeByteArray(decodedStringShoes, 0, decodedStringShoes.length);\n imgViewShoes.setImageBitmap(decodedByteShoes);\n\n byte[] decodedStringConjunto = Base64.decode(imgBase64ConjuntoObtenidoDetalle, Base64.DEFAULT);\n Bitmap decodedByteConjunto = BitmapFactory.decodeByteArray(decodedStringConjunto, 0, decodedStringConjunto.length);\n imgViewConjunto.setImageBitmap(decodedByteConjunto);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }",
"JSONObject getEditorData(int id){\n dbConnection();\n JSONObject editorDetails = new JSONObject();\n JSONArray dataInArray = new JSONArray();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM editorData WHERE userid =? ORDER BY id asc\");\n stmt.setInt(1,id);\n rs = stmt.executeQuery();\n while(rs.next()){\n JSONObject editorData = new JSONObject();\n editorData.put(\"id\",rs.getInt(1));\n editorData.put(\"name\",rs.getString(2));\n editorData.put(\"bodyContent\",rs.getObject(3));\n editorData.put(\"userId\",rs.getInt(4));\n dataInArray.add(editorData);\n }\n editorDetails.put(\"document\",dataInArray);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n return editorDetails;\n }",
"protected String doInBackground(String... args) {\n // Je construis mon array\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n // je convertis mes données en json via mon URL\n JSONObject json = jParser.makeHttpRequest(getResources().getString(R.string.all_products), \"GET\", params);\n\n // log cat du JSON reponse\n Log.d(\"Les données: \", json.toString());\n\n try {\n // Je vérifie le SUCCESS TAG\n int success = json.getInt(TAG_SUCCESS);\n\n if (success == 1) {\n // les données ont été trouvées\n // j'inclus l'ensemble de ces données dans un array (TAG_PRODUCTS)\n tauxx = json.getJSONArray(TAG_PRODUCTS);\n\n // Boucle sur l'ensemble des lignes de la table\n for (int i = 0; i < tauxx.length(); i++) {\n JSONObject c = tauxx.getJSONObject(i);\n\n // j'affecte une variable à chaque ligne\n objet_hsmic = tauxx.getJSONObject(48);\n objet_msmic = tauxx.getJSONObject(49);\n objet_ming = tauxx.getJSONObject(50);\n\n\n // je récupère les données de chaque ligne liée à chaque variable définie au dessus\n id_hsmic = objet_hsmic.getString(TAG_PID);\n id_msmic = objet_msmic.getString(TAG_PID);\n id_ming = objet_ming.getString(TAG_PID);\n\n\n\n actaux_hsmic = objet_hsmic.getString(TAG_ANCIENTAUX);\n actaux_msmic = objet_msmic.getString(TAG_ANCIENTAUX);\n actaux_ming = objet_ming.getString(TAG_ANCIENTAUX);\n\n\n\n nvtaux_hsmic = objet_hsmic.getString(TAG_NVTAUX);\n nvtaux_msmic = objet_msmic.getString(TAG_NVTAUX);\n nvtaux_ming = objet_ming.getString(TAG_NVTAUX);\n\n\n date_hsmic = objet_hsmic.getString(TAG_DATE);\n date_msmic = objet_msmic.getString(TAG_DATE);\n date_ming = objet_ming.getString(TAG_DATE);\n\n\n // créer un nouvel HashMap\n HashMap<String, String> map = new HashMap<String, String>();\n\n\n }\n } else {\n // Rien est trouvé\n\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }",
"@Override\n\tpublic Ficha_epidemiologia_n13 consultarDatos(Map<String, Object> map,\n\t\t\tFicha_epidemiologia ficha_epidemiologia) throws Exception {\n\t\t\t\t\n\t\t\t\tImpresion_diagnostica impresion_diagnostica = (Impresion_diagnostica) map.get(\"impresion_diagnostica\");\n\t\t\t\tCie_epidemiologia cie_epidemiologia = (Cie_epidemiologia) map.get(\"cie_epidemiologia\");\n\t\t\t\tAdmision admision = (Admision) map.get(\"admision\");\n\t\t\t\t\n\t\t\t\tMap<String,Object> parameters = new HashMap<String,Object>();\n\t\t\t\tparameters.put(\"codigo_empresa\", admision.getCodigo_empresa());\n\t\t\t\tparameters.put(\"codigo_sucursal\", admision.getCodigo_sucursal());\n\t\t\t\tparameters.put(\"identificacion\", admision.getNro_identificacion());\n\t\t\t\t\n\t\t\t\tif(impresion_diagnostica != null){\n\t\t\t\tparameters.put(\"codigo_historia\", impresion_diagnostica.getCodigo_historia());\n\t\t\t\t}else{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(cie_epidemiologia != null){\n\t\t\t\t\tparameters.put(\"codigo_diagnostico\", cie_epidemiologia.getCodigo_cie());\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\t\n\t\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator().getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\t\t\n\t\t\t\t//log.info(\"lista_datos\"+lista_datos);\n\t\t\t\t\n\t\t\t\tif (!lista_datos.isEmpty()){\n\t\t\t\t\tFicha_epidemiologia_n13 ficha_n13 = lista_datos.get(lista_datos.size() -1);\n\t\t\t\t\t\n\t\t\t\t\treturn ficha_n13;\n\t\t\t\t}else{\n\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t}",
"@PostMapping(\"/importar3\")\r\n String importar3( Map<String, Object> model) {\r\n\r\n iniciarValores();\r\n\r\n ArrayList<String> output = new ArrayList<String>();\r\n try {\r\n Connection connection = dataSource.getConnection();\r\n\r\n //////////////////////////////////\r\n int numArquivos = 1;\r\n int id = this.ID;\r\n while (numArquivos < NUM_ARQUIVOS) {\r\n\r\n StringBuffer conteudo = new StringBuffer();\r\n\r\n //Abre o arquivo\r\n String arq = ARQUIVO_ENTRADA + MIN_INDICE + \"_\" + MAX_INDICE + \".txt\";\r\n //---Local\r\n //BufferedReader file = new BufferedReader(new FileReader(arq));\r\n //---Local/Remote\r\n String linha=\"\";\r\n ClassPathResource resource = new ClassPathResource(arq);\r\n BufferedReader file = new BufferedReader(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8));\r\n\r\n //Primeira linha soh possui os cabecalhos das colunas\r\n linha = file.readLine();\r\n output.add(linha);\r\n\r\n //Proxima linha\r\n linha = file.readLine();\r\n output.add(linha);\r\n System.out.println(linha);\r\n\r\n String[] campo = new String[NUM_CAMPOS];\r\n StringTokenizer token = null;\r\n int numCampos = 0;\r\n int i = 0;\r\n\r\n //Prepara as variaveis para gravacao na BD\r\n Statement stmt = connection.createStatement();\r\n\r\n //id eh um numero sequencial\r\n while (linha != null) {\r\n ///////\r\n //////\r\n\r\n StringBuffer inserirLinha = new StringBuffer();\r\n inserirLinha.append(\"insert into preensao(\"\r\n + \"ladodominante,\"\r\n + \"dir1, \"\r\n + \"esq1, \"\r\n + \"dir2, \"\r\n + \"esq2, \"\r\n + \"dir3, \"\r\n + \"esq3 \"\r\n\r\n + \") values ( \"\r\n +\r\n \"'Esquerdo', \"\r\n + //ladodominante\r\n \"0, \"\r\n + //dir1\r\n \"0, \"\r\n + //esq1\r\n \"0, \"\r\n + //dir2\r\n \"0, \"\r\n + //esq2\r\n \"0, \"\r\n + //dir3\r\n \"0 \"\r\n + //esq3\r\n \")\");\r\n System.out.println(inserirLinha);\r\n output.add(inserirLinha.toString());\r\n stmt.executeUpdate(inserirLinha.toString());\r\n\r\n //Proxima linha do arquivo de cadastros filtrados\r\n linha = file.readLine();\r\n\r\n System.out.println(id + \"-------\");\r\n output.add(id + \"-------\");\r\n\r\n //Incrementa o numero da ficha\r\n id++;\r\n\r\n }//fim while\r\n\r\n /////////////////////////////\r\n MIN_INDICE = MAX_INDICE + 1;\r\n MAX_INDICE += NUM_INDICES;\r\n numArquivos = MAX_INDICE;\r\n\r\n //Proximo arquivo\r\n }//fim while\r\n\r\n output.add(\"Importacao realizada com sucesso!\");\r\n model.put(\"message\", output);\r\n return \"error\";\r\n\r\n } catch (Exception e) {\r\n output.add(\"Excecao1: \" + e.getMessage());\r\n model.put(\"message\", output);\r\n return \"error\";\r\n }\r\n\r\n }",
"public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"@Query(\"select * from ScenicPic where scenic_id=:scenicId\")\n List<ScenicPic> getScenicPicById(int scenicId);",
"@Override\n\tpublic Ficha_epidemiologia_n3 consultarDatos(Map<String, Object> map,\n\t\t\tFicha_epidemiologia ficha_epidemiologia) throws Exception {\n\t\t\t\t\n\t\t\t\tImpresion_diagnostica impresion_diagnostica = (Impresion_diagnostica) map.get(\"impresion_diagnostica\");\n\t\t\t\tCie_epidemiologia cie_epidemiologia = (Cie_epidemiologia) map.get(\"cie_epidemiologia\");\n\t\t\t\tAdmision admision = (Admision) map.get(\"admision\");\n\t\t\t\t\n\t\t\t\tMap<String,Object> parameters = new HashMap<String,Object>();\n\t\t\t\tparameters.put(\"codigo_empresa\", admision.getCodigo_empresa());\n\t\t\t\tparameters.put(\"codigo_sucursal\", admision.getCodigo_sucursal());\n\t\t\t\tparameters.put(\"nro_identificacion\", admision.getNro_identificacion());\n\t\t\t\t\n\t\t\t\tif(impresion_diagnostica != null){\n\t\t\t\tparameters.put(\"codigo_historia\", impresion_diagnostica.getCodigo_historia());\n\t\t\t\t}else{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(cie_epidemiologia != null){\n\t\t\t\t\tparameters.put(\"codigo\", cie_epidemiologia.getCodigo_cie());\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\t\n\t\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator().getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\t\t\n\t\t\t\t//log.info(\"lista_datos\"+lista_datos);\n\t\t\t\t\n\t\t\t\tif (!lista_datos.isEmpty()){\n\t\t\t\t\tFicha_epidemiologia_n3 ficha_n3 = lista_datos.get(lista_datos.size() -1);\n\t\t\t\t\t\n\t\t\t\t\treturn ficha_n3;\n\t\t\t\t}else{\n\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t}",
"public String traePostInicio(int id){\r\n String src = \"\";\r\n BD.cDatos sql = new BD.cDatos(bd);\r\n try{\r\n sql.conectar();\r\n ResultSet gatito = sql.consulta(\"call _traepostinicio(\"+id+\");\");\r\n while(gatito.next()){\r\n src += \"<div class=\\\"container \\\" data-regis='\"+gatito.getString(\"idCuenta\")+\"'>\";\r\n //src += \"<div>\";\r\n \r\n \r\n src += \"<span id='spName' onclick='verPerfil(this)' >\"+gatito.getString(\"usuario\")+\"</span><br /><br />\";\r\n src+= \"<span id='spDate'>\"+gatito.getString(\"fecha\")+\"</span><br />\";\r\n src += /*<span id='imgSrc'>*/\"<img id='imgUsr' src=\\\"\"+gatito.getString(\"foto\")+\"\\\" ><br />\";\r\n src += \"<span id='spCateg'>Categoría: \"+gatito.getString(\"interes\")+\"</span>\";\r\n \r\n \r\n \r\n src += \"<span id='spTit'>\"+gatito.getString(\"titulo\")+\"</span><br />\";\r\n src += \"<span id='contPost'>\"+gatito.getString(\"texto\")+\"</span><br />\";\r\n if(!reformat(gatito.getString(\"imagenpost\")).isEmpty())src += \"<img id='imgPost' width=200 height=200 src=\\\"\"+gatito.getString(\"imagenpost\")+\"\\\" ><br /><span id='cabImg'>\"+gatito.getString(\"cabeceraimagenpost\")+\"</span><br />\"; //+gatito.getString(\"cabeceraaudiopost\")+\r\n \r\n if(!reformat(gatito.getString(\"audiopost\")).isEmpty())src += \"<span id='cabAudio'>\" + gatito.getString(\"cabeceraaudiopost\") + \"</span><br /><a id='audio' href=\\\"\"+gatito.getString(\"audiopost\")+\"\\\" download=\\\"\"+FilenameUtils.getName(gatito.getString(\"cabeceraaudiopost\"))+\"\\\"><button class='seguir' >Descargar archivo</button></a>\";\r\n //src += \"<br /><button id='verPerfil' class='seguir' onclick='verPerfil(this)' >Ver perfil</button>\";\r\n \r\n src += \"</div><br /><br />\";\r\n }\r\n }catch(Exception e){\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n e.printStackTrace(pw);\r\n this.error = sw.toString();\r\n }\r\n return src;\r\n }",
"public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }",
"@Override\n\t/*Método para usarse en el momento de ver las reservas de un determinado usuaario en el panel del mismo*/\n\tpublic String verReservas(String nombreusuario) {\n\t\tGson json= new Gson(); \n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"Select * from alquileres alq, peliculas p where alq.pelicula=p.id and alq.usuario LIKE '\"+nombreusuario+\"' order by p.titulo\"; //Seleccion de los alquileres relacionados con el usuario \n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Alquiler> datos= new ArrayList<Alquiler>(); //ArrayList que va a almacenar los alquileres del usuario\n\t\t\t\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t\n\t\t\t//Se cogen los datos necesarios \n\t\t\twhile(rs.next()) {\n\t\t\t\tString idpelicula=rs.getString(\"id\");\n\t\t\t\tint numero_alquiler=rs.getInt(\"numero_alquiler\");\n\t\t\t\tString fecha=rs.getString(\"fecha_alquiler\");\n\t\t\t\tString titulo= rs.getString(\"titulo\"); \n\t\t\t\tString genero= rs.getString(\"genero\"); \n\t\t\t\tString cadenaestreno=rs.getString(\"estreno\");\n\t\t\t\tString estreno=\"\"; \n\t\t\t\t\n\t\t\t\t//comprobación y asignación del atributo estreno:\n\t\t\t\t/*Como en la base de datos se guarda como una cadena de texto, cuando se devuelve\n\t\t\t\t * hay que comprobar su valor y dependiendo del que sea pasarlo a una cadena para pasarla a la clase \n\t\t\t\t * Alquiler*/\n\t\t\t\t\n\t\t\t\tif(cadenaestreno.equals(\"true\")) {\n\t\t\t\t\testreno=\"Si\";\n\t\t\t\t}else if(cadenaestreno.equals(\"false\")) {\n\t\t\t\t\testreno=\"No\";\n\t\t\t\t}\n\t\t\t\tAlquiler alquiler=new Alquiler(numero_alquiler,idpelicula,fecha,titulo,genero,estreno); //uso esta clase para poder enviar los datos\n\t\t\t\tdatos.add(alquiler); //añado el alquiler a los datos que se van a devolver\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tst.close();\n\t\treturn json.toJson(datos); //devuelvo la lista de los datos en JSON \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t}",
"@GET\n @Path(\"/mostrarOrdenadasFT\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFT(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFT(idUser);\n }",
"public String getDenumireCombustibil(String id){\n c = db.rawQuery(\"select denumire from combustibil where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"private void cargardatos() {\n String sql = \"SELECT * FROM nomPercepciones\";\n\n Object datos[] = new Object[13];\n try {\n conn = (this.userConn != null) ? this.userConn : Conexion.getConnection();\n stmt = conn.prepareStatement(sql);\n rs = stmt.executeQuery();\n while (rs.next()) {\n datos[0] = rs.getString(\"idNomPer\");\n datos[1] = rs.getString(\"nombre\");\n datos[2] = rs.getString(\"dias\");\n if (rs.getString(\"estatus\").equalsIgnoreCase(\"1\")) {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/actulizadoj.png\")));\n } else {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/noactualizadoj.png\")));\n }\n\n tabla1.addRow(datos);\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Error al cargar los datos\\n\" + e, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } finally {\n Conexion.close(rs);\n Conexion.close(stmt);\n if (this.userConn == null) {\n Conexion.close(conn);\n }\n }\n }",
"public Collection cargarDeObjetivo(int codigoCiclo, int codigoPlan, int objetivo, int periodo, String estado) {\n/* 121 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 123 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion as Nombretipomedicion, Est.Descripcion as Nombreestado, Um.Descripcion as Nombre_Unidad_Medida, SUM(CASE WHEN ac.NUMERO IS NOT NULL THEN 1 ELSE 0 END) acciones from Cal_Plan_Metas m left join Am_Acciones Ac on( m.Codigo_Ciclo = Ac.Codigo_Ciclo and m.Codigo_Plan = Ac.Codigo_Plan and m.Codigo_Meta = Ac.Codigo_Meta and Ac.Asociado = 'P'), \\t\\t Sis_Multivalores Tm, \\t\\t Sis_Multivalores Est, \\t\\t Sis_Multivalores Um where m.Tipo_Medicion = Tm.Valor and Tm.Tabla = 'CAL_TIPO_MEDICION' and m.Estado = Est.Valor and Est.Tabla = 'CAL_ESTADO_META' and m.Unidad_Medida = Um.Valor and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META' and m.codigo_ciclo=\" + codigoCiclo + \" and m.codigo_plan=\" + codigoPlan + \" and m.codigo_objetivo=\" + objetivo;\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/* */ \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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 180 */ if (estado.length() > 0) {\n/* 181 */ s = s + \" and m.estado='A'\";\n/* */ }\n/* */ \n/* 184 */ if (periodo == 1) {\n/* 185 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 187 */ else if (periodo == 2) {\n/* 188 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 190 */ else if (periodo == 3) {\n/* 191 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 193 */ else if (periodo == 4) {\n/* 194 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 196 */ else if (periodo == 5) {\n/* 197 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 199 */ else if (periodo == 6) {\n/* 200 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 202 */ else if (periodo == 7) {\n/* 203 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 205 */ else if (periodo == 8) {\n/* 206 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 208 */ else if (periodo == 9) {\n/* 209 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 211 */ else if (periodo == 10) {\n/* 212 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 214 */ else if (periodo == 11) {\n/* 215 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 217 */ else if (periodo == 12) {\n/* 218 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 221 */ s = s + \" GROUP BY m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion, Est.Descripcion, Um.Descripcion order by m.descripcion\";\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 259 */ boolean rtaDB = this.dat.parseSql(s);\n/* 260 */ if (!rtaDB) {\n/* 261 */ return resultados;\n/* */ }\n/* */ \n/* 264 */ this.rs = this.dat.getResultSet();\n/* 265 */ while (this.rs.next()) {\n/* 266 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 269 */ catch (Exception e) {\n/* 270 */ e.printStackTrace();\n/* 271 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 273 */ return resultados;\n/* */ }",
"public String getInfo()\r\n\t{\r\n\t\tString closed = \"UNAVAILABLE\";\r\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\r\n\t\tString id = request.getParameter(\"id\");\r\n\t\tint k = 0;\r\n\t\tJSONObject ob = new JSONObject();\r\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@oracle.cise.ufl.edu:1521:orcl\",\"naveen\",\"\");\r\n\t\t\t\r\n\t\t\tStatement st=con.createStatement();\r\n\t\t\tSystem.out.println(\"connected to the server\");\r\n\t\t\tString sql = \"select * from business where business_id=\"+\"'\"+id+\"'\";\r\n\t\t\tResultSet rs=st.executeQuery(sql);\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t System.out.println(\"comming here\");\r\n\t\t\t String Business_Name = (String) rs.getString(24);\t\r\n\t\t\t ob.put(\"Business_Name\", Business_Name);\r\n\t\t\t ob.put(\"Business_id\", id);\r\n\t\t\t String address = (String) rs.getString(45);\r\n\t\t\t ob.put(\"address\", address);\r\n\t\t\t int review_count = (int) rs.getInt(37);\r\n\t\t\t ob.put(\"review_count\", review_count);\r\n\t\t\t float rating = (float) rs.getFloat(62);\r\n\t\t\t ob.put(\"rating\", rating);\r\n\t\t\t String Mon_open = (String) rs.getString(23);\r\n\t\t\t String Mon_closed = (String) rs.getString(71);\r\n\t\t\t if(Mon_open==null) ob.put(\"Mon\",closed);\r\n\t\t\t else ob.put(\"Mon\",Mon_open+\" \"+Mon_closed);\r\n\t\t\t String Tues_open = (String) rs.getString(19);\r\n\t\t\t String Tues_closed = (String) rs.getString(73);\r\n\t\t\t if(Tues_open==null) ob.put(\"Tues\",closed);\r\n\t\t\t else ob.put(\"Tues\", Tues_open+\" \"+Tues_closed);\r\n\t\t\t String Wed_open = (String) rs.getString(88);\r\n\t\t\t String Wed_closed = (String) rs.getString(56);\r\n\t\t\t if(Wed_open==null) ob.put(\"Wed\",closed);\r\n\t\t\t else ob.put(\"Wed\",Wed_open+\" \"+Wed_closed);\r\n\t\t\t String Thur_open = (String) rs.getString(4);\r\n\t\t\t String Thur_closed = (String) rs.getString(46);\r\n\t\t\t if(Thur_open==null) ob.put(\"Thur\",closed); \r\n\t\t\t else ob.put(\"Thur\", Thur_open+\" \"+Thur_closed);\r\n\t\t\t String Fri_open = (String) rs.getString(9);\r\n\t\t\t String Fri_closed = (String) rs.getString(41);\r\n\t\t\t if(Fri_open==null) ob.put(\"Fri\", closed);\r\n\t\t\t else ob.put(\"Fri\", Fri_open+\" \"+Fri_closed);\r\n\t\t\t String Sat_open = (String) rs.getString(52);\r\n\t\t\t String Sat_closed = (String) rs.getString(74);\r\n\t\t\t if(Sat_open==null) ob.put(\"Sat\", closed);\r\n\t\t\t else ob.put(\"Sat\", Sat_open+\" \"+Sat_closed);\r\n\t\t\t String Sun_open = (String) rs.getString(77);\r\n\t\t\t String Sun_closed = (String) rs.getString(82);\r\n\t\t\t if(Sun_open==null) ob.put(\"Sun\", closed);\r\n\t\t\t else ob.put(\"Sun\", Sun_open+\" \"+Sun_closed);\r\n\t\t\t String veg = (String) rs.getString(87);\r\n\t\t\t if(veg==null) ob.put(\"Vegetarian\", \"NO\");\r\n\t\t\t else ob.put(\"Vegetarain\", \"YES\");\r\n\t\t\t String wifi = (String) rs.getString(52);\r\n\t\t\t if(wifi==null) ob.put(\"wifi\", \"NO\");\r\n\t\t\t else ob.put(\"wifi\", \"YES\");\r\n\t\t\t String Reservations = (String) rs.getString(51);\r\n\t\t\t if(Reservations==null) ob.put(\"Reservations\", \"NO\");\r\n\t\t\t else ob.put(\"Reservations\", \"YES\");\r\n\t\t\t String Parking = (String) rs.getString(43);\r\n\t\t\t if(Parking==null) ob.put(\"Parking\", \"NO\");\r\n\t\t\t else ob.put(\"Parking\", \"YES\");\r\n\t\t\t String groups = (String) rs.getString(93);\r\n\t\t\t if(groups==null) ob.put(\"groups\", \"NO\");\r\n\t\t\t else ob.put(\"groups\", \"YES\");\r\n\t\t\t}\r\n\t\t\trequest.setAttribute(\"ob\", ob);\r\n\t }\r\n\t\tcatch(Exception ex) { System.out.println(\"error\");}\r\n\t\t\r\n\t\r\n\treturn \"successInfo\";\r\n\t}",
"@PostMapping(\"/analisepeso\")\r\n String analisepeso(@RequestParam(\"ava_0\") String ava_0,\r\n @RequestParam(\"ava_log\") String ava_log,\r\n Model model) {\n\r\n try (Connection connection = dataSource.getConnection()) {\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM avaliacao WHERE id=\"+ava_0);\r\n\r\n ArrayList<String> output = new ArrayList<String>();\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n model.addAttribute(\"ava_0\", (Integer) rs.getObject(1));\r\n model.addAttribute(\"ava_1\", (String) rs.getObject(2));\r\n model.addAttribute(\"ava_2\", (String) rs.getObject(3));\r\n model.addAttribute(\"ava_3\", (Integer) rs.getObject(4));\r\n model.addAttribute(\"ava_4\", (String) rs.getObject(5));\r\n model.addAttribute(\"ava_5\", (String) rs.getObject(6));\r\n model.addAttribute(\"ava_6\", (String) rs.getObject(7));\r\n model.addAttribute(\"ava_7\", (String) rs.getObject(8));\r\n model.addAttribute(\"ava_8\", (String) rs.getObject(9));\r\n model.addAttribute(\"ava_9\", (String) rs.getObject(10));\r\n model.addAttribute(\"ava_10\", (String) rs.getObject(11));\r\n model.addAttribute(\"ava_11\", (Double) rs.getObject(12));\r\n model.addAttribute(\"ava_12\", (Double) rs.getObject(13));\r\n model.addAttribute(\"ava_13\", (Double) rs.getObject(14));\r\n model.addAttribute(\"ava_14\", (Double) rs.getObject(15));\r\n\r\n model.addAttribute(\"ava_log\", \"Ficha aberta com sucesso!\");\r\n\r\n //Nome\r\n String nome = (String) rs.getObject(5);\r\n //rs = stmt.executeQuery(\"SELECT peso FROM avaliacao WHERE nome='\"+ava_4+\"'\");\r\n rs = stmt.executeQuery(\"SELECT peso,dataavaliacao FROM avaliacao where nome='\"+nome+\"' ORDER BY to_date(dataavaliacao,'DD/MM/YYYY') asc\");\r\n String ava_peso=\"\";\r\n while (rs.next()) {\r\n ava_peso += (Double) rs.getObject(1) + \" \";\r\n }\r\n model.addAttribute(\"ava_peso\", ava_peso);\r\n\r\n } else\r\n model.addAttribute(\"ava_log\", \"Ficha não encontrada.\");\r\n return \"dashboard_ficha\";\r\n } catch (Exception e) {\r\n //model.put(\"message\", e.getMessage());\r\n model.addAttribute(\"ava_log\", e.getMessage());\r\n return \"dashboard_ficha\";\r\n }\r\n }",
"public static item getItemById(int id) {\n try {\n PreparedStatement st = conn.prepareStatement(\"SELECT itemID, ownerID, Name, status, description, category, image1,image2,image3,image4 FROM iteminformation WHERE itemID=?\");\n st.setInt(1, id);\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n item item = new item(rs.getInt(1), rs.getString(2), rs.getString(3), (rs.getInt(4) == 1) ? true : false, rs.getString(5), rs.getString(6), rs.getBlob(7), rs.getBlob(8), rs.getBlob(9), rs.getBlob(10));\n return item;\n } else {\n return null;\n }\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"public static List<PolovniAutomobili> readAll() {\n List<PolovniAutomobili> listaUsera = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT * FROM polovni WHERE 1\";\n try (Statement st = (Statement) CONNECTION.createStatement()) {\n ResultSet rs = st.executeQuery(query);\n while (rs.next()) {\n String imgUrl = rs.getString(\"imgUrl\");\n String naziv = rs.getString(\"naziv\");\n int godiste = rs.getInt(\"godiste\");\n int cena = rs.getInt(\"cena\");\n String url = rs.getString(\"url\");\n listaUsera.add(new PolovniAutomobili(imgUrl, naziv, godiste,cena,url));\n }\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n System.out.println(\"MySql Connection error...\");\n ex.printStackTrace();\n }\n return listaUsera;\n }",
"public ArrayList consultarUbic(String string) {\n String string2 = \"SELECT des_invfisico_tmp._id, des_invfisico_tmp.cod_ubicacion,des_invfisico_tmp.cod_referencia,des_invfisico_tmp.cod_plu,plu.descripcion FROM des_invfisico_tmp LEFT OUTER JOIN plu ON plu.cod_plu = des_invfisico_tmp.cod_plu WHERE des_invfisico_tmp.cod_ubicacion = '\" + string + \"'\" + \"\";\n Cursor cursor = this.myDataBase.rawQuery(string2, null);\n ArrayList arrayList = new ArrayList();\n new ArrayList();\n if (cursor.moveToFirst()) {\n do {\n for (int i = 0; i <= 4; ++i) {\n if (cursor.isNull(i)) {\n arrayList.add(\"\");\n continue;\n }\n arrayList.add(cursor.getString(i));\n }\n } while (cursor.moveToNext());\n }\n return arrayList;\n }",
"protected void exibirMedicos(){\n System.out.println(\"--- MEDICOS CADASTRADOS ----\");\r\n String comando = \"select * from medico order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nome\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"@Transactional\n\tpublic String getDetalhePost(Long idTimeLine, String pathImagem) {\n\t\tTimeLine tl = timeLineDAO.getById( idTimeLine );\n\t\t\n\t\tJsonObject jo = new JsonObject();\n\t\t\n\t\tjo.addProperty(\"idTimeLine\", tl.getIdTimeLine());\n\t\t//jo.addProperty(\"idEscola\", tl.getIdEscola() );\n\t\tJsonObject joFB = new JsonObject();\n\t\tjoFB.addProperty(\"nome\", tl.getNoFaceBook());\n\t\tjoFB.addProperty(\"chave\", tl.getChaveFaceBook());\n\t\tjo.add(\"facebook\", joFB);\n\t\t\n\t\tEscola escola = (Escola)escolaDAO.getById( tl.getIdEscola() );\n\t\tif( escola != null ){\n\t\t\tJsonObject joEscola = new JsonObject();\n\t\t\tjoEscola.addProperty(\"nome\", escola.getNoEscola());\n\t\t\tjoEscola.addProperty(\"endereco\",escola.getTxEndereco() );\n\t\t\tjo.add(\"escola\", joEscola);\n\t\t}\n\t\t\n\t\tjo.addProperty(\"tipo\", getTipoPost( tl.getTpTimeLine() ));\n\t\tjo.addProperty(\"tipo_sl\", getTipoPostLg( tl.getTpTimeLine() ));\n\t\tjo.addProperty(\"tempo\", calculaTempo( tl.getDtTimeLine() ));\n\t\tjo.addProperty(\"descricao\", tl.getDsTimeLine() );\n\t\tjo.addProperty(\"categoria\", tl.getTxCategoria() );\n\t\tjo.addProperty(\"resposta\", tl.getDsResposta() );\n\t\t\n\t\tif( tl.getTxImagem() != null ){\n\t\t\tjo.addProperty(\"imagem\", pathImagem+\"/\"+tl.getTxImagem() );\n\t\t}\n\t\t\n\t\treturn jo.toString();\n\t}",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"AccountPaymentMethodEntityWithBLOBs selectByPrimaryKey(Integer id);",
"public ArrayList consultarTodo() {\n Cursor cursor = this.myDataBase.rawQuery(\"SELECT des_invfisico_tmp._id,des_invfisico_tmp.cod_ubicacion,des_invfisico_tmp.cod_referencia,des_invfisico_tmp.cod_plu,plu.descripcion FROM des_invfisico_tmp LEFT OUTER JOIN plu ON plu.cod_plu = des_invfisico_tmp.cod_plu \", null);\n ArrayList arrayList = new ArrayList();\n new ArrayList();\n if (cursor.moveToFirst()) {\n do {\n for (int i = 0; i <= 4; ++i) {\n if (cursor.isNull(i)) {\n arrayList.add(\"\");\n continue;\n }\n arrayList.add(cursor.getString(i));\n }\n } while (cursor.moveToNext());\n }\n\n return arrayList;\n }",
"List<Forumpost> selectByExampleWithBLOBs(ForumpostExample example);",
"public Citas getCita(int id) {\n Citas c = new Citas();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM paciente WHERE id_paciente=?\";\n pstm = con.prepareStatement(query);\n pstm.setInt(1, id);\n rs = pstm.executeQuery();\n while (rs.next()) {\n c.setId(rs.getInt(\"id_paciente\"));\n c.setName(rs.getString(\"name\"));\n c.setDoctor(rs.getString(\"doctor\"));\n c.setFecha(rs.getString(\"fecha\"));\n c.setHora(rs.getString(\"hora\"));\n c.setTel(rs.getString(\"tel\"));\n c.setCorreo(rs.getString(\"correo\"));\n c.setGenero(rs.getString(\"genero\"));\n c.setMotivo(rs.getString(\"motivo\"));\n c.setSintomas(rs.getString(\"sintomas\"));\n } \n }catch (SQLException ex) {\n ex.printStackTrace();\n }\n return c;\n }",
"public String getData(int id){\n String _data = \"\";\n dbOperation operationObj = new dbOperation(getActivity());\n operationObj.open();\n MyTable fields = new MyTable();\n String condition2 = fields.getID() + \" ='\" + id + \"'\";\n String[] dbFields4 = {fields.getScore()};\n Cursor cursor2 = operationObj.getTableRow(fields.getTableName(),dbFields4,condition2,fields.getID() + \" ASC \",\"1\");\n if(cursor2.getCount() > 0)\n {\n cursor2.moveToFirst();\n do{\n _data = cursor2.getString(0);\n }while(cursor2.moveToNext());\n }else{\n _data = \"error\";\n }\n cursor2.close();\n cursor2.deactivate();\n operationObj.close();\n return _data;\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tint bookid=Integer.parseInt(req.getParameter(\"id\"));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/demo\",\"root\",\"root\");\r\n\t\t\tPreparedStatement ps=con.prepareStatement(\"select image from books where bookid=?\");\r\n\t\t\tps.setInt(1, bookid);\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\r\n\t\t\tif(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBlob blob=rs.getBlob(\"image\");\r\n\t\t\t\tbyte arr[]=blob.getBytes(1, (int)blob.length());\r\n\t\t\t\tresp.getOutputStream().write(arr);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tPrintWriter out=resp.getWriter();\r\n\t\t\tout.println(e);\r\n\t\t}\r\n\t}",
"@GET\r\n\tpublic JsonObject getItem(@QueryParam(\"id\") int id){\r\n\t\tConnection database = DBConnecter.getConnection();\r\n\t Statement stat = null;\r\n\t ResultSet rs = null;\r\n\t System.out.print(id);\r\n\t\ttry {\r\n\t\t\tItem item = null;\r\n\t\t\tstat = database.createStatement();\r\n\t\t\tString sqlQueryString = \"select * from item where idTag='\" + id+ \"';\";\r\n\t\t\trs = stat.executeQuery(sqlQueryString);\r\n\t\t\tstat.executeQuery(sqlQueryString);\r\n\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\titem = new Item(\r\n\t \t\trs.getInt(idTagString),\r\n\t \t\trs.getInt(binNumString),\r\n\t \t\trs.getString(departmentString),\r\n\t \t\trs.getString(descriptionString),\r\n\t \t\trs.getFloat(replacementCostString),\r\n\t \t\trs.getFloat(priceString),\r\n\t \t\trs.getString(dimensionsString),\r\n\t \t\trs.getInt(lengthString),\r\n\t \t\trs.getFloat(weightString),\r\n\t\t\t \trs.getString(modelNumberString),\r\n\t\t\t \trs.getInt(purchaseDateString),\r\n\t\t\t \trs.getInt(warrantyEndDateString),\r\n\t\t\t \trs.getString(categoryString)\r\n\t \t\t);\r\n\t\t\t}\r\n\t\t\tif(item != null)\r\n\t\t\t\treturn item.toJSON();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t\tstat.close();\r\n\t\t\t\tdatabase.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t \r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }",
"public List<Arresto> getArresto(String dni);",
"public static PolovniAutomobili read(int id) {\n PolovniAutomobili s = null;\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT * FROM polovni WHERE id = ?\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ps.setInt(1, id);\n ResultSet result = ps.executeQuery();\n if (result.next()) {\n s = new PolovniAutomobili(result.getString(\"imgUrl\"), result.getString(\"naziv\"), result.getInt(\"godiste\"), result.getInt(\"cena\"), result.getString(\"url\"));\n }\n CONNECTION.close();\n }\n } catch (SQLException ex) {\n System.out.println(\"MySql Connection error...\");\n Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n return s;\n }",
"protected String doInBackground(String... args) {\n // Je construis mon array\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n // je convertis mes données en json via mon URL\n JSONObject json = jParser.makeHttpRequest(getResources().getString(R.string.all_products), \"GET\", params);\n\n // log cat du JSON reponse\n Log.d(\"Les données: \", json.toString());\n\n try {\n // Je vérifie le SUCCESS TAG\n int success = json.getInt(TAG_SUCCESS);\n\n if (success == 1) {\n // les données ont été trouvées\n // j'inclus l'ensemble de ces données dans un array (TAG_PRODUCTS)\n tauxx = json.getJSONArray(TAG_PRODUCTS);\n\n // Boucle sur l'ensemble des lignes de la table\n for (int i = 0; i < tauxx.length(); i++) {\n JSONObject c = tauxx.getJSONObject(i);\n\n // j'affecte une variable à chaque ligne\n objet_pss = tauxx.getJSONObject(14);\n objet_pab = tauxx.getJSONObject(15);\n objet_tpr = tauxx.getJSONObject(16);\n\n\n // je récupère les données de chaque ligne liée à chaque variable définie au dessus\n id_pss = objet_pss.getString(TAG_PID);\n id_pab = objet_pab.getString(TAG_PID);\n id_tpr = objet_tpr.getString(TAG_PID);\n\n\n\n actaux_pss = objet_pss.getString(TAG_ANCIENTAUX);\n actaux_pab = objet_pab.getString(TAG_ANCIENTAUX);\n actaux_tpr = objet_tpr.getString(TAG_ANCIENTAUX);\n\n\n\n nvtaux_pss = objet_pss.getString(TAG_NVTAUX);\n nvtaux_pab = objet_pab.getString(TAG_NVTAUX);\n nvtaux_tpr = objet_tpr.getString(TAG_NVTAUX);\n\n\n date_pss = objet_pss.getString(TAG_DATE);\n date_pab = objet_pab.getString(TAG_DATE);\n date_tpr = objet_tpr.getString(TAG_DATE);\n\n\n // créer un nouvel HashMap\n HashMap<String, String> map = new HashMap<String, String>();\n\n\n }\n } else {\n // Rien est trouvé\n\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"Receta getByIdWithImages(long id);",
"DashboardGoods selectOneByExampleWithBLOBs(DashboardGoodsExample example);",
"WpPostsWithBLOBs selectByPrimaryKey(Long id);",
"public Product ProductDetail(int id){\n Product p = new Product();\n connect();\n ResultSet result = null;\n String sql = \"SELECT * FROM productos WHERE id_producto = ?\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(1, id);\n result = ps.executeQuery();\n if(result != null){\n p.setProductId(\"\"+result.getInt(\"id_producto\"));\n p.setProductDescription(result.getString(\"descripcion\"));\n p.setProductPresentation(result.getString(\"presentacion\"));\n p.setProductCuantity(result.getInt(\"cantidad\"));\n p.setProductPrice(result.getFloat(\"precio\"));\n p.setProductProvider(result.getInt(\"proveedor\"));\n }\n connect.close();\n return p;\n }catch(SQLException ex){\n ex.printStackTrace();\n } \n return p;\n }",
"public void remplireListeParam(){\r\n bddParam.add(\"id\");\r\n bddParam.add(\"site\");\r\n bddParam.add(\"smtp_serv\");\r\n bddParam.add(\"smtp_port\");\r\n bddParam.add(\"smtp_user\");\r\n bddParam.add(\"smtp_mail\");\r\n bddParam.add(\"smtp_pass\");\r\n bddParam.add(\"mail_envoie\");\r\n bddParam.add(\"licence\");\r\n bddParam.add(\"pop_up\");\r\n bddParam.add(\"mail_rapport\");\r\n bddParam.add(\"archives\");\r\n bddParam.add(\"mail\");\r\n bddParam.add(\"dbext_adress\");\r\n bddParam.add(\"dbext_port\");\r\n bddParam.add(\"dbext_user\");\r\n bddParam.add(\"dbext_pass\");\r\n bddParam.add(\"dbext_delais\");\r\n bddParam.add(\"dbext_name\");\r\n bddParam.add(\"dbext\");\r\n bddParam.add(\"dbext_purge\");\r\n bddParam.add(\"dbext_perte\");\r\n bddParam.add(\"langue\");\r\n \r\n }",
"EnterprisePicture selectByPrimaryKey(Integer id);",
"public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }",
"public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }",
"public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\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\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\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} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }"
]
| [
"0.60321754",
"0.5827526",
"0.5748061",
"0.5696685",
"0.56581354",
"0.5619806",
"0.55558586",
"0.5547486",
"0.5543419",
"0.55320054",
"0.5516659",
"0.54916865",
"0.54815984",
"0.5477986",
"0.5467324",
"0.5464549",
"0.5462818",
"0.5462818",
"0.5453239",
"0.54324675",
"0.5417416",
"0.5391935",
"0.53837377",
"0.5376724",
"0.535932",
"0.5349633",
"0.53342295",
"0.5331518",
"0.53269607",
"0.5325084",
"0.5323047",
"0.5321668",
"0.5309684",
"0.53055936",
"0.52967113",
"0.52961177",
"0.52882403",
"0.5274604",
"0.5270274",
"0.52656174",
"0.5260199",
"0.5249367",
"0.52331537",
"0.522747",
"0.5220462",
"0.521613",
"0.52086043",
"0.52058536",
"0.5198775",
"0.51921254",
"0.51824456",
"0.5178456",
"0.51741004",
"0.51691663",
"0.51636493",
"0.5162105",
"0.515997",
"0.5156709",
"0.51505345",
"0.51438785",
"0.5141824",
"0.51208353",
"0.5119498",
"0.5118298",
"0.5114328",
"0.5109251",
"0.5107165",
"0.5102196",
"0.50988793",
"0.5096207",
"0.50862116",
"0.5081705",
"0.50814456",
"0.5076341",
"0.50696015",
"0.50685513",
"0.5067756",
"0.5065367",
"0.5054236",
"0.5048139",
"0.5045664",
"0.5040257",
"0.50320977",
"0.50290906",
"0.50282735",
"0.50278795",
"0.5021998",
"0.5021529",
"0.5018061",
"0.5013479",
"0.5013226",
"0.5012463",
"0.5010414",
"0.5009149",
"0.5007403",
"0.50057286",
"0.50054675",
"0.5003893",
"0.5002506",
"0.50013715"
]
| 0.5130415 | 61 |
/ Showing splash screen with a timer. This will be useful when you want to show case your app logo / company | @Override
public void run() {
// This method will be executed once the timer is over
// Start your app main activity
if (serverUrl != null)
emerTokenApiCall();
else {
Bundle bndlanimation = ActivityOptions.makeCustomAnimation(SplashScreenActivity.this, R.anim.anim_out, R.anim.anim_in).toBundle();
Intent i = new Intent(SplashScreenActivity.this, CompanyDomainActivity.class);
startActivity(i, bndlanimation);
SplashScreenActivity.this.finish();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void displaySplashScreen() {\n\t\t// Creates new thread to act as timer.\n\t\tThread logoTimer = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\n\t\t\t\t\tint logoTimer = 0;\n\t\t\t\t\t// Pauses for SPLASH_TIME amount of time\n\t\t\t\t\twhile (logoTimer < SPLASH_TIME) {\n\t\t\t\t\t\tsleep(100);\n\t\t\t\t\t\tlogoTimer = logoTimer + 100;\n\t\t\t\t\t}\n\t\t\t\t\t// Calls the activity from manifest.xml\n\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),\n\t\t\t\t\t\t\tMenuActivity.class);\n\t\t\t\t\tintent.putExtra(\"connect\", connect);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Starts the thread.\n\t\tlogoTimer.start();\n\t}",
"@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_splash_screen);\r\n StartAnimations();\r\n\r\n new Handler().postDelayed(new Runnable() {\r\n\r\n\r\n @Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }\r\n }, 5000);\r\n }",
"private void SplashScreen() {\n// if (!mSettings.getBoolean(\"PlayedBefore\", false)) {\n// mSolitaireView.DisplaySplash();\n// }\n splas.setVisibility(View.VISIBLE);\n Handler h = new Handler(Looper.getMainLooper());\n h.postDelayed(new Runnable() {\n @Override\n public void run() {\n splas.setVisibility(View.GONE);\n }\n }, 3000);\n }",
"public void showSplashScreen() {\r\n\r\n JPanel content = (JPanel) getContentPane();\r\n content.setBackground(Color.white);\r\n\r\n // setting the window's properties\r\n \r\n int width = 700;\r\n int height = 438;\r\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\r\n int x = (screen.width - width) / 2;\r\n int y = (screen.height - height) / 2;\r\n setBounds(x, y, width, height);\r\n\r\n // build the splash screen using an image \r\n \r\n JLabel gifImage = new JLabel(new ImageIcon(this.getClass().getResource(\"/splash.gif\")));\r\n content.add(gifImage, BorderLayout.CENTER);\r\n\r\n // display it\r\n setVisible(true);\r\n\r\n new resourceLoader().execute();\r\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash);\n ButterKnife.inject(this);\n\n if(getResources().getBoolean(R.bool.isTablet)){\n lyMain.setBackgroundResource(R.drawable.ic_tablet_splash);\n }else {\n lyMain.setBackgroundResource(R.drawable.ic_smatphone_splash);\n }\n\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n startActivity(new Intent(SplashActivity.this, ApplicationsGridActivity.class));\n }\n }\n };\n timerThread.start();\n\n }",
"public frmSplashScreen() {\n initComponents();\n this.setLocationRelativeTo(null);\n timer.start();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_splash_screen);\n\t\tnm1 = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); //Declaracion de notificacion\n\t\t\n\t\tTimerTask task = new TimerTask(){\n\t\t @Override\n\t public void run() {\n\t Intent mainIntent = new Intent().setClass(SplashScreen.this, MainActivity.class);\n\t startActivity(mainIntent);\n\t finish();//Destrucion de la actividad, usuario no tendra oportunidad de verla hasta reiniciar\n\t }\t\t\n\t};\n\tTimer timer = new Timer();\n\ttimer.schedule(task, splashDelay); //Pasando los 6 segundos entramos a la tarea en si\n\tnoti1();\n\t}",
"private void showSplashScreen() {\n splashDialog = new SplashScreenDialog(this);\n splashDialog.show();\n }",
"@Override\n public void showSplash() {\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n if (user != null) {\n redireccionar();\n }else{\n Intent intent = new Intent(SplashScreen.this, Login.class);\n startActivity(intent);\n }\n\n }\n }\n };\n timerThread.start();\n }",
"@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n\n // close this activity\n finish();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //TODO: add any code you want to do while the splash screen is showing before the MainActivity is shown\n\n// try {\n// Thread.sleep(5000);\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }",
"private static void splashScreen() {\n\t\t\n\t\tString message = \"Welcome to JProject v\"+VERSION+\"\\nby Gabriel Skoropada\";\n\t\t\n\t\tJOptionPane.showMessageDialog(null, message, \"JProject v\"+VERSION, JOptionPane.NO_OPTION, null);\n\t\t\n\t}",
"public static void splashScreen() {\n System.out.println(printLine(\"-\",100));\n System.out.println(\"Welcome to KaviBase\"); // Display the string.\n System.out.println(\"Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(\"\\nEvery command should end with semicolon ;\");\n System.out.println(printLine(\"-\",100));\n }",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n requestWindowFeature(1);\n getWindow().setFlags(1024, 1024);\n setContentView(R.layout.activity_splash_screen);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n SplashScreen.this.startActivity(new Intent(SplashScreen.this, MainActivity.class));\n SplashScreen.this.finish();\n }\n }, 3000);\n }",
"@Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n // Start your app main activity\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n\r\n // close this activity\r\n finish();\r\n }",
"public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n // Do not display title bar, this makes the splash screen really full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n \r\n // Check if we need to display the splash screen. If no, go directly to the main intent\r\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n boolean showscreen = prefs.getBoolean(\"showsplashscreen\", true);\r\n if (! showscreen) {\r\n \t gotoMainIntent();\r\n \t return;\r\n }\r\n \r\n\r\n // Set the layout\r\n setContentView(R.layout.splash);\r\n\r\n // This will run after a specified time (SPLASH_DISPLAY_LENGHT milliseconds)\r\n new Handler().postDelayed(new Runnable(){\r\n public void run() {\r\n \t gotoMainIntent();\r\n }\r\n }, SPLASH_DISPLAY_LENGHT);\r\n }",
"public static void splashScreen() {\n System.out.println(line(\"-\", 80));\n System.out.println(\"Welcome to DavisBaseLite\"); // Display the string.\n System.out.println(\"DavisBaseLite Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(line(\"-\", 80));\n }",
"public SplashScreen(String image, int showTime)\r\n {\r\n\tlogo = new ImageIcon(image);\r\n\r\n\tContainer splashPanel = getContentPane();\r\n\tsplashPanel.setLayout(new BorderLayout());\r\n\tBorder bd1 = BorderFactory.createBevelBorder(BevelBorder.RAISED);\r\n\tBorder bd2 = BorderFactory.createEtchedBorder();\r\n\tBorder bd3 = BorderFactory.createCompoundBorder(bd1, bd2);\r\n\t((JPanel) splashPanel).setBorder(bd3);\r\n\r\n\tsplashPanel.add(\"Center\", new JLabel(logo, JLabel.CENTER));\r\n\r\n\tsetUndecorated(true);\r\n\tshowFor(showTime);\r\n }",
"private void splashScreen() {\r\n\t\t// Clear the screen, reset the level, and display the legend\r\n\t\tclear();\r\n\t\tdisplay.setLegend(\"Asteroids\");\r\n\r\n\t\t// Place four asteroids near the corners of the screen.\r\n\t\tplaceAsteroids();\r\n\t}",
"private void showSplash() {\n \t\tthis.splashInfoContainer.setVisibility( View.VISIBLE );\n \t}",
"@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.activity_splash_screen);\n\n intent = new Intent(this, MainActivity.class);\n\n\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n\n //Start MainActivity\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);\n }\n super.onCreate(savedInstanceState);\n setContentView(R.layout.helal_haram_splash);\n\n initViews();\n alphaAnimation(img);\n\n\n // splash efect kodu\n /* Thread timerThread = new Thread(){\n public void run(){\n try{\n sleep(1200);\n }catch(InterruptedException e){\n e.printStackTrace();\n }finally{\n\n Intent intent = new Intent(Splash.this, MainActivity.class);\n startActivity(intent);\n\n }\n }\n };\n timerThread.start();\n */\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n UserInfoData entry = new UserInfoData(this);\n \t\n \tentry.open();\n \t\n \tfinal String data = entry.getData();\n \t\n \tentry.close();\n Thread splashTimer = new Thread(){\n \tpublic void run(){\n \t\ttry{\n \t\t\tsleep(3000);\n \t\t\t\n \t}\n \t\tcatch(InterruptedException e){\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n finally{\n \tif (!data.equals(\"\")){\n \t\t\tstartActivity(new Intent (\"com.JacobyApps.android.mainMenu\")); \n \t}\n \t\telse{\n \n startActivity(new Intent (\"android.intent.action.Signup\"));\n \t}\n \tfinish();\n \t \n }\n \t \n \t}\n \t\n };\n splashTimer.start();\n }",
"@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(SplashScreen.this, LoginScreen.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n\n // close this activity\n finish();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash__screen);\n\n\n Thread splashTread = new Thread() {\n @Override\n public void run() {\n try {\n int waited = 0;\n while (_active && (waited < _splashTime)) {\n sleep(3000);\n if (_active) {\n waited += 3000;\n }\n }\n } catch (Exception e) {\n\n } finally {\n\n startActivity(new Intent(Splash_Screen.this,\n MainActivity.class));\n finish();\n }\n };\n };\n splashTread.start();\n\n// Thread thread = new Thread(){\n//\n// @Override\n// public void run() {\n// try {\n// sleep(SPLASH_DISPLAY_LENGTH);\n// Intent intent = new Intent(getApplicationContext(),MainActivity.class);\n// startActivity(intent);\n// finish();\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n// }\n// };\n//\n// thread.start();\n\n\n }",
"@Override \r\n public void onCreate(Bundle icicle) { \r\n super.onCreate(icicle);\r\n \r\n getWindow().setFormat(PixelFormat.RGBA_8888);\r\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);\r\n setContentView(R.layout.splash_activity);\r\n \r\n //Display the current version number \r\n PackageManager pm = getPackageManager(); \r\n try {\r\n \tPackageInfo pi = pm.getPackageInfo(\"org.mems\", 0);\r\n TextView versionNumber = (TextView) findViewById(R.id.versionNumber); \r\n versionNumber.setText(\"Version \" + pi.versionName); \r\n } catch (NameNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n new Handler().postDelayed(new Runnable() {\r\n public void run() { \r\n \tIntent mainIntent = new Intent(SplashActivity.this, MainActivity.class); \r\n \tSplashActivity.this.startActivity(mainIntent); \r\n \tSplashActivity.this.finish(); \r\n } \r\n }, 2000); //2000 for release \r\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n \n mp = MediaPlayer.create(this, R.raw.love_story);\n mp.start();\n \n Thread logoTimer = new Thread(){\n \tpublic void run(){\n \t\ttry{\n \t\t\tint logoTimer = 0;\n \t\t\twhile(logoTimer<5000){\n \t\t\t\tsleep(100);\n \t\t\t\tlogoTimer = logoTimer +100;\n \t\t\t}\n \t\t\tstartActivity(new Intent(\"com.crognar.CLEARSCREEN\"));\n \t\t\t//clearscreen mag anders\n \t\t} \n \t\t\n \t\tcatch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\n \t\tfinally{\n \t\t\tfinish();\n \t\t}\n \t}\n };\n logoTimer.start();\n }",
"@Override\n public void onStart() {\n super.onStart();\n waitForSplashAnimation(SPLASH_SCREEN_DELAY);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.splash);\n\t\tsound = MediaPlayer.create(this,R.raw.sound);\n\t\tsound.start();\n\t\tThread timer = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\ttry{\n\t\t\t\t\tsleep(6300);\n\t\t\t\t}catch(InterruptedException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tIntent window = new Intent(\"android.intent.action.Menu\");\n\t\t\t\t\tstartActivity(window);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\ttimer.start();\n\t}",
"@Override\n public void onCreate(final Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.splash_screen);\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(() -> {\n Intent mainIntent = new Intent(SplashScreen.this, MainActivity.class);\n SplashScreen.this.startActivity(mainIntent);\n SplashScreen.this.finish();\n }, SPLASH_DISPLAY_SECONDS * 1000);\n }",
"public void showSplashScreen(View view) {\n // start the splash screen to show information\n Intent intent = new Intent(LoginActivity.this, InformationActivity.class);\n startActivity(intent);\n }",
"public void splash(){\n ImageView splash = (ImageView) findViewById(R.id.mekslogo);\n Animation animation1 =\n AnimationUtils.loadAnimation(getApplicationContext(),\n R.anim.clockwise);\n animation1.setDuration(5000);\n splash.startAnimation(animation1);\n animation1.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n // Toast.makeText(getApplicationContext(),\"Animation ended\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(MainActivity.this, sign_up.class);\n startActivity(intent);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n\n }\n });\n }",
"private void showSplash ()\n {\n ResourceBundle resourceBundle = null;\n try\n {\n resourceBundle = ResourceBundle.getBundle(\"splash\", Locale.getDefault());\n }\n catch (MissingResourceException ignored)\n {\n System.out.println(\"Info: file splash.properties not found in resources root directory.\");\n }\n\n FXMLLoader fxmlLoader = new FXMLLoader();\n if (resourceBundle != null)\n {\n fxmlLoader.setResources(resourceBundle);\n }\n try\n {\n primaryStage.setScene(new Scene(fxmlLoader.load(getClass().getResourceAsStream(\"/splash.fxml\"))));\n primaryStage.initStyle(StageStyle.UNDECORATED);\n primaryStage.centerOnScreen();\n primaryStage.show();\n }\n catch (NullPointerException ignored)\n {\n System.out.println(\"Info: file splash.fxml not found in resources root directory.\");\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }",
"@Override\n\tpublic void init() throws Exception {\n\t\ttry {\n\t\t\tThread.sleep(SPLASH_SCREEN_TIMER);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n checkMainSetupCompletion();\n Intent i;\n if(isPermanentlySkipped == 1 || isFacebookLoggedIn == 1 )\n i = new Intent(SplashScreen.this, menuActivity.class);\n else\n i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n // close this activity\n finish();\n }",
"public static void hideSplashScreen() {//todo: is this useful ?????.....\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n if (splashScreen != null) {\n splashScreen.setVisible(false);\n splashScreen.dispose();\n }\n }\n });\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n\n }",
"public void showFor(int showTime)\r\n {\r\n\tsetSize(logo.getIconWidth(), logo.getIconHeight());\r\n\r\n\tDisplayMode screenDisp = getGraphicsConfiguration().getDevice().getDisplayMode();\r\n\tsetLocation((screenDisp.getWidth()/2)-getSize().width/2, (screenDisp.getHeight()/2)-getSize().height/2);\r\n\r\n\tsetVisible(true);\r\n\ttry\r\n\t {\r\n\t\tThread.sleep(showTime);\r\n\t } \r\n\tcatch(InterruptedException e) {}\r\n\tsetVisible(false);\r\n }",
"private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }",
"@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n\t\t/* layout splashscreen dengan background gambar */\n setContentView(R.layout.activity_spalsh);\n\t/* handler untuk menjalankan splashscreen selama 5 detik lalu\n\t * membuat HomeActivity\n\t */\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent = null;\n\n mainIntent = new Intent(SpalshActivity.this,\n HomeActivity.class);\n\n SpalshActivity.this.startActivity(mainIntent);\n SpalshActivity.this.finish();\n overridePendingTransition(R.layout.fadein,R.layout.fadeout);\n\n\n }\n }, SPLASH_DISPLAY_LENGHT);\n }",
"private static void hideSplashScreen() {\n if (splash != null) {\n splash.dispose();\n splash = null;\n }\n }",
"public void run() {\n Intent i = new Intent(activity_splash.this, MainActivity.class);\r\n startActivity(i); // menghubungkan activity splashscren ke xml\r\n //jeda selesai Splashscreen\r\n this.finish();\r\n }",
"public void run(){\r\n try{\r\n \tsleep(DURACION_SPLASH);\r\n }catch(InterruptedException e){\r\n //Si no puedo ejecutar el sleep muestro el error\r\n e.printStackTrace();\r\n }finally{\r\n //Llamo a la nueva actividad\r\n Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);\r\n \tstartActivity(intent);\r\n \tfinish();\r\n } \r\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.logo_show);\n\t\tnew Thread(new Runnable() { \n @Override\n public void run() {\n // TODO Auto-generated method stub\n try {\n Thread.sleep(2000);\n Intent i = new Intent(ScreenLogo.this, MusicProject.class);\n startActivity(i);\n ScreenLogo.this.finish();\n //handler.sendMessage(handler.obtainMessage(1));\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tgetWindow().requestFeature(Window.FEATURE_NO_TITLE);\r\n\r\n\t\t/** Making this activity, full screen */\r\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\r\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n\t\tsetContentView(R.layout.activity_splashscreen);\r\n\t\tCountDown _tik;\r\n\t\t_tik = new CountDown(2000, 2000, this, MainActivity.class);// It delay the screen for 2.5 second and after that switch to YourNextActivity\r\n\t\t_tik.start();\r\n\r\n\t\tinitTypeface();\r\n\r\n\t}",
"@Override\n public void run() {\n\n\n if(sessionManager.isLoggedIn()){\n\n // This method will be executed once the timer is over\n // Start your app main activity\n mDilatingDotsProgressBar.hideNow();\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n\n }else{\n\n // This method will be executed once the timer is over\n // Start your app main activity\n mDilatingDotsProgressBar.hideNow();\n Intent i = new Intent(SplashActivity.this, LoginActivity1.class);\n startActivity(i);\n }\n\n\n\n\n }",
"public SplashScreen() {\r\n instance = this;\r\n\r\n width = 600;\r\n height = 600;\r\n\r\n icon = \"graphics/application/icon_96.png\";\r\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash_screen);\n\n pref = getApplicationContext().getSharedPreferences(AppConstants.mypreference, Context.MODE_PRIVATE);\n\n\n // ************************** SCREEN DISPLAY FOR SOMETIMES ******************************************\n\n final int welcomeScreenDisplay = 1500;\n /** create a thread to show splash up to splash time */\n Thread welcomeThread = new Thread()\n {\n int wait = 0;\n\n @Override\n public void run()\n {\n try\n {\n super.run();\n /**\n * use while to get the splash time. Use sleep() to increase\n * the wait variable for every 100L.\n */\n while (wait < welcomeScreenDisplay)\n {\n sleep(100);\n wait += 100;\n }\n }\n catch (Exception e) {\n System.out.println(\"EXC=\" + e);\n }\n finally {\n /**\n * Called after splash times up. Do some action after splash\n * times up. Here we moved to another main activity class\n */\n String getStatus=pref.getString(AppConstants.IS_LOGIN, \"null\");\n if(getStatus.equals(\"true\"))\n {\n Intent i=new Intent(getApplicationContext(),WelcomeScreen.class);\n startActivity(i);\n finish();\n\n }else\n {\n //first time\n Intent i=new Intent(getApplicationContext(),LoginScreen.class);\n startActivity(i);\n finish();\n\n }\n\n }\n }\n };\n welcomeThread.start();\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n makeActivityFullScreen();\n setContentView(R.layout.activity_splash);\n }",
"@Override\n public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n //Assign the splashscreen_activity_main layout to the SplashScreenActivity\n setContentView(R.layout.splashscreen_activity_main);\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n Intent mainIntent = new Intent(SplashscreenActivity.this, MainActivity.class);\n SplashscreenActivity.this.startActivity(mainIntent);\n //We call finish() function to prevent user to come back to splashScreen\n SplashscreenActivity.this.finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }",
"public static void main(String args[]) \n {\n //declare constant to hold the speed of the loader\n final int LOAD_SPEED = 10;\n //create the new splash screen called mySplash\n TspSplash mySplash = new TspSplash();\n //center splash\n mySplash.setLocationRelativeTo(null);\n //set icon \n mySplash.setIconImage(Toolkit.getDefaultToolkit().getImage\n (\"src/Images/Salesperson.png\")); \n //make splash visible\n mySplash.setVisible(true);\n \n try\n {\n //create a variable which will count loop to 100, incrementing by\n //one until it reaches 100\n for(int loader = 0; loader <= 100; loader++)\n {\n //set speed of counter (miliseconds)\n Thread.sleep(LOAD_SPEED);\n //display the counter in the loading label\n mySplash.loadingJLabel.setText(\"Loading \" \n + Integer.toString(loader) + \"%\");\n //increment the progress bar with the counter\n mySplash.splashJProgressBar.setValue(loader);\n //when the loop gets to 100, close the splash screen\n if (loader == 100)\n {\n //when loader is done, close the splash screen\n mySplash.dispose();\n }\n }\n }\n catch (Exception exp)\n {\n JOptionPane.showMessageDialog(null, \"Loading error--\" \n + \"Cannot load splash\");\n }\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TspGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() \n {\n public void run() \n {\n new TspGUI().setVisible(true);\n }\n });\n }",
"@Override\n\t\t public void run() {\n\t\t \tsetContentView(R.layout.activity_splash);\n\t\t }",
"@Override\r\n\t\t public void run() {\n\t\t Intent i = new Intent(SplashScreen.this, MainMenuActivity.class);\r\n\t\t startActivity(i);\r\n\t\t \r\n\t\t //Menyelesaikan Splashscreen\r\n\t\t finish();\r\n\t\t }",
"private void hideSplash() {\n \t\tthis.splashInfoContainer.startAnimation( this.splashFadeOut );\n \t}",
"public static void main(String[] args) {\n\t\t// Define new Runnable for splash screen execution\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tSplashScreenView splash;\n\t\t\tTimer timer;\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// Create splash screen boundary object and set visible\n\t\t\t\t\tsplash = new SplashScreenView();\n\t\t\t\t\tsplash.setVisible(true);\n\n\t\t\t\t\t// Begin timer for 2 seconds to display\n\t\t\t\t\ttimer = new Timer(2000, new ActionListener(){ \n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t// Create event on timer completion that hide the splash screen, and creates\n\t\t\t\t\t\t\t// the Kabasuji and corresponding view for interactions\n\t\t\t\t\t\t\tsplash.setVisible(false);\n\t\t\t\t\t\t\tKabasuji game = new Kabasuji();\n\t\t\t\t\t\t\tLevelSelectorView window = new LevelSelectorView(game);\n\n\t\t\t\t\t\t\t// allow controller to set up GUI based on the levels loaded by 'game'\n\t\t\t\t\t\t\tStartLevelSelectorController selectorController = new StartLevelSelectorController(window, game);\n\t\t\t\t\t\t\tselectorController.process();\n\n\t\t\t\t\t\t\t// show window\n\t\t\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t\t\t\tImageIcon image = new ImageIcon(StartKabasuji.class.getResource(\"/images/heineman.jpg\"));\n\t\t\t\t\t\t\twindow.setIconImage(image.getImage().getScaledInstance(40, 40, 0));\n\t\t\t\t\t\t\tSystem.out.println(image);\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// Start the timer and ensure it only runs once\n\t\t\t\t\ttimer.setRepeats(false);\n\t\t\t\t\ttimer.start();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\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\t\t\tIntent it=new Intent(Splash.this,DashboardActivity.class);\n\t\t\tstartActivity(it);\n\t\t\tfinish();\n\t\t}",
"private void setupSplash() {\n \t\tthis.splashInfoContainer = (LinearLayout) this.findViewById( R.id.edit_gpsfilter_area_splash );\n \n \t\tTextView textView = (TextView) this.splashInfoContainer.findViewById( R.id.edit_gpsfilter_area_splash_text );\n \t\ttextView.setText( Html.fromHtml( this.getString( R.string.edit_gpsfilter_area_splash_text ) ) );\n \n \t\t// Define fade out animation.\n \t\tthis.splashFadeOut = new AlphaAnimation( 1.00f, 0.00f );\n \t\tthis.splashFadeOut.setDuration( SPLASH_FADE_DELAY );\n \t\tthis.splashFadeOut.setAnimationListener( new AnimationListener() {\n \t\t\tpublic void onAnimationStart( Animation animation ) {\n \t\t\t}\n \n \t\t\tpublic void onAnimationRepeat( Animation animation ) {\n \t\t\t}\n \n \t\t\tpublic void onAnimationEnd( Animation animation ) {\n \t\t\t\tsplashInfoContainer.setVisibility( View.GONE );\n \t\t\t}\n \t\t} );\n \n \t\t// Don't show if not new and we got polygon.\n \t\tif ( !this.isConsideredFresh() ) {\n \t\t\tthis.splashInfoContainer.setVisibility( View.GONE );\n \t\t}\n \t}",
"public ScreenSplash() {\n initComponents();\n this.setCursor(new Cursor(HAND_CURSOR));\n setBackground(new Color(0, 0, 0, 0));\n }",
"public S<T> splash(int time,final String nextActivity){\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n to(nextActivity);\n activity.finish();\n }\n }, time);\n \n\t\treturn this;\n\t}",
"public void initApp() {\n \tint ms = (int) Math.round(1000d / Settings.getFramesPerSecond());\n \ttimer = new Timer(ms, this);\n \ttimer.start();\n setBackground(new Color(35, 35, 35));\n Dimension d = new Dimension(Settings.getGridDimensions());\n d.setSize(d.getWidth() + Settings.getBoxSize() * 4 + 80, d.getHeight());\n setPreferredSize(d);\n setFocusable(true);\n }",
"@Override\n public void run() {\n progressBar.setVisibility(View.GONE);\n // Esse método será executado sempre que o timer acabar\n // E inicia a activity principal\n Intent i = new Intent(SplashAct.this, LogEnter.class);\n startActivity(i);\n\n // Fecha esta activity\n finish();\n }",
"@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n if (flag == true) {\n Intent intent = new Intent(SplashActivity.this, DashBoard.class);\n finish();\n startActivity(intent);\n }\n else {\n Intent intent1 = new Intent(SplashActivity.this, LoginActivity.class);\n finish();\n startActivity(intent1);\n }\n\n\n // close this activity\n finish();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.splash);\n\t\tMyThread myThread=new MyThread();\n\t myThread.start();\n\t}",
"public void startSplashGameOver(){\r\n\t\t\r\n\t\tpanel[CurrentPanel].stop();\r\n\t\t\r\n\t\tDriver.panel[CurrentPanel].setVisible(false);\r\n\t\tgame.remove(panel[CurrentPanel] );\r\n\t\t\r\n\t\tCurrentPanel = 0;\r\n\t\t\r\n\t\t\r\n\t\tpanel[CurrentPanel] = new Splash(this);\r\n\t\t\r\n\t\tadd( panel[CurrentPanel] );\r\n\t\tpanel[CurrentPanel].setVisible(true);\r\n\t\tgame.setVisible(true);\r\n\t\t\r\n\t\tpanel[CurrentPanel].start();\r\n\t\t\r\n\t}",
"@Override\n public void run() {\n SplashScreen.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\n finish();\n\n }\n });\n }",
"void setSplashContentView() {\n// verifyUser = PreferenceHelper.isVerifyMail(getContext());\n // user is logged in app and is active.\n view.setSplashViewLayout(R.layout.activity_splash);\n\n }",
"private void waitForSplashAnimation(int duration) {\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n clearAndStartActivity(new Intent(SplashActivity.this, MainMenuActivity.class));\n }\n\n }, duration);\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.splash);\n\n\t\tRunnable showMain = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tIntent intent = new Intent(SplashActivity.this, KeepErAppyActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tLog.i(Util.TAG, \"SplashActivity.onCreate.run\");\n\t\t\t}\n\t\t};\n\n\t\tView vw = findViewById(R.id.big_beer);\n\t\tvw.postDelayed(showMain, 1000);\n\t\tLog.i(Util.TAG, \"SplashActivity.onCreate\");\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n ImageView image = (ImageView)findViewById(R.id.logo);//logo image\n Animation animation1 =\n AnimationUtils.loadAnimation(getApplicationContext(), R.anim.side_slide); //animation\n image.startAnimation(animation1);\n TextView t = (TextView) findViewById(R.id.textView2);\n t.startAnimation(animation1);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n\n Intent mySuperIntent = new Intent(MainActivity.this, Main2Activity.class);//link to main activity 2\n startActivity(mySuperIntent);\n finish();\n }\n }, SPLASH_TIME);\n }",
"public Splash() {\n initComponents();\n }",
"public Splash() {\n initComponents();\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This method will be executed once the timer is over\n\t\t\t\t\t\t// Start your app main activity\n\t\t\t\t\t\tIntent i = new Intent(WelcomeScreen.this,\n\t\t\t\t\t\t\t\tLoginActivity.class);\n\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t// close this activity\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.sample);\n\n splash = findViewById(R.id.splashscreen);\n\n splash.startAnimation(\n AnimationUtils.loadAnimation(this, R.anim.rotation) );\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n Intent mainIntent = new Intent(Sample.this,WebviewActivity.class);\n Sample.this.startActivity(mainIntent);\n Sample.this.finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n SplashScreen.show(this); // here\n super.onCreate(savedInstanceState);\n }",
"static void renderSplashFrame(Graphics2D g) {\n\t\tfinal String version = \"Release: 2.1.1 - release date: 2022-07-31\";\r\n\t\tg.setComposite(AlphaComposite.Clear);\r\n\t\tg.fillRect(120, 140, 200, 40);\r\n\t\tg.setPaintMode();\r\n\t\tg.setColor(Color.BLACK);\r\n\t\tg.drawString(\"Loading \" + version + \"...\", 120, 350);\r\n\t}",
"public static void showSplashScreen(Class cls, String propFile) {//todo: is this useful ?????.....\n final Class appClass = cls;\n final String resPropFile = propFile;\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n if (splashScreen == null) {\n String filename = \"\";\n String resFile = CoreUtil.getPathOnly(appClass.getName(), true) + \"resources.\" + resPropFile;\n try {\n filename = ResourceBundle.getBundle(resFile)\n .getString(\"image.SplashScreenImage\");\n } catch (MissingResourceException e) {\n System.out.println(\"java.util.MissingResourceException: Couldn't find value for: image.SplashScreenImage\");\n }\n String path = \"resources/images/\" + filename;\n ImageIcon img = new ImageIcon(appClass.getResource(path));\n splashScreen = new JWindow();\n splashLabel = new JLabel(img);\n splashScreen.getContentPane().add(splashLabel);\n splashScreen.pack();\n }\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n splashScreen.setLocation(screenSize.width / 2 - splashScreen.getSize().width / 2,\n screenSize.height / 2 - splashScreen.getSize().height / 2);\n splashScreen.setVisible(true);\n }\n });\n }",
"@Override\n\tpublic Screen getStartScreen() {\n\t\treturn new Splash(this);\n\t}",
"public void start() {\n\t\tFile splashFile = new File(\"Splash\", \"title\");\r\n\t\tsplashString = TextFileReader.getContents(splashFile);\r\n\t\tsendOutput(splashString);\r\n\t\tsendOutput(\"Version \" + versionNum);\r\n\t\tsendOutput(\"by \" + author);\r\n\t\tprintMenu();\r\n\t}",
"@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.splashscreen);\n ((LinearLayout)findViewById(R.id.bgsplashid)).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent mainIntent = new Intent(splash.this,firstAct.class);\n isClicked = true;\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n });\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n if(!isClicked) {\n Intent mainIntent = new Intent(splash.this, firstAct.class);\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n }\n }, SPLASH_DISPLAY_LENGTH);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n SplashScreenBuilder.getInstance(this)\n .setVideo(R.raw.splash_animation)\n .setImage(R.drawable.app_icon)\n .enableSkipOnTap(false)\n .show();\n\n Button restart_app = findViewById(R.id.restart_app);\n restart_app.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Restart app\n Intent i = getBaseContext().getPackageManager().getLaunchIntentForPackage(getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n overridePendingTransition(0, 0);\n finish();\n }\n });\n }",
"@Override\n\t\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\t\tchangeScreen(SplashScreen.class);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}",
"@Override\n public void run() {\n startActivity(new Intent(SplashActivity.this, MainActivity3.class));\n //Close the current welcome page after the jump\n SplashActivity.this.finish();\n }",
"public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }",
"private void removeSplashScreen(final boolean z) {\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class org.apache.cordova.splashscreen.SplashScreen.AnonymousClass4 */\n\n public void run() {\n if (SplashScreen.splashDialog != null && SplashScreen.this.splashImageView != null && SplashScreen.splashDialog.isShowing()) {\n int fadeDuration = SplashScreen.this.getFadeDuration();\n if (fadeDuration <= 0 || z) {\n SplashScreen.this.spinnerStop();\n SplashScreen.splashDialog.dismiss();\n Dialog unused = SplashScreen.splashDialog = null;\n SplashScreen.this.splashImageView = null;\n return;\n }\n AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);\n alphaAnimation.setInterpolator(new DecelerateInterpolator());\n alphaAnimation.setDuration((long) fadeDuration);\n SplashScreen.this.splashImageView.setAnimation(alphaAnimation);\n SplashScreen.this.splashImageView.startAnimation(alphaAnimation);\n alphaAnimation.setAnimationListener(new Animation.AnimationListener() {\n /* class org.apache.cordova.splashscreen.SplashScreen.AnonymousClass4.AnonymousClass1 */\n\n public void onAnimationRepeat(Animation animation) {\n }\n\n public void onAnimationStart(Animation animation) {\n SplashScreen.this.spinnerStop();\n }\n\n public void onAnimationEnd(Animation animation) {\n if (SplashScreen.splashDialog != null && SplashScreen.this.splashImageView != null && SplashScreen.splashDialog.isShowing()) {\n SplashScreen.splashDialog.dismiss();\n Dialog unused = SplashScreen.splashDialog = null;\n SplashScreen.this.splashImageView = null;\n }\n }\n });\n }\n }\n });\n }",
"public void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_home_page);\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.hide();\n }\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent startActivityIntent = new Intent(SplashActivity.this, HomePage.class);\n startActivity(startActivityIntent);\n SplashActivity.this.finish();\n }\n }\n , SPLASH_DISPLAY_LENGTH);\n }",
"public SplashScreen getSplashScreen() {\n if (splashScreen == null) {//GEN-END:|26-getter|0|26-preInit\n // write pre-init user code here\n splashScreen = new SplashScreen(getDisplay());//GEN-BEGIN:|26-getter|1|26-postInit\n splashScreen.setTitle(\"splashScreen\");\n splashScreen.setCommandListener(this);\n splashScreen.setText(\"Who is Java`s mascote?\");//GEN-END:|26-getter|1|26-postInit\n // write post-init user code here\n }//GEN-BEGIN:|26-getter|2|\n return splashScreen;\n }",
"public void showTimer(){\n mTimerProgressBar.setVisibility(View.VISIBLE);\n mTimerText.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash_screen);\n\n SharedPreferences sp = getSharedPreferences(FrozenBubble.PREFS_NAME,\n Context.MODE_PRIVATE);\n boolean showSplashScreen = sp.getBoolean(\"showSplashScreen\", true);\n if ( showSplashScreen )\n {\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(\"showSplashScreen\", false);\n editor.commit();\n }\n else\n {\n startFrozenBubble();\n return;\n }\n\n // thread for displaying the SplashScreen\n splashThread = new Thread()\n {\n @Override\n public void run()\n {\n try\n {\n synchronized(this)\n {\n //\n // TODO: The splash screen waits before launching\n // the game activity. Change this so that\n // the game activity is started immediately,\n // and notifies the splash screen activity\n // when it is done loading saved state data\n // and preferences, so the splash screen\n // functions as a distraction from game\n // loading latency.\n //\n //\n wait(_splashTime); //wait 3 seconds\n }\n } catch(InterruptedException e) {}\n finally\n {\n startFrozenBubble();\n }\n }\n };\n\n splashThread.start();\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_splash);\r\n\r\n new Handler().postDelayed(new Runnable(){\r\n @Override\r\n public void run() {\r\n\r\n //check whether user has already logged in\r\n SharedPreferences pref = getSharedPreferences(\"ActivityPREF\", Context.MODE_PRIVATE);\r\n\r\n //if user has logged in\r\n if (pref.getBoolean(\"activity_executed\", false)) {\r\n\r\n String bus_or_pas = pref.getString(\"bus_or_passenger\",\"bus\");\r\n\r\n switch (bus_or_pas){\r\n //if user has logged as a bus\r\n case(\"bus\"):{\r\n Intent intent = new Intent(SplashActivity.this, BusMapsActivity.class);\r\n startActivity(intent);\r\n finish();\r\n\r\n break;\r\n }\r\n\r\n //if user has logged as passenger\r\n case (\"passenger\"):{\r\n Intent intent = new Intent(SplashActivity.this, NavDrawerActivity.class);\r\n startActivity(intent);\r\n finish();\r\n\r\n break;\r\n }\r\n }\r\n\r\n //if user hasn't logged in\r\n } else {\r\n Intent intent = new Intent(SplashActivity.this, MainActivity.class);\r\n startActivity(intent);\r\n finish();\r\n }\r\n\r\n\r\n }\r\n },SPLASH_TIME_OUT);\r\n\r\n\r\n\r\n }",
"@Override\n public void run() {\n Intent intent = new Intent(SplashScreen.this, Welcome.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void run() {\n Intent mainIntent = new Intent(SplashscreenActivity.this, MainActivity.class);\n SplashscreenActivity.this.startActivity(mainIntent);\n //We call finish() function to prevent user to come back to splashScreen\n SplashscreenActivity.this.finish();\n }",
"private void initializeSplashScreenCycle()\n\t{\n\t\t// desabilitando os botoes antes de iniciar a animacao da splash screen:\n\t\tUtilidades.Views.disableViews(this.arrViewsBloqueaveis);\n\n\t\tAnimation animLayoutSplitLogo = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.splash_move);\n\t\tAnimation animLayoutContent = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.splash_fade_in);\n\n\t\tanimLayoutContent.setAnimationListener(new AnimationListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onAnimationStart(Animation animation)\n\t\t\t{\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation)\n\t\t\t{\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animation animation)\n\t\t\t{\n\t\t\t\t// rehabilitando os botoes depois de finalizar a animacao da splash screen:\n\t\t\t\tUtilidades.Views.enableViews(arrViewsBloqueaveis);\n\t\t\t}\n\t\t});\n\n\t\t((RelativeLayout) findViewById(R.id.layout_split_logo)).startAnimation(animLayoutSplitLogo);\n\t\t((RelativeLayout) findViewById(R.id.layout_content)).startAnimation(animLayoutContent);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n new AddressBookPresenter(this);\n // 去掉标题\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.act_splash_screen);\n // 闪屏核心代码\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n if (LinphoneManager.getCore().getProxyConfigList().length > 0)\n {\n return;\n }\n Intent intent = new Intent(ActSplashScreen.this,\n LoginPhoneActivity.class);\n // 从启动动画切换到主界面\n startActivity(intent);\n ActSplashScreen.this.finish();// 结束动画\n }\n }, 3000);\n }",
"public void show(int seconds) {\n super.show(seconds);\n }",
"@Override\r\n public void run() {\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }",
"private void launchHomeScreen(){\n\n prefManager.setFirstTimeLaunch(false);\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n GLSurfaceView view = new GLSurfaceView(this);\n view.setEGLConfigChooser(8, 8, 8, 8, 16, 0); //Transparent background\n view.getHolder().setFormat(PixelFormat.TRANSLUCENT); //Transparent background\n view.setRenderer(new OpenGLRenderer(this));\n setContentView(view);\n //Transition to Landing screen\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // This app main activity\n Intent i = new Intent(SplashActivity.this, SearchActivity.class);\n startActivity(i);\n finish();\n }\n }, SPLASH_TIME_OUT);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.splash);\n\t\ttActivityDisplay = (TextView) findViewById(R.id.tView1);\n\t\t//playSong = MediaPlayer.create(Splash.this,R.raw.aakasam);\n\t\tSharedPreferences getPrefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\tboolean musicPref = getPrefs.getBoolean(\"checkbox\",true);\n\n\tif (musicPref == true)\n\t//playSong.start();\n\t\t;\n\t Thread timer = new Thread (){\n\t\t public void run(){\n\t\t\t try {\n\t\t\t\t sleep(5000);\n\t\t\t } catch (InterruptedException e){\n\t\t\t\t e.printStackTrace();\n\t\t\t } finally {\n\t\t\t\t Intent startAnotherActivity = new Intent(\"android.intent.action.MENU\");\n\t\t\t startActivity(startAnotherActivity);\n\t\t\t }\n\t\t }\n\t\t \n\t };\n\t \n\t timer.start();\n\t\t\n\t\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n SplashScreen.show(this);\n super.onCreate(savedInstanceState);\n }"
]
| [
"0.8441948",
"0.7592386",
"0.758094",
"0.74995446",
"0.7415382",
"0.7305605",
"0.72871166",
"0.72542226",
"0.72480965",
"0.72148776",
"0.72088456",
"0.71703327",
"0.71419084",
"0.71362996",
"0.7089052",
"0.70866483",
"0.70741343",
"0.7045565",
"0.70037585",
"0.699583",
"0.6934537",
"0.6898811",
"0.6781864",
"0.67497563",
"0.6749111",
"0.6715521",
"0.66320837",
"0.6623792",
"0.65873575",
"0.65406877",
"0.65353817",
"0.6474289",
"0.64605737",
"0.64493805",
"0.64412355",
"0.643668",
"0.6433717",
"0.64326656",
"0.6427017",
"0.6423394",
"0.641721",
"0.6412011",
"0.64086884",
"0.6400472",
"0.63984764",
"0.6394483",
"0.638889",
"0.6375295",
"0.6353313",
"0.63123935",
"0.6305111",
"0.6304301",
"0.6291522",
"0.6288063",
"0.62866867",
"0.62794197",
"0.62718683",
"0.62636983",
"0.62596637",
"0.62565416",
"0.6252439",
"0.6234933",
"0.62284267",
"0.62065744",
"0.616038",
"0.6118246",
"0.6105816",
"0.60938233",
"0.6092563",
"0.6073057",
"0.60714906",
"0.60714906",
"0.6059343",
"0.60453707",
"0.6038352",
"0.60346764",
"0.60306627",
"0.59807724",
"0.5966563",
"0.59531707",
"0.59375215",
"0.59294266",
"0.592722",
"0.59203726",
"0.5906197",
"0.5896731",
"0.58875865",
"0.5877776",
"0.587106",
"0.58624333",
"0.58520484",
"0.58462304",
"0.5837991",
"0.58354914",
"0.5834992",
"0.5833961",
"0.5833614",
"0.58184713",
"0.5812995",
"0.5808471"
]
| 0.6335088 | 49 |
NonAndroid accessor that allows the value of the AIRPLANE_MODE_ON setting to be set. | public static void setAirplaneMode(boolean isAirplaneMode) {
Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isAirplaneMode ? 1 : 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"deprecation\")\n\tstatic boolean getAirplaneMode(Context context) {\n\t\t// Log.d(TAG, \"getAirplaneMode\");\n\t\treturn Settings.System.getInt(context.getContentResolver(),\n\t\t\t\tSettings.System.AIRPLANE_MODE_ON, 0) != 0;\n\t}",
"int getACMode();",
"static boolean m61447d(Context context) {\n try {\n if (System.getInt(context.getContentResolver(), \"airplane_mode_on\", 0) != 0) {\n return true;\n }\n return false;\n } catch (NullPointerException unused) {\n return false;\n }\n }",
"public void performAirplaneModeChange(boolean z) {\n this.airplaneMode = z;\n }",
"public void setAirplaneModeEnabler(AirplaneModeEnabler airplaneModeEnabler) {\n this.mAirplaneModeEnabler = airplaneModeEnabler;\n }",
"private static boolean getState(Context context) {\n return Settings.System.getInt(context.getContentResolver(),\n Settings.System.AIRPLANE_MODE_ON, 0) == 1;\n }",
"public void setMode(boolean value) {\n this.mode = value;\n }",
"public int getFlightMode();",
"public abstract int getMode();",
"boolean setMode(int mode);",
"public Mode getMode();",
"public void setMode(String value) {\n _avTable.set(ATTR_MODE, value);\n }",
"public void setAvpfMode(AVPFMode mode);",
"public String getMode() {\n if (_avTable.get(ATTR_MODE) == null\n || _avTable.get(ATTR_MODE).equals(\"\")) {\n _avTable.noNotifySet(ATTR_MODE, \"ssb\", 0);\n }\n\n return _avTable.get(ATTR_MODE);\n }",
"public boolean getMode() {\n\t\t\treturn this.mode;\n\t\t}",
"public int getFlightModeState() {\n return 0;\n }",
"public void dispatchAirplaneModeChange(boolean z) {\n this.handler.sendMessage(this.handler.obtainMessage(10, z ? 1 : 0, 0));\n }",
"public boolean isMode() {\n return mode;\n }",
"public int getScreenModeValue() {\n return screenMode_;\n }",
"public short getMode() {\n\t\treturn mMode;\n\t}",
"void setBasicMode() {basicMode = true;}",
"public boolean getAssignedModeFlag() { return assignedModeFlag; }",
"public void toggleState(Context context) {\n boolean state = getState(context);\n Settings.System.putInt(context.getContentResolver(), Settings.System.AIRPLANE_MODE_ON,\n state ? 0 : 1);\n // notify change\n Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);\n intent.putExtra(\"state\", !state);\n context.sendBroadcast(intent);\n }",
"public Mode getMode() {\n return mode;\n }",
"java.lang.String getMode();",
"public int getAltitudeMode()\n {\n return altitudeMode;\n }",
"@Field(1) \n\tpublic ValuedEnum<D2D1_ALPHA_MODE> alphaMode() {\n\t\treturn this.io.getEnumField(this, 1);\n\t}",
"public int getMode() {\n return mode;\n }",
"public void setCompatibleMode(boolean value) {\n\t\tcompatible = value;\n\t}",
"public String getMode()\n {\n return mode;\n }",
"public String getMode() {\n\n return mode;\n\n }",
"public boolean getAtmStatus();",
"public int getModeValue(){\r\n\t\treturn modeValue;\r\n\t}",
"public int getScreenModeValue() {\n return screenMode_;\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public String getMode() {\n return mode;\n }",
"public String getMode() {\n return mode;\n }",
"public String getApiMode() {\n return this.apiMode;\n }",
"public String getGameMode() {\n return gameMode;\n }",
"@Override\n protected void onEnable() {\n super.onEnable();\n setCameraControlMode(cameraMode);\n }",
"public int getMode() {\n return this.mode;\n }",
"public String getMode(){\r\n\t\treturn mode;\r\n\t}",
"public void setEngineOn();",
"public boolean getVisualizerOn()\n {\n DsLog.log1(LOG_TAG, \"getVisualizerOn\");\n boolean enabled = false;\n int count = 0;\n\n //\n // Send EFFECT_CMD_GET_PARAM\n // EFFECT_PARAM_VISUALIZER_ENABLE\n //\n byte[] baValue = new byte[4];\n count = getParameter(EFFECT_PARAM_VISUALIZER_ENABLE, baValue);\n if (count != 4)\n {\n Log.e(LOG_TAG, \"getVisualizerOn: Error in getting the visualizer on/off state!\");\n }\n else\n {\n int on = byteArrayToInt32(baValue);\n enabled = (on == DsAkSettings.AK_DS1_FEATURE_ON) ? true : false;\n }\n\n return enabled;\n }",
"public void setMode(int inMode) {\n mode = inMode;\n }",
"public int getMode()\r\n {\r\n Bundle b = getArguments();\r\n return b.getInt(PARAM_MODE);\r\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"public org.exolab.castor.mapping.AccessMode getAccessMode(\n ) {\n return null;\n }",
"public org.exolab.castor.mapping.AccessMode getAccessMode(\n ) {\n return null;\n }",
"String getACModeName();",
"public int getMode() {\n\t\treturn this.mode;\n\t}",
"public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }",
"public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }",
"public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }",
"public void setSensorOn() {\n\n }",
"String getSceneModePref();",
"@ZAttr(id=46)\n public ZAttrProvisioning.GalMode getGalMode() {\n try { String v = getAttr(Provisioning.A_zimbraGalMode); return v == null ? null : ZAttrProvisioning.GalMode.fromString(v); } catch(com.zimbra.common.service.ServiceException e) { return null; }\n }",
"@JsonProperty(\"mode\")\n public String getMode() {\n return mode;\n }",
"public void setAA(boolean value) {\n this.AA = value;\n }",
"public int getMapMode() {\r\n return MapMode;\r\n }",
"public int getMapMode() {\r\n return MapMode;\r\n }",
"public void setAugment(boolean aValue);",
"public int getMode()\r\n { \r\n return this.mode; // used at the beginning to check if the game has started yet\r\n }",
"public boolean isOn() {\n return onFlag;\n }",
"public String getMode()\n {\n return mode.toString();\n }",
"public boolean isApplianceOn() {\n\n return isOn;\n }",
"public int getWallpaperMode() {\n return wallpaperMode;\n //--ARM-- public int getWallpaperMode()\n }",
"public void setMode(int mode){\n mMode = mode;\n }",
"godot.wire.Wire.Plane getPlaneValue();",
"public boolean isSetMode() {\n return this.mode != null;\n }",
"int getOperatingMode();",
"public static native int legacy2aidl_audio_encapsulation_mode_t_AudioEncapsulationMode(\n int /*audio_encapsulation_mode_t*/ legacy);",
"public int getMode() {\n\t\treturn currentMode;\n\t}",
"public char getGameMode() {\n return gameMode;\n }",
"public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }",
"boolean hasMode();",
"public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }",
"public boolean isOn() {\n return on;\n }",
"public AccessMode getAccessMode() {\n return _accessMode;\n }",
"private void setWindowingMode(int value) {\n this.bitField0_ |= 2;\n this.windowingMode_ = value;\n }",
"public void setNative(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_NATIVE);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_NATIVE);\n }",
"public int cameraOn() {\r\n System.out.println(\"hw- ligarCamera\");\r\n return serialPort.enviaDados(\"!111O*\");//camera ON \r\n }",
"private static native void setMode_0(long nativeObj, int mode);",
"@Override\n\tpublic String getMode() {\n\t\treturn this.mode;\n\t}",
"@Override\n public void setBrakeModeEnabled(boolean enabled)\n {\n final String funcName = \"setBrakeModeEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", enabled);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n motor.setIdleMode(enabled ? IdleMode.kBrake : IdleMode.kCoast);\n }",
"public int value() { return mode; }",
"public boolean setEnabled(boolean enable);",
"public final Modes getMode() {\n return mode;\n }",
"void set(boolean on);",
"public boolean needEnableExposureAdjustment() {\n boolean z = true;\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n if (this.mSceneMode != SceneMode.AUTO || Keys.isLowlightOn(this.mAppController.getSettingsManager())) {\n z = false;\n }\n return z;\n }",
"protected boolean isOn() {\r\n\t\treturn this.isOn;\r\n\t}",
"public MaskMode mo23052a() {\n return this.f12739a;\n }",
"public ToggleCameraMode() {\n requires(Robot.vision);\n }",
"@Override\r\n public boolean isSwitchOn() {\r\n return isOn;\r\n }",
"public boolean getAA() {\n return AA;\n }",
"public static native int aidl2legacy_AudioEncapsulationMode_audio_encapsulation_mode_t(\n int /*AudioEncapsulationMode.* */ aidl);",
"public void turn_on () {\n this.on = true;\n }",
"void setNightModeState(boolean b);"
]
| [
"0.70852274",
"0.6639002",
"0.6537647",
"0.6459094",
"0.64544713",
"0.645351",
"0.63288504",
"0.62046754",
"0.6046065",
"0.5991696",
"0.5977417",
"0.597673",
"0.59370416",
"0.58287835",
"0.58244276",
"0.57862645",
"0.5771153",
"0.5757575",
"0.57268894",
"0.5725956",
"0.5709074",
"0.5665799",
"0.56647944",
"0.56552505",
"0.5650645",
"0.5640952",
"0.56409293",
"0.56359816",
"0.56238586",
"0.5623133",
"0.5596587",
"0.55933374",
"0.55835545",
"0.5566123",
"0.5564545",
"0.55643475",
"0.55643475",
"0.55501056",
"0.55487174",
"0.55377996",
"0.55326253",
"0.5511403",
"0.55053294",
"0.54969597",
"0.54702586",
"0.54557467",
"0.54456055",
"0.54456055",
"0.54456055",
"0.54432994",
"0.54432994",
"0.5442934",
"0.54287595",
"0.5420515",
"0.5420515",
"0.5420515",
"0.54004586",
"0.5393456",
"0.5392271",
"0.5382849",
"0.5370261",
"0.5369882",
"0.5369882",
"0.53675985",
"0.5367414",
"0.53656614",
"0.5359007",
"0.53572565",
"0.5356989",
"0.5330906",
"0.5329705",
"0.5327105",
"0.5326624",
"0.53216535",
"0.5316499",
"0.5314917",
"0.5313968",
"0.5311938",
"0.5310586",
"0.5307899",
"0.53065985",
"0.5305892",
"0.5300954",
"0.52964056",
"0.52928764",
"0.52893263",
"0.5279093",
"0.52722317",
"0.5268097",
"0.5265438",
"0.52618337",
"0.526146",
"0.5261349",
"0.52509546",
"0.5247685",
"0.52427244",
"0.52318215",
"0.52262425",
"0.5221078",
"0.5220936"
]
| 0.7164815 | 0 |
NonAndroid accessor that allows the value of the WIFI_ON setting to be set. | public static void setWifiOn(boolean isOn) {
Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isWifiEnabled() {\n return (mask / 2) % 2 == 1;\n }",
"public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }",
"public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }",
"public boolean WifiAvaible() {\n boolean Wifi = false;\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo[] netInfo = cm.getAllNetworkInfo();\n for (NetworkInfo NI : netInfo) {\n if (NI.getTypeName().equalsIgnoreCase(\"WIFI\")){\n if (NI.isConnected()){\n Wifi = true;\n }\n }\n }\n return Wifi;\n }",
"public Builder setWifiValueFunction(boolean value) {\n toBuild.setInternalValueFunction(Criterion.WIFI, new BooleanValueFunction(value));\n return this;\n }",
"public String getWifiName() {\n return wifiName;\n }",
"@ReactMethod\n public void forceWifiUsage(boolean useWifi) {\n boolean canWriteFlag = false;\n\n if (useWifi) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n canWriteFlag = Settings.System.canWrite(context);\n\n if (!canWriteFlag) {\n Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS);\n intent.setData(Uri.parse(\"package:\" + context.getPackageName()));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n }\n }\n\n\n if (((Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) && canWriteFlag) || ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) && !(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M))) {\n final ConnectivityManager manager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkRequest.Builder builder;\n builder = new NetworkRequest.Builder();\n //set the transport type to WIFI\n builder.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);\n\n\n manager.requestNetwork(builder.build(), new ConnectivityManager.NetworkCallback() {\n @Override\n public void onAvailable(@NonNull final Network network) {\n // FIXME: should this be try catch?\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n manager.bindProcessToNetwork(network);\n } else {\n //This method was deprecated in API level 23\n ConnectivityManager.setProcessDefaultNetwork(network);\n }\n manager.unregisterNetworkCallback(this);\n }\n });\n }\n\n\n }\n } else {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ConnectivityManager manager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n manager.bindProcessToNetwork(null);\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n ConnectivityManager.setProcessDefaultNetwork(null);\n }\n }\n }",
"public interface Wifi {\n\n\t/**\n\t * Activar el WIFI\n\t */\n\tpublic void activarWifi();\n\t/**\n\t * Desactivar el WIFI\n\t */\n\tpublic void desactivarWifi();\n\t/**\n\t * Verificar si estamos en modo avion\n\t * @return\n\t */\n\tpublic boolean estaEnModoAvion();\n\t\n}",
"public String getNetwork() {\n initNetwork();\n NetworkInfo networkInfo =\n connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n if (networkInfo != null &&\n networkInfo.getState() == NetworkInfo.State.CONNECTED) {\n Logger.d(\"Current Network: WIFI\");\n return NETWORK_WIFI;\n } else {\n return getTelephonyNetworkType();\n }\n }",
"public static boolean configApState(Context context) {\n WifiManager wifimanager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n WifiConfiguration wificonfiguration = new WifiConfiguration();\n try {\n\n if(isApEnabled(context)) {\n wifimanager.setWifiEnabled(false);\n disableAp(context);\n }\n Method method = wifimanager.getClass().getMethod(\"setWifiApEnabled\", WifiConfiguration.class, boolean.class);\n method.invoke(wifimanager, wificonfiguration, !isApEnabled(context));\n return true;\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"public void toggleWiFiAP(WifiManager wifihandler, Context context) {\n if (wifi==null){\n wifi = wifihandler;\n }\n\n boolean wifiApIsOn = getWifiAPState()==WIFI_AP_STATE_ENABLED || getWifiAPState()==WIFI_AP_STATE_ENABLING;\n }",
"int getMqttEnabledStateValue();",
"public S<T> wifi(Boolean enable){\n\t \t \n\t\t \tWifiManager wifi = (WifiManager) activity.getSystemService(Context.WIFI_SERVICE);\n\t\t boolean isEnabled = wifi.isWifiEnabled();\n\t\t \n\t\t if (enable && !isEnabled) {\n\t\t \twifi.setWifiEnabled(true); \n\t\t }\n\t\t else if(!enable && isEnabled) {\n\t\t \twifi.setWifiEnabled(false); \n\t\t }\n\n\t return this;\n\t }",
"public String getAPISetting(){\n if(!apiSetting.equals(\"true\")){\n apiSetting = \"false\";\n }\n return apiSetting;\n }",
"protected WifiManager getWifiManager()\r\n\t{\r\n\t\t//return (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n\t\treturn wifiManager;\r\n\t}",
"public int getWifiState() {\n return mWifiManager.getWifiState();\n }",
"public void turnOnWifi() {\n WifiManager wifi = (WifiManager) getActivity().getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n wifi.setWifiEnabled(true);\n showScanWifiAround();\n }",
"public void setNetworkReachable(boolean value);",
"@ReactMethod\n public void setEnabled(Boolean enabled) {\n wifi.setWifiEnabled(enabled);\n }",
"public boolean isOn() {\n return on;\n }",
"@Override\r\n public boolean isSwitchOn() {\r\n return isOn;\r\n }",
"public String getWifiInfo() {\n\t\treturn (mWifiInfo == null) ? \"NULL\" : mWifiInfo.toString();\n\t}",
"public ABLLocalWifiDevice WifiDevice() {\r\n\t\treturn new ABLLocalWifiDevice(BrickFinder.getDefault().getWifiDevice());\r\n\t}",
"public static void enableWifi(Context context) {\n WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n if (!wm.isWifiEnabled()) {\n wm.setWifiEnabled(true);\n }\n }",
"public String getWifiPassword() {\n return wifiPassword;\n }",
"public static boolean configApState(Context context, String apName) {\n WifiManager wifimanager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n WifiConfiguration wificonfiguration = null;\n try {\n wificonfiguration = new WifiConfiguration();\n wificonfiguration.SSID = apName;\n\n if(isApEnabled(context)) {\n wifimanager.setWifiEnabled(false);\n disableAp(context);\n }\n\n Method method = wifimanager.getClass().getMethod(\"setWifiApEnabled\", WifiConfiguration.class, boolean.class);\n method.invoke(wifimanager, wificonfiguration, !isApEnabled(context));\n return true;\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"private boolean isConnectedViaWifi() {\n ConnectivityManager connectivityManager =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivityManager != null) {\n NetworkInfo netInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n return netInfo != null && netInfo.isConnected();\n } else {\n return false;\n }\n }",
"public int getWifiState() {\n\t\treturn mWifiManager.getWifiState();\n\t}",
"BooleanProperty getOn();",
"public void setNetworkConnection(boolean airplaneMode, boolean wifi, boolean data) {\n\n long mode = 1L;\n\n if (wifi) {\n mode = 2L;\n } else if (data) {\n mode = 4L;\n }\n\n ConnectionState connectionState = new ConnectionState(mode);\n ((AndroidDriver) getDriver()).setConnection(connectionState);\n System.out.println(\"Your current connection settings are :\" + ((AndroidDriver) getDriver()).getConnection());\n }",
"public boolean isOn() {\n return onFlag;\n }",
"public void wifiState(Context context, Intent intent) {\n switch (intent.getIntExtra(\"wifi_state\", 0)) {\n case 1:\n LogUtil.d(Tag, \"Wifi State: Disabled\");\n return;\n case 3:\n LogUtil.d(Tag, \"Wifi State: Enabled\");\n MsgHandlerCenter.dispatchMessageDelay((int) CommonParams.fq, 1000);\n return;\n default:\n return;\n }\n }",
"public int getWifiAPState() {\n int state = WIFI_AP_STATE_UNKNOWN;\n try {\n Method method2 = wifi.getClass().getMethod(\"getWifiApState\");\n state = (Integer) method2.invoke(wifi);\n } catch (Exception e) {\n\n }\n\n if(state>=10){\n //using Android 4.0+ (or maybe 3+, haven't had a 3 device to test it on) so use states that are +10\n constant=10;\n }\n\n //reset these in case was newer device\n WIFI_AP_STATE_DISABLING = 0+constant;\n WIFI_AP_STATE_DISABLED = 1+constant;\n WIFI_AP_STATE_ENABLING = 2+constant;\n WIFI_AP_STATE_ENABLED = 3+constant;\n WIFI_AP_STATE_FAILED = 4+constant;\n\n Log.d(TAG, \"getWifiAPState.state \" + (state == -1 ? \"UNKNOWN\" : WIFI_STATE_TEXTSTATE[state - constant]));\n return state;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFi() {\n\t\tboolean flag = oTest.checkWiFi();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}",
"protected boolean isOn() {\r\n\t\treturn this.isOn;\r\n\t}",
"public void setMediaNetworkReachable(boolean value);",
"com.google.cloud.iot.v1.MqttState getMqttEnabledState();",
"public static boolean isPowerOn() {\n try {\n return BlueCoveImpl.instance().getBluetoothStack().isLocalDevicePowerOn();\n } catch (BluetoothStateException e) {\n return false;\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tWifiManager wm=(WifiManager)getSystemService(WIFI_SERVICE);\n\t\t\t\tif(wm.isWifiEnabled())\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI:ON\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tWifiInfo wi=wm.getConnectionInfo();\n\t\t\t\t\tif(wi.getNetworkId()==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS NOT CONNECT TO ANY DEVICE\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS CONNECTED\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"WIFI IS OFF\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }",
"private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;\n mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;\n } else {\n wifiConnected = false;\n mobileConnected = false;\n }\n wifiConnected = true;\n mobileConnected = true;\n System.out.println(\"Change 3\");\n }",
"boolean setOffline(boolean b);",
"public Builder setWifiValueFunction(BooleanValueFunction wifiValueFunction) {\n toBuild.setInternalValueFunction(Criterion.WIFI, wifiValueFunction);\n return this;\n }",
"@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE)\n public static boolean isWifiAvailable(Context cxt) {\n @NetworkType int netType = getSimpleNetworkType(cxt);\n return (NETWORK_TYPE_WIFI == netType || NETWORK_TYPE_BLUETOOTH_WIFI == netType);\n }",
"public boolean isOnWay(){\n\t\treturn onWay;\n\t}",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }",
"void set(boolean on);",
"public void setSensorOn() {\n\n }",
"public static boolean isWifiOnly(Context context) {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n return (!cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE));\n }",
"boolean hasMobileDeviceConstant();",
"public static boolean isConnectedWifi(Context context){\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI);\n }",
"public static boolean isConnectedWifi(Context context){\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI);\n }",
"com.google.appengine.v1.NetworkSettings getNetworkSettings();",
"public boolean micEnabled();",
"@Override\n public void onSuccess() {\n Toast.makeText(getApplicationContext(), \"Connect WiFI Direct.\",\n Toast.LENGTH_SHORT).show();\n\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }",
"public boolean isOn(){\n return state;\n }",
"@Override\r\n\tpublic boolean powerOnOff() {\n\t\tif (power == true)\r\n\t\t{\r\n\t\t\tpower = false;\r\n\t\t}\r\n\t\telse if(power == false)\r\n\t\t{\r\n\t\t\tpower = true;\r\n\t\t}\r\n\t\treturn power;\r\n\t}",
"boolean hasNetworkSettings();",
"public abstract void wgb_onEnable();",
"private boolean isConnectedThroughWifi_preQ() {\n if (checkNetworkStatePermission()) return false;\n\n NetworkInfo activeNetworkInfo = getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected() && activeNetworkInfo.getType() == ConnectivityManager.TYPE_WIFI;\n }",
"public Boolean getIswialon() {\r\n return iswialon;\r\n }",
"@Override\n public void onFailure(int reasonCode) {\n Toast.makeText(getApplicationContext(), \"Please turn on WiFi. Error Code \" + reasonCode,\n Toast.LENGTH_SHORT).show();\n }",
"public interface WifiConnectionStateInterface {\n void checkSocketConnection();\n}",
"public String getEnable() {\r\n return enable;\r\n }",
"public void enableMic(boolean enable);",
"public void setIsPhysicalDevice(boolean value) {\n this.isPhysicalDevice = value;\n }",
"public boolean isOn() {\n\t\treturn false;\n\t}",
"public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}",
"private void checkWifi() {\n\t\tConnectivityManager manger = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo info = manger.getActiveNetworkInfo();\n\t\tboolean flag = (info != null && info.isConnected());\n\t\tif (!flag) {\n\t\t\tToast.makeText(context, R.string.communication, Toast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\tnew Handler().postDelayed(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcheckWifi();\n\t\t\t\t}\n\t\t\t}, 4000);\n\t\t} else {\n\t\t\tRegisterActivity.REGISTER_FLAG = true;\n\t\t}\n\t}",
"public void turn_on () {\n this.on = true;\n }",
"public void setOn(boolean arg) {\n isOn = arg;\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @SuppressLint(\"MissingPermission\")\n private boolean isConnectedThroughWifi_Q() {\n //Get ConnectivityManager.\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n //Check WIFI capability in currently active network.\n if (connectivityManager != null) {\n Network activeNetwork = connectivityManager.getActiveNetwork();\n if (activeNetwork == null) { //No default network is currently active.\n return false;\n }\n\n NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork);\n if (networkCapabilities != null && isConnectionValidated(networkCapabilities) && isWifiTypeConnection(networkCapabilities)) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean isPowerOn() {\n Log.d(TAG, \"Is Fist Power On: \" + (SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)));\n\n if (!SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)) {\n SystemProperties.set(IS_POWER_ON_PROPERTY, \"true\");\n return true;\n } else {\n return false;\n }\n }",
"public static boolean setWifiAPEnabled(Context context, String apName,\n\t\t\tboolean enabled) {\n\t\treturn setWifiAPEnabled(context, apName, null, enabled);\n\t}",
"private void updateDemoModeOn() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_tuner_demo_on\", 0) != 0) {\n z = true;\n }\n this.mOnSwitch.setChecked(z);\n }",
"public void setOn(boolean on) {\n\t\tthis.on = on;\n\t}",
"public void setDataConnectionEnabled() {\n ConnectivityManager cm = (ConnectivityManager) mContext\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n cm.setMobileDataEnabled(true);\n }",
"public boolean setWifiStartScan() {\n return mWifiManager.startScan();\n }",
"public boolean getPowerState() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getBoolean(TOGGLE_KEY, true);\n\t}",
"private boolean isWificonnected(){\n\t\tConnectivityManager connMgr\n\t\t= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo networkInfo\n\t\t= connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI); \n\t\tboolean isWifiConn = networkInfo.isConnected();\n\t\treturn isWifiConn;\n\t}",
"public void setAPISetting(String setting){\n if(!setting.equals(\"true\")){\n setting = \"false\";\n }\n apiSetting = setting;\n }",
"public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }",
"@Override\r\n public boolean connectedWifi() {\r\n return NMDeviceState.NM_DEVICE_STATE_ACTIVATED.equals(nwmDevice.getState().intValue());\r\n }",
"public boolean getOnBattery()\n\t{\n\t\treturn getBooleanIOValue(\"OnBattery\", false);\n\t}",
"@Override // com.android.settings.search.BaseSearchIndexProvider\n public boolean isPageSearchEnabled(Context context) {\n return context.getResources().getBoolean(C0005R$bool.config_show_wifi_settings);\n }",
"public int g() {\n try {\n if (this.h == null) {\n this.h = (ConnectivityManager) this.b.getApplicationContext().getSystemService(\"connectivity\");\n }\n NetworkInfo activeNetworkInfo = this.h.getActiveNetworkInfo();\n if (activeNetworkInfo != null) {\n if (activeNetworkInfo.isConnected()) {\n return activeNetworkInfo.getType() == 1 ? 2 : 1;\n }\n }\n } catch (Exception unused) {\n }\n return 0;\n }",
"@Test\n public void testOpenNetworkConfigInValidateApWifiConfigurationCheck() {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = TEST_DEFAULT_HOTSPOT_SSID;\n\n config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n config.preSharedKey = TEST_DEFAULT_HOTSPOT_PSK;\n assertFalse(WifiApConfigStore.validateApWifiConfiguration(config));\n\n // open networks should not have a password set\n config.preSharedKey = null;\n assertTrue(WifiApConfigStore.validateApWifiConfiguration(config));\n config.preSharedKey = \"\";\n assertTrue(WifiApConfigStore.validateApWifiConfiguration(config));\n }",
"public Configuration getNearSwitch() {\n return nearSwitch;\n }",
"public String getIsEnable() {\n return isEnable;\n }",
"@Override\n public WifiConfiguration getConfig() {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = getSSID();\n config.hiddenSSID = isShow();\n config.preSharedKey = quoteNonHex(getKEY_VALUE(), 64);\n config.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);\n config.allowedKeyManagement.set(4);//WPA2\n return config;\n }",
"public interface onDeviceIsOnline {\n void onDeviceIsOnline(boolean isOnline);\n}",
"public java.lang.Boolean getNicHotPlug() {\r\n return nicHotPlug;\r\n }",
"public void turnOn() {\n\t\tOn = true;\n\t}",
"@Override\n\t public void onClick(DialogInterface dialog, int which) {\n\t wifi.setWifiEnabled(true);\n\t Toast.makeText(getApplicationContext(), \"enabling...\", Toast.LENGTH_LONG).show();\t\n\t }",
"public static boolean isConnectedWifi(Context context) {\n NetworkInfo info = getNetworkInfo(context);\n return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI);\n }",
"void setOnStatus(Boolean on) {\n this.on = on;\n }",
"public boolean isApplianceOn() {\n\n return isOn;\n }",
"public boolean setMobileNetworkEnabled(boolean enabled) {\n try {\n final Class conmanClass = Class.forName(mConnectivityManager.getClass().getName());\n final Field iConnectivityManagerField = conmanClass.getDeclaredField(\"mService\");\n iConnectivityManagerField.setAccessible(true);\n final Object iConnectivityManager = iConnectivityManagerField.get(mConnectivityManager);\n final Class iConnectivityManagerClass = Class.forName(iConnectivityManager.getClass().getName());\n final Method setMobileDataEnabledMethod = iConnectivityManagerClass.getDeclaredMethod(\"setMobileDataEnabled\", Boolean.TYPE);\n setMobileDataEnabledMethod.setAccessible(true);\n setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);\n return true;\n } catch (ClassNotFoundException e) {\n } catch (InvocationTargetException e) {\n } catch (NoSuchMethodException e) {\n } catch (IllegalAccessException e) {\n } catch (NoSuchFieldException e) {\n }\n return false;\n }",
"@LargeTest\n @Suppress\n public void testWifiTetheringDisableEnable() throws InterruptedException {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = NETWORK_ID;\n config.allowedKeyManagement.set(KeyMgmt.WPA_PSK);\n config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN);\n config.preSharedKey = PASSWD;\n int counter;\n try {\n // disable wifiap\n assertTrue(\"wifi hotspot not disabled by default\",\n mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED);\n // Enable wifiap\n assertTrue(\"failed to disable wifi hotspot\",\n mWifiManager.setWifiApEnabled(config, true));\n Log.d(\"MyTestTag\", \"Now checkign wifi ap\");\n counter = 10;\n while (--counter > 0\n && mWifiManager.getWifiApState() != WifiManager.WIFI_AP_STATE_ENABLED) {\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n }\n assertTrue(\"wifi hotspot not enabled\",\n mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED);\n // Navigate to Wireless Settings page and verify Wifi AP setting is on\n Intent intent_as = new Intent(\n android.provider.Settings.ACTION_WIRELESS_SETTINGS);\n mContext.startActivity(intent_as);\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n mDevice.wait(Until.findObject(By.text(\"Tethering & portable hotspot\")),\n mABvtHelper.LONG_TIMEOUT).click();\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n assertTrue(\"Settings UI for Wifi AP is not ON\",\n mDevice.wait(Until.hasObject(By.text(\"Portable hotspot AndroidAP active\")),\n mABvtHelper.LONG_TIMEOUT));\n\n mDevice.wait(Until.findObject(By.text(\"Portable Wi‑Fi hotspot\")),\n mABvtHelper.LONG_TIMEOUT).click();\n assertTrue(\"Wifi ap disable call fails\", mWifiManager.setWifiApEnabled(config,\n false));\n counter = 5;\n while (--counter > 0\n && mWifiManager.getWifiApState() != WifiManager.WIFI_AP_STATE_DISABLED) {\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n }\n assertTrue(\"wifi hotspot not enabled\",\n mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED);\n Thread.sleep(mABvtHelper.LONG_TIMEOUT * 2);\n } finally {\n assertTrue(\"Wifi enable call fails\", mWifiManager\n .enableNetwork(mWifiManager.getConnectionInfo().getNetworkId(), false));\n counter = 10;\n while (--counter > 0 && !mWifiManager.isWifiEnabled()) {\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n }\n assertTrue(\"Wifi isn't enabled\", mWifiManager.isWifiEnabled());\n }\n }",
"public static boolean isWifiConnected(Context context) {\n ConnectivityManager mConnectivityManager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo mWiFiNetworkInfo = mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n if (mWiFiNetworkInfo != null) {\n // WifiManager manager = (WifiManager)\n // IdealseeApplication.mContext.getSystemService(Context.WIFI_SERVICE);\n // WifiInfo wifiInfo = manager.getConnectionInfo();\n return mWiFiNetworkInfo.isConnected();\n }\n return false;\n }"
]
| [
"0.65544426",
"0.64450675",
"0.64450675",
"0.6370994",
"0.63413095",
"0.627599",
"0.61900693",
"0.6068346",
"0.6034604",
"0.6029602",
"0.60184675",
"0.59856653",
"0.59833777",
"0.59328234",
"0.5926748",
"0.5907292",
"0.59019697",
"0.5855669",
"0.5849844",
"0.5829477",
"0.58196604",
"0.57759964",
"0.5774983",
"0.5773855",
"0.57451534",
"0.5731457",
"0.5724023",
"0.5710756",
"0.5706609",
"0.5690295",
"0.56871873",
"0.56762755",
"0.5668825",
"0.5654866",
"0.56458163",
"0.5609786",
"0.5603734",
"0.55771303",
"0.55699205",
"0.54906756",
"0.54893434",
"0.548321",
"0.5478705",
"0.5475778",
"0.54712856",
"0.5466723",
"0.54525083",
"0.5447587",
"0.542349",
"0.5418283",
"0.54154843",
"0.54154843",
"0.54135084",
"0.5412372",
"0.540802",
"0.5404468",
"0.5398493",
"0.53927773",
"0.539238",
"0.5375357",
"0.53723174",
"0.5362518",
"0.5356806",
"0.5356031",
"0.5351282",
"0.534122",
"0.53402376",
"0.5338972",
"0.5338969",
"0.5331007",
"0.53277564",
"0.5313641",
"0.5294781",
"0.529354",
"0.52858824",
"0.5283528",
"0.5279561",
"0.52790594",
"0.52726585",
"0.5269857",
"0.52649677",
"0.5260518",
"0.5252134",
"0.52514356",
"0.52486724",
"0.5244079",
"0.52430165",
"0.5230588",
"0.52305454",
"0.52269864",
"0.5207239",
"0.5203488",
"0.5202773",
"0.52017075",
"0.51997834",
"0.51964647",
"0.5194448",
"0.51944333",
"0.5191564",
"0.518773"
]
| 0.7348311 | 0 |
NonAndroid accessor thatallows the value of the TIME_12_24 setting to be set. | public static void set24HourTimeFormat(boolean use24HourTimeFormat) {
Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.TIME_12_24, use24HourTimeFormat ? 24 : 12);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void set24Hour( boolean hour24 ) {\n AM_PM = !hour24;\n }",
"public static boolean isTime24HourFormat( Activity act ) {\r\n\t\tContentResolver cr = act.getContentResolver();\r\n\t\tString v = Settings.System.getString( cr, android.provider.Settings.System.TIME_12_24 );\r\n\t\tif ( v == null || v.isEmpty() || v.equals( \"12\" ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean get24HourMode() {\n return android.text.format.DateFormat.is24HourFormat(getContext());\n }",
"public Builder setField1224(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1224_ = value;\n onChanged();\n return this;\n }",
"public Time12 getTime()\n\t{\n\t\treturn time;\n\t}",
"@Test public void toOffsetTime_24() {\n OffsetTime expected = OffsetTime.of(0, 0, 0, 0, ZoneOffset.ofHoursMinutes(0, 0));\n Datetime dt = new Datetime(24, expected.getMinute(), expected.getSecond(), 0);\n dt.setNanosecond(expected.getNano());\n dt.setTimezoneOffsetMinutes(0);\n\n OffsetTime actual = DateUtils.toOffsetTime(dt);\n\n assertEquals(actual, expected);\n }",
"public void setAlarmClock() {\n\n }",
"public Builder setField1224Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1224_ = value;\n onChanged();\n return this;\n }",
"public void setTesuryo24(Long tesuryo24) {\r\n this.tesuryo24 = tesuryo24;\r\n }",
"public self formatted24h(boolean is24HourView) {\n\t\tfor (X vaporView : members)\n\t\t\tvaporView.formatted24h(is24HourView);\n\t\treturn (self) this;\n\n\t}",
"public Builder clearField1224() {\n \n field1224_ = getDefaultInstance().getField1224();\n onChanged();\n return this;\n }",
"public Builder setField1624(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1624_ = value;\n onChanged();\n return this;\n }",
"public Builder setB24(boolean value) {\n bitField0_ |= 0x00800000;\n b24_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getField1224Bytes() {\n java.lang.Object ref = field1224_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1224_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String amOrpm() {\n\t\tif (this.total % 24 < 12) {\n\t\t\treturn \"AM\";\n\t\t} else {\n\t\t\treturn \"PM\";\n\t\t}\n\t}",
"public void setTime(){\r\n \r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }",
"public String getTime() {\n boolean pastNoon = hour >= 12;\n if(pastNoon && hour == 12) {\n return hour + \"pm\";\n }\n else if(pastNoon) {\n return (hour - 12) + \"pm\";\n }\n else if(hour == 0) {\n return \"12am\";\n }\n else {\n return hour + \"am\";\n }\n }",
"public void setIs24HourView(@RecentlyNonNull Boolean is24HourView) {\n/* 127 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"@Override\n\tpublic void update12EverySec() {\n\t\t\n\t}",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar24(java.lang.Integer value) {\n validate(fields()[25], value);\n this.var24 = value;\n fieldSetFlags()[25] = true;\n return this;\n }",
"public com.google.protobuf.ByteString\n getField1224Bytes() {\n java.lang.Object ref = field1224_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1224_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }",
"public static void setTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }",
"public static void setTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"public int getHour() {\n return hour; // returns the appointment's hour in military time\n }",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"protected byte[] getDailyTimerSetting() {return null;}",
"public boolean is24HourView() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Clock()\n {\n hour = 11;\n min = 28;\n sec = 12;\n }",
"public static boolean dayOrNight(Context context) {\n SimpleDateFormat format = new SimpleDateFormat(\"HH\");\n String nowTime = format.format(new Date());\n int timeVal = Integer.valueOf(nowTime);\n\n ContentResolver cv = context.getContentResolver();\n String strTimeFormat = android.provider.Settings.System.getString(cv, android.provider.Settings.System.TIME_12_24);\n if (strTimeFormat != null && strTimeFormat.equals(\"24\")) {\n Logger.getLogger().i(\"24\");\n\n if(timeVal >= 18) {\n return false;\n } else {\n return true;\n }\n } else {\n Calendar c = Calendar.getInstance();\n int amPm = c.get(Calendar.AM_PM);\n\n Logger.getLogger().i(\"amPm \" + amPm);\n switch(amPm){\n case Calendar.AM:\n if(timeVal < 6) { //午夜\n return false;\n }\n return true;\n case Calendar.PM:\n if(timeVal >= 6) { //晚上\n return false;\n } else {\n return true;\n }\n }\n }\n\n return true;\n }",
"private MadisRecord setRecordTime(MadisRecord rec) {\n try {\n rec.setDataTime(new DataTime(rec.getTimeObs()));\n return rec;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Can't set Madis Record URI! \"\n + rec.getStationId(), e);\n }\n\n return null;\n }",
"public Builder setUnknown12(long value) {\n bitField0_ |= 0x00000100;\n unknown12_ = value;\n onChanged();\n return this;\n }",
"public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }",
"public Builder setOneof2412(int value) {\n hugeOneofCase_ = 2412;\n hugeOneof_ = value;\n onChanged();\n return this;\n }",
"public void twelveHour() {\n\n //Date format 12 hour\n DateFormat twelveHour = new SimpleDateFormat(\"hh:mm aa\", Locale.ENGLISH);\n\n setTimeZone();\n\n Calendar s = Calendar.getInstance(sydney);\n twelveHour.setTimeZone(sydney);\n\n String timeS = twelveHour.format(s.getTime());\n sydneyTime = findViewById(R.id.sydneytime);\n sydneyTime.setText(timeS);\n\n Calendar t = Calendar.getInstance(tokyo);\n twelveHour.setTimeZone(tokyo);\n\n String timeT = twelveHour.format(t.getTime());\n tokyoTime = findViewById(R.id.tokyotime);\n tokyoTime.setText(timeT);\n\n Calendar a = Calendar.getInstance(auckland);\n twelveHour.setTimeZone(auckland);\n\n String timeA = twelveHour.format(a.getTime());\n aucklandTime = findViewById(R.id.aucklandtime);\n aucklandTime.setText(timeA);\n\n Calendar d = Calendar.getInstance(dubai);\n twelveHour.setTimeZone(dubai);\n\n String timeD = twelveHour.format(d.getTime());\n dubaiTime = findViewById(R.id.dubaitime);\n dubaiTime.setText(timeD);\n\n Calendar n = Calendar.getInstance(newyork);\n twelveHour.setTimeZone(newyork);\n\n String timeN = twelveHour.format(n.getTime());\n newyorkTime = findViewById(R.id.newyorktime);\n newyorkTime.setText(timeN);\n }",
"protected byte[] getOnTimerSetting() {return null;}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }",
"public Long getTesuryo24() {\r\n return tesuryo24;\r\n }",
"@Override\n public void onTimeSet(android.widget.TimePicker view, int hourOfDay, int minute) {\n boolean timeInAM = true;\n\n if(hourOfDay>=12) { //if it's pm\n hourOfDay-=12;\n timeInAM = false;\n } else { //if it's am\n timeInAM = true;\n }\n\n //update shared preferences with alarm time\n PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putInt(\"alarmHour_\"+alarmID, hourOfDay).apply(); //will be 0:00 if 12:00\n PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putInt(\"alarmMinutes_\"+alarmID, minute).apply();\n PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putBoolean(\"timeInAM_\"+alarmID, timeInAM).apply();\n\n //set minuteString of alarm time\n String minuteString;\n if(minute<10) {\n minuteString = \"0\" + PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt(\"alarmMinutes_\"+alarmID, 0);\n } else {\n minuteString = \"\" + PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt(\"alarmMinutes_\"+alarmID, 10);\n }\n int alarmHour = PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt(\"alarmHour_\"+alarmID, 0);\n if(alarmHour<10 && alarmHour>0) {\n alarmTimeButton.setText(\" \"+alarmHour+\":\"+minuteString);\n } else if(alarmHour==0) {\n alarmTimeButton.setText(\"12:\"+minuteString);\n } else {\n alarmTimeButton.setText(alarmHour+\":\"+minuteString);\n }\n\n //show alarm time\n if(PreferenceManager.getDefaultSharedPreferences(getActivity()).getBoolean(\"timeInAM_\"+alarmID, true)) {\n dayOrNight.setText(\"AM\");\n } else {\n dayOrNight.setText(\"PM\");\n }\n\n }",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"void setDaytime(boolean daytime);",
"protected String mo3406c() {\n return \"Minute\";\n }",
"public boolean hasVar24() {\n return fieldSetFlags()[25];\n }",
"public static boolean has24() {\n return getVersion() >= 24;\n }",
"public void setTime(String newHour) { // setTime sets the appointment's hour in standard time\n \n // this divides the newHour string into the hour part and the 'am'/'pm' part\n int timeHour = Integer.parseInt(newHour.substring(0, newHour.length()-2)); // the number of the hour\n String timeAmPm = newHour.substring(newHour.length()-2); // whether it is 'am' or 'pm'\n\n // 4 possible cases exist and are handled in this order:\n // 1. after midnight/before noon\n // 2. midnight (12am)\n // 3. noon (12pm)\n // 4. afternoon\n if(timeAmPm.equalsIgnoreCase(\"am\") && timeHour != 12) {\n this.hour = timeHour;\n }\n else if(timeAmPm.equalsIgnoreCase(\"am\")) {\n this.hour = 0;\n }\n else if(timeHour == 12){\n this.hour = timeHour;\n }\n else {\n this.hour = timeHour + 12;\n }\n }",
"private String getSatSetTime(String satName) {\n\t\tif (satName.equals(\"SAT02\")) {\n\t\t\treturn \">24.0\";\n\t\t}\n\t\treturn \" - \";\n\t}",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public java.lang.String getField1224() {\n java.lang.Object ref = field1224_;\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 field1224_ = s;\n return s;\n }\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }",
"public Builder setField1260(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1260_ = value;\n onChanged();\n return this;\n }",
"public static String convertTo24HoursFormat(String twelveHourTime)\n throws ParseException {\n return TWENTY_FOUR_TF.format(TWELVE_TF.parse(twelveHourTime));\n }",
"public Builder setOneof1224(int value) {\n hugeOneofCase_ = 1224;\n hugeOneof_ = value;\n onChanged();\n return this;\n }",
"public boolean getB24() {\n return b24_;\n }",
"public boolean getB24() {\n return b24_;\n }",
"public java.lang.String getField1224() {\n java.lang.Object ref = field1224_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1224_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder setI12(int value) {\n bitField0_ |= 0x00000800;\n i12_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n // When the 24hr time toggle is enabled\n //force the clock into 24 hour time format\n sydneyClock.setFormat12Hour(\"HH:mm\");\n sydneyClock.setFormat24Hour(\"HH:mm\");\n aucklandClock.setFormat12Hour(\"HH:mm\");\n aucklandClock.setFormat24Hour(\"HH:mm\");\n brugesClock.setFormat12Hour(\"HH:mm\");\n brugesClock.setFormat24Hour(\"HH:mm\");\n parisClock.setFormat12Hour(\"HH:mm\");\n parisClock.setFormat24Hour(\"HH:mm\");\n nyClock.setFormat12Hour(\"HH:mm\");\n nyClock.setFormat24Hour(\"HH:mm\");\n\n } else {\n // The toggle is disabled, switch back to 12 hour format\n sydneyClock.setFormat12Hour(\"h:mm a\");\n sydneyClock.setFormat24Hour(\"h:mm a\");\n aucklandClock.setFormat12Hour(\"h:mm a\");\n aucklandClock.setFormat24Hour(\"h:mm a\");\n brugesClock.setFormat12Hour(\"h:mm a\");\n brugesClock.setFormat24Hour(\"h:mm a\");\n parisClock.setFormat12Hour(\"h:mm a\");\n parisClock.setFormat24Hour(\"h:mm a\");\n nyClock.setFormat12Hour(\"h:mm a\");\n nyClock.setFormat24Hour(\"h:mm a\");\n }\n }",
"private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }",
"public String getTimeFormatPattern() {\r\n return timeFormatPattern;\r\n }",
"protected byte[] getOnTimerReservationSetting() {return null;}",
"protected byte[] getOnTimerReservationSetting() {return null;}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }",
"public boolean isSupportMinutes() {\r\n return true;\r\n }",
"public Builder setField1424(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1424_ = value;\n onChanged();\n return this;\n }",
"public ClockTime(String s, String subtype) {\n super(Property.CLOCKTIME_PROPERTY,subtype);\n\n\n Date value = null;\n\n try {\n StringTokenizer tokens = new StringTokenizer(s, \":\");\n if (tokens.countTokens() == 1) {\n if (s.startsWith(\"24\")) {\n s = \"00\" + s.substring(2);\n }\n if (s.startsWith(\"00\")) {\n s = s.substring(2);\n if (s == null || s.equals(\"\"))\n s = \"00\";\n if (!s.equals(\"00\") && Integer.parseInt(s) >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n try {\n value = dfMedium.get().parse(\"00:\" + s + \":00\");\n }\n catch (Exception e) {\n calValue = null;\n return;\n }\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n return;\n }\n if (s.length() > 0 && s.charAt(0) == '0')\n s = s.substring(1);\n int h = Integer.parseInt(s);\n if (h >= 0 && h <= 9)\n s = \"0\" + s + \":00:00\";\n else if (h < 24)\n s = s + \":00:00\";\n else if (h >= 100 && h <= 959) {\n int hh = Integer.parseInt(s.substring(0, 1));\n int mm = Integer.parseInt(s.substring(1, 3));\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = \"0\" + hh + \":\" + mm + \":00\";\n }\n else if (h >= 1000 && h <= 2359) {\n int hh = Integer.parseInt(s.substring(0, 2));\n int mm = Integer.parseInt(s.substring(2, 4));\n if (hh >= 24) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = hh + \":\" + mm + \":00\";\n }\n else {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n }\n else\n if (tokens.countTokens() == 2) {\n s += \":00\";\n }\n try {\n value = dfMedium.get().parse(s);\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n if (getSubType(\"showseconds\") != null && getSubType(\"showseconds\").equalsIgnoreCase(\"false\")) {\n \tsetShortFormat(true);\n }\n }\n catch (Exception e) {\n //throw new Exception(e);\n calValue = null;\n }\n } catch (Throwable e1) {\n calValue = null;\n }\n }",
"public void setAlarmMorning(Context context, long timestampMillisKey) {\n //cancel any existing alarms and then set a new one\n cancel(context);\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, Constants.AFTER_HOURS_END);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n\n if (calendar.compareTo(Calendar.getInstance()) < 0) {\n //this means we are trying to set alarm time which is already expired, so add 24Hrs or 1 day to this and then set alarm\n calendar.add(Calendar.DATE, 1);\n }\n\n Intent alarmIntent = new Intent(context, AutoPendingNotificationTrigger.class);\n\n Bundle bundle = new Bundle();\n bundle.putLong(Constants.EXTRA_TIME_STAMP_MILLIS, timestampMillisKey);\n alarmIntent.putExtras(bundle);\n\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(context.getApplicationContext().ALARM_SERVICE);\n alarmManager.setExact(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n PendingIntent.getBroadcast(context.getApplicationContext(), ALARM_REQUEST_CODE, alarmIntent, PendingIntent.FLAG_UPDATE_CURRENT));\n }",
"public static void setStartRecordingTime() {\n\t\tif (mStartRecordingTime == null) {\n\t\t\tmStartRecordingTime = new Time();\n\t\t}\n\t\tmStartRecordingTime.setToNow();\n\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putString(Defines.SHARED_PREF_START_TIME, mStartRecordingTime.format2445());\n\t\t\tedit.commit();\n\t\t}\n\n\t}",
"public String toString()\r\n {\r\n DecimalFormat twoDigits = new DecimalFormat( \"00\" );\r\n\r\n return ( this.getHour() == 12 || this.getHour() == 0 ?\r\n 12 : this.getHour() % 12 ) + \":\" +\r\n twoDigits.format( this.getMinute() ) + \":\" +\r\n twoDigits.format( this.getSecond() ) +\r\n ( this.getHour() < 12 ? \" AM\" : \" PM\" );\r\n }",
"public String getADD_STRING12_MAND() {\r\n return ADD_STRING12_MAND;\r\n }",
"public String getADD_STRING12_MAND() {\r\n return ADD_STRING12_MAND;\r\n }",
"public synchronized static DateFormat getTimeFormat()\n\t{\n\t\treturn TIME_FORMAT;\n\t}",
"public abstract boolean useDaylightTime();",
"public abstract boolean useDaylightTime();",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"public void setTime(String time) {\n }",
"public Time4( int hour, int minute, int second )\r\n { \r\n this.setTime( hour, minute, second ); \r\n }",
"private static final int implicitTimezoneMinutes() { return 0; }",
"public void setHour(int nHour) { m_nTimeHour = nHour; }",
"protected boolean setDailyTimerSetting(byte[] edt) {return false;}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }",
"int getOneof1440();",
"public Builder setServerTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n serverTime_ = value;\n onChanged();\n return this;\n }",
"public String getValidtime() {\n return validtime;\n }",
"public void setVar24(java.lang.Integer value) {\n this.var24 = value;\n }",
"public com.vmware.converter.AlarmSetting getSetting() {\r\n return setting;\r\n }",
"public void setKinkenriyou24(Long kinkenriyou24) {\r\n this.kinkenriyou24 = kinkenriyou24;\r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n Toast.makeText(Settings.this, \"\"+hourOfDay + \":\" + minute, Toast.LENGTH_SHORT).show();\n hour = hourOfDay;\n minutes = minute;\n switch(v.getId()){\n case R.id.bMorning:\n ed.putInt(\"morningHour\",hour);\n ed.putInt(\"morningMinute\", minutes);\n ed.commit();\n morning.setText(hour + \":\" + minutes);\n break;\n case R.id.bAfternoon:\n ed.putInt(\"afternoonHour\",hour);\n ed.putInt(\"afternoonMinute\", minutes);\n ed.commit();\n afternoon.setText(hour + \":\" + minutes);\n break;\n case R.id.bNight:\n ed.putInt(\"nightHour\",hour);\n ed.putInt(\"nightMinute\", minutes);\n ed.commit();\n night.setText(hour + \":\" + minutes);\n break;\n }\n }",
"protected void onSetDailyTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"protected byte[] getOffTimerReservationSetting() {return null;}",
"public double getMon60612() {\r\n\t\treturn mon60612;\r\n\t}",
"public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }",
"public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }"
]
| [
"0.6987486",
"0.66439736",
"0.6271726",
"0.6251759",
"0.5804934",
"0.57353896",
"0.5678826",
"0.55412793",
"0.5520568",
"0.54910207",
"0.5480159",
"0.54659075",
"0.54473734",
"0.5386038",
"0.53698957",
"0.5367954",
"0.53668267",
"0.5349906",
"0.53463143",
"0.5333484",
"0.53263557",
"0.5324747",
"0.5317714",
"0.5313835",
"0.52910984",
"0.528945",
"0.5282811",
"0.5278245",
"0.5267809",
"0.5265059",
"0.5264818",
"0.525342",
"0.5249202",
"0.52450824",
"0.52316654",
"0.5223743",
"0.52153736",
"0.5206331",
"0.519207",
"0.5185321",
"0.5174017",
"0.51722324",
"0.5171641",
"0.5163065",
"0.51590127",
"0.5156171",
"0.5154681",
"0.51537335",
"0.51509035",
"0.51453733",
"0.5144734",
"0.5144734",
"0.5144734",
"0.51419616",
"0.51380587",
"0.5137358",
"0.5136661",
"0.51346797",
"0.51324916",
"0.51306194",
"0.5129398",
"0.5126993",
"0.51248723",
"0.5123932",
"0.5123228",
"0.5121858",
"0.51140887",
"0.51140887",
"0.5112472",
"0.5103036",
"0.5098253",
"0.5097605",
"0.5090827",
"0.50787336",
"0.50662905",
"0.50613296",
"0.50613296",
"0.5060115",
"0.50600564",
"0.50600564",
"0.50530666",
"0.5046484",
"0.5042797",
"0.5038561",
"0.50329334",
"0.5030098",
"0.50235695",
"0.502253",
"0.5019222",
"0.5016584",
"0.5011824",
"0.5006479",
"0.4998648",
"0.49938917",
"0.49926156",
"0.4992206",
"0.4985376",
"0.49826202",
"0.49813613",
"0.4978153"
]
| 0.70606583 | 0 |
TODO Autogenerated method stub | @Override
public DataResult<List<JobPosition>> getAll() {
return new SuccessDataResult<List<JobPosition>>(this.jobPositionDao.findAll(), "Job positions listed.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Multiplica matrixA x matrixB atribuindo a cada linha da matriz uma nova thread. | protected void execute() {
try {
matrixC = new Integer[matrixA.length][matrixA.length];
WorkerThread2[] threads = new WorkerThread2[matrixA.length]; // Criando as threads
for (int i = 0; i < matrixA.length; i++) {
threads[i] = new WorkerThread2(i, matrixA, matrixB, matrixC);
threads[i].start();
}
for (int i = 0; i < matrixA.length; i++) {
threads[i].join();
}
}catch (InterruptedException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }",
"public synchronized void matrixMultiplication(cl_mem matrixA, cl_mem matrixB, cl_mem matrixC, \r\n int widthA, int heightA, int widthB) {\r\n confirmActiveState();\r\n \r\n clSetKernelArg(kernelMatrixMultiplication, 1, Sizeof.cl_mem, Pointer.to(matrixB));\r\n clSetKernelArg(kernelMatrixMultiplication, 0, Sizeof.cl_mem, Pointer.to(matrixA));\r\n clSetKernelArg(kernelMatrixMultiplication, 2, Sizeof.cl_mem, Pointer.to(matrixC));\r\n clSetKernelArg(kernelMatrixMultiplication, 3, Sizeof.cl_int, Pointer.to(new int[] {widthA}));\r\n clSetKernelArg(kernelMatrixMultiplication, 4, Sizeof.cl_int, Pointer.to(new int[] {widthB}));\r\n\r\n long globalThreads[] = new long[] {widthB, heightA};\r\n clEnqueueNDRangeKernel(commandQueue, kernelMatrixMultiplication, \r\n 2, null, globalThreads, null, 0, null, null);\r\n }",
"public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }",
"public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }",
"private static int[][] sparseMatrixMultiplyBruteForce (int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int j = 0; j < result[0].length; j++) {\n int sum = 0;\n for(int k = 0; k < A[0].length; k++) {\n sum += A[i][k] * B[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n }",
"private static void multiplyArray(double [][] matrixA, double [][] matrixB, double [][] matrixC) {\n\t\t\n\t\tmatrixC[0][0] = ((matrixA[0][0] * matrixB[0][0]) + (matrixA[0][1] * matrixB[1][0]));\n\t\tmatrixC[0][1] = ((matrixA[0][0] * matrixB[0][1]) + (matrixA[0][1] * matrixB[1][1]));\n\t\tmatrixC[1][0] = ((matrixA[1][0] * matrixB[0][0]) + (matrixA[1][1] * matrixB[1][0]));\n\t\tmatrixC[1][1] = ((matrixA[1][0] * matrixB[0][1]) + (matrixA[1][1] * matrixB[1][1]));\n\t}",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;",
"public static double[][] multiplicacaoMatriz(double[][] a, double[][] b) {\n\t\t// linha por coluna\n\n\t\tif (a == null || b == null)\n\t\t\tthrow new NullPointerException(\"Argumentos nulos\");\n\n\t\tif (a[0].length != b.length)\n\t\t\tthrow new IllegalArgumentException(\"Numero de linhas de \\\"A\\\" � diferente de colunas de \\\"B\\\"\");\n\n\t\tfinal double[][] resultado = new double[a.length][b[0].length];\n\n\t\tfor (int x = 0; x < resultado.length; x++)\n\t\t\tfor (int y = 0; y < resultado[0].length; y++) {\n\n\t\t\t\tdouble acomulador = 0;\n\t\t\t\tfor (int i = 0; i < a[0].length; i++)\n\t\t\t\t\tacomulador += a[x][i] * b[i][y];\n\n\t\t\t\tresultado[x][y] = acomulador;\n\t\t\t}\n\n\t\treturn resultado;\n\t}",
"static public double[][] MatrixMult( double [][] A , double [][] B) {\n\t// A [NxK] * B[KxZ] = M[NxZ]\n\tif ( A.length == 0 || B.length == 0 || A[0].length != B.length ) {\n\t System.out.println( \"Matrix Mult Error, Invalid Input Matricies\" );\n\t return new double[1][1];\n\t}\n\tint Rows = A.length , Cols = B[0].length;\n\tdouble [][] M = new double[Rows][Cols];\n\tfor( int i = 0; i < Rows ; i++ ) {\n\t for( int j = 0; j < Cols ; j++ ) {\n\t\tM[i][j] = multRowByCol( A , B , i , j );\n\t }\n\t}\n\treturn M;\n }",
"public static double[][] matrixMultiplier(double[][] A, double[][] B) {\n\n if (A[0].length != B.length) {\n System.out.println(\"ERROR MATRIX DIMENSIONS INCORRECT! A: \" + Integer.toString(A[0].length) + \" B: \" + Integer.toString(B.length) + \"\\nSHUTTING DOWN PROGRAM\");\n System.exit(0);\n }\n\n double[][] C = new double[A.length][B[0].length];\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n C[i][j] = 0;\n }\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n for (int k = 0; k < A[0].length; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n }\n }\n return C;\n }",
"@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }",
"public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }",
"public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint[][] a = {{7,1,3}, {5,6,8}, {4,2,5}};\n\t\tint[][] b = {{7,10,2}, {3,5,1}, {6,2,4,}};\n\t\t\n\t\tif(a[0].length!=b.length) {\n\t\t\tSystem.out.println(\"Las matrices no pueden multiplicarse\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Las matrices pueden multiplicarse\");\n\t\t\tSystem.out.println(\"Quiere multiplicarlas? S/N\");\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString opcion=sc.nextLine();\n\t\t\tif(opcion.equalsIgnoreCase(\"S\")) {\n\t\t\t\tint[][] resultado = new int[a.length][b[0].length];\n\t\t\t\tfor(int i=0; i<a.length; i++) {\n\t\t\t\t\tfor(int j=0; j<b.length; j++) {\n\t\t\t\t\t\tfor(int k=0; k<a[0].length; k++) {\n\t\t\t\t\t\t\tresultado[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsc.close();\n\t\t\t\t\n\t\t\t\tfor(int i=0; i<resultado.length; i++) {\n\t\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\t\tfor(int j=0; j<resultado.length; j++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(resultado[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Ejecución terminada. Muchas gracias\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t}",
"public static void parMatrixMultiply(final double[][] A, final double[][] B,\n final double[][] C, final int N) {\n forall2dChunked(0, N - 1, 0, N - 1, (i, j) -> {\n C[i][j] = 0.0;\n for (int k = 0; k < N; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n });\n }",
"public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}",
"Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }",
"private static void multiply(float[] a, float[] b, float[] destination) {\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static Matrix multiply(Matrix mat1, Matrix mat2) throws Exception {\n double[][] temp = new double[mat1.rows][mat2.cols];\n try {\n if(mat1.cols == mat2.rows){\n for(int col = 0; col < mat2.cols; col++) {\n for (int row = 0; row < mat1.rows; row++) {\n for (int rowin = 0; rowin < mat2.rows; rowin++) {\n for (int colin = 0; colin < mat1.cols; colin++) {\n temp[row][col] += mat1.arr[row][colin] * mat2.arr[rowin][col];\n }\n }\n }\n }\n }\n\n }catch (Exception e){\n e.printStackTrace();\n throw new Exception(\"Matrices are the wrong size: \" +\n mat1 +\n \" and \" +\n mat2 +\n \" and temp \" +\n Arrays.toString(temp));\n }\n return new Matrix(mat1.rows, mat2.cols, temp);\n }",
"public static double[][] multiply(double[][] a, double[][] b) {\n int m1 = a.length;\n int n1 = a[0].length;\n int m2 = b.length;\n int n2 = b[0].length;\n if (n1 != m2) throw new RuntimeException(\"Illegal matrix dimensions.\");\n double[][] c = new double[m1][n2];\n for (int i = 0; i < m1; i++)\n for (int j = 0; j < n2; j++)\n for (int k = 0; k < n1; k++)\n c[i][j] += a[i][k] * b[k][j];\n return c;\n }",
"public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}",
"public int[][] denseMatrixMult(int[][] A, int[][] B, int size)\n {\n\t int[][] matrix = initMatrix(size);\n\t \n\t // base case\n\t // Just multiply the two numbers in the matrix.\n\t if (size==1) {\n\t\t matrix[0][0] = A[0][0]*B[0][0];\n\t\t return matrix;\n\t }\n\t \n\t // If the base case is not satisfied, we must do strassens. \n\t // Get M0-M6\n\t //a00: x1 = 0, y1 = 0\n\t //a01: x1 = 0; y1 = size/2\n\t //a10: x1 = size/2, y1 = 0\n\t //a11: x1 = size/2,. y1 = size/2\n\t \n\t // (a00+a11)*(b00+b11)\n\t int[][] m0 = denseMatrixMult(sum(A,A,0,0,size/2,size/2,size/2), sum(B,B, 0,0,size/2,size/2,size/2), size/2);\n\t // (a10+a11)*(B00)\n\t int[][] m1 = denseMatrixMult(sum(A,A,size/2,0,size/2,size/2,size/2), sum(B, initMatrix(size/2), 0,0,0,0,size/2), size/2);\n\t //a00*(b01-b11)\n\t int[][] m2 = denseMatrixMult(sum(A, initMatrix(size/2), 0,0,0,0,size/2), sub(B, B, 0, size/2, size/2, size/2, size/2), size/2);\n\t //a11*(b10-b00)\n\t int[][] m3 = denseMatrixMult(sum(A,initMatrix(size/2), size/2, size/2, 0,0,size/2), sub(B,B,size/2,0,0,0,size/2), size/2);\n\t //(a00+a01)*b11\n\t int[][] m4 = denseMatrixMult(sum(A,A,0,0,0,size/2,size/2), sum(B, initMatrix(size/2), size/2, size/2,0,0,size/2), size/2);\n\t //(a10-a00)*(b00+b01)\n\t int[][] m5 = denseMatrixMult(sub(A,A,size/2,0,0,0,size/2), sum(B,B,0,0,0,size/2,size/2), size/2);\n\t //(a01-a11)*(b10-b11)\n\t int[][] m6 = denseMatrixMult(sub(A,A,0,size/2,size/2,size/2,size/2), sum(B,B,size/2,0,size/2,size/2,size/2), size/2);\n\t \n\t // Now that we have these, we can get C00 to C11\n\t // m0+m3 + (m6-m4)\n\t int[][] c00 = sum(sum(m0,m3,0,0,0,0,size/2), sub(m6,m4,0,0,0,0,size/2), 0,0,0,0, size/2);\n\t // m2 + m4\n\t int[][] c01 = sum(m2,m4,0,0,0,0,size/2);\n\t // m1 + m3\n\t int[][] c10 = sum(m1,m3,0,0,0,0,size/2);\n\t // m0-m1 + m2 + m5\n\t int[][] c11 = sum(sub(m0,m1,0,0,0,0,size/2), sum(m2,m5,0,0,0,0,size/2), 0,0,0,0,size/2);\n\t \n\t // Load the results into the return array.\n\t // We are \"stitching\" the four subarrays together. \n\t for (int i = 0; i< size; i++) {\n\t\t for (int j = 0; j<size; j++) {\n\t\t\t if (i<size/2) {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c00[i][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c01[i][j-size/2];\n\t\t\t\t }\n\t\t\t } else {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c10[i-size/2][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c11[i-size/2][j-size/2];\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t // return the matrix we made.\n\t return matrix;\n }",
"public static Matrix3D times(Matrix3D A, Matrix3D B) {\n Matrix3D C = new Matrix3D();\n for (int i=0 ; i<=2 ; i++) { // loop over each row of A\n for (int j=0 ; j<=2 ; j++) { // loop over each column of B\n // Calculate the dot product of the ith row of A with the jth column of B:\n double v = 0;\n for (int k=0 ; k<=2 ; k++) { // loop over each item in the row/column\n v += A.d[i][k] * B.d[k][j];\n }\n C.set(i,j,v);\n }\n }\n return C;\n }",
"private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }",
"public static @NotNull Matrix mult(@NotNull Matrix matrA, @NotNull Matrix matrB) {\n final int compatibleValue = matrA.getColumnCount();\n if (compatibleValue != matrB.getRowCount()) {\n throw new IllegalArgumentException(\n \"Error @ MatrixMultiplication.mult() :: incompatible matrix matrA.columns != matrB.rows\");\n }\n\n final int rowCount = matrA.getRowCount();\n final int colCount = matrB.getColumnCount();\n final Matrix.Builder result = new Matrix.Builder(rowCount, colCount);\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n int val = 0;\n for (int k = 0; k < compatibleValue; k++) {\n val += matrA.get(i, k) * matrB.get(k, j);\n }\n result.set(i, j, val);\n }\n }\n\n return result.build();\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public static void main(String[] args)\n{\n if (args.length != 1) {\n System.out.println(\"This program computes the product of n x n matrix with itself\");\n System.out.println(\"Usage: ./matrix_multiply n\" );\n System.exit(-1);\n }\n // parse intput matrix size\n int n =0 ;\n try {\n n = Integer.parseInt(args[0]);\n } catch (Exception e) {\n System.out.println(\"Passed n \\'\" + args[0] + \"\\' is not an integer!\");\n System.exit(-1);\n }\n\n // dynamically allocate space for matrix_A (intput matrix) int 1d array\n int[] matrix_A = new int[n*n];\n // dynamically allocate space for matrix_B (output matrix) int 1d array\n int[] matrix_B = new int[n*n];\n\n // call function to read data from file and copy into matrix_A\n generateArray(matrix_A, n, n);\n\n // call function to perform matrix multiplication ( matrix_B = matrix_A * matrix_A )\n matrixMultiply(matrix_A, n, n, matrix_A, n, n, matrix_B);\n\n // call function to write results (matrix_B) to stdout\n printReduce(matrix_B, n, n);\n\n}",
"public static BigFraction[][] multiply(BigFraction[][] A, BigFraction[][] B) {\n int mA = A.length;\n int nA = A[0].length;\n int mB = B.length;\n int nB = B[0].length;\n if (nA != mB) throw new RuntimeException(\"Illegal matrix dimensions.\");\n BigFraction[][] C = new BigFraction[mA][nB];\n for (int i = 0; i < mA; i++)\n for (int j = 0; j < nB; j++)\n for (int k = 0; k < nA; k++)\n C[i][j] = (A[i][k].multiply(B[k][j]));\n return C;\n }",
"public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}",
"public Matrix times(Matrix B) throws JPARSECException {\n if (B.m != n) {\n throw new JPARSECException(\"Matrix inner dimensions must agree.\");\n }\n Matrix X = new Matrix(m,B.n);\n double[][] C = X.getArray();\n double[] Bcolj = new double[n];\n for (int j = 0; j < B.n; j++) {\n for (int k = 0; k < n; k++) {\n Bcolj[k] = B.data[k][j];\n }\n for (int i = 0; i < m; i++) {\n double[] Arowi = data[i];\n double s = 0;\n for (int k = 0; k < n; k++) {\n s += Arowi[k]*Bcolj[k];\n }\n C[i][j] = s;\n }\n }\n return X;\n }",
"public static long[][] multiply(long F[][], long M[][]){\n long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; \n long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; \n long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; \n long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; \n\n return new long[][]{{x,y},{z,w}};\n }",
"public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.n != B.m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.m, B.n);\n for (int i = 0; i < C.m; i++)\n for (int j = 0; j < C.n; j++)\n for (int k = 0; k < A.n; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.N != B.M) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.M, B.N);\n for (int i = 0; i < C.M; i++)\n for (int j = 0; j < C.N; j++)\n for (int k = 0; k < A.N; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }",
"public static int[][] multiply(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n int[] tempRow = new int[x.length];\n int[] tempCol = new int[x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n //make 2 array then multiple respective number and add them up\n for (int k = 0; k < x.length; k++) {\n tempRow[k] = x[i][k];\n }\n for (int k = 0; k < x.length; k++) {\n tempCol[k] = y[k][j];\n }\n for (int k = 0; k < x.length; k++) {\n result[i][j] += tempRow[k]*tempCol[k];\n }\n }\n }\n return result;\n }",
"public static Polynomial multiplicationParallelizedForm(Polynomial p1, Polynomial p2, int nrOfThreads) throws\n InterruptedException {\n int sizeOfResultCoefficientList = p1.getDegree() + p2.getDegree() + 1;\n List<Integer> coefficients = IntStream.of(new int[sizeOfResultCoefficientList]).boxed().collect(Collectors\n .toList());\n Polynomial result = new Polynomial(coefficients);\n\n //calculate the coefficients\n\n ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(nrOfThreads);\n int step = result.getLength() / nrOfThreads;\n if (step == 0) {\n step = 1;\n }\n int end;\n for (int i = 0; i < result.getLength(); i += step) {\n end = i + step;\n MultiplicationTask task = new MultiplicationTask(i, end, p1, p2, result);\n executor.execute(task);\n }\n\n executor.shutdown();\n executor.awaitTermination(50, TimeUnit.SECONDS);\n\n return result;\n }",
"private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}",
"public static void main(String[] args) {\n\r\n\t\tMatrices1 matrix = new Matrices1(10, 3);\r\n\t\tMatrices1 matrix2 = new Matrices1(3, 1);\r\n\t\t\r\n\r\n\t\tmatrix.initialize(matrix.array);\r\n\t\tmatrix2.initialize(matrix2.array);\r\n\t\t\r\n\t\tdouble [][]output=Matrices1.matrixProduct(matrix.array, matrix2.array, matrix.row1, matrix2.column1, matrix.column1);\r\n\t\tfor (int i = 0; i < matrix.row1; i++) {\r\n\t\t\tfor (int j = 0; j < matrix2.column1; j++) {\r\n\t\t\t\tSystem.out.println(output[i][j]);\r\n\t\t\t}//end of forloop\r\n\t\t}//end of forloop\r\n\t}",
"public static TransformMatrix multiplyMatrix(TransformMatrix a, TransformMatrix b) {\n\t\treturn new TransformMatrix(\n\t\t\t\ta.a * b.a,\n\t\t\t\ta.b * b.b,\n\t\t\t\ta.a * b.c + a.c,\n\t\t\t\ta.b * b.d + a.d\n\t\t\t\t);\n\t}",
"public void MatrixChainMultiply(int[] p) {\n n = p.length - 1;\t// how many matrices are in the chain\n m = new int[n + 1][n + 1];\t// overallocate m, so that we don't use index 0\n s = new int[n + 1][n + 1];\t// same for s\n matrixChainOrder(p);\t// run the dynamic-programming algorithm\n }",
"public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public Matriz punto(Matriz B) {\n\t\tMatriz A = this;\n\t\tif (A.getColumnas() != B.getFilas()) { throw new RuntimeException(\"Dimensiones no compatibles.\"); }\n\t\t\n\t\tMatriz C = new Matriz(A.getFilas(), B.getColumnas());\n\t\tfor (int i = 0 ; i < C.getFilas() ; i++) {\n\t\t\tfor (int j = 0 ; j < C.getColumnas() ; j++) {\n\t\t\t\tfor (int k = 0 ; k < A.getColumnas() ; k++) {\n\t\t\t\t\tC.setValor(i, j, C.getValor(i, j) + (A.getValor(i, k) * B.getValor(k, j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}",
"@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}",
"public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }",
"public static void main(String[] args) {\n int cols1, cols2, rows1, rows2, num_usu1, num_usu2;\r\n \r\n try{\r\n \r\n cols1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a primeira matriz:\"));\r\n rows1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a primeira matriz:\"));\r\n cols2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a segunda matriz:\"));\r\n rows2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a segunda matriz:\"));\r\n \r\n int[][] matriz1 = MatrixInt.newRandomMatrix(cols1, rows1);\r\n int[][] matriz2 = MatrixInt.newSequentialMatrix(cols2, rows2);\r\n \r\n System.out.println(\"Primeira matriz:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Segunda matriz:\");\r\n MatrixInt.imprimir(matriz2);\r\n System.out.println(\" \");\r\n \r\n MatrixInt.revert(matriz2);\r\n \r\n System.out.println(\"Matriz sequancial invertida:\");\r\n MatrixInt.imprimir(matriz2);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n \r\n num_usu1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero qualquer:\"));\r\n \r\n for1: for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 == matriz1[i][j]){\r\n System.out.println(\"O numero '\"+num_usu1+\"' foi encontardo na posição:\" + i);\r\n break for1;\r\n }else if(j == (matriz1[i].length - 1) && i == (matriz1.length - 1)){\r\n System.out.println(\"Não foi encontrado o numero '\"+num_usu1+\"' no vetor aleatorio.\");\r\n break for1;\r\n } \r\n }\r\n }\r\n \r\n String menores = \"\", maiores = \"\";\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 > matriz1[i][j]){\r\n menores = menores + matriz1[i][j] + \", \";\r\n }else if(num_usu1 < matriz1[i][j]){\r\n maiores = maiores + matriz1[i][j] + \", \";\r\n }\r\n }\r\n }\r\n System.out.println(\" \");\r\n System.out.print(\"Numeros menores que '\"+num_usu1+\"' :\");\r\n System.out.println(menores);\r\n System.out.print(\"Numeros maiores que '\"+num_usu1+\"' :\");\r\n System.out.println(maiores);\r\n \r\n num_usu2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero que exista na matriz aleatoria:\"));\r\n \r\n int trocas = MatrixInt.replace(matriz1, num_usu2, num_usu1);\r\n \r\n if (trocas == 0) {\r\n System.out.println(\" \");\r\n System.out.println(\"Não foi realizada nenhuma troca de valores.\");\r\n }else{\r\n System.out.println(\" \");\r\n System.out.println(\"O numero de trocas realizadas foi: \"+trocas);\r\n }\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n \r\n int soma_total = 0;\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n soma_total += matriz1[i][j];\r\n }\r\n \r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"A soma dos numeros da matriz foi: \" + soma_total);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria\");\r\n Exercicio2.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz sequencial\");\r\n Exercicio2.imprimir2(matriz2);\r\n \r\n }catch(Exception e){\r\n System.out.println(e);\r\n }\r\n \r\n \r\n \r\n }",
"public static double[][] multiplyMatrixes( double[][] m1, double[][] m2 ) {\n double[][] result = new double[3][3];\n multiplyMatrixes( m1, m2, result );\n return result;\n }",
"public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}",
"public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }",
"public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"public void UT_times_D_ThreadI() throws Exception {\n\t\t// U: Term * topic\n\t\t// D: Term * doc\n\t\t// Phi: topic * doc\n\t\tfor (int iTermID = 0; iTermID < U.m_NumRow; iTermID++) // the id for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// join and\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dimishing\n\t\t{\n\t\t\tif (iTermID % iMaxThreads != iThreadID)\n\t\t\t\tcontinue;\n\n\t\t\tLinkedList<KeyValuePair> lstTopicIDTopicValueForOneTerm = U\n\t\t\t\t\t.GetRow(iTermID);\n\t\t\tDocID_TFIDF[] lstDocIDTfidfValueForOneTerm = D.GetRow(iTermID);\n\n\t\t\tfor (KeyValuePair topic : lstTopicIDTopicValueForOneTerm) {\n\t\t\t\tint topicid = topic.key;\n\t\t\t\tfloat topicValue = topic.value;\n\t\t\t\tsynchronized (Phi.p_MatrixData[topicid]) // lock the specific\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// topicid\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < lstDocIDTfidfValueForOneTerm.length; j++) {\n\t\t\t\t\t\tPhi.SetValue(\n\t\t\t\t\t\t\t\ttopicid,\n\t\t\t\t\t\t\t\tlstDocIDTfidfValueForOneTerm[j].getDocID(),\n\t\t\t\t\t\t\t\tPhi.GetValue(topicid,\n\t\t\t\t\t\t\t\t\t\tlstDocIDTfidfValueForOneTerm[j]\n\t\t\t\t\t\t\t\t\t\t\t\t.getDocID())\n\t\t\t\t\t\t\t\t\t\t+ topicValue\n\t\t\t\t\t\t\t\t\t\t* lstDocIDTfidfValueForOneTerm[j]\n\t\t\t\t\t\t\t\t\t\t\t\t.getTFIDF());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public Row3 smultiply(int i){\n\t\tRow3 tempRec = this.mat; //creates a temporary duplicate of the global record\n\t\tlong[][] tempMatA = new long[3][3]; //creates the matrix A as a 2D array\n\t\ttempMatA[0][0] = tempRec.r1.col1;\n\t\ttempMatA[0][1] = tempRec.r1.col2;\n\t\ttempMatA[0][2] = tempRec.r1.col3;\n\t\ttempMatA[1][0] = tempRec.r2.col1;\n\t\ttempMatA[1][1] = tempRec.r2.col2;\n\t\ttempMatA[1][2] = tempRec.r2.col3;\n\t\ttempMatA[2][0] = tempRec.r3.col1;\n\t\ttempMatA[2][1] = tempRec.r3.col2;\n\t\ttempMatA[2][2] = tempRec.r3.col3;\n\t\t\n\t\tlong[][] tempMat2 = new long[3][3]; //creates a 2D array of the same size as A\n\t\tlong[][] outMat = new long[3][3];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//after matrix multiplication is performed, the respective elements of the 2D array tempMatA are stored in\n\t\t//the temporary register tempRec2, which is then returned\n\t\tcolRow3 a1 = new colRow3(outMat[0][0], outMat[0][1], outMat[0][2]);\n\t\tcolRow3 b1 = new colRow3(outMat[1][0], outMat[1][1], outMat[1][2]);\n\t\tcolRow3 c1 = new colRow3(outMat[2][0], outMat[2][1], outMat[2][2]);\n\t\tRow3 tempRec2 = new Row3(a1, b1, c1);\n\t\treturn tempRec2;\n\t}",
"public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}",
"public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }",
"public static void changeArrayRows() {\r\n\t\tchar[][] data = initializeArray();\r\n\t\tThread t[] = new Thread[4];\r\n\t\tlong time1 = System.nanoTime();\r\n\t\t\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tt[i] = new ThreadRow(data, (i * data.length/4), (i+1) * data.length/4);\r\n\t\t\tt[i].start();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (Thread threads : t)\r\n\t\t\t\tthreads.join();\r\n\t\t}\r\n\t\tcatch (Exception e) { \r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tlong time2 = System.nanoTime();\r\n\t\t\r\n\t\tSystem.out.println((time2 - time1) + \" ns\");\r\n\t}",
"public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }",
"public Matrix arrayTimes(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j] * B.data[i][j];\n }\n }\n return X;\n }",
"private static void copyP(final float[][][] x, final float[][][] y) {\n final int n1 = x[0][0].length;\n final int n2 = x[0].length;\n final int n3 = x.length;\n Parallel.loop(n3,new Parallel.LoopInt() {\n public void compute(int i3) {\n copyS(x[i3],y[i3]);\n }\n });\n }",
"private int[][] matrixSum(int[][] a, int[][]b) {\n\t\tint row = a.length;\n\t\tint col = a[0].length;\n\t\t// creat a matrix array to store sum of a and b\n\t\tint[][] sum = new int[row][col];\n\t\t\n\t\t// Add elements at the same position in a matrix array\n\t\tfor (int r = 0; r < row; r++) {\n\t\t\tfor (int c = 0; c < col; c++) {\n\t\t\t\tsum[r][c] = a[r][c] + b[r][c]; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }",
"private static void directProd(DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj c) {\n for (int i=0; i<5; ++i) {\n for (int j=0; j<5; ++j) {\n c.unsafe_set(i, j, a.unsafe_get(i, 0)*b.unsafe_get(j, 0));\n }\n }\n }",
"@SuppressWarnings(\"UnnecessaryLocalVariable\")//Readability\n public Matrix multiply(Matrix b, BigInteger modulo) {\n if (nrOfCols != b.nrOfRows) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be multiplied with matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n Matrix a = this;\n\n int m = a.nrOfRows;\n int p = b.nrOfCols;\n\n final BigInteger[][] result = new BigInteger[m][p];\n\n //Compute the resulting row, using a parallel stream to properly utilize multi-core CPU\n IntStream range = IntStream.range(0, m);\n if (concurrent) {\n range = range.parallel();\n }\n range.forEach(computeRowMultiplication(result, a, b, modulo));\n\n return new Matrix(result);\n }",
"public Matrix arrayTimesEquals(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = data[i][j] * B.data[i][j];\n }\n }\n return this;\n }",
"public void multiplyOtherMatrixToEnd(Matrix other){\n Matrix output = Matrix(other.rows, columns);\n for (int a = 0; a < other.rows; a++)\n {\n for (int b = 0; b < columns; b++)\n {\n for (int k = 0; k < other.columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public static void main(String[] args) throws InterruptedException{\n\n Thread thread1 = new Thread(new Runnable() {\n @Override\n public void run() {\n a = 10;\n x = b;\n }\n });\n\n Thread thread2 = new Thread(new Runnable() {\n @Override\n public void run() {\n b = 10;\n y = a;\n }\n });\n\n thread1.start();\n thread2.start();\n thread1.join();\n thread2.join();\n\n //x、y的值不唯一,指令重拍一般不会导致数据不安全、不唯一,但是读后写、写后写、写后读数据相关的指令重拍(了解一下)会导致的数据不唯一的问题,即操作系统的读后写、写后写、写后读数据相关导致的数据不一致问题\n System.out.println(\"x = \"+x+\"\\n\"+\"y = \"+y+\"\\nx + y = \"+(x+y));\n }",
"private static int[][] sparseMatrixMultiplyBestCase(int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int k = 0; k < A[0].length; k++) {\n if(A[i][k] != 0) {\n for(int j = 0; j < result[0].length; j++) {\n result[i][j] += A[i][k] * B[k][j];\n }\n }\n }\n }\n return result;\n }",
"public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}",
"public MatrixForThreads threadLongAdderAction(String arraysPath, int arraysNumber,\n\t String threadsPath, int threadsNumber) throws ServiceException {\n\n\tLOG.info(\"start threadLongAdderAction\");\n\n\t// check incoming data\n\tcheckThreadsArraysNumbers(threadsNumber, arraysNumber);\n\n\tfinal int numberOfCycles;\n\tInitiateMatrixImpl initiateMatrix = InitiateMatrixImpl.getInstance();\n\tInitiateThreadLongAdder initiateThreadsLongAdder = InitiateThreadLongAdder.getInstance();\n\n\t// get matrix\n\tMatrixForThreads matrix = initiateMatrix.takeMatrixFromFile(arraysPath, arraysNumber);\n\n\t// calculate number of cycles\n\tnumberOfCycles = (int) Math\n\t\t.ceil((double) matrix.getMatrixLength() / (double) threadsNumber);\n//\tLOG.debug(\"calculate numberOfCycles \" + numberOfCycles + \" matrixLength \"\n//\t\t+ matrix.getMatrixLength() + \" threadsNumber \" + threadsNumber);\n\n\t// get ThreadLongAdder\n\tList<ThreadLongAdder> threadsLongAdder = initiateThreadsLongAdder\n\t\t.takeThreadsFromFile(threadsPath, threadsNumber, matrix);\n\n\t// set ThreadLongAdder and numberOfCycles, for ThreadsLongAdder\n\t// WARNING - MUST SET static int numberOfOperations as -1;\n\tsetBarrierAndNumberOfCycles(threadsLongAdder, threadsNumber, numberOfCycles);\n\n\t// get threads\n\tList<Thread> threads = createThreads(threadsLongAdder);\n\n\t// start all threads\n\tfor (int i = 0; i < threads.size(); i++) {\n\t Thread tmp;\n\t tmp = threads.get(i);\n\t tmp.start();\n\t}\n//\n\t// join all threads with main thread\n\tfor (int i = 0; i < threads.size(); i++) {\n\t try {\n\t\tthreads.get(i).join();\n\t } catch (InterruptedException e) {\n\t\te.printStackTrace();\n\t }\n\t}\n\tLOG.info(\"end threadCyclicBarrierAction\");\n\n\treturn matrix;\n }",
"public static void main(String[] args) throws InterruptedException {\n Runnable r1 = new Runnable() {\n @Override public void run() {\n try {\n Thread.sleep( 600);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println( \"A1 \" + Thread.currentThread() );\n System.out.println( \"A2 \" + Thread.currentThread() );\n }\n };\n\n Runnable r2 = new Runnable() {\n @Override public void run() {\n try {\n Thread.sleep(600);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println( \"B1 \" + Thread.currentThread() );\n System.out.println( \"B2 \" + Thread.currentThread() );\n }\n };\n\n ExecutorService executor = Executors.newCachedThreadPool();\n\n executor.submit( r1 );\n executor.submit( r2 );\n\n System.out.println(\"Pause beginnt ...\");\n Thread.sleep( 5000 );\n System.out.println(\"Pause beendet ...\");\n\n executor.execute( r1 );\n executor.execute( r2 );\n\n executor.shutdown();\n }",
"private static AffineTransform3D MatrixMult(AffineTransform3D matLeft,\r\n\t\t\tAffineTransform3D matRight) {\r\n\r\n\t\tAffineTransform3D m = new AffineTransform3D();\r\n\t\tm.M11 = (matRight.M11 * matLeft.M11) + (matRight.M21 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M13) + (matRight.M41 * matLeft.M14);\r\n\t\tm.M12 = (matRight.M12 * matLeft.M11) + (matRight.M22 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M13) + (matRight.M42 * matLeft.M14);\r\n\t\tm.M13 = (matRight.M13 * matLeft.M11) + (matRight.M23 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M13) + (matRight.M43 * matLeft.M14);\r\n\t\tm.M14 = (matRight.M14 * matLeft.M11) + (matRight.M24 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M13) + (matRight.M44 * matLeft.M14);\r\n\t\tm.M21 = (matRight.M11 * matLeft.M21) + (matRight.M21 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M23) + (matRight.M41 * matLeft.M24);\r\n\t\tm.M22 = (matRight.M12 * matLeft.M21) + (matRight.M22 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M23) + (matRight.M42 * matLeft.M24);\r\n\t\tm.M23 = (matRight.M13 * matLeft.M21) + (matRight.M23 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M23) + (matRight.M43 * matLeft.M24);\r\n\t\tm.M24 = (matRight.M14 * matLeft.M21) + (matRight.M24 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M23) + (matRight.M44 * matLeft.M24);\r\n\t\tm.M31 = (matRight.M11 * matLeft.M31) + (matRight.M21 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M33) + (matRight.M41 * matLeft.M34);\r\n\t\tm.M32 = (matRight.M12 * matLeft.M31) + (matRight.M22 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M33) + (matRight.M42 * matLeft.M34);\r\n\t\tm.M33 = (matRight.M13 * matLeft.M31) + (matRight.M23 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M33) + (matRight.M43 * matLeft.M34);\r\n\t\tm.M34 = (matRight.M14 * matLeft.M31) + (matRight.M24 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M33) + (matRight.M44 * matLeft.M34);\r\n\t\tm.M41 = (matRight.M11 * matLeft.M41) + (matRight.M21 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M43) + (matRight.M41 * matLeft.M44);\r\n\t\tm.M42 = (matRight.M12 * matLeft.M41) + (matRight.M22 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M43) + (matRight.M42 * matLeft.M44);\r\n\t\tm.M43 = (matRight.M13 * matLeft.M41) + (matRight.M23 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M43) + (matRight.M43 * matLeft.M44);\r\n\t\tm.M44 = (matRight.M14 * matLeft.M41) + (matRight.M24 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M43) + (matRight.M44 * matLeft.M44);\r\n\r\n\t\treturn m;\r\n\t}",
"private static void copyP(final float[][] x, final float[][] y) {\n final int n1 = x[0].length;\n final int n2 = x.length;\n Parallel.loop(n2,new Parallel.LoopInt() {\n public void compute(int i2) {\n for (int i1 = 0; i1<n1; ++i1) \n y[i2][i1] = x[i2][i1];\n }\n });\n }",
"public static void main(String[] args) {\n int mat1[][]=new int[3][3];\n int mat2[][]=new int[3][3];\n int ans[][]=new int[3][3];\n Scanner sc=new Scanner(System.in);\n \n //input values\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.println(\"Enter mat1[\"+i+\"][\"+j+\"] : \");\n \t\t mat1[i][j]= sc.nextInt();\n \t }\n }\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.println(\"Enter mat2[\"+i+\"][\"+j+\"] : \");\n \t\t mat2[i][j]= sc.nextInt();\n \t }\n }\n \n System.out.println(\"Matrix 1 is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(mat1[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n \n System.out.println(\"\\nMatrix 2 is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(mat2[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n \n //Multiplication\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\tans[i][j]=0;\n \t\tfor(int k=0;k<3;k++) {\n \t\t\tans[i][j]+=mat1[i][k]*mat2[k][j];\n \t\t}\n \t }\n }\n \n System.out.println(\"\\nMatrix Multiplication is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(ans[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n sc.close();\n\t}",
"public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"@Test\n public void testB1() throws InterruptedException {\n\n System.out.println();\n System.out.println(\"Test B1\");\n System.out.println();\n\n // Zeitmessung starten\n c.tick();\n\n // 2 Wissenschaftlerthreads erzeugen und starten\n final Thread[] startAll = m.startAll(2, 1, 500, 500, 0, AlgorithmType.B, null);\n\n Assert.assertEquals(\"Es wurden nicht alle Threads erzeugt\", 2, startAll.length);\n\n // Warten bis sich alle 2 Wissenschaftlerthreads beenden\n for (Thread t : startAll) {\n t.join();\n System.out.println(\"Joined: \" + t.getName());\n }\n\n // Zeit nochmals messen\n c.tick();\n\n // Timing sicherstellen (mit Toleranz durch assertTiming-Methode)\n assertTiming(1500);\n }",
"public Matrix times(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n\r\n \tif(this.ncol!=nr)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, nc);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }",
"public static void main(String[] args) {\n MPI.Init(args);\n CollectiveMultiplication(args, false, 2500);\n MPI.Finalize();\n// int[] matrixSizes = {200, 400, 600, 800, 1000};\n// double[] serialResults = new double[matrixSizes.length];\n// for (int i=0; i<matrixSizes.length; i++){\n// ArrayList<Double> results = new ArrayList<>();\n// for (int j=0; j<4; j++){\n// results.add(serial(matrixSizes[i]));\n// }\n// serialResults[i] = results.stream().mapToDouble(a -> a).sum() / results.size();\n// } \n// for (double result: serialResults)\n// System.out.println(result);\n }",
"Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }",
"@Override\n public void execute() {\n for (LinearEquation e : m) {\n ComplexNumber temp = new ComplexNumber(e.getCoefficient(a));\n e.setCoefficient(a, e.getCoefficient(b));\n e.setCoefficient(b, temp);\n }\n }",
"public ParallelMatrix(int me,int n,int p,int m1[][] ,int m2[][],int res[][]) {\r\n B = n/p;\r\n this.me = me ;\r\n matrix1 = m1;\r\n matrix2 = m2;\r\n N = n;\r\n matrix = res;//new int[N][N];\r\n }",
"public static double [][] iteration (double X01, double X02){\n\t\tdouble [][] x=new double[10][2];\n\t\t\n\t\tfor (int i=0; i<x.length; i++){\n\t\t\tx[i][0]= (A[0][0]*X01 + A[0][1]*X02)+B[0];\n\t\t\tX01=x[i][0];\t\t\t\n\n\t\t\tx[i][1]= (A[1][0]*X01 + A[1][1]*X02)+B[1];\n\t\t\tX02=x[i][1];\n\t\t}\n\t\treturn x;\n\t}",
"public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public static float[] multiply(float[] a, float[] b) {\n float[] tmp = new float[16];\n glMultMatrixf(FloatBuffer.wrap(a), FloatBuffer.wrap(b), FloatBuffer.wrap(tmp));\n return tmp;\n }",
"public void runParallel() {\n Thread[] threads = new Thread[parallelCount];\n for (int i = 1; i < parallelCount; i++) {\n final int finalI = i;\n Runnable runnable = new Runnable() {\n public void run() {\n runRepeat(finalI);\n }\n };\n threads[i] = new Thread(runnable, \"JAM-\" + i);\n System.out.println(\"Starting thread: \" + threads[i].getName());\n threads[i].start();\n }\n runRepeat(0);\n }",
"public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }",
"@Test\n\tpublic void testMultiply() {\n\t\tdouble epsilon = 0.0000000001;\n\n\t\tdouble[][] values2 = {{1.1, 1.2, 1.3}, {2.1, 2.2, 2.3}};\n\t\tMatrix m2 = new Matrix(values2);\n\n\t\tdouble[][] expectedValues = {{3.73, 3.96, 4.19}, {9.67, 10.24, 10.81}, {-2.07, -2.24, -2.41}};\n\t\tMatrix expected = new Matrix(expectedValues);\n\n\t\tMatrix product = m1.multiply(m2);\n\n\t\tassertEquals(3, product.getRowCount(), \"Product have unexpected number of rows.\");\n\t\tassertEquals(3, product.getColCount(), \"Product have unexpected number of columns.\");\n\n\t\tfor (int i = 0; i < product.getRowCount(); i++) {\n\t\t\tfor (int j = 0; j < product.getColCount(); j++) {\n\t\t\t\tassertTrue(Math.abs(product.get(i, j) - expected.get(i, j)) < epsilon,\n\t\t\t\t\t\"Unexpected value on row \" + i + \" column \" + j + \".\");\n\t\t\t}\n\t\t}\n\t}",
"private static double[] matrixMultiply(double[][] bezier, double[] matrixVars) {\r\n\t\tdouble[] result = {0,0,0,0};\r\n\t\tfor (int i = 0; i < bezier.length; i++) {\r\n\t\t\tfor (int j=0; j < matrixVars.length; j++) {\r\n\t\t\t\tresult[i] += bezier[i][j]*matrixVars[j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n }",
"private void performMT() {\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int i, j, k, m;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n final int xdim = newDimLengths[0];\r\n final int ydim = newDimLengths[1];\r\n final int zdim = (newDimLengths.length == 3) ? newDimLengths[2] : 1;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n fireProgressStateChanged( -1, null, \"Centering data before FFT algorithm ...\");\r\n center(realData, imagData);\r\n }\r\n\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n\r\n //System.out.println(\"Number of Threads: \" + nthreads);\r\n if (threadStopped) {\r\n return;\r\n }\r\n /**\r\n * Initialize the progress step.\r\n */\r\n if (image25D) {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim) / Math.log(2.0))));\r\n } else {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim * zdim) / Math.log(2.0))));\r\n }\r\n\r\n final CountDownLatch doneSignalX = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_YZ);\r\n for (i = 0; i < nthreads; i++) {\r\n \tfinal int nslices;\r\n \tif (zdim < nthreads) {\r\n \t if (i < zdim) {\r\n \t\t nslices = 1;\r\n \t }\r\n \t else {\r\n \t\t nslices = 0;\r\n \t }\r\n \t}\r\n \telse {\r\n nslices = zdim / nthreads;\r\n \t} \r\n final int sliceLen = xdim * ydim;\r\n final int start = i * nslices * sliceLen;\r\n final int end = start + 1;\r\n final int length = (i + 1) * nslices * sliceLen;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, 1, xdim, length, dir);\r\n doneSignalX.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalX.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n final CountDownLatch doneSignalY = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_ZX);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices;\r\n final int end = (i + 1) * nslices;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim, xdim * ydim, xdim * ydim * zdim, dir);\r\n doneSignalY.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalY.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (dimNumber == 3) {\r\n final CountDownLatch doneSignalZ = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_XY);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices * xdim;\r\n final int end = (i + 1) * nslices * xdim;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim * ydim, xdim * ydim * zdim, xdim * ydim * zdim, dir);\r\n doneSignalZ.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalZ.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n fireProgressStateChanged( -1, null, \"Centering data after inverse FFT ...\");\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n \r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t\trealData[i] = realData[i] / newSliceSize;\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n\r\n }",
"public static double[] multiply(double[] x, double[][] a) {\n int m = a.length;\n int n = a[0].length;\n if (x.length != m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n double[] y = new double[n];\n for (int j = 0; j < n; j++)\n for (int i = 0; i < m; i++)\n y[j] += a[i][j] * x[i];\n return y;\n }",
"public static double[] multiply(double[] x, double[][] a) {\n int m = a.length;\n int n = a[0].length;\n if (x.length != m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n double[] y = new double[n];\n for (int j = 0; j < n; j++)\n for (int i = 0; i < m; i++)\n y[j] += a[i][j] * x[i];\n return y;\n }",
"protected MatrixToken _multiply(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] A = _value;\n\t\tlong[] B = convertedArgument._getInternalLongArray();\n\t\tint m = _rowCount;\n\t\tint n = _columnCount;\n\t\tint p = convertedArgument.getColumnCount();\n\t\tlong[] newMatrix = new long[m * p];\n\t\tint in = 0;\n\t\tint ta = 0;\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tta += n;\n\n\t\t\tfor (int j = 0; j < p; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tint ib = j;\n\n\t\t\t\tfor (int ia = i * n; ia < ta; ia++, ib += p) {\n\t\t\t\t\tsum += (A[ia] * B[ib]);\n\t\t\t\t}\n\n\t\t\t\tnewMatrix[in++] = sum;\n\t\t\t}\n\t\t}\n\n\t\treturn new LongMatrixToken(newMatrix, m, p, DO_NOT_COPY);\n\t}",
"public void MatrixMultiplication(int[][] edges, int n){\n\t\t\n\t\tint[][] W = new int[n][n];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < n; ++j){\n\t\t\t\tif(i==j) W[i][j] = 0;\n\t\t\t\telse W[i][j] = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\t//init the array is null, means no paths between each node\n\t\t}\n\t\t\n\t\tint[][] pre = new int[n][n];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tArrays.fill(pre[i], -1);\n\t\t\tpre[i][i] = i;\n\t\t}\n\t\t\n\t\t//input the edges to the matrix\n\t\tfor(int[] edge: edges){\n\t\t\tW[edge[0]][edge[1]] = edge[2];\n\t\t\t//init predecessor graph\n\t\t\tpre[edge[0]][edge[1]] = edge[0];\n\t\t}\n\t\t\n\t\t//matrix multiply, at the first, L is the W\n\t\tint[][] L = W;\n\t\t\n\t\t//solution 1\n\t\tfor(int m = 1; m < n; ++m){\n\t\t\tL = extend_shortest_path(L, W, pre);\n\t\t\t//solution 2, improve time complexity\n\t\t\t//could use L = extend_shortest_path(L, L, pre); m=2*m \n\t\t\t//to help quickly get L, \n\t\t\t//however, using this method will get the wrong pre[][]\n\t\t}\n\t\t\n\t\t/*System.out.println(\"pre: \");\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < n; ++j){\n\t\t\t\tSystem.out.print(pre[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}*/\n\t\t\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < n; ++j){\n\t\t\t\tSystem.out.print(\"The shortest path from \" + i + \" to \" + j + \" is \" + L[i][j] + \" : \" );\n\t\t\t\tprint_path(pre, i, j);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}",
"public static double[][] elementWiseMultiply(double[] a, double[][] b){\n\n \tif(a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n\n\t\t\tdouble[][] res = new double[b.length][b[0].length];\n\n\t\t\tfor(int i = 0; i < b.length; i++) for(int j = 0; j < b[0].length; j++)\n\t\t\t\tres[i][j] = (a[i] * b[i][j]);\n\n\t\t\treturn res;\n\n }",
"public T mult( T B ) {\n convertType.specify(this, B);\n\n // Look to see if there is a special function for handling this case\n if (this.mat.getType() != B.getType()) {\n Method m = findAlternative(\"mult\", mat, B.mat, convertType.commonType.getClassType());\n if (m != null) {\n T ret = wrapMatrix(convertType.commonType.create(1, 1));\n invoke(m, this.mat, B.mat, ret.mat);\n return ret;\n }\n }\n\n // Otherwise convert into a common matrix type if necessary\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), B.getMatrix().getNumCols(), A.getType());\n\n A.ops.mult(A.mat, B.mat, ret.mat);\n\n return ret;\n }",
"public static void main(String[] args) {\n int[] miMatriz = new int[5];\n\n //Primera forma de agregar elementos a una matriz (agregar cada elemento en el indice indicado)\n miMatriz[0] = 1;\n miMatriz[1] = 2;\n miMatriz[2] = 3;\n miMatriz[3] = 4;\n miMatriz[4] = 5;\n\n /* Segunda forma de declarar una matriz\n Esta lo que hace es declarar la matriz e introducir los elementos \n en una sola línea\n */\n int[] miMatriz2 = {1, 2, 3, 4, 5};\n\n // Recorrer las matrices con un for normal\n for (int i = 0; i < miMatriz.length; i++) {\n System.out.println(\"Posicion matriz 1: \" + i + \" con un valor de \" + miMatriz[i]);\n }\n System.out.println();\n for (int i = 0; i < miMatriz2.length; i++) {\n System.out.println(\"Posicion matriz 2: \" + i + \" con un valor de \" + miMatriz2[i]);\n }\n }",
"public void\n\tcrossProduct( Vector3 A, Vector3 B )\n\t{\n\t\tdata[0] = ( A.data[1] * B.data[2] ) - ( A.data[2] * B.data[1] );\n\t\tdata[1] = ( A.data[2] * B.data[0] ) - ( A.data[0] * B.data[2] );\n\t\tdata[2] = ( A.data[0] * B.data[1] ) - ( A.data[1] * B.data[0] );\n\t}",
"void ompleBloc(int row, int col) {\r\n int num;\r\n for (int i = 0; i < SRN; i++) {\r\n for (int j = 0; j < SRN; j++) {\r\n do {\r\n num = generadorAleatoris(N);\r\n } while (!comprovaNumerosQuadrant(row, col, num));\r\n\r\n mat[row + i][col + j] = num;\r\n }\r\n }\r\n }",
"public static void changeArrayBlocks() {\r\n\t\tchar[][] data = initializeArray();\r\n\t\tThread t[] = new Thread[4];\r\n\t\tlong time1 = System.nanoTime();\r\n\r\n\t\tt[0] = new ThreadBlocks(data, 0, data.length/2, 0, data[0].length/2); // Upper Left \r\n\t\tt[1] = new ThreadBlocks(data, 0, data.length/2, data[0].length/2, data[0].length); // Upper Right\r\n\t\tt[2] = new ThreadBlocks(data, data.length/2, data.length, 0, data[0].length/2); // Lower Left\r\n\t\tt[3] = new ThreadBlocks(data, data.length/2, data.length, data[0].length/2, data[0].length); // Lower Right\r\n\t\t\r\n\t\tfor (Thread threads : t) {\r\n\t\t\tthreads.start();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (Thread threads : t)\r\n\t\t\t\tthreads.join();\r\n\t\t\t\r\n\t\t\tlong time2 = System.nanoTime();\r\n\t\t\t\r\n\t\t\tSystem.out.println((time2 - time1) + \" ns\");\r\n\t\t}\r\n\t\tcatch (Exception e) { \r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}"
]
| [
"0.67699707",
"0.670065",
"0.64082134",
"0.6243345",
"0.6216185",
"0.6152218",
"0.6145567",
"0.61159116",
"0.6086004",
"0.60592735",
"0.6050046",
"0.5981674",
"0.59687334",
"0.59482974",
"0.5867342",
"0.5819302",
"0.57926327",
"0.5745893",
"0.5734672",
"0.57046574",
"0.5699284",
"0.56911093",
"0.5665996",
"0.56480646",
"0.56462044",
"0.5645234",
"0.55716807",
"0.5562376",
"0.55614775",
"0.55383146",
"0.5506894",
"0.54784954",
"0.54571325",
"0.5456033",
"0.5439764",
"0.5425501",
"0.5407769",
"0.53792644",
"0.5363735",
"0.5349609",
"0.5346921",
"0.5337702",
"0.53261524",
"0.52822596",
"0.52718073",
"0.5268316",
"0.52496725",
"0.5236871",
"0.52150095",
"0.52135044",
"0.521105",
"0.5208079",
"0.51944",
"0.51785904",
"0.5177714",
"0.51693773",
"0.51623523",
"0.51564825",
"0.5135572",
"0.5118634",
"0.5109927",
"0.51089144",
"0.5107197",
"0.5100774",
"0.50990516",
"0.50979686",
"0.5091698",
"0.50855255",
"0.5070113",
"0.5055942",
"0.504929",
"0.50375956",
"0.49701652",
"0.4955942",
"0.4950704",
"0.49407288",
"0.4940473",
"0.4936284",
"0.49140334",
"0.49138466",
"0.49126542",
"0.4911033",
"0.49089554",
"0.49083626",
"0.4905072",
"0.49050674",
"0.49002135",
"0.48940235",
"0.4893548",
"0.48930198",
"0.48881838",
"0.48881838",
"0.4882839",
"0.48786488",
"0.48708692",
"0.48673013",
"0.48600635",
"0.48595598",
"0.48488697",
"0.4847446"
]
| 0.69199395 | 0 |
Created by king on 15511. | public interface WebConstants {
String SESSION_USER = "user";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"public final void mo51373a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"private void poetries() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() {\n\n \n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n void init() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void strin() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void skystonePos4() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"public void init() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}"
]
| [
"0.609022",
"0.6032336",
"0.60079885",
"0.59258634",
"0.5902028",
"0.5902028",
"0.586608",
"0.5824697",
"0.58137697",
"0.58073467",
"0.5797129",
"0.5797129",
"0.5797129",
"0.5797129",
"0.5797129",
"0.5786778",
"0.57804805",
"0.57477784",
"0.5747712",
"0.5732344",
"0.57255894",
"0.5717413",
"0.5713496",
"0.57001346",
"0.56637675",
"0.5660645",
"0.56521106",
"0.5650513",
"0.5636069",
"0.5636069",
"0.5636069",
"0.5624716",
"0.56138706",
"0.56054384",
"0.56054384",
"0.56054384",
"0.5604582",
"0.5604582",
"0.5601731",
"0.55993617",
"0.5593161",
"0.55897444",
"0.5587532",
"0.55819213",
"0.55819213",
"0.55819213",
"0.5577662",
"0.5577327",
"0.5571288",
"0.5563983",
"0.5563983",
"0.5561018",
"0.5551712",
"0.55512583",
"0.5547585",
"0.5543404",
"0.552358",
"0.55225515",
"0.5521688",
"0.5521511",
"0.5520691",
"0.5510935",
"0.55046135",
"0.5485641",
"0.5485641",
"0.54841715",
"0.5471016",
"0.5470868",
"0.5468344",
"0.54666895",
"0.5444414",
"0.5443351",
"0.5436312",
"0.5436312",
"0.5436312",
"0.5436312",
"0.5436312",
"0.5436312",
"0.5436312",
"0.54325473",
"0.5413224",
"0.5411613",
"0.54110193",
"0.5404767",
"0.5404628",
"0.5400774",
"0.53956735",
"0.5395161",
"0.53929305",
"0.53929305",
"0.53929305",
"0.53929305",
"0.53929305",
"0.53929305",
"0.53849065",
"0.5374537",
"0.5370307",
"0.53672767",
"0.5366987",
"0.53669536",
"0.5366608"
]
| 0.0 | -1 |
Method to save a collection of VSTP messages. | public void save(List<VSTPMsg> vstpMsgList) {
vstpMsgRepository.save(vstpMsgList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void save(MessageListDto messages);",
"public static void saveMessages(ArrayList<Message> messages,String filename)\r\n\t{\r\n\t\t//Write to disk\r\n\t\ttry \r\n\t\t{\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(filename)));\r\n\t\t\toos.writeObject(messages);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t\tSystem.out.println(\"Saved messages to disk: \" + filename);\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"Could not save backup: \" + e.getMessage());\r\n\t\t}\r\n\t}",
"public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}",
"@Override\n public void onSave(MessageContainer messages) {\n }",
"public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void savePengdingWaybill(List<WaybillPendingEntity> pendingList) {\n\t\t\n\t}",
"private void saveNewVacunas(String estado) {\n int c = mNewVacunas.size();\n for (NewVacuna vacuna : mNewVacunas) {\n vacuna.getMovilInfo().setEstado(estado);\n estudioAdapter.updateNewVacSent(vacuna);\n publishProgress(\"Actualizando Vacunas\", Integer.valueOf(mNewVacunas.indexOf(vacuna)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveVacunas(String estado) {\n int c = mVacunas.size();\n for (Vacuna vacuna : mVacunas) {\n vacuna.getMovilInfo().setEstado(estado);\n estudioAdapter.updateVacSent(vacuna);\n publishProgress(\"Actualizando Vacunas\", Integer.valueOf(mVacunas.indexOf(vacuna)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveChatMessagesInFile() {\n\n if (chatMessages.isEmpty()) {\n return;\n }\n chatMessageFileName = utils.getUserName() + chatPartner + \"TutorscoutChatMessages\";\n\n StringBuilder messagesString = new StringBuilder();\n\n\n for (ChatMessage message : chatMessages) {\n messagesString.append(message.toString());\n }\n\n\n try {\n\n FileOutputStream fos = getContext().openFileOutput(chatMessageFileName, Context.MODE_PRIVATE);\n fos.write(messagesString.toString().getBytes());\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic boolean saveVO(List<HBaseVO> vos) {\n\t\tHBaseVODao dao = new HBaseVODao();\n\t\tSystem.out.println(\"在DAO里开始保存数据;Dao得到的VO数为:\" + vos.size());\n\t\tfor (HBaseVO hBaseVO : vos) {\n\t\t\tdao.saveVO(hBaseVO);\n\n\t\t}\n\n\t\treturn true;\n\t}",
"public static void save(List<User> pdApp) throws IOException {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storeDir + File.separator + storeFile));\n oos.writeObject(pdApp);\n oos.close();\n }",
"public void saveMessagesToGateway(Gateway gateway) {\n List<Message> messages = new ArrayList<>();\n messages.addAll(this.messageList.values());\n gateway.saveMessages(messages);\n }",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"protected void doSaveMessages(ActionMessages messages) {\n if (messages == null || messages.isEmpty()) { // same specification as ActionMessagesUtil\n remove(Globals.MESSAGE_KEY);\n return;\n }\n setAttribute(Globals.MESSAGE_KEY, messages);\n }",
"public List<GameEvents> saveGameEvents(List<GameEvents> gameEvents);",
"public void saveAll(List list);",
"public static void save() {\n\t\tfor (TeleporterData tld : teleports.values()) {\n\t\t\ttld.write();\n\t\t}\n\t}",
"private void savePlayers() {\r\n this.passive_players.stream()\r\n .filter(E -> E.isChanged())\r\n .forEach(e -> {\r\n e.save();\r\n });\r\n }",
"private void saveTempPbmcs(String estado) {\n int c = mTempPbmcs.size();\n for (TempPbmc temp : mTempPbmcs) {\n temp.setEstado(estado);\n estudioAdapter.updateTpbmcsSent(temp);\n publishProgress(\"Actualizando TempPbmcs\", Integer.valueOf(mTempPbmcs.indexOf(temp)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveParticipantes(String estado) {\n int c = mParticipantes.size();\n for (Participante participante : mParticipantes) {\n participante.setEstado(estado.charAt(0));\n estudioAdapter.updateParticipantesSent(participante);\n publishProgress(\"Actualizando participantes\", Integer.valueOf(mParticipantes.indexOf(participante)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveMuestras(String estado) {\n int c = mMuestras.size();\n for (Muestra muestra : mMuestras) {\n muestra.getMovilInfo().setEstado(estado);\n estudioAdapter.updateMuestraSent(muestra);\n publishProgress(\"Actualizando muestras\", Integer.valueOf(mMuestras.indexOf(muestra)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }",
"public void saveTaskList(TaskList taskList) throws ChandlerException {\n try {\n FileWriter fileWriter = new FileWriter(filePath);\n for (int i = 0; i < taskList.getSize(); i++) {\n Task currTask = taskList.getIndex(i);\n fileWriter.write(currTask.getSavingString());\n }\n fileWriter.close();\n } catch (IOException e) {\n throw new ChandlerException(ui.saveDataError());\n }\n }",
"public static void saveMessagesToDBFilesToHDD(TelegramApi api, DBStorage dbStorage, TLVector<TLDialog> dialogs,\n Map<Integer, TLAbsChat> chatsHashMap,\n Map<Integer, TLAbsUser> usersHashMap,\n Map<Integer, TLAbsMessage> messagesHashMap,\n int msgLimit, int parLimit, int filter, int maxDate,\n int minDate, int maxSize, String path) {\n for (TLDialog dialog : dialogs) {\n\n System.out.println();\n System.out.println(\"Crawling dialog: \" + ConsoleOutputMethods.getDialogFullNameWithID(dialog.getPeer().getId(), chatsHashMap, usersHashMap));\n System.out.println(\"Top message: \" + dialog.getTopMessage());\n\n MessageHistoryExclusions exclusions = new MessageHistoryExclusions(dbStorage, dialog);\n if (exclusions.exist()){\n System.out.println(\"Top DB message: \" + exclusions.getMaxId());\n int count = dialog.getTopMessage() - exclusions.getMaxId();\n System.out.println(\"Downloading at most \" + (count > 0 ? count : 0) + \" messages\");\n }\n\n //reads full dialog info\n TLObject fullDialog = DialogsHistoryMethods.getFullDialog(api, dialog, chatsHashMap, usersHashMap);\n //writes full dialog info\n dbStorage.writeFullDialog(fullDialog, chatsHashMap, usersHashMap);\n\n //reads the messages\n TLAbsMessage topMessage = DialogsHistoryMethods.getTopMessage(dialog, messagesHashMap);\n TLVector<TLAbsMessage> absMessages;\n if (exclusions.exist()) {\n absMessages = DialogsHistoryMethods.getWholeMessageHistoryWithExclusions(api, dialog, chatsHashMap, usersHashMap, topMessage, exclusions, msgLimit, maxDate, minDate);\n } else {\n absMessages = DialogsHistoryMethods.getWholeMessageHistory(api, dialog, chatsHashMap, usersHashMap, topMessage, msgLimit, maxDate, minDate);\n }\n System.out.println(\"Downloaded: \" + absMessages.size());\n\n // writes messages of the dialog to \"messages + [dialog_id]\" table/collection/etc.\n dbStorage.setTarget(MSG_DIAL_PREF + dialog.getPeer().getId());\n for (TLAbsMessage absMessage : absMessages) {\n String reference = MediaDownloadMethods.messageDownloadMediaToHDD(api, absMessage, maxSize, path);\n if (reference != null) {\n dbStorage.writeTLAbsMessageWithReference(absMessage, reference);\n } else {\n dbStorage.writeTLAbsMessage(absMessage);\n }\n }\n\n //reads participants\n TLObject participants = DialogsHistoryMethods.getParticipants(api, fullDialog, chatsHashMap, usersHashMap, parLimit, filter);\n // writes participants of the dialog to \"messages + [dialog_id]\" table/collection/etc.\n dbStorage.writeParticipants(participants, dialog);\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ignored) {\n }\n }\n // write hashmaps\n System.out.println(\"Writing obtained users chats, duplicates may occure\");\n dbStorage.writeUsersHashMap(usersHashMap);\n dbStorage.writeChatsHashMap(chatsHashMap);\n System.out.println(\"Done\");\n System.out.println();\n }",
"protected void save(T[] items) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\n\t\t\tfor (T item : items) {\n\t\t\t\tsession.save(item);\n\t\t\t}\n\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save\");\n\t\t}\n\t}",
"private void chatSave() {\n try{\n //create a text file to write the chatList to\n PrintStream print =\n new PrintStream(new FileOutputStream(\"log.txt\", true));\n //write each line of the array to the file \n for (String str:chatList)\n print.println(str);\n //once each record has been written to the file, close it.\n print.close();\n } catch (IOException e) {\n // exception handling\n }\n }",
"public void save() {\n\t\tList<EmbeddedEntity> embeddedEntities = new ArrayList<>();\n\t\tfor (FeedItem item : items)\n\t\t\tembeddedEntities.add(item.getEntity());\n\t\tEntity feed = new Entity(getKey());\n\t\tfeed.setUnindexedProperty(\"items\", embeddedEntities); //NOI18N\n\t\tdatastore.put(feed);\n\t}",
"public void exportVille(ArrayList<Ville> villes) {\n int maxId;\n String query;\n \n for (Ville ville : villes) {\n if ((maxId = ville.getIdVille()) != 0) {\n query = \"Update Ville set nomVille='\" + ville.getNomVille() + \"', paysVille='\" + ville.getPaysVille() + \"' Where idVille=\" + maxId;\n } else {\n maxId = readMaxIdVille() + 1;\n query = \"Insert into Ville values (\" + maxId + \", '\" + ville.getNomVille() + \"', '\" + ville.getPaysVille() + \"')\";\n }\n\n try {\n DBManager.dbExecuteUpdate(query);\n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(ExportDAL.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void save() {\n if (message == null || currentView == null) {\n return;\n }\n\n if (isEditable) {\n if (currentView.hasChanged()) {\n currentView.save();\n }\n }\n }",
"@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}",
"public static synchronized void save() {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n String team_backup = config.Server.serverdata_file_location + \"/teams\";\n\n Calendar dato = new GregorianCalendar();\n\n team_backup += dato.get(Calendar.YEAR) + \"-\" + dato.get(Calendar.DAY_OF_MONTH) + \"-\" + dato.get(Calendar.MONTH) + \"-\";\n team_backup += dato.get(Calendar.HOUR) + \"-\" + dato.get(Calendar.MINUTE) + \".ser\";\n\n admin.logging.globalserverMsg(\"Saving team data to file.\");\n\n try {\n FileOutputStream fil = new FileOutputStream(team_fil);\n FileOutputStream fil_backup = new FileOutputStream(team_backup);\n\n //Skriv til teams.txt\n ObjectOutputStream out = new ObjectOutputStream(fil);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n\n //Skriv til backup fil.\n out = new ObjectOutputStream(fil_backup);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n } catch (Exception e) {\n e.printStackTrace();\n admin.logging.globalserverMsg(\"Error saving team data to file.\");\n }\n }",
"public static void saveMessagesToDBFilesToDB(TelegramApi api, DBStorage dbStorage, TLVector<TLDialog> dialogs,\n Map<Integer, TLAbsChat> chatsHashMap,\n Map<Integer, TLAbsUser> usersHashMap,\n Map<Integer, TLAbsMessage> messagesHashMap,\n int msgLimit, int parLimit, int filter,\n int maxDate, int minDate, int maxSize) {\n for (TLDialog dialog : dialogs) {\n\n System.out.println();\n System.out.println(\"Crawling dialog: \" + ConsoleOutputMethods.getDialogFullNameWithID(dialog.getPeer().getId(), chatsHashMap, usersHashMap));\n System.out.println(\"Top message: \" + dialog.getTopMessage());\n\n MessageHistoryExclusions exclusions = new MessageHistoryExclusions(dbStorage, dialog);\n if (exclusions.exist()){\n System.out.println(\"Top DB message: \" + exclusions.getMaxId());\n int count = dialog.getTopMessage() - exclusions.getMaxId();\n System.out.println(\"Downloading at most \" + (count > 0 ? count : 0) + \" messages\");\n }\n\n //reads full dialog info\n TLObject fullDialog = DialogsHistoryMethods.getFullDialog(api, dialog, chatsHashMap, usersHashMap);\n //writes full dialog info\n dbStorage.writeFullDialog(fullDialog, chatsHashMap, usersHashMap);\n\n //reads the messages\n TLAbsMessage topMessage = DialogsHistoryMethods.getTopMessage(dialog, messagesHashMap);\n TLVector<TLAbsMessage> absMessages;\n if (exclusions.exist()) {\n absMessages = DialogsHistoryMethods.getWholeMessageHistoryWithExclusions(api, dialog, chatsHashMap, usersHashMap, topMessage, exclusions, msgLimit, maxDate, minDate);\n } else {\n absMessages = DialogsHistoryMethods.getWholeMessageHistory(api, dialog, chatsHashMap, usersHashMap, topMessage, msgLimit, maxDate, minDate);\n }\n System.out.println(\"Downloaded: \" + absMessages.size());\n\n // writes messages of the dialog to \"messages + [dialog_id]\" table/collection/etc.\n dbStorage.setTarget(MSG_DIAL_PREF + dialog.getPeer().getId());\n for (TLAbsMessage absMessage : absMessages) {\n String reference = MediaDownloadMethods.messageDownloadMediaToDB(api, dbStorage, absMessage, maxSize);\n if (reference != null) {\n dbStorage.writeTLAbsMessageWithReference(absMessage, reference);\n } else {\n dbStorage.writeTLAbsMessage(absMessage);\n }\n }\n\n //reads participants\n TLObject participants = DialogsHistoryMethods.getParticipants(api, fullDialog, chatsHashMap, usersHashMap, parLimit, filter);\n // writes participants of the dialog to \"messages + [dialog_id]\" table/collection/etc.\n dbStorage.writeParticipants(participants, dialog);\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ignored) {\n }\n }\n // write hashmaps\n System.out.println(\"Writing obtained users chats, duplicates may occure\");\n dbStorage.writeUsersHashMap(usersHashMap);\n dbStorage.writeChatsHashMap(chatsHashMap);\n System.out.println(\"Done\");\n System.out.println();\n }",
"private synchronized void saveAllVectorData()\r\n {\r\n debug(\"saveAllVectorData() - to File\");\r\n\r\n // Delete all extra data files we have floating out in the directory\r\n expungeAllWatchListsFiles();\r\n\r\n // Get the count of the Tabs available\r\n int watchListCount = tabPane.getTabCount();\r\n\r\n // Save each One of them\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Save our individual Data Vector\r\n saveVectorData(index);\r\n\r\n }\r\n // Save off the Count of the WatchLists available\r\n appProps.setProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\"), \"\" + watchListCount);\r\n appProps.saveProperties(getString(\"WatchListTableModule.application_ini_header_title\"));\r\n\r\n debug(\"saveAllVectorData() - to File complete\");\r\n }",
"private void saveTasks() {\n try {\n Writer writer = new Writer(new File(TASKS_FILE));\n for (Task t1: todoList.getListOfTasks()) {\n writer.write(t1);\n }\n writer.close();\n System.out.println(\"Tasks saved to file \" + TASKS_FILE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to save tasks to \" + TASKS_FILE);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"private void saveEncPyTs(String estado) {\n int c = mPyTs.size();\n for (PesoyTalla pyt : mPyTs) {\n pyt.getMovilInfo().setEstado(estado);\n estudioAdapter.updatePTsSent(pyt);\n publishProgress(\"Actualizando peso y talla\", Integer.valueOf(mPyTs.indexOf(pyt)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveTasks() {\n try {\n BufferedWriter taskWriter = new BufferedWriter(new FileWriter(path));\n String tasks = \"\";\n for (Task task : TaskList.getTaskLists()) {\n tasks += task.toSaveString() + \"\\n\";\n }\n taskWriter.write(tasks);\n taskWriter.close();\n } catch (IOException e) {\n System.out.println(\"Sorry Boss, \" + e.getMessage());\n }\n }",
"public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\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}",
"public void save()\n\t{\n\t\tfor(PlayerData pd : dataMap.values())\n\t\t\tpd.save();\n\t}",
"public void saveData(ArrayList<Task> tasks) {\r\n try {\r\n writeToFile(tasks);\r\n } catch (IOException exception) {\r\n ui.printIoExceptionErrorMessage(exception);\r\n }\r\n }",
"private void saveMemberList () {\r\n\t\tStringBuffer\tmembers\t\t= new StringBuffer();\r\n\t\tboolean\t\t\taddSplit\t= false;\r\n\t\t\r\n\t\tfor (String member : this.members) {\r\n\t\t\tif (addSplit)\r\n\t\t\t\tmembers.append(splitMember);\r\n\t\t\tmembers.append(member);\r\n\t\t\taddSplit = true;\r\n\t\t}\r\n\t\t\r\n\t\tstorage.setString(namedStringMembers, members.toString());\r\n\t}",
"public void save(TaskList tasks) throws DukeException {\n PrintWriter writer = null;\n try {\n writer = getStorageFile();\n\n for (Task task : tasks.getTaskList()) {\n String output = StorageSerializer.serialize(task);\n writer.write(output);\n }\n } catch (IOException e) {\n throw new IoDukeException(\"Error opening file for saving\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public static void saveOnlyMessagesToHDD(TelegramApi api, TLVector<TLDialog> dialogs,\n Map<Integer, TLAbsChat> chatsHashMap,\n Map<Integer, TLAbsUser> usersHashMap,\n Map<Integer, TLAbsMessage> messagesHashMap,\n int msgLimit, int maxDate, int minDate,\n String path) {\n for (TLDialog dialog : dialogs) {\n\n String fullName = ConsoleOutputMethods.getDialogFullNameWithID(dialog.getPeer().getId(), chatsHashMap, usersHashMap);\n\n System.out.println();\n System.out.println(\"Crawling dialog: \" + fullName);\n System.out.println(\"Top message: \" + dialog.getTopMessage());\n\n //reads the messages\n TLAbsMessage topMessage = DialogsHistoryMethods.getTopMessage(dialog, messagesHashMap);\n TLVector<TLAbsMessage> absMessages = DialogsHistoryMethods.getWholeMessageHistory(api, dialog, chatsHashMap, usersHashMap, topMessage, msgLimit, maxDate, minDate);\n System.out.println(\"Downloaded: \" + absMessages.size());\n\n System.out.println(\"Writing: \" + fullName + \".csv\");\n // write here\n FileMethods.writeMessagesToCSV(absMessages, String.valueOf(dialog.getPeer().getId()), path, \";\");\n\n }\n // sleep between transmissions to avoid flood wait\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ignored) {\n\n }\n // write hashmaps\n System.out.println(\"Done\");\n }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save(View v) {\n if (!currentMode.equals(Mode.GAME)) {\n Toast.makeText(this, \"Speichern nur im Spiel moeglich!\", Toast.LENGTH_LONG).show();\n return;\n }\n\n // Leeres speichern verhindern\n if (!(itemList.size() > 0)) {\n Toast.makeText(this, \"Keine Tips zum Speichern!\", Toast.LENGTH_LONG).show();\n return;\n }\n // String formatieren\n String output = generateSaveFileString();\n\n // In Datei speichern\n writeToSaveFile(output);\n\n // Neue Runde starten\n startNewRound();\n }",
"void saveLineItemList(List<LineItem> lineItemList);",
"@Override\n\tpublic void save(ServiceFee entites) {\n\t\tservicefeerepo.save(entites);\n\t}",
"protected void persist(T[] items) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\n\t\t\tfor (T item : items) {\n\t\t\t\tsession.persist(item);\n\t\t\t}\n\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute persist\");\n\t\t}\n\t}",
"public ArrayList<VenTransactionFee> persistVenTransactionFeeList(\n\t\t\tList<VenTransactionFee> venTransactionFeeList);",
"public static void saveReceipt()\r\n\t{\r\n\t\tPrintWriter listWriter = null;\r\n\t\tPrintWriter contentWriter = null;\r\n\t\tnewReceipt = getTimeStamp();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlistWriter = new PrintWriter(new FileOutputStream(RECEIPT_LIST_FILE, true));\r\n\t\t\tcontentWriter = new PrintWriter(RECEIPT_PATH + newReceipt);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\t\r\n\t\tlistWriter.println(newReceipt);\r\n\t\tfor(int count=0; count < listModel.getSize(); count++)\r\n\t\t\tcontentWriter.println(listModel.elementAt(count));\r\n\t\t\r\n\t\tlistWriter.close();\r\n\t\tcontentWriter.close();\r\n\t\tclearReceipt();\r\n\t}",
"public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}",
"private void saveEncParticipantes(String estado) {\n int c = mEncuestasParticipantes.size();\n for (EncuestaParticipante encparticipante : mEncuestasParticipantes) {\n encparticipante.getMovilInfo().setEstado(estado);\n estudioAdapter.updateEncPartSent(encparticipante);\n publishProgress(\"Actualizando encuestas participantes\", Integer.valueOf(mEncuestasParticipantes.indexOf(encparticipante)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"public void saveMealPlanner(){\n Data.<Days>saveList(ObservableWeekList, mealPlannerFile);\n }",
"public static void saveOnlyMessagesToDB(TelegramApi api, DBStorage dbStorage, TLVector<TLDialog> dialogs,\n Map<Integer, TLAbsChat> chatsHashMap,\n Map<Integer, TLAbsUser> usersHashMap,\n Map<Integer, TLAbsMessage> messagesHashMap,\n int msgLimit, int parLimit, int filter, int maxDate, int minDate) {\n for (TLDialog dialog : dialogs) {\n\n System.out.println();\n System.out.println(\"Crawling dialog: \" + ConsoleOutputMethods.getDialogFullNameWithID(dialog.getPeer().getId(), chatsHashMap, usersHashMap));\n System.out.println(\"Top message: \" + dialog.getTopMessage());\n\n MessageHistoryExclusions exclusions = new MessageHistoryExclusions(dbStorage, dialog);\n if (exclusions.exist()){\n System.out.println(\"Top DB message: \" + exclusions.getMaxId());\n int count = dialog.getTopMessage() - exclusions.getMaxId();\n System.out.println(\"Downloading at most \" + (count > 0 ? count : 0) + \" messages\");\n }\n\n\n //reads full dialog info\n TLObject fullDialog = DialogsHistoryMethods.getFullDialog(api, dialog, chatsHashMap, usersHashMap);\n //writes full dialog info\n dbStorage.writeFullDialog(fullDialog, chatsHashMap, usersHashMap);\n\n //reads the messages\n TLAbsMessage topMessage = DialogsHistoryMethods.getTopMessage(dialog, messagesHashMap);\n TLVector<TLAbsMessage> absMessages;\n if (exclusions.exist()) {\n absMessages = DialogsHistoryMethods.getWholeMessageHistoryWithExclusions(api, dialog, chatsHashMap, usersHashMap, topMessage, exclusions, msgLimit, maxDate, minDate);\n } else {\n absMessages = DialogsHistoryMethods.getWholeMessageHistory(api, dialog, chatsHashMap, usersHashMap, topMessage, msgLimit, maxDate, minDate);\n }\n System.out.println(\"Downloaded: \" + absMessages.size());\n // writes messages of the dialog to \"messages + [dialog_id]\" table/collection/etc.\n dbStorage.writeTLAbsMessages(absMessages, dialog);\n\n //reads participants\n TLObject participants = DialogsHistoryMethods.getParticipants(api, fullDialog, chatsHashMap, usersHashMap, parLimit, filter);\n // writes participants of the dialog to \"messages + [dialog_id]\" table/collection/etc.\n dbStorage.writeParticipants(participants, dialog);\n\n // sleep between transmissions to avoid flood wait\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ignored) {\n }\n }\n // write hashmaps\n System.out.println(\"Writing obtained users chats, duplicates may occure\");\n dbStorage.writeUsersHashMap(usersHashMap);\n dbStorage.writeChatsHashMap(chatsHashMap);\n System.out.println(\"Done\");\n System.out.println();\n }",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"public void savePushQuestionsID(ArrayList<String> idList) {\n\n\t\tSAVE_FILE = PUSH_POSTS;\n\t\tsaveIds(idList);\n\t}",
"@PortedFrom(file = \"ToDoList.h\", name = \"save\")\n protected void save(TODOListSaveState tss) {\n tss.sp = sPointer;\n tss.ep = size;\n }",
"public String saveListPluviometer() {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\tint addDay = 0;\r\n\t\tList<Pluviometer> pluviometerListEdit = new ArrayList<Pluviometer>();\r\n\t\tList<Pluviometer> pluviometerListSave = new ArrayList<Pluviometer>();\r\n\t\ttry {\r\n\t\t\tfor (int reading : readingList) {\r\n\t\t\t\tDate date = ControladorFechas.sumarDias(\r\n\t\t\t\t\t\tpluviometerPojo.getStartWeek(), addDay);\r\n\t\t\t\tPluviometer pluviometer = pluviometerDao.findDate(date);\r\n\t\t\t\tif (pluviometer != null) {\r\n\t\t\t\t\tif (pluviometer.getReading() != reading) {\r\n\t\t\t\t\t\tpluviometer.setReading(reading);\r\n\t\t\t\t\t\tpluviometerListEdit.add(pluviometer);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (reading != 0) {\r\n\t\t\t\t\tpluviometer = new Pluviometer();\r\n\t\t\t\t\tpluviometer.setReading(reading);\r\n\t\t\t\t\tpluviometer.setDateRecord(date);\r\n\t\t\t\t\tpluviometerListSave.add(pluviometer);\r\n\t\t\t\t}\r\n\t\t\t\taddDay++;\r\n\t\t\t}\r\n\t\t\tif (pluviometerListSave.size() > 0) {\r\n\t\t\t\tfor (Pluviometer pluviometer : pluviometerListSave) {\r\n\t\t\t\t\tpluviometerDao.savePluviometer(pluviometer);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pluviometerListEdit.size() > 0) {\r\n\t\t\t\tfor (Pluviometer pluviometer : pluviometerListEdit) {\r\n\t\t\t\t\tpluviometerDao.editPluviometer(pluviometer);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString bundleWeek = bundle.getString(\"label_week\") + \" \"\r\n\t\t\t\t\t+ pluviometerPojo.getWeek();\r\n\t\t\tControladorContexto.mensajeInfoArg2(\"message_registro_modificar\",\r\n\t\t\t\t\t\"mensaje\", bundleWeek);\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t\treturn initializePluviometer();\r\n\t}",
"private static void storeMessage(String tokenId,String db,String user,String password){\n JSONArray jsonArray = getMailMessageList(tokenId);\n for (int i=0; i<jsonArray.length();i++)\n {\n for (int j=0;j<jsonArray.getJSONObject(i).getJSONArray(\"messages\").length();j++)\n {\n String messageId = jsonArray.getJSONObject(i).getJSONArray(\"messages\").getJSONObject(j)\n .getString(\"id\");\n addIntoDB(getMailMessage(tokenId, messageId),db,user,password);/*insert each mail details into DB */\n }\n }\n }",
"private void saveData(){\n\t\tsynchronized(onlineAllInfoList){\n\t\t\tRecorder.save(onlineAllInfoList, onlineAllInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving onlineCompetitionInfoList...\");System.out.flush();\n\t\tsynchronized(onlineCompetitionInfoList){\n\t\t\tRecorder.save(onlineCompetitionInfoList, onlineCompetitionInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving competitionList...\");System.out.flush();\n\t\tsynchronized(competitionList){\n\t\t\tRecorder.save(competitionList, competitionInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving allAIInfoList...\");System.out.flush();\n\t\tsynchronized(allAIInfoList){\n\t\t\tRecorder.save(allAIInfoList, allInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving waitingInfoList...\");System.out.flush();\n\t\tsynchronized(waitingInfoList){\n\t\t\tRecorder.save(waitingInfoList, waitingInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving sortedAIInfoPool...\");System.out.flush();\n\t\tsynchronized(sortedAIInfoPool){\n\t\t\tRecorder.save(sortedAIInfoPool, sortedInfoListFileName);\t\t\t\n\t\t}\n\t}",
"public static void saveItems(ArrayList<Item> items,String filename)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(filename)));\r\n\t\t\toos.writeObject(items);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t\tSystem.out.println(\"Saved items to disk: \" + filename);\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"Could not save backup: \" + e.getMessage());\r\n\t\t}\r\n\t}",
"public static void saveOnlyVoiceMessagesToHDD(TelegramApi api, TLVector<TLDialog> dialogs,\n Map<Integer, TLAbsChat> chatsHashMap, Map<Integer, TLAbsUser> usersHashMap,\n Map<Integer, TLAbsMessage> messagesHashMap, int msgLimit, int maxDate,\n int minDate, int maxSize, String path, int maxFiles) {\n int filesCounter = 0;\n for (TLDialog dialog : dialogs) {\n\n System.out.println();\n System.out.println(\"Crawling dialog: \" + ConsoleOutputMethods.getDialogFullNameWithID(dialog.getPeer().getId(), chatsHashMap, usersHashMap));\n System.out.println(\"Top message: \" + dialog.getTopMessage());\n System.out.println();\n\n //reads the messages\n TLAbsMessage topMessage = DialogsHistoryMethods.getTopMessage(dialog, messagesHashMap);\n TLVector<TLAbsMessage> absMessages;\n absMessages = DialogsHistoryMethods.getWholeMessageHistory(api, dialog, chatsHashMap, usersHashMap, topMessage, msgLimit, maxDate, minDate);\n System.out.println(\"Downloaded: \" + absMessages.size());\n\n for (TLAbsMessage absMessage : absMessages)\n if (filesCounter < maxFiles)\n if (MediaDownloadMethods.messageDownloadVoiceMessagesToHDD(api, absMessage, maxSize, path) != null)\n filesCounter++;\n else break;\n\n System.out.println(\"Done\");\n System.out.println();\n // sleep between transmissions to avoid flood wait\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ignored) {\n }\n }\n }",
"public void saveAll(Collection<Product> products);",
"private void saveDatosPartoBB(String estado) {\n int c = mDatosPartoBB.size();\n for (DatosPartoBB datosParto : mDatosPartoBB) {\n datosParto.getMovilInfo().setEstado(estado);\n estudioAdapter.updateDatosPartoBB(datosParto);\n publishProgress(\"Actualizando DatosPartoBB\", Integer.valueOf(mDatosPartoBB.indexOf(datosParto)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveVisitas(String estado) {\n int c = mVisitasTerreno.size();\n for (VisitaTerreno visita : mVisitasTerreno) {\n visita.getMovilInfo().setEstado(estado);\n estudioAdapter.updateVisitasSent(visita);\n publishProgress(\"Actualizando Visitas\", Integer.valueOf(mVisitasTerreno.indexOf(visita)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveRecepcionSeros(String estado) {\n int c = mRecepcionSeros.size();\n for (RecepcionSero rojo : mRecepcionSeros) {\n rojo.setEstado(estado);\n estudioAdapter.updateSerosSent(rojo);\n publishProgress(\"Actualizando RecepcionSero\", Integer.valueOf(mRecepcionSeros.indexOf(rojo)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private void saveObsequios(String estado) {\n int c = mObsequios.size();\n for (Obsequio obsequio : mObsequios) {\n obsequio.getMovilInfo().setEstado(estado);\n estudioAdapter.updateObsequioSent(obsequio);\n publishProgress(\"Actualizando Obsequios\", Integer.valueOf(mObsequios.indexOf(obsequio)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"@Override public void store(SQLiteDatabase db, List<TimelineItemDTOKey> items)\n {\n }",
"public List<Reservation> saveToFile() {\n\t\treturn rList;\n\t}",
"@Override\n\tpublic void posSave() {\n\t\tfor(ItemRequisicionEta tmpItm : itemsAgregados) {\n\t\t\ttmpItm.setReqEtapa(instance);\n\t\t\tgetEntityManager().persist(tmpItm);\n\t\t}\n\t\tgetEntityManager().refresh(etapaRepCliHome.getInstance());\n\t}",
"public <T> Collection<T> saveAll(Collection<T> entities);",
"Collection<E> save(Iterable<E> entities);",
"public static void ser(ArrayList<Task> taskList) {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"taskList.ser\"); // create a space for serializing the ArrayList object\n ObjectOutputStream out = new ObjectOutputStream(fileOut); // object for serializing the ArrayList object\n out.writeObject(taskList); // writing/serializing the ArrayList object (has all the user's task variables)\n out.close(); // closing the serializing object\n fileOut.close(); // closing the serialized file\n System.out.println(\"Tasks saved.\"); // printing that the save was successful\n } catch (IOException ioe) { \n System.err.println(\"Java IO Exception: \" + ioe);\n }\n }",
"@Override\n public void save(ArrayList<League> leagues) {\n\n }",
"public void sendOpponents(ArrayList<Player> plist, Player sentTo) {\n try {\n // Send the number of players being sent\n sendNumOpponents(plist.size()-1);\n for (Player p : plist) {\n if (p != sentTo) { // Do not send player self data as opponent\n dOut.writeObject(p);\n dOut.flush();\n }\n }\n } catch (IOException e) {\n System.out.println(\"Could not send player objects\");\n e.printStackTrace();\n }\n }",
"void write(List<Object> values) throws TransportException;",
"<S extends T> Collection<S> save(Iterable<S> entities);",
"private void jButtonSaveStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveStageplaatsActionPerformed\n\n storeDisplayedStageplaats();\n \n this.dbFacade.persist((this.geselecteerdeStageplaats));\n refreshDataCache();\n refreshListbox();\n }",
"@Override\n public void onPause() {\n super.onPause();\n try {\n storeRetrieveData.saveToFile((ArrayList<TaskCollector>) taskCollectors);\n } catch (JSONException | IOException e) {\n e.printStackTrace();\n }\n }",
"private void storePotList(){\n String tempName;\n int tempWeight;\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n int sizeOfPotList = potList.countPots();\n editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList);\n for(int i = 0; i < potList.countPots();i++){\n tempWeight = (potList.getPot(i).getWeightInG());\n tempName = (potList.getPot(i).getName());\n editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName);\n editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight);\n }\n editor.commit();\n }",
"@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }",
"public void save() {\n\t\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tstopLoading();\n\t\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-save(): ERROR \" + caught.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\t\tstopLoading();\n\t\t\t\t\t\tprocessUpdateResult(result);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// Llamada al servicio RPC\n\t\t\t\ttry {\n\t\t\t\t\tif (!isLoading()) {\n\t\t\t\t\t\tstartLoading();\n\t\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().save(bmoRequisitionItem.getPmClass(), bmoRequisitionItem, callback);\n\t\t\t\t\t}\n\t\t\t\t} catch (SFException e) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-save(): ERROR \" + e.toString());\n\t\t\t\t}\n\t\t\t}",
"private void saveList() throws Exception {\n JournalEntries.saveList(JournalList,ReconcileCur.ReconcileNum);\n }",
"public void save() throws ZSessionException {\n\t ZSessionList zList = new ZSessionList();\n zList.upsert(this);\n }",
"void saveAll(Collection<?> entities);",
"public void saveTaverns(ArrayList<Tavern> list){\n for (int i = 0; i < list.size(); i++){\n mapper.save(list.get(i));\n }\n }",
"private void saveGeneratedSchedules() {\n if (yesNoQuestion(\"(y) Do you want to save all of them? (n) Or just a few? \")) {\n scheduleList.addSchedulesToList(activeScheduleList);\n activeScheduleList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n return;\n }\n\n System.out.println(\"How many of the schedules to add? (The rest will be cleared afterwards)\");\n int numSchedulesToAdd = obtainIntSafely(0, activeScheduleList.size(), \"That is out of bounds\");\n if (numSchedulesToAdd == activeScheduleList.size()) {\n System.out.println(\"Selected maximum Amount, adding all\");\n }\n\n for (int i = 0; i < numSchedulesToAdd; i++) {\n System.out.println(\"What is the number of the schedule to save?\");\n int schedToAdd = obtainIntSafely(1, activeScheduleList.size(), \"That is out of bounds\");\n scheduleList.addScheduleToList(activeScheduleList.get(schedToAdd - 1));\n System.out.println(\"Done\");\n }\n\n activeScheduleList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }",
"private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }",
"public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }",
"public void save() {\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeToTalks(\"phase1/src/Resources/Talks.csv\", this.getTalkManager()); //Not implemented yet\n }",
"private void save() {\n Saver.saveTeam(team);\n }",
"public void saveAll() {\n\n if (schedule != null) {\n\n readWrite.save(schedule, buddies);\n }\n if (finalsList != null) {\n\n readWrite.save(finalsList, finalsTerm);\n }\n }",
"public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public Messages save(Messages m){\n if(m.getIdMessage() == null){\n return messageRepository.save(m);\n }else{\n Optional<Messages> evt=messageRepository.getMessage(m.getIdMessage());\n if(evt.isEmpty()){\n return messageRepository.save(m);\n }else{\n return messageRepository.save(m);\n }\n }\n }",
"public void saveAllVehiclesToFile(ArrayList<DeliveryVehicle> vehicleList) throws java.io.IOException {\n\n // write object to file\n FileOutputStream fos = new FileOutputStream(_filePath); //object to hold a file, e.g. EmployeeData.txt\n PrintStream writer = new PrintStream(fos); //object to write data\n\n //For loop to read each employee and write them to the file\n for(DeliveryVehicle vehicle : vehicleList){\n writer.println(vehicle);\n }\n\n writer.close();//close the writer\n fos.close();//close the file\n\n }",
"public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save(List<Task> list) throws IOException {\n FileWriter writer = new FileWriter(file);\n StringBuilder output = new StringBuilder();\n for (Task t : list) {\n output.append(formatTask(t));\n output.append(\"\\n\");\n }\n writer.write(output.toString());\n writer.close();\n }",
"public boolean saveEvents(ArrayList<Event> ev) {\n\t\ttry {\n\t\t\tmSerializer.saveEvents(ev);\n\t\t\tLog.d(TAG, \"events saved to file\");\n\t\t\treturn true;\n\t\t} catch(Exception e){\n\t\t\tLog.e(TAG, \"Error saving event: \", e);\n\t\t\treturn false;\n\t\t}\n\t}",
"private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) || (currProbe.curr_status == models.MessageProbe.STATUS.NEW)) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToPost());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.POSTED;\n currProbe.curr_error = null;\n postCounter++;\n }\n currProbe.update();\n }\n }\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.DELETED) {\n currProbe.delete();\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.EDITED) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToModify());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.WAIT_CONFIRM;\n currProbe.curr_error = null;\n editCounter++;\n }\n currProbe.update();\n }\n }\n }\n }\n }",
"@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}"
]
| [
"0.67672116",
"0.6087225",
"0.55063736",
"0.5417271",
"0.53954035",
"0.53856647",
"0.5365226",
"0.53394234",
"0.53280234",
"0.5289143",
"0.52305007",
"0.5225465",
"0.5185231",
"0.5175227",
"0.5170065",
"0.5164432",
"0.515354",
"0.5150237",
"0.51168907",
"0.5111524",
"0.51069814",
"0.5097888",
"0.5097631",
"0.50966185",
"0.5086588",
"0.50717103",
"0.50651133",
"0.5059685",
"0.50502753",
"0.50427616",
"0.5041433",
"0.5039876",
"0.5037934",
"0.5022305",
"0.50208783",
"0.50196505",
"0.4999414",
"0.49934694",
"0.49784127",
"0.49609908",
"0.49574423",
"0.49533027",
"0.49445248",
"0.49245977",
"0.49103534",
"0.49084735",
"0.49048457",
"0.4901623",
"0.49012354",
"0.48936826",
"0.48877418",
"0.48777342",
"0.48697397",
"0.48614094",
"0.48599502",
"0.48530683",
"0.4849479",
"0.48421055",
"0.48342082",
"0.48259595",
"0.48194936",
"0.48176077",
"0.4814604",
"0.48145047",
"0.47971004",
"0.4788553",
"0.47837085",
"0.478339",
"0.47663996",
"0.4764568",
"0.47629237",
"0.47627172",
"0.47620824",
"0.47582424",
"0.47572017",
"0.47558424",
"0.4755623",
"0.47534227",
"0.47494647",
"0.4744257",
"0.47368446",
"0.47301966",
"0.4726844",
"0.4725267",
"0.4715276",
"0.47085539",
"0.4706448",
"0.47032213",
"0.46767578",
"0.46763894",
"0.46721694",
"0.46703023",
"0.46685147",
"0.46666488",
"0.46665883",
"0.4659916",
"0.46598122",
"0.46528476",
"0.46381268",
"0.46292624"
]
| 0.75001615 | 0 |
Creates new form NewJPanel | public HoaDonJPanel() {
initComponents();
this.init();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NewJPanel() {\n initComponents();\n }",
"public NewJPanel() {\n initComponents();\n }",
"protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}",
"public CreateNewEventJPanel() {\n }",
"public static JPanel newPanel() {\n\t\treturn null;\n\t}",
"public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }",
"protected JPanel makeNewJPanel1() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel1 = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel1.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel1;\n\t}",
"public void addPage_GameControlContainer(JPanel newJPanel,String name){\n gameControlPanel.add(newJPanel,name);\n setVisible(true);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jLabel1.text_1\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jButton1.text\")); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton3, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jButton3.text\")); // NOI18N\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jLabel2.text_1\")); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton3))\n .addContainerGap())\n );\n }",
"private JPanel getJPanelNewSize() {\r\n\t\tif (jPanelNewSize == null) {\r\n\t\t\tjPanelNewSize = new JPanel();\r\n\t\t\tjPanelNewSize.setLayout(new BoxLayout(jPanelNewSize, BoxLayout.Y_AXIS));\r\n\t\t\t//jPanelNewSize.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\t\tjPanelNewSize.setBorder(new TitledBorder(null, \"New size\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\t\r\n\t\t\r\n\t\t\tJPanel pl = new JPanel();\r\n\t\t\tpl.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 5));\r\n\t\t\tpl.add(this.getJPanelNewWidth());\r\n\t\t\tpl.add(this.getJPanelNewHeight());\t\r\n\t\t\t\r\n\t\t\tjPanelNewSize.add(pl);\t\r\n\t\t\tjPanelNewSize.add(getJButtonMaxImgSize());\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jPanelNewSize;\r\n\t}",
"public JPanel createNewVersionPanel()\n\t{\n\t\t// Create and configure JPanels\n\t\tnewVersionPanel = new JPanel();\n\t\tnewVersionPanel.setLayout(new BoxLayout(newVersionPanel, BoxLayout.PAGE_AXIS));\n\t\tnewVersionPanel.setBorder(new CompoundBorder(new TitledBorder(\"New version\"), new EmptyBorder(8, 0, 0, 0)));\n\n\t\tnewVersionDescriptionPanel = new JPanel();\n\t\tnewVersionDescriptionPanel.setLayout(new BoxLayout(newVersionDescriptionPanel, BoxLayout.PAGE_AXIS));\n\t\t\n\t\t// Create components\n\t\tlabelVersionNumber = new JLabel(\"Version number:\");\n\t\t\n\t\tlabelDescription = new JLabel(\"Descriptions:\");\n\n\t\ttextFieldVersionNumber = new JTextField(20);\n\t\ttextFieldVersionNumber.setMaximumSize(textFieldVersionNumber.getPreferredSize());\n\t\ttextFieldVersionNumber.setAlignmentX(JLabel.LEFT_ALIGNMENT);\n\t\t\n\t\tbuttonAddTextFieldDescription = new JButton(\"+\");\n\t\tbuttonAddTextFieldDescription.addActionListener(this);\n\t\t\n\t\tbuttonAddVersion = new JButton(\"Add version\");\n\t\tbuttonAddVersion.addActionListener(this);\n\n\t\t// Attach components to JPanels\n\t\tnewVersionPanel.add(labelVersionNumber);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\tnewVersionPanel.add(textFieldVersionNumber);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tnewVersionPanel.add(labelDescription);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\tnewVersionPanel.add(newVersionDescriptionPanel);\n\t\tnewVersionPanel.add(buttonAddTextFieldDescription);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tnewVersionPanel.add(buttonAddVersion);\n\t\t\n\t\treturn newVersionPanel;\n\t}",
"public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}",
"private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }",
"private void changePanels(JPanel newPanel)\n\t{\n\t\tgetContentPane().removeAll();\n\t\tgetContentPane().add(newPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t\tnewPanel.requestFocusInWindow();\n\t}",
"private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}",
"private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}",
"public void addPage_MainContainer(JPanel newJPanel,String name){\n mainActionPanel.add(newJPanel,name);\n setVisible(true);\n }",
"public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}",
"public void addToJPanel() {\r\n\t\tsave_objects.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tsave_objects.add(blank1);\r\n\t\t\r\n\t\tsave_objects.add(title_lb);\r\n\t\tsave_objects.add(title);\r\n\t\t\r\n\t\tsave_objects.add(width_lb);\r\n\t\tsave_objects.add(width);\r\n\t\t\r\n\t\tsave_objects.add(height_lb);\r\n\t\tsave_objects.add(height);\r\n\t\t\r\n\t\tsave_objects.add(save);\r\n\t\tsave_objects.add(reset);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\ttitleFieldImage = new JLabel();\r\n\t\t\ttitleFieldImage.setBounds(new Rectangle(480, 75, 280, 60));\r\n\t\t\ttitleFieldImage.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldImage.setText(\"Image\");\r\n\t\t\ttitleFieldImage.setBackground(new Color(255, 204, 204));\r\n\t\t\tpageInfoLbl = new JLabel();\r\n\t\t\tpageInfoLbl.setBounds(new java.awt.Rectangle(224,480,315,30));\r\n\t\t\tpageInfoLbl.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tpageInfoLbl.setText(\"\");\r\n\t\t\ttitleFieldName = new JLabel();\r\n\t\t\ttitleFieldName.setBounds(new Rectangle(190, 75, 170, 60));\r\n\t\t\ttitleFieldName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldName.setBackground(new Color(255,204,204));\r\n\t\t\ttitleFieldName.setText(\"Field name\");\r\n\t\t\ttitleFieldId = new JLabel();\r\n\t\t\ttitleFieldId.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleFieldId.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldId.setBackground(new Color(255,160,204));\r\n\t\t\ttitleFieldId.setText(\"Field ID\");\r\n\t\t\tlblPageName = new JLabel();\r\n\t\t\tlblPageName.setBounds(new Rectangle(10, 40, 120, 20));\r\n\t\t\tlblPageName.setText(\"Page Name\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new java.awt.Rectangle(10,10,500,24));\r\n\t\t\tjLabel.setText(\"Select the field you want to add\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getPageSheet(), null);\r\n\t\t\tjPanel.add(getPreButton(), null);\r\n\t\t\tjPanel.add(getAfterButton(), null);\r\n\t\t\tjPanel.add(lblPageName, null);\r\n\t\t\tjPanel.add(titleFieldId, null);\r\n\t\t\tjPanel.add(titleFieldName, null);\r\n\t\t\tjPanel.add(pageInfoLbl, null);\r\n\t\t\tjPanel.add(titleFieldImage, null);\r\n\t\t\t\r\n\t\t\tJLabel titleFiledType = new JLabel();\r\n\t\t\ttitleFiledType.setText(\"Field Type\");\r\n\t\t\ttitleFiledType.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFiledType.setBounds(new Rectangle(10, 75, 90, 60));\r\n\t\t\ttitleFiledType.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleFiledType.setBounds(360, 75, 120, 60);\r\n\t\t\tjPanel.add(titleFiledType);\r\n\t\t\t\r\n\t\t\tJButton btnSelect = new JButton();\r\n\t\t\tbtnSelect.addActionListener(new ActionListener() {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\treturnValue.clear();\r\n\t\t\t\t\tgrid.freshData();\r\n\t\t\t\t\tList<Map<String, String>> valueList = grid.getValueList();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSelectBean bean = (SelectBean)pageIdSelect.getSelectedItem();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Map<String, String> map : valueList) {\r\n\t\t\t\t\t\tString strSelect = map.get(\"SELECT\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Boolean.valueOf(strSelect)) {\r\n\t\t\t\t\t\t\tMap<String, String> temp = new HashMap<String, String>(map);\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_ID\", bean.getCode());\r\n\t\t\t\t\t\t\tString strName = bean.getName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (strName.indexOf(\":\") > 0 && strName.length() > strName.indexOf(\":\") + 2) {\r\n\t\t\t\t\t\t\t\tstrName = strName.substring(strName.indexOf(\":\") + 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_NAME\", strName);\r\n\t\t\t\t\t\t\treturnValue.add(temp);\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\tif (returnValue.size() > 0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(PageSelectDialog.this, \"Plese select field!\");\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\tbtnSelect.setText(\"Select\");\r\n\t\t\tbtnSelect.setSize(new Dimension(90, 30));\r\n\t\t\tbtnSelect.setLocation(new Point(10, 480));\r\n\t\t\tbtnSelect.setBounds(10, 520, 120, 30);\r\n\t\t\tjPanel.add(btnSelect);\r\n\t\t\t\r\n\t\t\ttitleSelect = new JLabel();\r\n\t\t\ttitleSelect.setText(\"Select\");\r\n\t\t\ttitleSelect.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleSelect.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleSelect.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleSelect.setBounds(10, 75, 80, 60);\r\n\t\t\tjPanel.add(titleSelect);\r\n\t\t\t\r\n\t\t\tpageIdSelect = new JComboBox<DefaultComboBoxModel>();\r\n\t\t\tpageIdSelect.addItemListener(new ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\tsearchDetailList();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpageIdSelect.setBounds(140, 40, 300, 20);\r\n\t\t\tjPanel.add(pageIdSelect);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }",
"public JJPanel() {\n\n\t}",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}",
"public AddCourseJPanel() { \n initComponents(); \n }",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new Rectangle(40, 68, 105, 29));\r\n\t\t\tjLabel.setText(\" Enter your word\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.setBackground(new Color(0, 255, 51));\r\n\t\t\tjPanel.setPreferredSize(new Dimension(100, 100));\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJTextField(), null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton1(), null);\r\n\t\t\tjPanel.add(getJButton2(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJButton3(), null);\r\n\t\t\tjPanel.add(getJTextArea1(), null);\r\n\t\t\tjPanel.add(getJScrollBar(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n createManualJPanel();\r\n }",
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public static void generateNewPanel(boolean newMap) {\r\n\t\tif (MapGPanel.getInstance() != null) {\r\n\t\t\tMapGFrame.getInstance().remove(MapGPanel.getInstance());\r\n\t\t}\r\n\t\tMapGFrame.getInstance().add(MapGPanel.init(15, 15, 64, newMap));\r\n\t}",
"public NewJFrame() {\n initComponents();\n \n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame()\r\n {\r\n initComponents();\r\n }",
"private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }",
"public NewFrame() {\n initComponents();\n }",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"private JPanel getJPanel()\n\t{\n\t\tif (jPanel == null)\n\t\t{\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new BorderLayout());\n\t\t\tBorder bdr = BorderFactory.createTitledBorder(\"\");\n\t \tjPanel.setBorder(bdr);\n\t\t\tjPanel.add(getRPFilesPanel(), BorderLayout.CENTER);\n\t\t\tjPanel.add(getJPathPanel(), BorderLayout.NORTH);\n\t\t}\n\t\treturn jPanel;\n\t}",
"@Override\n public void newPanelModel() {\n\n }",
"@Override\n public void newPanelModel() {\n\n }",
"private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}",
"public NewJFrame() {\n initComponents();\n\n }",
"public PanelJuego() {\r\n\t\tsetLayout(new GridLayout(3, 3, 20, 20));// Se crea una matriz 3x3 con un\r\n\t\t\t\t\t\t\t\t\t\t\t\t// espaciado tanto horizontal\r\n\t\t\t\t\t\t\t\t\t\t\t\t// como vertical.\r\n\t\tposicion = new JTextField[9];\r\n\t\tllenarPanel();\r\n\t\tsetBackground(Color.BLACK);// Se pinta el fondo de negro.\r\n\t\tsetVisible(true);\r\n\t}",
"private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\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\t}",
"final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }",
"private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}",
"private JPanel getJPanel() {\n\t\tif (jPanel == null) {\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setSize(100,200);\n\t\t\tjPanel.setMaximumSize(jPanel.getSize());\n//\t\t\tjPanel.setMinimumSize(jPanel.getSize());\n\t\t\tjPanel.setLayout(null);\n\t\t\tjPanel.setBackground(new Color(238, 238, 0));\n\t\t\tjPanel.add(getJButton(), null);\n\t\t}\n\t\treturn jPanel;\n\t}",
"public CreateJPanel(Car car) {\n initComponents();\n this.car=car;\n }",
"public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }",
"public void newGame() {\n NJPanel = new JPanel(new BorderLayout());\n setGame = new JButton(new ImageIcon(\"images\\\\set.png\"));\n setGame.addActionListener(setGameHand);\n setGame.setBackground(Color.white);\n randomGame = new JButton(new ImageIcon(\"images\\\\random.png\"));\n randomGame.setBackground(Color.white);\n randomGame.addActionListener(randGameHand);\n mixGame = new JButton(new ImageIcon(\"images\\\\mix.png\"));\n mixGame.setBackground(Color.white);\n mixGame.addActionListener(mixGameHand);\n jlabel = new JLabel(String.format(\"%120s\", \"Choose a form of game\"));\n NJPanel.add(jlabel, BorderLayout.NORTH);\n NJPanel.add(setGame, BorderLayout.EAST);\n NJPanel.add(randomGame, BorderLayout.CENTER);\n NJPanel.add(mixGame, BorderLayout.WEST); \n add(NJPanel);\n }",
"void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }",
"protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"public CreateJPanel(ProfileInfo profileInfo) {\n initComponents();\n \n this.profileInfo = profileInfo;\n btnSave.setEnabled(false);\n \n }",
"public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,\r\n JTextField dLoc, JTextField pNum, JPanel panel) {\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n panel.add(new JLabel(\"First Name:\"));\r\n panel.add(fName);\r\n panel.add(Box.createHorizontalStrut(15)); // a spacer\r\n panel.add(new JLabel(\"Last Name:\"));\r\n panel.add(lName);\r\n panel.add(new JLabel(\"Vehicle Description:\"));\r\n panel.add(vDesc);\r\n panel.add(new JLabel(\"Pick Up Location\"));\r\n panel.add(cLoc);\r\n panel.add(new JLabel(\"Drop Off Location\"));\r\n panel.add(dLoc);\r\n panel.add(new JLabel(\"Phone Number\"));\r\n panel.add(pNum);\r\n }",
"void setNewCollectionPanel();",
"public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }",
"public NewJFrame1() {\n initComponents();\n }",
"public JComponent createFieldsPlayer() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n// \t\t\t\"User ID: \",\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \" \t\t\t\n \t};\n \t\n \tpLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldP = new JTextField();\n \tfirstFieldP.setColumns(20);\n \tfields[fieldNum++] = firstFieldP;\n \t\n \tlastFieldP = new JTextField();\n \tlastFieldP.setColumns(20);\n \tfields[fieldNum++] = lastFieldP;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tpLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tpLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(pLabels[i]);\n \t\tnamePanel.add(fields[i]);\n \t\t\n \t\t// for each field, create a spinner for every entry added\n \t\t/****** To Do ********/\n \t}\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }",
"private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}",
"private JPanel addPannelTopic(){\n\t\tJPanel panTopic = new JPanel();\n\t\tpanTopic.setPreferredSize(new Dimension(175, 75));\n\t\ttopicT = new JTextField();\n\t\ttopicT.setPreferredSize(new Dimension(100, 25));\n\t\tpanTopic.setBorder(BorderFactory.createTitledBorder(\"Topic\"));\n\t\ttopic = new JLabel(\"Put a topic :\");\n\t\tpanTopic.add(topic);\n\t\tpanTopic.add(topicT);\n\t\treturn panTopic;\n\t}",
"private JPanel createUnclassifiedPanel() {\n\t\tJPanel unclassPanel = new JPanel();\n\t\tunclassPanel.setLayout(new BorderLayout());\n\t\tunclassPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tJLabel unclassified = new JLabel(\"Unclassified\");\n\t\tunclassPanel.add(unclassified, BorderLayout.NORTH);\n\n\t\tunclassifiedCont = new JPanel();\n\t\tunclassifiedCont.setLayout(new FlowLayout());\n\t\tunclassPanel.add(createJScrollPane(unclassifiedCont), BorderLayout.CENTER);\n\n\t\treturn unclassPanel;\n\t}",
"private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}",
"private JPanel createPanel(String title) {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(0, 1));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), title));\n\t\treturn panel;\n\t}",
"private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }",
"public JPanel createPeoplePanel() {\n\t\t//setup\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(3, 2));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"People\"));\n\t\tpanel.add(new JCheckBox(\"Miss Scarlet\"));\n\t\tpanel.add(new JCheckBox(\"Colonel Mustard\"));\n\t\tpanel.add(new JCheckBox(\"Mr. Green\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. White\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. Peacock\"));\n\t\tpanel.add(new JCheckBox(\"Professor Plum\"));\n\t\treturn panel;\t\t\n\t}",
"private JPanel makePanel(JFrame frame, String layout, String panelLabel,\r\n int x, int y, int width, int height) {\r\n //Create a panel\r\n JPanel panel = new JPanel();\r\n panel.setSize(width, height);\r\n frame.add(panel, layout);\r\n panel.setLayout(null);\r\n JLabel label = new JLabel(panelLabel);\r\n label.setBounds(x, y, width, height);\r\n label.setFont(new Font(\"Monaco\", Font.BOLD, 20));\r\n panel.add(label);\r\n return panel;\r\n }",
"public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}",
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}",
"private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }",
"private void changeScreen( JPanel newCurrentPanel )\n\t{\n\t\tthis.getContentPane().remove( this.currentPanel );\n\t\tthis.currentPanel = newCurrentPanel;\n\t\tthis.getContentPane().add( this.currentPanel );\n\t\tthis.revalidate();\n\t\tthis.repaint();\n\t}",
"@DISPID(1611005968) //= 0x60060010. The runtime will prefer the VTID if present\n @VTID(44)\n void newWithPanel(\n boolean oNewPartPanelDisplayed);",
"private JPanel createExitPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 50));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"ExitsTitle\")));\n return panel;\n }",
"private JPanel criarPainelNorte() {\n\n JPanel pNorte = new JPanel(new BorderLayout());\n\n pNorte.setBorder(PADDING_BORDER);\n\n JLabel lbl = new JLabel(\"Selecione o tipo de Utilizador:\", JLabel.CENTER);\n\n btnFae = criarRadioBtnFae();\n btnOrg = criarRadioBtnOrg();\n btnRep = criarRadioBtnRep();\n\n ButtonGroup rBtnGroup = new ButtonGroup();\n rBtnGroup.add(btnFae);\n rBtnGroup.add(btnOrg);\n rBtnGroup.add(btnRep);\n\n JPanel panelBotoes = new JPanel(new FlowLayout());\n panelBotoes.add(btnFae);\n panelBotoes.add(btnOrg);\n panelBotoes.add(btnRep);\n\n pNorte.add(lbl, BorderLayout.NORTH);\n pNorte.add(panelBotoes, BorderLayout.CENTER);\n\n return pNorte;\n }",
"public JPanel createHeroList()\n\t{\t\n\t\t//create heroPanel\n\t\tJPanel heroPanel = new JPanel();\n\t\t//set the layout\n\t\theroPanel.setLayout(new GridLayout(3,1));\n\t\t//create the font for the panel and the labels\n\t\tFont heroFont = new Font(\"Comic Sans MS\",Font.BOLD,16);\n\t\t\n\t\t//create colorButton\n\t\tcolorButton = new JButton(\"Choose the Color\");\n\t\t//set font\n\t\tcolorButton.setFont(heroFont);\n\t\t//add the button to the panel\n\t\theroPanel.add(colorButton);\n\t\tcolorButton.setForeground(Color.ORANGE);\n\t\tcolorButton.setBackground(Color.BLACK);\n\t\tcolorButton.setOpaque(true);\n\t\t//implement action listener\n\t\tcolorButton.addActionListener(this);\n\t\t\n\t\t//create intro Label\n\t\tintroLabel = new JLabel(\"Super Hero Twenty Questions!!!\");\n\t\t//set the font\n\t\tintroLabel.setFont(heroFont);\n\t\tintroLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tintroLabel.setForeground(Color.ORANGE);\n\t\tintroLabel.setBackground(Color.BLACK);\n\t\tintroLabel.setOpaque(true);\n\t\t//add to the panel\n\t\theroPanel.add(introLabel);\n\t\t\n\t\t//create hero label and pick your favorite super hero\n\t\theroLabel = new JLabel(\"Choose your Favorite Super Hero!!!\");\n\t\t//set horizontal alignment\n\t\theroLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\theroLabel.setForeground(Color.ORANGE);\n\t\theroLabel.setBackground(Color.BLACK);\n\t\theroLabel.setOpaque(true);\n\t\theroLabel.setFont(heroFont);\n\t\t//add the label ot panel\n\t\theroPanel.add(heroLabel);\n\t\t//return Panel\n\t\treturn heroPanel;\n\t}",
"void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}",
"private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJEditorPane(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"private javax.swing.JPanel getJPanel() {\n\t\tif(jPanel == null) {\n\t\t\tjPanel = new javax.swing.JPanel();\n\t\t\tjava.awt.FlowLayout layFlowLayout3 = new java.awt.FlowLayout();\n\t\t\tlayFlowLayout3.setHgap(0);\n\t\t\tlayFlowLayout3.setVgap(0);\n\t\t\tlayFlowLayout3.setAlignment(java.awt.FlowLayout.LEFT);\n\t\t\tjPanel.setLayout(layFlowLayout3);\n\t\t\tjPanel.add(PanelIconosCR.getPanelLogo(), null);\n\t\t\tjPanel.add(PanelIconosCR.getPanelIconos(), null);\n\t\t\tjPanel.add(getJPanel2(), null);\n\t\t\tjPanel.add(getJPanel4(), null);\n\t\t\tjPanel.add(getJPanel3(), null);\n\t\t\tjPanel.add(PanelMensajesCR.getAreaMensajes(), null);\n\t\t\tjPanel.add(PanelMensajesCR.getPanelEstadoCaja(), null);\n\t\t\tjPanel.add(PanelMensajesCR.getPanelStatus(), null);\n\t\t\tjPanel.setBackground(new java.awt.Color(242,242,238));\n\t\t\tjPanel.setPreferredSize(new java.awt.Dimension(660,560));\n\t\t\tjPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(69,107,127),1));\n\t\t}\n\t\treturn jPanel;\n\t}",
"public void transitionToNewParticipantPage(){\n removeAll();\n newParticipantPanel = new NewParticipantPanel(contr);\n add(newParticipantPanel, \"span 1\");\n }",
"public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public JComponent createFieldsCont() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \",\n \t\t\t\"Tribe Name: \"\n \t};\n \t\n \tcLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldC = new JTextField();\n \tfirstFieldC.setColumns(20);\n \tfields[fieldNum++] = firstFieldC;\n \t\n \tlastFieldC = new JTextField();\n \tlastFieldC.setColumns(20);\n \tfields[fieldNum++] = lastFieldC;\n \t\n \ttribeField = new JTextField();\n \ttribeField.setColumns(31);\n \tfields[fieldNum++] = tribeField;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tcLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tcLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(cLabels[i]);\n \t\tnamePanel.add(fields[i]); \t\t\n \t}\n \t\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }",
"private JPanel getJPLinha()\n\t{\n\t\tif ( jPLinha == null )\n\t\t{\n\t\t\tjPLinha = new JPanel();\n\t\t\tjPLinha.setLayout(new BorderLayout());\n\t\t\tjPLinha.setBounds(new Rectangle(17, 170, 981, 2));\n\t\t\tjPLinha.setBorder(BorderFactory.createLineBorder(Color.gray));\n\t\t}\n\t\treturn jPLinha;\n\t}",
"private void buildPanel()\r\n\t{\r\n\t\tgallonsLabel = new JLabel(\"Gallons: \");\r\n\t\tgallonsField = new JTextField(5);\r\n\t\t\r\n\t\tmilesLabel = new JLabel(\"Miles: \");\r\n\t\tmilesField = new JTextField(5);\r\n\t\t\r\n\t\tcalcButton = new JButton(\"Calculate MPG\");\r\n\t\tcalcButton.addActionListener(new CalcButtonListener());\r\n\t\t\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.add(gallonsLabel);\r\n\t\tpanel.add(gallonsField);\r\n\t\tpanel.add(milesLabel);\r\n\t\tpanel.add(milesField);\r\n\t\tpanel.add(calcButton);\r\n\t}",
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"public LoginJPanel() {\n initComponents();\n }",
"public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\n\t}",
"private JPanel getJPanel_button() {\n\t\t\tJPanel jPanel_button = null;\n\t\t\tFlowLayout flowLayout1 = new FlowLayout();\n\t\t\tflowLayout1.setHgap(15);\n\t\t\tflowLayout1.setVgap(40);\n\t\t\tjPanel_button = new JPanel();\n\t\t\tjPanel_button.setLayout(flowLayout1);\n\t\t\tjPanel_button.setPreferredSize(new Dimension(200, 530));\n\t\t\tjPanel_button.add(getJButton_spect(), null);\n\t\t\tjPanel_button.add(getJButton_member(), null);\n\t\t\tjPanel_button.add(getJButton_room(), null);\n\t\treturn jPanel_button;\n\t}",
"private JPanel getJPanelNewHeight() {\r\n\t\tif (jPanelNewHeight == null) {\r\n\t\t\tjPanelNewHeight = new JPanel();\r\n\t\t\tjPanelNewHeight.setLayout(new BorderLayout());\r\n\t\t\tjLabelNewHeight = new JLabel(\"Height: \");\r\n\t\t\t//jLabelNewHeight.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\t//jLabelNewHeight.setPreferredSize(new Dimension(70, 20));\r\n\t\t\tSpinnerModel sModel = new SpinnerNumberModel(0, 0, Integer.MAX_VALUE, 1); // init, min, max, step\r\n\t\t\tjSpinnerNewHeight = new JSpinner(sModel);\r\n\t\t\t//jSpinnerNewHeight.setPreferredSize(new Dimension(60, 20));\r\n\t\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\t\t\tJSpinner.DefaultEditor defEditor = (JSpinner.DefaultEditor) jSpinnerNewHeight.getEditor();\r\n\t\t\tJFormattedTextField ftf = defEditor.getTextField();\r\n\t\t\tftf.setColumns(5);\r\n\t\t\tInternationalFormatter intFormatter = (InternationalFormatter) ftf.getFormatter();\r\n\t\t\tDecimalFormat decimalFormat = (DecimalFormat) intFormatter.getFormat();\r\n\t\t\tdecimalFormat.applyPattern(\"#\"); // decimalFormat.applyPattern(\"#,##0.0\")\r\n\t\t\tjPanelNewHeight.add(jLabelNewHeight, BorderLayout.WEST);\r\n\t\t\tjPanelNewHeight.add(jSpinnerNewHeight, BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jPanelNewHeight;\r\n\t}"
]
| [
"0.817477",
"0.817477",
"0.7585207",
"0.7258462",
"0.71809214",
"0.71031886",
"0.70445937",
"0.70364994",
"0.69823575",
"0.6935976",
"0.6924051",
"0.68552434",
"0.67962646",
"0.67905277",
"0.67226845",
"0.66556996",
"0.66530615",
"0.6632589",
"0.660701",
"0.65997523",
"0.658596",
"0.65759945",
"0.65435094",
"0.6537395",
"0.6536251",
"0.6531818",
"0.6518452",
"0.6476642",
"0.647256",
"0.6452826",
"0.6447745",
"0.643768",
"0.64255464",
"0.640901",
"0.6398301",
"0.6398301",
"0.6398301",
"0.6398301",
"0.6398301",
"0.6398301",
"0.6398301",
"0.6398046",
"0.63964385",
"0.6386962",
"0.63839847",
"0.6365963",
"0.63632697",
"0.63632697",
"0.6361815",
"0.63389313",
"0.6306416",
"0.62961197",
"0.6294597",
"0.62909025",
"0.62831944",
"0.6267119",
"0.6260178",
"0.6259707",
"0.625741",
"0.6256106",
"0.6256019",
"0.62548596",
"0.6248757",
"0.62295943",
"0.621223",
"0.62119275",
"0.6205904",
"0.62032366",
"0.6202263",
"0.61973023",
"0.61764234",
"0.61747646",
"0.61616784",
"0.61559033",
"0.61469585",
"0.6143755",
"0.61410713",
"0.61347216",
"0.6126471",
"0.6125717",
"0.6125688",
"0.61217415",
"0.6119261",
"0.61187315",
"0.61139446",
"0.61119235",
"0.6110666",
"0.61000526",
"0.6094606",
"0.6089739",
"0.6081166",
"0.6081132",
"0.60794634",
"0.607481",
"0.60697395",
"0.60586435",
"0.6050578",
"0.6050456",
"0.60482776",
"0.60473084",
"0.60461"
]
| 0.0 | -1 |
All classes that need to listen to events should implement this interface | public interface IEventListener {
/**
* Handles an event
* @param e event
* @return true if the event should be consumed and not propagated, otherwise false
*/
boolean onEvent(Event e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Event {\n\n}",
"public interface Event {\n\n}",
"public interface EventReceiver {\n\n void onNotify(Event event);\n\n }",
"public interface SubscribableByMe extends Event {\n}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}",
"public interface Listener {}",
"public interface IEvent {\n}",
"public interface EventListener {\n\t/**\n\t * Add an EventHandler to handle events for processing.\n\t * @param handler the EventHandler to add\n\t */\n\tpublic void addHandler(EventHandler handler);\n}",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"public interface ApplicationListener extends EventListener {\n\n /**\n * Handle an application event\n *\n * @param e event to respond to\n */\n void onApplicationEvent(ApplicationEvent e);\n\n}",
"public interface Listener {\n}",
"public interface Listener {\n}",
"public interface IEvenListener {\n}",
"void subscribeToEvents(Listener listener);",
"public interface EventSource {\n\n void addEventListener(EventListener<? extends Event> listener);\n\n void removeEventListener(EventListener<? extends Event> listener);\n\n void notifyListeners(Event event);\n\n}",
"public interface EventHandler\n{\n\t/**\n\t * Process the given event. Called by the EventMonitor when an event occurs.\n\t * \n\t * @param event\n\t * @throws Exception if something goes wrong\n\t */\n\tpublic void handle(TogglesEvent event)\n\tthrows Exception;\n\t\n\t/**\n\t * Answers whether this EventHandler can handle events of the given type.\n\t * If true is returned, the EventMonitor will call handle(), otherwise,\n\t * the EventMonitor will not ask this event handler to process the event.\n\t * \n\t * @param eventClass\n\t * @return\n\t */\n\tpublic boolean handles(Class<? extends TogglesEvent> eventClass);\n}",
"public interface EventListener {\n\n\t/**\n\t * Called when a task event has occurred.\n\t * \n\t * @param event\n\t * the task event which has occurred\n\t */\n\tvoid eventOccurred(AbstractTaskEvent event);\n}",
"public abstract void onEvent(T event);",
"public interface ISemanticEventListener {\n\n\t/**\n\t * Notifies this listener that a semantic event has happened.\n\t * @param event - the semantic event\n\t */\n\tvoid notify(IUISemanticEvent event);\n \n\t////////////////////////////////////////////////////////////////////////////\n\t//\n\t// Meta events\n\t//\n\t////////////////////////////////////////////////////////////////////////////\n\n\t//TODO: maybe these meta-notifications should not have there own methods?\n\t\n /**\n * Notifies this listener that event recording has started.\n */\n void notifyStart();\n \n /**\n * Notifies this listener that event recording has stopped.\n */\n void notifyStop();\n\n /**\n * Notifies this listener that the event stream is to be written.\n */\n void notifyWrite();\n \n /**\n * Notifies this listener that root display has been disposed (effectively, recording is terminated).\n */ \n void notifyDispose();\n\n\t/**\n\t * Notifies this listener that the event stream is to be flushed and restarted.\n\t */\n\tvoid notifyRestart();\n\n\t/**\n\t * Notifies this listener that the event stream is to be paused.\n\t */\n\tvoid notifyPause();\n\t\n\t/**\n\t * Notifies this listener that an error occured during recording.\n\t * @param event - the error event\n\t */\n\tvoid notifyError(RecorderErrorEvent event);\n\n\t/**\n\t * Notifies this listener that a trace event was sent during recording.\n\t * @param event - the trace event\n\t */\n\tvoid notifyTrace(RecorderTraceEvent event);\n\n\t/**\n\t * Notifies this listener that a hook added vent was sent during recording.\n\t * @param hookName \n\t */\n\tvoid notifyAssertionHookAdded(String hookName);\n\t\n\t/**\n\t * Notifies that Recorder Controller was started and listens on specific port \n\t * @param port the port number that this controller started listen on\n\t */\n\tpublic void notifyControllerStart(int port);\n\t\n\t/**\n\t * Notifies this listener that Display instance was not found in the application process\n\t */\n\tpublic void notifyDisplayNotFound();\n\n\t/**\n\t * Notifies the listener that spy mode has been toggled.\n\t */\n\tvoid notifySpyModeToggle();\n}",
"public interface EventHandler {\n\n public void handleEvent(EventData event);\n}",
"public interface EventListener<E extends EventObject> extends java.util.EventListener {\n\n void postEvent(E event);\n}",
"public interface OnEventControlListener {\r\n\tvoid onEvent(int eventType, View control, Object data);\r\n}",
"public interface IEventController extends IEventHandler\n{\n\t/**\n\t\tCalled by the GameState before being added to the\n\t\tevent-system, it allows the controller to send events.\n\t*/\n\tpublic void setAddEventInterface( final IAddEvent _addInterface ) ;\n\n\t/**\n\t\tCalled to process the events it's accumulated from\n\t\tthe event-system.\n\t*/\n\tpublic void update() ;\n\n\tpublic void clearEvents() ;\n}",
"public interface KWEvent {\n\n\tpublic void portError(String msg);\n\n\t//from server.\n\n\tpublic void onRegisterRoomSuccess(RoomBean room);\n\n\tpublic void onRegisterRoomFailure(String msg);\n\n\tpublic void onRemoteAnswer(String sdp);\n\n\tpublic void onRemoteIceCandidate(final IceCandidate candidate);\n\n\tpublic void onDisconnect();\n\n\t//接受聊天信息。\n\tpublic void onMessage(String msg);\n\n\t//from peerconnection.\n\tpublic void onLocalSdp(SessionDescription localsdp);\n\n\t/**\n\t *\n\t */\n\tpublic void onClientPrepareComplete();\n\n\t/**\n\t * Callback fired once local Ice candidate is generated.\n\t *\n\t * @param candidate\n\t */\n\tpublic void onIceCandidate(final IceCandidate candidate);\n\n\t/**\n\t * Callback fired once connection is established(IceConnectionState is CONNECTED).\n\t */\n\tpublic void onIceConnected();\n\n\t/**\n\t * Callback fired once connection is closed(IceConnectionoState is DISCONNECTED).\n\t */\n\tpublic void onIceDisconnected();\n\n\t/**\n\t * Callback fired once peer connection is closed.\n\t */\n\tpublic void onPeerConnectionClosed();\n}",
"public interface EventHandler {\n public void handle(Event event);\n}",
"public interface IBaseListener {\n}",
"@Override\n\t@SuppressWarnings(\"unchecked\")\n\tpublic <E> void onEvent(E event) {\n\t\tif (clazz.isInstance(event)) {\n\t\t\tonEvent((T) event);\n\t\t}\n\t}",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"@Override\n\tpublic void getListener(){\n\t}",
"public interface WFEventListener extends ActivityInsEventListener, ProcessInsEventListener {\r\n\r\n /**\r\n * called when a timer event is fired;\r\n */\r\n public void onTimerEvent();\r\n\r\n public void addECAList(ECAList list);\r\n\r\n}",
"public interface HardEventListener {\n void onHardEvent(HardEvent event);\n}",
"public interface Listener {\n /**\n * Called when the user has performed a double tap and then held down\n * the second tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n */\n void onDoubleTapAndHold(MotionEvent event, int policyFlags);\n\n /**\n * Called when the user lifts their finger on the second tap of a double\n * tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n boolean onDoubleTap(MotionEvent event, int policyFlags);\n\n /**\n * Called when the system has decided the event stream is a gesture.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureStarted();\n\n /**\n * Called when an event stream is recognized as a gesture.\n *\n * @param gestureId ID of the gesture that was recognized.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureCompleted(int gestureId);\n\n /**\n * Called when the system has decided an event stream doesn't match any\n * known gesture.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n public boolean onGestureCancelled(MotionEvent event, int policyFlags);\n }",
"public interface ActiveEvent {\n\n /**\n * Dispatch the event to its target, listeners of the events source,\n * or do whatever it is this event is supposed to do.\n */\n public void dispatch();\n}",
"public interface BrainFlowProjectListener {\n\n public void modelAdded(BrainFlowProjectEvent event);\n\n public void modelRemoved(BrainFlowProjectEvent event);\n\n public void intervalAdded(BrainFlowProjectEvent event);\n\n public void contentsChanged(BrainFlowProjectEvent event);\n\n public void intervalRemoved(BrainFlowProjectEvent event);\n}",
"public interface IEvent {\r\n\r\n\t/**\r\n\t * Returns the source of the event. As events are emitted\r\n\t * by instances that are bound to an instance, this method\r\n\t * will point to the corresponding source emitter that \r\n\t * received the event.\r\n\t * \r\n\t * @return The source of the event.\r\n\t */\r\n\tpublic IEventCollector getSource();\r\n\t\r\n\t/**\r\n\t * The type of the event. This will be the string that is\r\n\t * negotiated in the contract. \r\n\t * \r\n\t * @return The type of the event that has been sent. This\r\n\t * \twill be the parameter as defined in the contract.\r\n\t */\r\n\tpublic String getType();\r\n\t\r\n\t/**\r\n\t * The data object that has been sent as event object. \r\n\t * \r\n\t * @return The data object of this event.\r\n\t */\r\n\tpublic Object getData();\r\n\r\n}",
"public interface SmartEventListener {\n\n\t/**\n\t * Specifies action to be taken on successful completion of action. Also\n\t * processes SmartEvent on the basis of event type contained in it\n\t * \n\t * @param smartEvent\n\t * : SmartEvent containing event type\n\t */\n\tvoid onCompleteActionWithSuccess(SmartEvent smartEvent);\n\n\t/**\n\t * Specifies action to be taken on unsuccessful completion of action. Also\n\t * processes SmartEvent on the basis of event type contained in it\n\t * \n\t * @param smartEvent\n\t * : SmartEvent containing event type\n\t */\n\tvoid onCompleteActionWithError(SmartEvent smartEvent);\n\n\tvoid shutDown();\n}",
"public interface InputListener {\n\t\n\t/**\n\t * Handle the data of the event\n\t * @param e the event\n\t */\n\tpublic void handleInput(InputEvent e);\n\t\n}",
"public interface TestSessionsUpdatedEventHandler extends EventHandler {\n void onTestSessionsUpdated(TestSessionsUpdatedEvent event);\n}",
"public interface Event {\n String getName();\n void setName(String name);\n}",
"@Subscribe\n public void onEvent(Object event) {\n }",
"@Subscribe\n public void onEvent(Object event) {\n }",
"public abstract void registerListeners();",
"public interface SocketEventListener {\n\npublic void socketReceive( String s );\n}",
"public interface theListener {\n public void itemToSend(String s);\n }",
"public interface RehaTPEventListener extends EventListener {\npublic void rehaTPEventOccurred(RehaTPEvent evt );\n/*public void RehaTPEventOccurred(TerminFenster evt );\npublic void RehaTPEventOccurred(Container evt );\npublic void RehaTPEventOccurred(Object evt );\npublic void RehaTPEventOccurred(SystemLookAndFeel evt );\n*/\n}",
"public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }",
"public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}",
"public interface IOnVenueAddedListener {\n\n void onVenueAdded(Venue venue);\n}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"protected Listener(){super();}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"public interface ChatxEventListener extends EventListener {\n public void OnChatEvtNewMsg(String msg);\n public void OnChatEvtConnectServerFailed();\n public void OnChatActivityQuit();\n public void OnChatEvtConnected();\n public void OnChatEvtDisConnected();\n public void OnNoAgents(String reason);\n\n public void OnVideoGuestJoin(String vendor,String param1,String param2,String param3,String param4 );\n public void OnVideoQuit();\n}",
"void onNewEvent(Event event);",
"public interface InputListener {\r\n void input(InputEvent ie);\r\n}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"public interface INotificationListener extends INotifyObject{\r\n\t\r\n\tvoid OnNotificationEvent(int notification, INotifyObject notificationData);\r\n}",
"interface DogEventListener {\n\n void clickDogSpeak(int pos);\n }",
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"public interface IPlayEvent {\n void onPlayStart();\n void OnPlayPaused();\n void OnPlayResume();\n void OnPlayStoped();\n void OnPlayComplete();\n void OnReplay();\n void OnPrepared(boolean value);\n}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"public interface ConnectionEventListener {\n /** \n * Called on all listeners when a connection is made or broken. \n */\n void connectionActivity(ConnectionEvent ce);\n}",
"public interface IGUIEvent {\n\n\n /**\n * Returns the source of the event.\n * \n * @return the source.\n */\n public abstract Object getSource();\n\n\n /**\n * Consumes the event.\n */\n public abstract void consume();\n\n\n /**\n * Returns whether this event has been consumed.\n * \n * @return <CODE>true</CODE> if the event has been consumed;\n * <CODE>false</CODE> otherwise.\n */\n public abstract boolean isConsumed();\n}",
"interface NowPlayingListener\n{\n\tpublic void nowPlayingSongSet(NowPlayingEvent ev);\n\tpublic void nowPlayingSongCleared(NowPlayingEvent ev);\n}",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public interface TimeEventListener {\r\n\tpublic void onTimeEvent(long count);\r\n}",
"public interface NewDeviceDetectedEventListener extends EventListener {\r\n\tpublic void newDeviceDetectedEventOccurred(NewDeviceDetectedEvent evt);\r\n }",
"public interface EventBus {\n\n public String name();\n\n /**\n * Posts an event to all registered subscribers. This method will return successfully after the\n * event has been posted to all subscribers, and regardless of any exceptions thrown by\n * subscribers.\n *\n * @param event event to post.\n */\n public void post(Object event);\n\n}",
"public interface MovieEventListener {\n\tvoid onMovieSelected(MovieModel movieModel, AspectLockedImageView movieItemImage);\n\tvoid onListItemFavouriteStateChanged(MovieModel movieModel, int position);\n}",
"public interface MonitoringEventListener {\n\n /**\n * Callback for received STDOUT lines.\n * \n * @param line stdout line\n */\n void appendStdout(String line);\n\n /**\n * Callback for received STDERR lines.\n * \n * @param line stderr line\n */\n void appendStderr(String line);\n\n /**\n * Callback for additional user information lines (validation, progress, ...).\n * \n * @param line information line\n */\n void appendUserInformation(String line);\n}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}",
"public abstract void handle(Object event);",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n protected void initializeEventList()\n {\n }",
"public interface MessagingQueueListener {\n\n void onMessage(MessageEvent messageEvent);\n}",
"public interface NotifyListener {\n void onDateClick(Date date);\n}",
"public interface IMainEvent {\n\n void showEvent(String data);\n}",
"public interface IMonitorListener {\n public void onEvent(Message cim);\n}",
"@Override\n public void addListener(Class<? extends EventListener> listenerClass) {\n\n }",
"public interface OnBaseUIListener {\n}",
"public interface IFightEvent {\n AbstractStageEventListener stageListener = StageManager.getInstance().getStageEventListener();\n EventManager eventManager = EventManager.getInstance();\n default void gainHealth(FightRole role, int val) {\n stageListener.onGainHealth(role, val);\n }\n\n default void loseHealth(FightRole role, int val) {\n\n }\n\n default void causeDamage(FightRole role, int val) {\n\n }\n\n default void beDamaged(FightRole role, int val) {\n\n }\n\n default void getHurt(FightRole role, int val) {\n stageListener.onGetHurt(role, val);\n // FIXME\n\n }\n\n void on(FightEvent event, Callback callback);\n\n void one(FightEvent event, Callback callback);\n\n void triggle(FightEvent event);\n\n void triggle(StageEvent event);\n}",
"public interface EventFilter {\n\n /**\n * Filter an event\n *\n * @param eventName\n * name of the event to filter\n * @param params\n * objects sent with the event\n * @param eventBus\n * event bus used to fire the event\n * @return false if event should be stopped, true otherwise\n */\n boolean filterEvent(String eventName, Object[] params, Object eventBus);\n}",
"public interface GrillEventService {\n public static final String NAME = \"event\";\n /**\n * Add a listener interested in a specific type of event. The type is deduced from the argument type of handler method\n * \n * @param listener\n */\n public void addListener(GrillEventListener listener);\n \n \n /**\n * Add a listener for the given event type. Use this method to register if the same class\n * is expected to receive events of different types\n */\n public void addListenerForType(GrillEventListener listener, Class<? extends GrillEvent> eventType);\n \n /**\n * Remove listener for a given event type\n */\n public void removeListenerForType(GrillEventListener listener, Class<? extends GrillEvent> eventType);\n\n /**\n * Remove this listener instance from all subscribed event types\n * \n * @param listener\n */\n public void removeListener(GrillEventListener listener);\n\n /**\n * Process an event, and notify all listeners interested in this event\n * \n * @param event object\n * \n * @throws GrillException\n */\n public void notifyEvent(GrillEvent event) throws GrillException;\n\n /**\n * Get all listeners of a particular type\n * \n * @param changeType\n * \n * @return all the listeners\n */\n public Collection<GrillEventListener> getListeners(Class<? extends GrillEvent> changeType);\n}",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface DispatchListener {\n void onDispatchClickListener(Dispatch dispatch);\n}",
"public interface LogPrintListener extends EventListener {\n\n public void LogPrintHandle(LogPrintEvent event);\n}",
"@Override\n public <T extends EventListener> void addListener(T t) {\n\n }",
"void onBusEvent(Event event);",
"public interface SessionListEvent {\n\n void onSessionClick(View v, int position, SessionInfo session);\n\n void onSessionLongClick(View v, int position, SessionInfo session);\n\n void onSessionLeftSlide(View v, int position, SessionInfo session);\n}"
]
| [
"0.74221504",
"0.74221504",
"0.73818916",
"0.7354305",
"0.7344397",
"0.733534",
"0.7290853",
"0.72314286",
"0.71956384",
"0.7104428",
"0.70857185",
"0.70668966",
"0.70668966",
"0.70290166",
"0.6998727",
"0.6947222",
"0.6908976",
"0.6870635",
"0.6842595",
"0.6827882",
"0.6820693",
"0.6813926",
"0.67561907",
"0.6740787",
"0.6730136",
"0.67210436",
"0.67158145",
"0.66844285",
"0.66839975",
"0.6669616",
"0.6644365",
"0.6639491",
"0.66317904",
"0.66272736",
"0.66243434",
"0.66237754",
"0.6618521",
"0.6607862",
"0.65993387",
"0.658594",
"0.65846545",
"0.65846545",
"0.656775",
"0.6565083",
"0.65616554",
"0.65524966",
"0.6529625",
"0.6527914",
"0.6501442",
"0.6500588",
"0.64939517",
"0.64863724",
"0.64863724",
"0.6485905",
"0.6484711",
"0.64842737",
"0.6478034",
"0.6478034",
"0.6478034",
"0.6478034",
"0.6478034",
"0.64682174",
"0.64640766",
"0.6458929",
"0.6457217",
"0.6456619",
"0.6456619",
"0.6456619",
"0.6449148",
"0.64443266",
"0.6442625",
"0.6437626",
"0.6436382",
"0.6429788",
"0.6428253",
"0.6415918",
"0.6414391",
"0.6407098",
"0.6406324",
"0.6406324",
"0.6405524",
"0.63981545",
"0.63981545",
"0.6393281",
"0.63768977",
"0.6372239",
"0.6371883",
"0.63712764",
"0.6370796",
"0.636711",
"0.6356227",
"0.6349845",
"0.6348335",
"0.63463265",
"0.63463265",
"0.634536",
"0.6345324",
"0.63394886",
"0.633639",
"0.63307124"
]
| 0.7042351 | 13 |
Liste des articles en vente de l'utilisateur | public UConnecte() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }",
"public void listArticles() {\n\t\tSystem.out.println(\"\\nArticles llegits desde la base de dades\");\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(System.out::println);\n\t}",
"@Override\r\n\tpublic List<Usuario> listarUsuario() {\n\t\treturn iUsuario.listarUsuarios();\r\n\t}",
"public String listViaje() {\n\t\t\t//resetForm();\n\t\t\treturn \"/boleta/list.xhtml\";\t\n\t\t}",
"public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }",
"public abstract List<Usuario> seleccionarTodos();",
"@RequestMapping(value = { \"/\", \"/list\" }, method = RequestMethod.GET)\n\tpublic String listEntities(ModelMap model) {\n\n\t\tList<ENTITY> entities = abm.listar();\n\n\t\tlogger.info(\"Tengo {} usuarios registrados\", entities.size());\n\n\t\tmodel.addAttribute(\"entities\", entities);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/list\";\n\t}",
"public List<Articles> listArticlesService();",
"public List<Etudiant> afficher() {\n\t\treturn dao.afficher();\r\n\t}",
"public List getUsuarios();",
"public List<Usuario> listar() {\n return listaUse;\n }",
"private void listarUsuarios() {\r\n \t\r\n \tfor(String usuario : ConfigureSetup.getUsers()) {\r\n \t\tif(!usuario.equals(ConfigureSetup.getUserName()))\r\n \t\t\tlista_usuarios.getItems().add(usuario);\r\n \t}\r\n \t\r\n \t//lista_usuarios.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\t\r\n }",
"public List<Articulos> listarArticulos(){\n\t\treturn iArticulos.findAll();\n\t}",
"public List<Login>listar();",
"@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }",
"public ArrayList<DataUsuario> listarUsaurios();",
"public void setupArticlesList();",
"public List<User> list();",
"public List<Utilizator> listUsers();",
"public List<Usuario> listar() {\n List<Usuario> listaUsuarios = new ArrayList<>();\n String consulta = \"select tipoDocumento, documento, nombre, apellido, password, correo, tipoUsuario from Usuario\";\n Cursor temp = conex.ejecutarSearch(consulta);\n if (temp.moveToFirst()) {\n do {\n Usuario usuario = new Usuario(temp.getString(0), Integer.parseInt(temp.getString(1)), temp.getString(2), temp.getString(3), temp.getString(4), temp.getString(5), temp.getString(6));\n listaUsuarios.add(usuario);\n } while (temp.moveToNext());\n }\n return listaUsuarios;\n }",
"private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }",
"public UserList list();",
"public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}",
"@Override\n\tpublic List<Usuario> listUsuario() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Usuario> obtenerTodas() {\n\t\treturn lista;\n\t}",
"public List<Article> findAll();",
"public List<Utente> retriveAllUtenti()\n\t{\n\t\tTypedQuery<Utente> query = em.createNamedQuery(Utente.FIND_ALL, Utente.class);\n return query.getResultList();\n\t}",
"public List<Usuario> findAllUsuarios(){\n\t\t\t List<Usuario> listado;\n\t\t\t Query q;\n\t\t\t em.getTransaction().begin();\n\t\t\t q=em.createQuery(\"SELECT u FROM Usuario u ORDER BY u.idUsr\");\n\t\t\t listado= q.getResultList();\n\t\t\t em.getTransaction().commit();\n\t\t\t return listado;\n\t\t\t \n\t\t\t}",
"@Override\r\n\tpublic List<Usuario> listDesp() {\n\t\treturn null;\r\n\t}",
"List<UserContentAccess> findContentAccess();",
"public List<ArticleVo> getAllArticles()\n\t {\n\t List<ArticleVo> articleList = ArticleConverter.toVoList(repository.findAllDistinct());\n\n\t if(articleList.size() > 0) {\n\t return articleList;\n\t } else {\n\t return new ArrayList<ArticleVo>();\n\t }\n\t }",
"public String navigateUsuarioList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Usuario_items\", this.getSelected().getUsuarioList());\n }\n return \"/usuario/index\";\n }",
"@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }",
"@Override\n\tpublic List<User> showUserList(Search search) {\n\t\treturn userDao.showUserList(search);\n\t}",
"public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }",
"@Override\n public List<Article> getArticles() {\n List<Article> articles=articleDAO.getArticles();\n knownArticles.addAll(articles);\n return articles;\n }",
"public String ListUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio\r\n listUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n return listUsers.toString(); \r\n }",
"public ListaEtiquetas() {\n this.listaEtiquetas = new ArrayList<>();\n }",
"public static List<Utente> lista_utenti(){\r\n\t\tArrayList<Utente> lista=null;\r\n\t\ttry {\r\n\t\t\tDatabase.connect();\r\n\t\t\tResultSet rs = Database.selectRecord(\"utente\", \"utente.username\");\r\n \t\tlista = new ArrayList<Utente>();\r\n \t\twhile(rs.next()) {\r\n \t\t\tint id = rs.getInt(\"id\");\r\n \t\t\tint ruolo = rs.getInt(\"ruolo\");\r\n \t\t\tString username = rs.getString(\"username\");\r\n \t\t\tString email = rs.getString(\"email\");\r\n \t\t\tDate dataSignup = rs.getDate(\"dataSignup\");\r\n \t\t\t\r\n \t\t\tUtente elemento = new Utente(id,ruolo,username,email,dataSignup);\r\n \t\t\tlista.add(elemento);\t\r\n \t\t}\r\n\t\t\tDatabase.close();\t\t\t\r\n\t\t}catch(NamingException e) {\r\n\t\t\tSystem.out.println(\"NamingException\"+e);\r\n\t }catch (SQLException e) {\r\n\t \tSystem.out.println(\"SQLException\"+e);\r\n\t }catch (Exception e) {\r\n\t \tSystem.out.println(\"Exception\"+e); \r\n\t }\r\n\t\treturn lista;\r\n\t}",
"private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }",
"public void index() {\n\t\t\n\t\tList<Filme> preferencias = new ArrayList<Filme>();\n\t\tfor( Map.Entry<Key, Integer> entry : session.getUsuario().getPreferencias().entrySet()){\n\t\t\tFilme tmp = filmeDao.getById(entry.getKey());\n\t\t\ttmp.setVotos(entry.getValue());\n\t\t\tpreferencias.add(tmp);\n\t\t}\n\t\t\n\t\t// passando todos os filmes, o usuário e as preferencias dele\n\t\tresult.include(\"filmes\", filmeDao.getAllInOrder() );\n\t\tresult.include(\"usuario\", session.getUsuario() );\n\t\tresult.include(\"preferencias\", preferencias);\n\t}",
"public ListaUsuario() {\n initComponents();\n\n exibir();\n }",
"@PostConstruct\r\n public void leerListaUsuarios() {\r\n listaUsuarios.addAll(usuarioFacadeLocal.findAll());\r\n }",
"@Override\r\n\tpublic List<User> viewUsers() {\n\t\treturn user.viewUsers();\r\n\t}",
"public List<Article> getList() {\n return list;\n }",
"List<Persona> obtenerTodasLasPersona();",
"public List<String> show () {\n\t\treturn userDao.show();\n\t}",
"public List<ViajeroEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todos\");\n TypedQuery<ViajeroEntity> query = em.createQuery(\"select u from ViajeroEntity u\", ViajeroEntity.class);\n return query.getResultList();\n }",
"public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }",
"public List<User> list();",
"public List<SubOferta> getListaOfertaXUsuario() {\n\t\tsession = SessionBean.verificarSession();\n\t\tList<SubOferta> a = managergest.findAllofertasOrdenadasXUsuario(session\n\t\t\t\t.getIdUsr());\n\t\tList<SubOferta> l1 = new ArrayList<SubOferta>();\n\t\tfor (SubOferta t : a) {\n\t\t\tl1.add(t);\n\t\t}\n\t\treturn l1;\n\t}",
"public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }",
"public ArrayList<User> showAllGuests() throws Exception {\n // String sql = \"SELECT * FROM event_guest_list WHERE customer_id = '\" + showLoggedInCustomer(AppData.getInstance().getLoggedInUserId()) + \"'\" ;\n // String sql = \"SELECT * FROM event_guest_list WHERE event_name = \"\n ArrayList<User> users = new ArrayList<>();\n PreparedStatement pr = connection.prepareStatement(Queries.showAllGuests);\n // PreparedStatement pr = connection.prepareStatement(sql);\n ResultSet result = pr.executeQuery();\n while (result.next()) {\n users.add(new User(\n result.getInt(\"guest_id\"),\n result.getString(\"guest_name\")));\n // result.getBoolean(\"participation\")));\n }\n pr.close();\n return users;\n }",
"public void listeDesEmpruntsEnCours();",
"public List<Lote> listarLotes() {\n List<Lote> listaLotes;\n listaLotes = jpaLote.findLoteEntities();\n List<Lote> listaFiltrada = new ArrayList<Lote>();\n for (Lote lote : listaLotes) {\n if (lote.getEstado() == true){\n listaFiltrada.add(lote);\n }\n }\n return listaFiltrada;\n }",
"public List<RolModel> listarRolUsuario();",
"public List<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}",
"@Override\n public void mostrarUsuarios(List<UserModel> usuarios) {\n }",
"public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }",
"private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void listNens() {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tList<Nen> result = em.createQuery(\"from nen\", Nen.class)\n\t\t\t\t\t.getResultList();\n\t\t\tfor (Nen a : result) {\n\t\t\t\tSystem.out.println(a.toString());\n\t\t\t}\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\t\n\t\t}",
"@Override\n\tpublic List<RoleUtilisateur> listRoleUtilisateur() {\n\t\treturn roleUtilisateurDAO.listRoleUtilisateur();\n\t}",
"@GET\n @Path(\"/mostrarOrdenadasFT\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFT(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFT(idUser);\n }",
"@Override\r\n\tpublic List<UserVO> userList() {\n\t\treturn adao.UserList();\r\n\t}",
"public List<User> getUserList();",
"@SuppressWarnings(\"unchecked\")\t\r\n\t@Override\r\n\tpublic List<Distrito> listar() {\n\t\tList<Distrito> lista = new ArrayList<Distrito>();\r\n\t\tQuery q = em.createQuery(\"select m from Distrito m\");\r\n\t\tlista = (List<Distrito>) q.getResultList();\r\n\t\treturn lista;\r\n\t}",
"List<Usuario> obtenerUsuarios() throws Exception;",
"public void getRecentUsers(View view){\n SharedPreferences sharedPref = getContext().getSharedPreferences(\"recentVisited\", Context.MODE_PRIVATE);\n int size = sharedPref.getInt(\"size\", 0);\n\n // clears the variables.\n userName.clear();\n uid.clear();\n for (int i = size+1; i >0 ; i--) {\n String name= sharedPref.getString(\"name_\"+i,\"deleted\");\n String userId= sharedPref.getString(\"uid_\"+i,\"deleted\");\n if (!Objects.equals(name, \"deleted\")){\n userName.add(name);\n uid.add(userId);\n }\n\n }\n\n setList(view);\n }",
"@Override\n\tpublic List<Administrateur> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Administrateur> list = (List<Administrateur>)getCurrentSession().createQuery(\"FROM Administrateur\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}",
"public List<Vendedor> listarVendedor();",
"public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }",
"@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }",
"private void listarUsuario(HttpServletRequest request, HttpServletResponse response) throws SQLException, ServletException, IOException {\n\t\tList<Usuario> listarUsuario = dao.selecionarTodosUsuarios();\n\t\trequest.setAttribute(\"listarUsuario\", listarUsuario);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-lista.jsp\");\n\t\tdispatcher.forward(request, response);\n\t}",
"public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }",
"public void listar()\n\t{\n\t\tdatabase.list().forEach(\n\t\t\t(entidade) -> { IO.println(entidade.print() + \"\\n\"); }\n\t\t);\n\t}",
"@Override\r\n\tpublic List<Admin> viewlogs() {\n\t\treturn user.viewlogs();\r\n\t}",
"public List getUserListShowToClient() {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n query = session.createQuery(\"select user from app.user.User user where user.currentEmployee = 'true' and user.clientShow = 'TRUE' order by user.lastName, user.firstName\");\n return query.list();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }",
"@Override\n\t@Transactional\n\tpublic List<Usuario> ListaUsuarios() {\n\t\ttry {\n\t\t\tQuery query = manager.createQuery(\"from Usuario\");\n\t\t\tList<Usuario> usuarios = query.getResultList();\n\t\t\treturn usuarios;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}",
"public ArrayList<User> showUsers(){\n\t\treturn this.userList;\n\t}",
"List<UserDisplayDto> findeAdmins();",
"@GetMapping(\"/afficher-contenu\")\r\n\tpublic List<PanierItem> afficherContenu(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\treturn panierService.listerTout();\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@Override\r\n public List<Visitors> visfindAll() {\n return userMapper.visfindAll();\r\n }",
"@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n public final Iterable<Entry> list() {\n Iterable<Entry> result = SecurityUtils.actualUser().getEntries();\n if (result == null) {\n result = Collections.emptyList();\n }\n return result;\n }",
"public List<Utilisateur> getUtilisateurs() {\r\n return utilisateurs;\r\n }",
"@Override\r\n\tpublic List<EBook> getUserListPage(EBook ebook) {\n\t\treturn permissionDao.getUserListPage(ebook);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Veiculo> listarVeiculoIdUsuario(int idUsuario){\n\t\t\n\tList<Veiculo> listar = null;\n\t\t\n\t\ttry{\n\t\t\tlistar = veiculoDAO.listarVeiculoIdUsuario(idUsuario);\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t\treturn listar;\n\t\t\n\t}",
"public void setUtilisateurs(List<Utilisateur> utilisateurs) {\r\n this.utilisateurs = utilisateurs;\r\n }",
"List<Long> getAuthorisedList( Long id) ;",
"public List<SiteNoticia> listarPorUsuario(TbUsersystem id) {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.where(builder.equal(root.get(type.getDeclaredSingularAttribute(\"usuarioId\", TbUsersystem.class)), id));\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }",
"@PostMapping(\"/showArticlesByTitre\")\n\t\tpublic String showArticleByTitre(@RequestParam String titre, Model model) {\n\t\t\tArrayList <Article> articles = (ArrayList<Article>) articleService.findByTitre(titre);\n\t\t\tmodel.addAttribute(\"articles\", articles);\n\t\t\treturn \"showArticleByTitre\";\n\t\t}",
"@Override\r\n\tpublic List<Usuario> listAll() {\n\t\treturn null;\r\n\t}",
"public List<Usuario> getUsuario() {\r\n return usuarios;\r\n }",
"public List<Tutores> readAllJPQL() throws SecurityException{ \n String sql=\"Select tu from Tutores tu\";\n \n Query q=em.createQuery(sql); \n return q.getResultList();\n }",
"List<Edible> getEdibles();",
"@Override\n\tpublic List<Integer> usersDate(String fecha) {\n\t\treturn controlA.usersDate(fecha);\n\t}",
"public List<Usuario> findAllUsuarios ();",
"public NavigableSet<Utilisateur> getUtilisateurs();",
"@RequestMapping(value = \"/obtenerVeredas\", method = RequestMethod.GET)\n\tpublic Iterable<Vereda> obtenerListaVeredas() {\n\t\treturn veredaRepository.findAll();\n\t\t//return JsonManager.toJson(veredaRepository.findAll());\n\t}",
"public List<Pregunta> getPreguntasUsuario(Usuario user);",
"@Override\n\tpublic List<Epuser> getList() throws Exception {\n\t\treturn epuserMapper.list() ;\n\t}"
]
| [
"0.6632683",
"0.6552985",
"0.6181999",
"0.60420847",
"0.59611404",
"0.5942572",
"0.5914788",
"0.5897694",
"0.5886601",
"0.5870394",
"0.58690494",
"0.58597875",
"0.5815751",
"0.5776706",
"0.5773647",
"0.5762728",
"0.5741593",
"0.5722222",
"0.5719373",
"0.5712323",
"0.57089233",
"0.57069343",
"0.57040244",
"0.5693319",
"0.56845635",
"0.5675865",
"0.56758386",
"0.567432",
"0.5656458",
"0.565502",
"0.56536084",
"0.5652353",
"0.5643873",
"0.56437504",
"0.5643712",
"0.563784",
"0.5633555",
"0.5627298",
"0.5625275",
"0.5619751",
"0.5618898",
"0.5618547",
"0.56145954",
"0.5598654",
"0.5590941",
"0.5590868",
"0.5587952",
"0.55850077",
"0.5577092",
"0.55693305",
"0.55597126",
"0.55586493",
"0.55581546",
"0.5547063",
"0.5540815",
"0.5535904",
"0.55337316",
"0.5532841",
"0.5529871",
"0.5526181",
"0.55134463",
"0.5508442",
"0.550815",
"0.55051064",
"0.5504174",
"0.5499135",
"0.54943985",
"0.54938775",
"0.547007",
"0.5466687",
"0.5463215",
"0.54615533",
"0.54581285",
"0.545771",
"0.5456143",
"0.5453145",
"0.5452482",
"0.5451545",
"0.544948",
"0.5444174",
"0.54416364",
"0.54382956",
"0.5438193",
"0.54364",
"0.5431927",
"0.5430456",
"0.5429512",
"0.54257",
"0.5419647",
"0.54184467",
"0.54175705",
"0.54156494",
"0.54142696",
"0.5412822",
"0.54123527",
"0.5411191",
"0.54111606",
"0.5411098",
"0.540127",
"0.5399495",
"0.5398737"
]
| 0.0 | -1 |
Sort the array given in argument in increasing order using a bubble sort algoritm | public static void sortBubble(int[] tab) {
boolean alreadySorted=false;
int temp;
int n=tab.length;
int i=0;
if(tab.length!=0){
while (i<n-1 && !alreadySorted){
alreadySorted=true;
for (int j=0; j<n-1-i;j++){
if (tab[j]>tab[j+1]){
alreadySorted=false;
temp=tab[j];
tab[j]=tab[j+1];
tab[j+1]=temp;
}
}
i=i+1;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void BubbleSort(int[] a) {\n\t int n = a.length;\n\t int temp = 0;\n\n\t for(int i = 0; i < n; i++) {\n\t for(int j=1; j < (n-i); j++) {\n\t if(a[j-1] > a[j]) {\n\t temp = a[j-1];\n\t a[j-1] = a[j];\n\t a[j] = temp;\n\t }\n\t }\n\t }\n\t}",
"public static void bubbleSortAlgo(int[] arr) {\n for(int i = 1; i<arr.length-1; i++){\n // inner loop to compare each element with it's next one in every iteration in one complete outer loop\n for(int j = 0; j<arr.length -1; j++){\n if(isSmaller(arr, j+1, j)){ // compares the jth element from it's next element\n swap(arr, j+1, j); // if ismaller condition is true swaps both the elements\n }\n }\n }\n \n }",
"public static void bubbleSort(int[] arr)\n\t{\n\t\tint len=arr.length;\n\t\tboolean swapped=true;\n\t\twhile(swapped){\n\t\t\tswapped=false;\n\t\t\tfor(int j=1;j<len;j++){\n\t\t\t\tif(arr[j-1]>arr[j]){\n\t\t\t\t\tint temp=arr[j-1];\n\t\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\t\tarr[j]=temp;\n\t\t\t\t\tswapped=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void bubbleSort(int[] arr){\r\n \tfor(int i = 0; i< arr.length - 1;i++)\r\n \t{\r\n \t\tfor(int j = 0; j< arr.length - 1; j++)\r\n \t\t{\r\n \t\t\tif(arr[j] > arr[j + 1])\r\n \t\t\t{\r\n \t\t\t\tint temp = arr[j];\r\n \t\t\t\tarr[j] = arr[j + 1];\r\n \t\t\t\tarr[j + 1] = temp;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n }",
"static int[] bubbleSort(int[] a) {\n int n = a.length;\n while(n > 0) {\n int newLastN = 0; // if no swap occurred in last step we won't need to run next iteration\n for (int i = 1; i < n; i++) {\n comparisonCount++;\n if (a[i - 1] > a[i]) {\n swapCount++;\n swap(a, i - 1, i);\n newLastN = i;\n }\n }\n n = newLastN;\n }\n return a;\n }",
"public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n unordered = true;\n }\n }\n } while (unordered);\n }",
"public static void bubbleSort(int[] arr){\n\n\t\tboolean swaps = true; //setting boolean swaps to true \n\t\tint l = arr.length; //varibale to hold the length of the array \n\n\t\twhile (swaps == true) { //goes through while swaps is true \n\n\t\t\tswaps = false; //setting swaps to false \n\n\t\t\tfor(int i = 0; i < l-1; i++) { //iterates through the length of the array \n\t\t\t\t\n\t\t\t\tif (arr[i + 1] < arr[i]) { //if the element on the right is less than the one on the left (54321)\n\n\n\t\t\t\t\tint temp = arr[i]; //holds the value of element at that index position \n\t\t\t\t\tarr[i] = arr[i+1]; //swaps the elments over \n\t\t\t\t\tarr[i+1] = temp; //moves onto the next element \n\n\t\t\t\t\tswaps = true; //as n-1, moves back and repeats to do the last element \n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}",
"public void bubbleSort(){\n for(int i = arraySize -1; i > 1; i--){\n for(int j = 0; j < i; j++){\n // Use < to change it to Descending order\n if(theArray[j] > theArray[j+1]){\n swapValues(j, j+1);\n printHorizontalArray(i, j);\n }\n printHorizontalArray(i, j);\n }\n }\n }",
"public void bubbleSort(int [] array) {\n\t\t\n\t\tfor(int i=0; i<array.length - 1; i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<array.length-i-1; j++) {\n\t\t\t\t\n\t\t\t\tif(array[j]>array[j+1]) {\n\t\t\t\t\t\n\t\t\t\t\tint temp = array[j];\n\t\t\t\t\tarray[j] = array[j+1];\n\t\t\t\t\tarray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}",
"public void bubbleSort() {\n\t\tint n = data.size();\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tfor (int j = 1; j < n - i; j++) {\n\t\t\t\tif (data.get(j - 1) > data.get(j)) {\n\t\t\t\t\tswap(j, j - 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void bubbleSort(long [] a){\n\t\tint upperBound=a.length-1;\n\t\tint lowerBound =0;\n\t\tint swaps=0;\n\t\tint iterations=0;\n\t\twhile(upperBound>=lowerBound){\n\t\t\tfor(int i=0,j=1;i<=upperBound && j<=upperBound; j++,i++){\n\t\t\t\tlong lowerOrderElement = a[i];\n\t\t\t\tlong upperOrderElement = a[j];\n\t\t\t\titerations++;\n\t\t\t\tif(lowerOrderElement>upperOrderElement){ //swap positions\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]= lowerOrderElement;\n\t\t\t\t\tswaps=swaps+1;\n\t\t\t\t}\n\t\t\t\telse{ // sorted.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tupperBound--;\n//\t\tSystem.out.println(\"upperBound:- \" +upperBound);\n//\t\tSystem.out.println(\"lowerBound:- \" +lowerBound);\n\t\t}displayArr(a);\n\t\t\n\t\tSystem.out.println(\"Total Swaps:- \" + swaps);\n\t\tSystem.out.println(\"Total Iterations:- \" + iterations);\n\t}",
"public static int[] BubbleSort(int[] array){\n int j;\n int temp;\n boolean flag=false;\n while ( flag )\n {\n flag= false;\n for( j=0;j<array.length-1;j++ )\n {\n if ( array[j] < array[j+1] )\n {\n temp = array[j];\n array[j] = array[j+1];\n array[j+1] = temp;\n flag = true;\n }\n }\n }\n return array;\n }",
"private void bubbleSort(T[] arr) {\n boolean swaps;\n for (int i = 0; i < n - 1; i++) { // since we always compare two elements, we will need to iterate up to (n - 1) times\n swaps = false;\n for (int j = 1; j < n - i; j++) // we reduce the inspected area by one element at each loop, because the largest element will already be pushed to the right\n if (arr[j].compareTo(arr[j - 1]) < 0) {\n swap(arr, j, j - 1); // the swap method is implemented further\n swaps = true;\n }\n if (!swaps) break; // we stop if there were no swaps during the last iteration\n }\n }",
"public static int[] bubble(int[] arr)\n {\n int l=arr.length;\n\n for (int i = 0; i <l-1; i++)\n {\n for (int j=0; j<l-1-i; j++)\n {\n if (arr[j] > arr[j + 1])\n {\n swap(j, j+ 1, arr);\n }\n }\n }\n return arr;\n }",
"public void myBubbleSort(int array[]) {\n for (int i = 0; i < array.length - 1; i++) {\n //Iterate through the array to the index to the left of i\n for (int j = 0; j < array.length - i - 1; j++) {\n //Check if the value of the index on the left is less than the index on the right\n if (array[j] > array[j + 1]) {\n //If so, swap them.\n int temp = array[j];\n array[j] = array[j + 1];\n array[j + 1] = temp;\n\n }\n }\n }\n }",
"public static int[] bubbleSort(int array[]) {\n \t\t// TODO S1 implements bubble sort\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array.length - i - 1; j++) {\n\t\t\t\tif (array[j] > array[j + 1]) {\n\t\t\t\t\tint smaller = array[j + 1];\n\t\t\t\t\tint larger = array[j];\n\t\t\t\t\tarray[j] = smaller;\n\t\t\t\t\tarray[j + 1] = larger;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t return array;\n \t}",
"public static void BubbleSort(int[] input) {\r\n for (int i = input.length - 1; i > 0; i--) {\r\n for (int j = 0; j < i; i++) {\r\n if (input[j] > input[j + 1]) {\r\n swap(input, j, j + 1);\r\n }\r\n }\r\n }\r\n }",
"static void BubbleSort(int[] arr){\n for(int i = 0; i< arr.length-1;i++){\n int numberOfSwaps = 0;\n for(int j = 0; j<arr.length-i-1;j++){\n if(arr[j]>arr[j+1]){\n Swap(arr, j, j+1);\n numberOfSwaps++;\n }\n }\n if(numberOfSwaps == 0){\n break;\n }\n }\n }",
"public static void bubbleSort(int[] array) {\n boolean swapped = true;\n for (int i = 0; i < array.length && swapped != false; i++) {\n swapped = false;\n for (int j = 1; j < (array.length - i); j++) {\n if (array[j - 1] > array[j]) {\n swap(array, j, j - 1);\n swapped = true;\n }\n }\n }\n }",
"public static void bubbleSort(int[] arr) {\r\n for (int i = 0; i < arr.length; i++) {\r\n boolean swapped = false;\r\n for (int j = 1; j < arr.length - i; j++) {\r\n if (arr[j] < arr[j - 1]) {\r\n swap(arr, j, j - 1);\r\n swapped = true;\r\n }\r\n }\r\n if (!swapped) {\r\n break;\r\n }\r\n }\r\n }",
"public void bubbleSort(int[] array){\n int last = array.length;\r\n // boolean to flag a swap\r\n boolean swap = true;\r\n // continue if a swap has been made\r\n while(swap){\r\n // assume no swaps will be done\r\n swap = false;\r\n // look for swaps\r\n for(int i = 0; i < last - 1; i++){\r\n // find a bigger value?\r\n if(array[i] > array[i+1]){\r\n // swap\r\n swap(array, i, i+1);\r\n // set flag to true\r\n swap = true;\r\n }\r\n }\r\n // move the last position tracker\r\n last--;\r\n }\r\n }",
"public int[] bubbleSort(int[] a) {\r\n\t\t boolean sorted = false;\r\n\t\t int temp;\r\n\t\t while(!sorted) {\r\n\t\t sorted = true;\r\n\t\t for (int i = 0; i < a.length - 1; i++) {\r\n\t\t if (a[i] > a[i+1]) {\r\n\t\t temp = a[i];\r\n\t\t a[i] = a[i+1];\r\n\t\t a[i+1] = temp;\r\n\t\t sorted = false;\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\treturn a;\r\n\t\t}",
"public static void bubbleSort(int [] arr){\n int temp = 0; //temporary variable\n boolean flag = false; //mark if any reversion has happened\n for (int i = 0; i < arr.length - 1;i++){\n\n for (int j = 0; j < arr.length - 1-i; j++) {\n //if the previous number is bigger than the latter, reverse\n if (arr[j] > arr[j + 1]) {\n flag = true;\n temp = arr[j];\n arr[j] = arr[j + 1];\n arr[j + 1] = temp;\n }\n }\n\n //System.out.printf(\"After the %d round of sorting\",i+1);\n //System.out.println(Arrays.toString(arr));\n\n if(!flag){\n break;\n } else {\n flag = false;\n //reset flag to true to do the next check\n }\n }\n }",
"void bubbleSort(int arr[]) {\r\n\r\n int n = arr.length;\r\n boolean swapped;\r\n for(int i = 0; i < n-1; i++) { //denotes pass #\r\n for(int j = 0; j < n-i-1; j++) { //denotes element in the pass\r\n if(arr[j] > arr[j+1]) {\r\n //swapping of the element\r\n arr[j] += arr[j+1];\r\n arr[j+1] = arr[j] - arr[j+1];\r\n arr[j] -= arr[j+1];\r\n swapped = true;\r\n\r\n } //end of if block\r\n }//end of element checking loop\r\n //if no 2 elements were swapped by inner loop, then break\r\n if (swapped == false)\r\n break;\r\n }//end of pass loop\r\n }",
"public static void bubbleSort(Array a) {\n int temp;\n for (int i = 0; i < a.length - 1; i++) { // for passes\n int flag = 0;\n for (int j = 0; j < a.length - 1 - i; j++) { // for iteration\n if (a.get(j) > a.get(j + 1)) {\n temp = a.get(j);\n a.set(j, a.get(j + 1));\n a.set(j + 1, temp);\n flag = 1;\n }\n }\n if (flag == 0) break; // if the list is already sorted\n }\n }",
"public static void bubbleSort(int[] a) {\n\t\tboolean loop;\n\t\tdo {\n\t\t\tloop = false;\n\t\t\tfor (int i = 0; i < a.length - 1; i ++) {\n\t\t\t\tif (a[i] > a[i + 1]) {\n\t\t\t\t\tint temp = a[i];\n\t\t\t\t\ta[i] = a[i + 1];\n\t\t\t\t\ta[i + 1] = temp;\n\t\t\t\t\tloop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (loop);\n\t}",
"static void bubbleSort(int[] arr) {\n\t\tboolean swapped; //using swapped for optimization, inner loop will continue only if swapping is possible\n\t\tfor(int i=0;i<arr.length-1;i++) {\n\t\t\tswapped =false;\n\t\t\tfor(int j =0;j<arr.length-i-1;j++) {\n\t\t\t\tif(arr[j]>arr[j+1]) {\n\t\t\t\t\tint temp = arr[j+1]; \n\t\t arr[j+1] = arr[j]; \n\t\t arr[j] = temp;\n\t\t swapped = true;\n\t\t\t\t}\n\t\t\t\t// IF no two elements were \n\t // swapped by inner loop, then break \n\t\t\t\t if (swapped == false) \n\t\t break;\n\t\t\t}\n\t\t}\n\t\tfor(int a:arr) \n\t\t{ \n\t\t\tSystem.out.print(a+ \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}",
"public static int[] bubbleSort(int[] inputArray) {\n boolean done = false;\n\n for (int i = 0; i < inputArray.length && !done; i++) {\n done = true;\n for (int j = 0; j < inputArray.length - i - 1; j++) {\n if (inputArray[j] > inputArray[j + 1]) {\n int temp = inputArray[j];\n inputArray[j] = inputArray[j + 1];\n inputArray[j + 1] = temp;\n done = false;\n }\n }\n }\n return inputArray;\n\n }",
"public static void sort(int[] arr){\n\n for(int i=1;i<arr.length;i++){\n int current=arr[i];\n int j=i-1;\n\n while(j>=0 && arr[j]>current){\n arr[j+1]=arr[j];\n j--;\n }\n\n arr[j+1]=current;\n }\n\n\n\n }",
"private static void BubbleIter(int[] arr) {\n\t\t\n\t\tint size = arr.length;\n\t for (int i=1; i<size; ++i) {\n\t for (int j=0; j<size-i; ++j) {\n\t \t// Sorts the array arr[first] through arr[last] iteratively.\n\t \t// Last index changes by i pass\n\t if (arr[j]>arr[j+1]) swap(arr, j);\n\t }\n\t }\n\t}",
"public static void sort(int[] arr){\n\t\tint temp;\n\t\tfor(int i=0; i<arr.length; i++){\n\t\t\tfor(int j=1; j<arr.length-i; j++)\n\t\t\tif(arr[j-1] > arr[j]){\n\t\t\t\ttemp = arr[j-1];\n\t\t\t\tarr[j-1] = arr[j];\n\t\t\t\tarr[j] = temp;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"private void sorter(int[] array){\r\n\r\n for (int i = 0; i < array.length-1; i++)\r\n for (int j = 0; j < array.length-i-1; j++)\r\n if (array[j] > array[j+1])\r\n {\r\n int temp = array[j];\r\n array[j] = array[j+1];\r\n array[j+1] = temp;\r\n }\r\n }",
"static int[] Bubble_sort(int[] input) {\n\t\t//int n=input.length;\t\t\t\t\t//length of the array\n\t\tfor(int i=0;i<input.length;i++)\n\t\t{\t\t\t\t\t\t\t\t\n\t\t\tint pos=0;\t\t\t//setting the first element as the Max element\n\t\t\tint max=input[pos];\n\t\t\tfor(int j=0;j<input.length-i;j++)\n\t\t\t{\t\t\t\t\t//traversing the array to find the max element\n\t\t\t\tif(input[j]>max)\n\t\t\t\t{\n\t\t\t\t\tpos=j;\n\t\t\t\t\tmax=input[pos];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t//swapping the Max element with input.length-i-1 position\n\t\t\tinput[pos]=input[input.length-i-1];\n\t\t\tinput[input.length-i-1]=max;\n\t\t}\n\t\treturn input;\n\t}",
"public static int[] bubbleSort(int[] arr, int n){\n for(int j=1; j<n; j++) {\n for (int i = 1; i < n; i++) {\n if (arr[i - 1] > arr[i]) {\n int temp = arr[i - 1];\n arr[i - 1] = arr[i];\n arr[i] = temp;\n }\n }\n }\n return arr;\n }",
"public void sort(int array[]){\n for(int i=1;i < array.length;i++){\n int j=i-1;\n int cur=i;\n while(array[cur] < array[j] && j >=0 ){\n swap(array,cur,j);\n cur--;\n j--;\n }\n\n }\n }",
"void bubblesort(int arr[],int n)\n {\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<n-1;j++) //after its 1st iteration we have our maximum value sorted\n {\n if(arr[j]>arr[j+1]) // if value at present index is > the next index value then its swap the value \n {\n int temp=arr[j];\n arr[j]=arr[j+1];\n arr[j+1]=temp;\n }\n }\n }\n }",
"static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }",
"public int[] bubbleSortInt(int[] input){\r\n\t\tfor(int i=0;i<input.length;i++){\r\n\t\t\tfor(int j=i+1;j<input.length;j++){\r\n\t\t\t\tif(input[i]>input[j]){\r\n\t\t\t\t\tinput[i]=input[i]+input[j];\r\n\t\t\t\t\tinput[j]=input[i]-input[j];\r\n\t\t\t\t\tinput[i]=input[i]-input[j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn input;\r\n\t}",
"public static int[] bubbleSort(int[] values) {\n int temp;\n boolean nextPass = true;\n \n for (int i = 1; i < values.length && nextPass; i++) { // terminate loop if at end of array or a new pass is not needed\n nextPass = false;\n for (int j = 0; j < values.length - i; j++) {\n if (values[j] > values[j + 1]) { // current value greater than the next? swap values\n temp = values[j];\n values[j] = values[j + 1];\n values[j + 1] = temp;\n nextPass = true; \n }\n }\n }\n \n return values;\n }",
"private static Integer[] optimisedBubbleSort(Integer[] n) {\n int len = n.length - 1;\n boolean swapped = false;\n for (int i = 0; i < len; i++) {\n for (int j = 0; j < len - i; j++) {\n if (n[j] > n[j + 1]) {\n int temp = n[j];\n n[j] = n[j + 1];\n n[j + 1] = temp;\n swapped = true;\n }\n }\n if(swapped == false) {\n break;\n }\n }\n return n;\n }",
"public static <T extends Comparable<T>> void bubbleSort(T[] arrayToSort) {\n for(int i = 0; i < arrayToSort.length - 1; i++)\n for(int j = arrayToSort.length - 1; j > i + 1; j--)\n if(arrayToSort[j].compareTo(arrayToSort[j - 1]) < 0) {\n T value = arrayToSort[j];\n arrayToSort[j] = arrayToSort[j - 1];\n arrayToSort[j - 1] = value;\n }\n }",
"void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previous term\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];// swaps places within the array\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"public static <T extends Comparable<T>> void myBubbleSort(T[] arrayToSort) {\n boolean isNotSorted = true;\n while(isNotSorted) {\n isNotSorted = false;\n for(int i = 0; i < arrayToSort.length - 1; i++)\n if(arrayToSort[i].compareTo(arrayToSort[i + 1]) > 0) {\n T value = arrayToSort[i];\n arrayToSort[i] = arrayToSort[i + 1];\n arrayToSort[i + 1] = value;\n isNotSorted = true;\n }\n }\n }",
"public static void bubbleSort(int[] a) {\r\n boolean swapped; // keeps track of when array values are swapped \r\n int i; // a loop counter\r\n int temp; // catalyst variable for String swapping\r\n\r\n // Each iteration of the outer do loop is is one pass through the loop. \r\n // If anything was swapped, it makes another pass\r\n do {\r\n // set swapped to false before each pass\r\n swapped = false;\r\n\r\n // the for loop is a pass through the array to the second to last element\r\n for (i = 0; (i < a.length - 1); i++) {\r\n // if the two items are out of order see page 16 for String compareTo() \r\n if (a[i + 1] < (a[i])) {\r\n // swap the two items and set swapped to true \r\n temp = a[i];//catalyst variable assignment to item\r\n a[i] = a[i + 1];//copy second item to first item slot\r\n a[i + 1] = temp;//copy catalyst variable to second slot\r\n\r\n swapped = true; //something was swapped!\r\n\r\n } // end if\r\n } // end for\r\n\r\n // the outer loop will repeat if a swap was made – another passs\r\n } while (swapped);\r\n\r\n }",
"public static void bubbleSort(int arr[], int n)\n {\n for (int i = 0; i < n - 1; i++) { \n\t\t\tfor (int j = 0; j < n - i - 1; j++) { \n\t\t\t\tif (arr[j] > arr[j + 1]) { \n\t\t\t\t\tint temp = arr[j]; \n\t\t\t\t\tarr[j] = arr[j + 1]; \n\t\t\t\t\tarr[j + 1] = temp; \n\t\t\t\t} \n\t\t\t} \n\t\t} \n }",
"public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }",
"public static void bubbleSort(int[] src) {\n if (src == null || src.length <= 1) return;\n\n for (int i = 0; i < src.length; ++i) {\n boolean flag = false;\n for (int j = 0; j < src.length - i - 1; ++j) {\n if (src[j] > src[j + 1]) {\n Utils.swap(src, j, j + 1);\n flag = true;\n }\n }\n\n if (!flag) return;\n }\n }",
"public void printSortedByBubbleSort(int[] array){\r\n\t\tint temp;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array.length - 1; j++) {\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\ttemp = array[j];\r\n\t\t\t\t\tarray[j] = array[j + 1];\r\n\t\t\t\t\tarray[j + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSorted by BubleSort: \");\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t}",
"public void recursiveBubbleSort(int[] numbers) {\n boolean sorted = false;\n int posA;\n int posB;\n\n for(int i = 0; i < numbers.length - 1; i++) {\n if(numbers[i] > numbers[i + 1] && numbers[i] != numbers.length) {\n posA = numbers[i];\n posB = numbers[i + 1];\n numbers[i] = posB;\n numbers[i + 1] = posA;\n sorted = true;\n }\n }\n if (sorted) {\n recursiveBubbleSort(numbers);\n }\n }",
"private static void BubbleIterMod(int[] arr) {\n\t\t\n\t\tboolean pass = true;\n\t while (pass) {\n\t pass = false; //assume this is last pass over array\n\t for (int j=0; j<arr.length-1; ++j) {\n\t if (arr[j] > arr[j+1]) { \n\t \tswap(arr, j);\n\t \tpass = true; //after an exchange, must look again\n\t }\n\t }\n\t }\n\t}",
"private void bubbleSort() {\r\n\r\n int n = leaderboardScores.size();\r\n int intChange;\r\n String stringChange;\r\n\r\n for (int i = 0 ; i < n - 1 ; i ++ ) {\r\n for (int j = 0 ; j < n - i - 1 ; j ++ ) {\r\n\r\n if (leaderboardScores.get(j) > leaderboardScores.get(j + 1)) {\r\n // swap arr[j+1] and arr[i]\r\n intChange = leaderboardScores.get(j);\r\n leaderboardScores.set(j, leaderboardScores.get(j + 1));\r\n leaderboardScores.set(j + 1, intChange);\r\n\r\n stringChange = leaderboardUsers.get(j);\r\n leaderboardUsers.set(j, leaderboardUsers.get(j + 1));\r\n leaderboardUsers.set(j + 1, stringChange);\r\n }\r\n\r\n }\r\n }\r\n }",
"@Override\n public int[] sort(int[] array) {\n\n int n = array.length;\n\n for (int i = 1; i <= n - 1; i++) {\n int j = i - 1;\n\n while (j >= 0 && array[j] > array[j + 1]) {\n swap(array, j, j + 1);\n j--;\n }\n }\n\n return array;\n }",
"@Override\n\tpublic T[] sort(T[] input) {\n\t\tfor(int i = 1; i < input.length; i++){\n\t\t\t//compare with the previous one, if smaller, switch with it.\n\t\t\tfor(int j = i; j > 0 && input[j-1].compareTo( input[j]) > 0; j--){\n\t\t\t\t//add the condition input[j-1] > input[j] in the for loop;\n\t\t\t\t//cause if j-1th < jth, j-2th < jth(left part is ordered)\n\t\t\t\tswap(input, j, j-1);\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}",
"@Test\n public void testBubbleSort() {\n BubbleSort<Integer> testing = new BubbleSort<>();\n\n testing.sort(array, new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return i1.compareTo(i2);\n }\n });\n\n checkArray(\"Bubble sort doesn't work!\", array);\n }",
"public static void sort(int [] a) {\n for(int i=0; i<a.length;i++){\n for (int j = i+1; j < a.length; j++) {\n int temp=0;\n if(a[i]>a[j]){\n temp=a[j];\n a[j]=a[i];\n a[i]=temp;\n }\n }\n }\n }",
"public static void bubbleSort(String[] words) {\n \n for(int i=0; i< words.length-1; i++) {\n for(int j=i+1; j<words.length; j++) {\n if(words[j].compareTo(words[i]) < 0) {\n String s = words[j];\n words[j] = words[i];\n words[i] = s;\n }\n } \n }\n }",
"public static int[] bubbled(int[] arr) {\n int i = 0;\n while(i < arr.length - 1) {\n for(int j = 0; j < arr.length - 1 - i; j++) {\n if(arr[j] > arr[j + 1]) {\n int temp;\n temp = arr[j];\n arr[j] = arr[j + 1];\n arr[j + 1] = temp;\n }\n }\n i++;\n }\n return arr;\n }",
"public void setBubbleSort() \n\t{\n\t\tint last = recordCount + NOT_FOUND; //array.length() - 1\n\n\t\twhile(last > RESET_VALUE) //last > 0\n\t\t{\n\t\t\tint localIndex = RESET_VALUE; \n\t\t\tboolean swap = false;\n\n\t\t\twhile(localIndex < last) \n\t\t\t{\n\t\t\t\tif(itemIDs[localIndex] > itemIDs[localIndex + 1]) \n\t\t\t\t{\n\t\t\t\t\tsetSwapArrayElements(localIndex);\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t\t\tlocalIndex++;\n\t\t\t}\n\n\t\t\tif(swap == false) \n\t\t\t{\n\t\t\t\tlast = RESET_VALUE;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tlast = last + NOT_FOUND;\n\t\t\t}\n\n\t\t}//END while(last > RESET_VALUE)\n\t\treturn;\n\t}",
"public static void main(String[] args) {\r\n\t\tint arr[] = {1,0,5,6,3,2,3,7,9,8,4};\r\n\t\tint temp;\r\n\t\t\r\n\t\tfor(int i = 0; i < 10; i ++) {\r\n\t\t\tfor(int j = 0; j < 10 - i; j ++) {\r\n\t\t\t\tif(arr[j] > arr[j+1]){\r\n\t\t\t\t\ttemp = arr[j+1];\r\n\t\t\t\t\tarr[j+1] = arr[j];\r\n\t\t\t\t\tarr[j] = temp;\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < 11; i ++) {\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t}",
"public void bubbleSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2; //init, check condition\r\n\t\tfor (int i = list.size() - 1; i >= 0; i --){\r\n\t\t\tsteps += 2; //init, check condition\r\n\t\t\tfor (int j = 0; j < i ; j ++){\r\n\t\t\t\tsteps += 5;\r\n\t\t\t\tif (list.get(j).compareTo(list.get(j + 1)) < 0){\r\n\t\t\t\t\tsteps += 2;\r\n\t\t\t\t\tswap(list, j, j + 1);\r\n\t\t\t\t\tsteps += 5;\r\n\t\t\t\t}\r\n\t\t\t\tsteps += 2;\r\n\t\t\t}\r\n\t\t\tsteps += 2;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Bubble Sort\");\r\n\t\tSystem.out.println();\r\n\t}",
"public static void HeapSort(int[] array) {\n int size = array.length;\n int start_index = size / 2 - 1;\n\n for (int i=start_index; i>=0; i--)\n goDown(array, i, size);\n\n for (int i=size-1; i>=0; i--) {\n swap(array, 0, i);\n goDown(array, 0, i);\n }\n }",
"public void bubbleSort(int [] intArray)\n {\n int n = intArray.length;\n int temp = 0;\n try\n {\n for(int i=0; i < n; i++)\n {\n thread.sleep(100); //sleep the thread to particular to view the results in panel\n this.setThreadState();\n for(int j=1; j < (n-i); j++)\n { \n if(!orderPanel) //check for Descending order\n {\n if(intArray[j-1] > intArray[j])\n {\n //swap the elements!\n temp = intArray[j-1];\n intArray[j-1] = intArray[j];\n intArray[j] = temp;\n repaint();\n \n \n }\n }\n else if(intArray[j-1] < intArray[j]) //check for Ascending order\n {\n temp = intArray[j-1]; \n intArray[j-1] = intArray[j];\n intArray[j] = temp;\n repaint();\n \n }\n \n }\n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n }",
"private void sort(int[] inputArray) {\n\t\tint temp;\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tfor(int j=0;j<inputArray.length-1-i;j++) {\n\t\t\t\tif(inputArray[j]>inputArray[j+1]) { // if(inputArray[j]<inputArray[j+1]) for descending\n\t\t\t\t\ttemp = inputArray[j];\n\t\t\t\t\tinputArray[j] = inputArray[j+1];\n\t\t\t\t\tinputArray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Pass: \" + (i+1));\n\t\t\tfor(int k=0;k<inputArray.length;k++) {\n\t\t\t\tSystem.out.print(inputArray[k] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Arry in Ascending order is:\");\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tSystem.out.print(inputArray[i] + \"\\t\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint a[] = {1, 2, 5, 9, 4};\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<a.length-i-1;j++)\n\t\t\t{\n\t\t\t\tif(a[j+1] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint temp = a[j];\n\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\ta[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sorted array is:\");\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tSystem.out.print(a[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n // auxIntArr is found in AuxPkg.AuxFuncs\n int[] arr = auxIntArr.clone();\n\n System.out.println(\"BubbleSort:\");\n System.out.print(\"Before: \");\n printIntArr(arr);\n\n // Main loop where the index will grow smaller as the array gets sorted\n for( int lastUnsortedIdx = arr.length -1;\n lastUnsortedIdx > 0;\n lastUnsortedIdx--)\n {\n // Nested loop for bubbling highest values to the next sorted slot\n // in the main loop\n for(int idx = 0; idx < lastUnsortedIdx; idx++)\n {\n if(arr[idx] > arr[idx+1])\n {\n swap(arr, idx, idx+1);\n }\n }\n }\n\n System.out.print(\"After: \");\n printIntArr(arr);\n System.out.println();\n }",
"public void wiggleSort(int[] nums) {\n\n // At position 0 we need a[0] < a[1] and in position 1 we need a[1] > a[2]\n for(int i=0; i < nums.length-1; i++) {\n boolean isEven = i%2==0;\n if(isEven) {\n if(nums[i] > nums[i+1]) { // a[0] should less than a[1]\n ArrayUtils.swap(nums,i,i+1);\n }\n } else {\n if(nums[i] < nums[i+1]) { // a[1] should greater than a[2]\n ArrayUtils.swap(nums,i,i+1);\n }\n }\n }\n }",
"public static void sortArray(int[] array)\r\n {\r\n //create boolean variable to compare array values\r\n boolean swapped;\r\n //loop through the entire array\r\n for (int n=0; n < array.length; ++n)\r\n {\r\n do\r\n {\r\n //set boolean variable swapped to false\r\n swapped = false;\r\n \r\n //nested loop compares each pair of adjacent elements starting at array[n]\r\n for (int x = n + 1; x < array.length; x++) \r\n {\r\n //if the element in the array is greater than the following element\r\n if (array[n] > array[x]) \r\n {\r\n //initialize a temp variable to hold an array element value\r\n int temp;\r\n \r\n //swap the elements\r\n temp = array[n];\r\n array[n] = array[x];\r\n array[x] = temp;\r\n //set boolean variable swapped to true\r\n swapped = true;\r\n }\r\n }\r\n }while (swapped == true);\r\n }\r\n\r\n \r\n }",
"public String[] bubbleSortString(String[] input){\r\n\t\tString temp=\"\";\r\n\t\tfor(int i=0;i<input.length;i++){\r\n\t\t\tfor(int j=i+1;j<input.length;j++){\r\n\t if(input[i].compareTo(input[j])>0){\r\n\t \t temp=input[i];\r\n\t \t input[i]=input[j];\r\n\t \t input[j]=temp;\r\n\t }\r\n\t\t\t}\r\n\t\t}return input;\r\n\t}",
"private void sort(int[] arrayToSort) {\n\n output.printUnsortedArray(arrayToSort);\n // loop through all numbers in the range 0 to the length of the array\n for (int i = 0; i < arrayToSort.length - 1; i++) {\n // loop through all numbers in the range 0 to the length of the array\n for (int j = 0; j < arrayToSort.length - 1; j++) {\n int current = j;\n int next = j + 1;\n boolean swap = false;\n // check if the last number in the array is greater than the current number\n if (arrayToSort[current] > arrayToSort[next]) {\n // swap the two numbers\n int temp = arrayToSort[current];\n arrayToSort[current] = arrayToSort[next];\n arrayToSort[next] = temp;\n swap = true;\n }\n output.printPass(i, current, next, arrayToSort, swap);\n }\n output.printUpdatedArray(arrayToSort, i);\n }\n output.printSortedArray(arrayToSort);\n }",
"public static void sort(int[] array) {\n for (int i = 0; i < array.length - 1; i++) {\n for (int j = i + 1; j < array.length; j++) {\n if (array[j] < array[i]) {\n swap(array, i, j);\n }\n }\n\n }\n\n }",
"public void bubbleSort() {\n \tfor (int i = 0; i < contarElementos()-1; i++) {\n\t\t\tboolean intercambiado= false;\n\t\t\tfor (int j = 0; j < contarElementos()-1; j++) {\n\t\t\t\tif (encontrarNodoEnElndice(j).getElemento().compareTo(encontrarNodoEnElndice(j+1).getElemento())>0) {\n\t\t\t\t\tintercambiar(j, j+1);\n\t\t\t\t\tintercambiado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!intercambiado) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }",
"public static int[] sortBubble(int[] tab) {\n int n=tab.length;\n\t\tint i=0;\n\t\tboolean dejatrie=false;\n\t\twhile(i<n-1 && !dejatrie) {\n\t\t\tdejatrie=true;\n\t\t\tfor (int j=0; j<n-1;j++) {\n\t\t\t\tif (tab[j]>tab[j+1]) {\n\t\t\t\t\techanger(tab,j,j+1); //méthode d'échange de deux élément en 3 lignes\n\t\t\t\t\tdejatrie=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\ti=i+1;\n\t\t}\n\t\treturn tab;\n }",
"public static void bubbleSort(String [] list1)\r\n\t{\r\n\t\t\r\n\t String temp;\r\n\t int swap=1000;\r\n\t while(swap>0) \r\n\t {\r\n\t \tswap=0;\r\n\t \tfor(int outside=0; outside<list1.length-1; outside++)\r\n\t \t{\r\n\t \t\tif(list1[outside+1].compareTo(list1[outside])<0)\r\n\t \t\t{\r\n\t \t\t\tswap++;\r\n\t \t\t\ttemp=list1[outside];\r\n\t \t\t\tlist1[outside]=list1[outside+1];\r\n\t \t\t\tlist1[outside+1]=temp;\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t \r\n\t}",
"void sort (int [] items) {\r\n\tint length = items.length;\r\n\tfor (int gap=length/2; gap>0; gap/=2) {\r\n\t\tfor (int i=gap; i<length; i++) {\r\n\t\t\tfor (int j=i-gap; j>=0; j-=gap) {\r\n\t\t \t\tif (items [j] <= items [j + gap]) {\r\n\t\t\t\t\tint swap = items [j];\r\n\t\t\t\t\titems [j] = items [j + gap];\r\n\t\t\t\t\titems [j + gap] = swap;\r\n\t\t \t\t}\r\n\t \t}\r\n\t }\r\n\t}\r\n}",
"public static void insertionSort(int[] arr) {\n //write your code here\n for(int i=1;i<arr.length;i++) {\n for(int j=i-1;j>=0;j--) {\n if(isGreater(arr, j, j+1))\n swap(arr, j, j+1);\n else\n break;\n }\n }\n}",
"public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static int[] bubleSort(int[] elements) {\n\t\tif (elements.length == 0 || elements.length == 1)\n\t\t\treturn elements;\n\t\t\n\t\tboolean swapped = true;\n\t\t\n\t\twhile (swapped) {\n\t\t\tswapped = false;\n\t\t\tfor (int i=0;i < elements.length-1;i++) {\n\t\t\t\tif (elements[i] > elements[i+1]) {\n\t\t\t\t\tint temp = elements[i];\n\t\t\t\t\telements[i] = elements[i+1];\n\t\t\t\t\telements[i+1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn elements;\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint [] arr= {3,43,2,320,143,4};\n\t\t\n\t\tint temp=0;\n\t\tint lenth=arr.length;\n\t\t\n\t\tfor(int i=0;i<lenth;i++) {\n\t\t\t\n\t\t\tfor(int j=1;j<(lenth-i);j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(arr[j-1]>arr[j]) {\n\t\t\t\t\ttemp=arr[j-1];\n\t\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\t\t\t\tarr[j]=temp;\n\t\t\t\t\tSystem.out.println(arr[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\n\t\t\n\n\t}",
"static void bubbleSort(int arr[], int n)\n {\n int i, j, temp;\n boolean swapped;\n for (i = 0; i < n - 1; i++)\n {\n swapped = false;\n for (j = 0; j < n - i - 1; j++)\n {\n if (arr[j] > arr[j + 1])\n {\n System.out.println(\"\\nSwapped \" + arr[j] + \" with \" + arr[j + 1]);\n // swap arr[j] and arr[j+1]\n temp = arr[j];\n arr[j] = arr[j + 1];\n arr[j + 1] = temp;\n swapped = true;\n printArray(arr, arr.length);\n }\n }\n\n // IF no two elements were\n // swapped by inner loop, then break\n if (swapped == false)\n break;\n }\n }",
"public static void sort(int[] array) {\n\t\tint temp;\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 1; j < array.length - i; j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public static void sortDesc(int[] theArray) {\n\n\n //convert the array with int to a list with Integer\n //boxed convert the int to an Integer. collectors.toList() converts the array to a list.\n List<Integer> thelist = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n //sort it in reverse\n Collections.sort(thelist, Collections.reverseOrder());\n\n //since the List has Integer and not int anymore..\n for (int i = 0; i < theArray.length; i++) {\n theArray[i] = thelist.get(i);\n }\n\n ////ALT code\n ////using bubblesort Algorithm\n\n// int len = theArray.length;\n// int temp = 0;\n//\n// for (int i = 0; i < len; i++) {\n// for (int j = 1; j < (len-i); j++) {\n//\n// if (theArray[j - 1] < theArray[j]) {\n// //switch position\n// temp = theArray[j - 1];\n// theArray[j - 1] = theArray[j];\n// theArray[j] = temp;\n// }\n//\n// }\n// }\n\n }",
"private static void sort(int[] arr) {\n\t\tint lesserIndex=-1;\n\t\tint arrLen = arr.length ; \n\t\tfor(int i=0; i<arrLen; i++){\n\t\t\tif(arr[i]<0){\n\t\t\t\tlesserIndex++; \n\t\t\t\tint tmp = arr[lesserIndex]; \n\t\t\t\tarr[lesserIndex] = arr[i];\n\t\t\t\tarr[i] = tmp; \n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint negBound = lesserIndex+1;\n\t\tint posIndex = negBound;\n\t\t\n\t\tfor(int negIngex = 0;negIngex<negBound && posIndex<arr.length; negIngex+=2, posIndex+=1){\n\t\t\tint tmp = arr[posIndex]; \n\t\t\tarr[posIndex] = arr[negIngex] ; \n\t\t\tarr[negIngex] = tmp ;\n\t\t\tnegBound++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(int a : arr) {\n\t\t\tSystem.out.print(a);\n\t\t}\n\t\t\n\t}",
"@Override\n public void sort(int[] array) {\n for (int i = 0; i < array.length - 1; ++i) {\n for (int j = i + 1; j < array.length; ++j) {\n if (array[i] > array[j]) {\n int tmp = array[i];\n array[i] = array[j];\n array[j] = tmp;\n }\n }\n }\n }",
"@Override\r\n\tpublic void sortASC(int[] array) {\n\t\t\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = i + 1; j < array.length; j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (array[i] > array[j]) {\r\n\t\t\t\t\tint temp = array[i];\r\n\t\t\t\t\tarray[i] = array[j];\r\n\t\t\t\t\tarray[j] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\r\n int[] numbers = {25, 43, 29, 50, -6, 32, -20, 43, 8, -6};\r\n\t\r\n\tSystem.out.print(\"before sorting: \");\r\n\toutputArray(numbers);\r\n \r\n\tbubbleSort(numbers);\r\n\t\r\n\tSystem.out.print(\"after sorting: \");\r\n\toutputArray(numbers);\r\n }",
"public void bubbleSort(int start, int stop) {\n\t\tfor (int n = stop; n > start + 1; n--) {\n\t\t\tfor (int i = start; i < n; i++) {\n\t\t\t\taddComparison();\n\t\t\t\tif (sequence[i] > sequence[i + 1]) {\n\t\t\t\t\tswapAt(i, i + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n int[] intArray = {20, 35, -15, 7, 55, 1, -22};\n\n for (int lastUnsortedIndex = intArray.length - 1; lastUnsortedIndex > 0; lastUnsortedIndex--) {\n for (int i = 0; i < lastUnsortedIndex; i++) {\n if (intArray[i] > intArray[i + 1]) {\n swap(intArray, i, i + 1);\n }\n }\n }\n\n for (int i = 0; i < intArray.length; i ++) {\n System.out.println(intArray[i]);\n }\n }",
"private static void sort(int[] arr) {\n\t\t\n\t\tint i=0;\n\t\tint j=0;\n\t\tint k=arr.length-1;\n\t\tSystem.out.println(\"length \"+arr.length);\n\t\twhile (i<=k)\n\t\t{\n\t\t\tSystem.out.println(\"at start i \"+i+\" j \"+j+\" k \"+k);\n\t\t\tif(arr[i]==0)\n\t\t\t\tswap(j++,i++,arr);\n\t\t\telse if(arr[i]==2)\n\t\t\t\tswap(k--,i,arr);\n\t\t\telse\n\t\t\t\ti++;\n\t\t\t\n\t\t\tprintArray(arr);\n\t\t\tSystem.out.println(\"at end i \"+i+\" j \"+j+\" k \"+k);\n\t\t\t\n\t\t}\n\t}",
"public static int[] bubbleSortBasic(int [] arrayToSort , SorterObject results)\n {\n \t// Create a copy of array than was send\n int [] arr = Arrays.copyOf(arrayToSort,arrayToSort.length);\n // Start the timer\n long startTime = System.currentTimeMillis(); \n // Variable used for swaping elements\n int temp = 0; \n // Outer loop\n for(int i=0; i < arr.length-1; i++)\n { \n // inner loop\n for(int j=0; j < arr.length-1; j++)\n { \n \t// Increase number of comparisons\n \tresults.numberOfComparisons++;\n if(arr[j] > arr[j+1])\n { \n\t temp = arr[j]; \n\t arr[j] = arr[j+1]; \n\t arr[j+1] = temp; \n\t // Increase number of swaps\n\t results.numberOfSwaps++;\n }\n }\n } \n // Stop the timer\n long stopTime = System.currentTimeMillis();\n // Calculate time \n long elapsedTime = stopTime - startTime;\n // Save time elapsed in global results object\n results.time = elapsedTime;\n // Return sorted array\n return arr;\n \n }",
"@Override\r\n\tpublic void sortDESC(int[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = i + 1; j < array.length; j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (array[i] < array[j]) {\r\n\t\t\t\t\tint temp = array[i];\r\n\t\t\t\t\tarray[i] = array[j];\r\n\t\t\t\t\tarray[j] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }",
"public void sortFromEnd(int[] arr) {\n if (arr == null || arr.length == 0) return;\n int n = arr.length;\n for (int i = n-1; i > 0; --i) {\n int maxIdx = i;\n for (int j = 0; j < i; ++j)\n if (arr[j] > arr[maxIdx])\n maxIdx = j;\n swap(arr, i, maxIdx);\n }\n }",
"void sort(int arr[])\n {\n int n = arr.length;\n for (int i=1; i<n; i++)\n {\n int key = arr[i];\n int j = i-1;\n \n while (j>=0 && arr[j] > key)\n {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = key;\n }\n }",
"public static void main(String[] args) {\n\n\t\tint[] a= {10,9,7,13,2,6,14,20};\n\t\tSystem.out.println(\"before sort\"+Arrays.toString(a));\n\t\tfor(int k=1;k<a.length;k++) {\n\t\t\tint temp=a[k];\n\t\t\tint j=k-1;\n\t\t\t\n\t\t\twhile(j>=0 && temp<=a[j]) {\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\tj=j-1;\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t}\n\n\t\t\n\t\tSystem.out.println(\"After sort\"+Arrays.toString(a));\n\t\t\n\t\tSystem.out.println(\"print uing for loop\");\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+\"\");\n\t\t}\n\t}",
"public static int[] sort(int[] array) {\n\t\tfor(int i = 1; i < array.length; ++i) {\n\t\t\t//swap\n\t\t\tint j = i;\n\t\t\twhile ((j > 0) && (array[j] < array[j - 1])) {\n\t\t\t\tint n = array[j - 1];\n\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\tarray[j] = n;\n\t\t\t\t--j;\n\t\t\t}\n\t\t}\n\t\treturn array;\n\t}",
"public int[] bubleSort(int[] a) {\n\n\tint temp = 0;\n\tfor (int i = 0; i < a.length - 1; i++) {\n\t\tfor (int j = a.length - 1; j > 0; j--) {\n\t\t\tif (a[j] < a[j - 1]) {\n\t\t\t\ttemp = a[j];\n\t\t\t\ta[j] = a[j - 1];\n\t\t\t\ta[j - 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\treturn a;\n\t}",
"private static void sort2(int[] a) {\n for(int i=0; i<a.length; i++){\n //find smallest from i to end \n int minIndex=i;\n for(int j=i ; j<a.length; j++)\n if(a[j]<a[minIndex])\n minIndex=j;\n //swap\n int t = a[i];\n a[i] = a[minIndex];\n a[minIndex] = t;\n }\n }",
"public static void LinearSorting(int[] arr) {\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 if(arr[i]>arr[j]) {\r\n\t\t\t\t //Swap elements\r\n\t\t\t\t int temp=arr[i];\r\n\t\t\t\t arr[i]=arr[j];\r\n\t\t\t\t arr[j]=temp;\r\n\t\t\t }\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public <T extends Comparable<? super T>> void sort (T[] a) {\n int n = a.length;\n for (int i = 0; i< n - 1; i++) {\n for (int j = 0; j < n -1 - i; j++) {\n if (a[j+1].compareTo(a[j]) < 0) \n {\n T tmp = a[j]; \n a[j] = a[j+1];\n a[j+1] = tmp;\n }\n }\n }\n }",
"public void sort(int[] a) {\n\t\tint n = a.length;\n\t\tint temp;\n\t\tfor (int gap = n / 2; gap > 0; gap /= 2) {\n\t\t\tfor (int i = gap; i < n; i++) {\n\t\t\t\tfor (int j = i - gap; j >= 0; j -= gap) {\n\t\t\t\t ++totalValCmp;\n\t\t\t\t if (a[j] > a[j + gap]) {\n\t\t\t\t\t temp = a[j];\n\t\t\t\t\t a[j] = a[j + gap];\n\t\t\t\t\t a[j + gap] = temp;\n\t\t\t\t\t ++totalswaps;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}"
]
| [
"0.80583197",
"0.8052966",
"0.8051719",
"0.80467653",
"0.7970025",
"0.7908064",
"0.7894514",
"0.78868824",
"0.7872138",
"0.78675795",
"0.7866229",
"0.78648347",
"0.78451467",
"0.78207207",
"0.7818484",
"0.7806467",
"0.7787519",
"0.7772028",
"0.77557135",
"0.77424055",
"0.7730835",
"0.76955986",
"0.7658352",
"0.7647685",
"0.76374215",
"0.76162535",
"0.76025355",
"0.75381464",
"0.7508414",
"0.7428842",
"0.74253225",
"0.7418245",
"0.7415683",
"0.7407027",
"0.7389305",
"0.73735493",
"0.7323547",
"0.730265",
"0.7298707",
"0.72692955",
"0.7259996",
"0.7251281",
"0.72338957",
"0.7229816",
"0.72274864",
"0.72221506",
"0.721253",
"0.7199221",
"0.71937674",
"0.7150601",
"0.7087941",
"0.70720243",
"0.70679736",
"0.70623034",
"0.70471203",
"0.703232",
"0.70300364",
"0.70220727",
"0.7016491",
"0.70082194",
"0.70028275",
"0.6986652",
"0.6981748",
"0.69790447",
"0.69784963",
"0.69656396",
"0.6949055",
"0.694582",
"0.69378036",
"0.69297916",
"0.6929564",
"0.6926627",
"0.6920626",
"0.6920335",
"0.6909833",
"0.6904479",
"0.6895339",
"0.6887663",
"0.68815225",
"0.68664145",
"0.6864944",
"0.6859966",
"0.68573177",
"0.68570334",
"0.68431437",
"0.6836623",
"0.6827468",
"0.6820462",
"0.68069255",
"0.6798543",
"0.67902285",
"0.6788347",
"0.67732805",
"0.67675704",
"0.6762914",
"0.6756904",
"0.67554396",
"0.6755164",
"0.67192554",
"0.6709683"
]
| 0.7576994 | 27 |
Get the instance of this class. | public static JWTLoginModuleDataHolder getInstance() {
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T getInstance() {\n return instance;\n }",
"@Override\n public T getInstance() {\n return instance;\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"public static Main getInstance() {\r\n return instance;\r\n }",
"public static Main getInstance() {\n return instance;\n }",
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static SingleObject getInstance(){\n return instance;\n }",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Ambulancia get_instance() {\n if (instance == null)\n instance = new Ambulancia();\n return instance;\n }",
"public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }",
"public static Parser getInstance() {\n return instance;\n }",
"Instance createInstance();",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Arm getInstance() {\n if (instance == null) {\n instance = new Arm();\n }\n return instance;\n }",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public RunePouchHandler getInstance() {\n return instance == null ? instance = new RunePouchHandler(this.superClass) : instance;\n }",
"public static MetaDataManager getInstance() {\n return instance;\n }",
"public static MainActivity instance() {\n Log.d(TAG, \" instance(): called\");\n return inst;\n }",
"public static Singleton getInstance() {\n return mSing;\n }",
"public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }",
"public static SingletonEager getInstance()\n {\n return instance;\n }",
"public static Boot getInstance()\n {\n return instance;\n }",
"public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }",
"public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }",
"public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public synchronized static ApModel getInstance()\n\t{\n\t\tif (INSTANCE == null)\n\t\t\tINSTANCE = new ApModel();\n\t\treturn INSTANCE;\n\t}",
"public static Controller getInstance() { return INSTANCE; }",
"public static Parser getInstance() {\n\t\tif (theOne == null) {\n\t\t\ttheOne = new Parser();\n\t\t}\n\t\treturn theOne;\n\t}",
"public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"T getInstance();",
"public Object getObject() {\n return getObject(null);\n }",
"public static Result instance() {\n\t\t\n\t\tif (result == null) result = new Result();\n\t\t\n\t\treturn result;\n\t\t\n\t}",
"public static AppClient getInstance() {\n return instance;\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }",
"public static TaskManager getInstance()\n {\n return gInstance;\n }",
"public Extractor getInstance() throws Exception {\r\n return (Extractor)getInstance(label); \r\n }",
"public static Json getInstance() {\n\t\treturn instance;\n\t}",
"public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }",
"static RatAppModel getInstance() {return model;}",
"public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }",
"public ScannerSimulator getInstance() {\n\t\tif (mInstance == null)\n\t\t\tmInstance = new ScannerSimulator();\n\t\treturn mInstance;\n\t}",
"public static Catalog instance() {\r\n if (catalog == null) {\r\n return (catalog = new Catalog());\r\n } else {\r\n return catalog;\r\n }\r\n }",
"public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}",
"public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();",
"public static AccessSub getInstance() {\n\t\treturn instance;\n\t}",
"public static BESDyno getInstance() {\n if (instance == null) {\n instance = new BESDyno();\n }\n return instance;\n }",
"String getInstance()\n {\n return instance;\n }",
"public static GameManager getInstance() {\n return ourInstance;\n }",
"public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"protected final Class<T> getInstanceClass() {\r\n return instanceClass;\r\n }",
"public static synchronized LowerCaseResolution instance() {\n\t\t// double check locking\n\t\tif (instance == null) {\n\t\t\tsynchronized (LowerCaseResolution.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new LowerCaseResolution();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public ClassFrequency getInstance(){\n\t\treturn instance;\n\t}",
"public static Univers get(){\n if (instance == null)\n {\n instance = new Univers();\n }\n return instance;\n }",
"public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }",
"public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }",
"public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }",
"public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }",
"public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"ResponseHandler getInstance() {\n \t\treturn this;\n \t}",
"public static Empty getInstance() {\n return instance;\n }",
"public static IndicieSeznam getInstance() {\n\n return ourInstance;\n }",
"public static Elevator getInstance() {\r\n return instance;\r\n }",
"public static final ResultObserver getInstance() {\n return sInstance;\n }",
"public static synchronized MainModel getInstance() {\n\n if (instance == null)\n instance = new MainModel();\n\n return instance;\n\n }",
"public static NotificationPublisher getInstance() {\n return instance;\n }",
"public static UIManager getInstance() {\n return ourInstance;\n }",
"public static TodoData getInstance() {\n return instance;\n }",
"public static Business getInstance() {\n if (business == null) {\n business = new Business();\n }\n return business;\n }",
"public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}",
"private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }",
"public static MuzikoExoPlayer Instance() {\n if (instance == null) {\n instance = new MuzikoExoPlayer();\n }\n return instance;\n }",
"public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }",
"public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }",
"public static Downloader getInstance() {\n return new Downloader();\n }",
"public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}",
"public static QlikLoad getInstance() {\n if (instance == null) {\n synchronized (QlikLoad.class) {\n // double-check because of potential for race\n if (instance == null) {\n instance = new QlikLoad(\"QLikSocket\");\n }\n }\n }\n return instance;\n }",
"public static PulseDataReader getInstance() {\n return instance;\n }",
"public static ValorantManager getInstance() {\n if(instance == null) {\n instance = new ValorantManager();\n }\n return instance;\n }",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"public static ByteArrayCache instance() {\n if (_instance == null) try {\n _instance = (ByteArrayCache) ImmortalMemory.instance().newInstance( ByteArrayCache.class);\n ZenProperties.logger.log(Logger.INFO, ByteArrayCache.class, \"instance\", \"ByteArrayCache created\");\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.FATAL, ByteArrayCache.class, \"instance\", e);\n System.exit(-1);\n }\n return _instance;\n }",
"public static CachedClock instance() {\n CachedClock result = instance;\n if (result == null) {\n synchronized (INSTANCE_LOCK) {\n result = instance;\n if (result == null) {\n instance = result = new CachedClock();\n }\n }\n }\n return result;\n }",
"public static RockboxWidgetProvider getInstance()\n {\n return mInstance;\n }",
"public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }",
"public static FoodApplication getInstance() {\n return instance;\n }",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public static final PikaxProcessor getInstance() {\n\t\tif (instance == null) {\n\t\t\treturn newInstance();\n\t\t}\n\t\treturn instance;\n\t}",
"public static LauncherFrame getInstance() {\n return instance;\n }",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }",
"public static DataModel getInstance() {\n if (INSTANCE == null) {\n synchronized (DataModel.class) {\n if (INSTANCE == null) {\n INSTANCE = new DataModel();\n }\n }\n }\n return INSTANCE;\n }",
"public static DataManager getInstance()\n\t{\n\t\tDataManager pManager = null;\n\t\tObject pObject = UiStorage.getEntity(DataManager.class);\n\t\tif ( null == pObject )\n\t\t{\n\t\t\tpManager = new DataManager();\n\t\t\tUiStorage.setEntity(pManager);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpManager = (DataManager)pObject;\n\t\t}\n\t\t\n\t\treturn pManager;\n\t}",
"public static Stocks getInstance() {\r\n if (instance == null) {\r\n instance = new Stocks();\r\n }\r\n\r\n return instance;\r\n }"
]
| [
"0.7471515",
"0.7278389",
"0.6917784",
"0.68531907",
"0.6852432",
"0.6734332",
"0.6695923",
"0.668668",
"0.6670394",
"0.6664308",
"0.6663224",
"0.65889806",
"0.6586674",
"0.6574894",
"0.648214",
"0.64770645",
"0.64591736",
"0.64591736",
"0.6454866",
"0.64518714",
"0.6426183",
"0.64197856",
"0.6412019",
"0.64027476",
"0.6393995",
"0.6377265",
"0.63683194",
"0.63464445",
"0.6345609",
"0.6339628",
"0.6336441",
"0.6330322",
"0.63274086",
"0.6317924",
"0.6314641",
"0.6308639",
"0.6298728",
"0.6294955",
"0.6289411",
"0.62891924",
"0.6281763",
"0.6271559",
"0.62691665",
"0.62478966",
"0.6246537",
"0.6239624",
"0.62388635",
"0.6238463",
"0.6229063",
"0.6228603",
"0.62258077",
"0.62218076",
"0.62175655",
"0.621186",
"0.6198556",
"0.61977744",
"0.6197276",
"0.6194198",
"0.6186966",
"0.61849105",
"0.61812294",
"0.61794394",
"0.61762327",
"0.61738116",
"0.61733997",
"0.6173295",
"0.6172637",
"0.6172482",
"0.61617285",
"0.6161127",
"0.6158883",
"0.6156803",
"0.61529475",
"0.6149966",
"0.6146625",
"0.6136877",
"0.6135697",
"0.6134849",
"0.61325663",
"0.6127816",
"0.6122892",
"0.61225075",
"0.6120941",
"0.61196345",
"0.61191124",
"0.6117969",
"0.6117265",
"0.6114338",
"0.6109006",
"0.6106841",
"0.6106441",
"0.6104946",
"0.6103281",
"0.60947293",
"0.60927534",
"0.6091994",
"0.6087138",
"0.6075521",
"0.60680395",
"0.6060462",
"0.6059372"
]
| 0.0 | -1 |
Loads the textures and position of the Hero | public Hero(int x, int y) {
this.centerX = x;
this.centerY = y;
this.currentHealth = 100;
rect1 = new FloatRect (100,630,80,110);
imgTexture = new Texture ();
try {
imgTexture.loadFromFile (Paths.get (ImageFile));
} catch (IOException ex) {
ex.printStackTrace ();
}
imgTexture.setSmooth (true);
img = new Sprite (imgTexture);
img.setOrigin (Vector2f.div (new Vector2f (imgTexture.getSize ()), 2));
img.setPosition (x, y);
// Store references to object and key methods
obj = img;
setPosition = img::setPosition;
background = new Sprite (bg.loadTextures ());
background.setOrigin(Vector2f.div(new Vector2f(bg.getTexture1 ()), 1000000));
background.setPosition (0,0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1, 16, 21);\n standFront = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_front.png\", Texture.class), 1, 1, 17, 22);\n standRight = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n }",
"private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}",
"public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }",
"private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}",
"public void preLoadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.EMPTY) {\n\t\t\treturn;\n\t\t}\n\n\t\tworldAssetState = AssetState.LOADING;\n\n\t\tmanager.load(KOI_TEXTURE, Texture.class);\n\t\tassets.add(KOI_TEXTURE);\n\n\t\tmanager.load(ENEMY_TEXTURE, Texture.class);\n\t\tassets.add(ENEMY_TEXTURE);\n\n\t\tmanager.load(LILY_TEXTURE, Texture.class);\n\t\tassets.add(LILY_TEXTURE);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_N, Texture.class);\n\t\tassets.add(LILY_TEXTURE_N);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_S, Texture.class);\n\t\tassets.add(LILY_TEXTURE_S);\n\n\t\tmanager.load(LANTERN_TEXTURE, Texture.class);\n\t\tassets.add(LANTERN_TEXTURE);\n\n\t\tmanager.load(LIGHTING_TEXTURE, Texture.class);\n\t\tassets.add(LIGHTING_TEXTURE);\n\n\t\tmanager.load(SHADOW_TEXTURE, Texture.class);\n\t\tassets.add(SHADOW_TEXTURE);\n\n\t\tmanager.load(GOAL_TEXTURE, Texture.class);\n\t\tassets.add(GOAL_TEXTURE);\n\n\t\tmanager.load(EARTH_FILE,Texture.class);\n\t\tassets.add(EARTH_FILE);\n\n\t\tmanager.load(EARTH_FILE_D,Texture.class);\n\t\tassets.add(EARTH_FILE_D);\n\t\tmanager.load(EARTH_FILE_N,Texture.class);\n\t\tassets.add(EARTH_FILE_N);\n\t\tmanager.load(EARTH_FILE_S,Texture.class);\n\t\tassets.add(EARTH_FILE_S);\n\t\tmanager.load(SHORE_FILE,Texture.class);\n\t\tassets.add(SHORE_FILE);\n\n\t\tmanager.load(ROCK_FILE_D,Texture.class);\n\t\tassets.add(ROCK_FILE_D);\n\t\tmanager.load(ROCK_FILE_N,Texture.class);\n\t\tassets.add(ROCK_FILE_N);\n\t\tmanager.load(ROCK_FILE_S,Texture.class);\n\t\tassets.add(ROCK_FILE_S);\n\n\t\tmanager.load(WHIRLPOOL_TEXTURE, Texture.class);\n\t\tassets.add(WHIRLPOOL_TEXTURE);\n\t\t\n\t\tmanager.load(ENERGYBAR_TEXTURE, Texture.class);\n\t\tassets.add(ENERGYBAR_TEXTURE);\n\n\t\tmanager.load(UI_FLOWER, Texture.class);\n\t\tassets.add(UI_FLOWER);\n\n\t\tmanager.load(OVERLAY, Texture.class);\n\t\tassets.add(OVERLAY);\n\n\t\tmanager.load(BACKGROUND_FILE_N, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_N);\n\n\t\tmanager.load(BACKGROUND_FILE_D, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_D);\n\n\t\tmanager.load(BACKGROUND_FILE_S, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_S);\n\t\t\n\t\t\n\n\t\tmanager.load(OVERLAY_FILE, Texture.class);\n\t\tassets.add(OVERLAY_FILE);\n\n\t\tmanager.load(KOI_ARROW, Texture.class);\n\t\tassets.add(KOI_ARROW);\n\t\tmanager.load(WHIRL_ARROW, Texture.class);\n\t\tassets.add(WHIRL_ARROW);\n\t\t\n\t\tmanager.load(TUTORIAL_TEXTURE1, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE1);\n\t\tmanager.load(TUTORIAL_TEXTURE2, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE2);\n\t\tmanager.load(TUTORIAL_TEXTURE3, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE3);\n\t\tmanager.load(TUTORIAL_TEXTURE4, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE4);\n\t\tmanager.load(TUTORIAL_TEXTURE5, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE5);\n\t\tmanager.load(TUTORIAL_TEXTURE6, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE6);\n\t\t\n\t\tmanager.load(HELP_TEXTURE, Texture.class);\n\t\tassets.add(HELP_TEXTURE);\n\t\t\n\n\t\treferenceC.a = 0f;\n\n\t\t// Load the font\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size2Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize2Params.fontFileName = FONT_FILE;\n\t\tsize2Params.fontParameters.size = FONT_SIZE;\n\t\tmanager.load(FONT_FILE, BitmapFont.class, size2Params);\n\t\tassets.add(FONT_FILE);\n\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size3Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize3Params.fontFileName = FONT_FILE2;\n\t\tsize3Params.fontParameters.size = FONT_SIZE2;\n\t\tmanager.load(FONT_FILE2, BitmapFont.class, size3Params);\n\t\tassets.add(FONT_FILE2);\n\t\t\n\t\t\n\t}",
"@Override\n public void loadTexture() {\n\n }",
"private void loadEntityGraphics(BufferedImage[][] hero,\n\t\t\tBufferedImage[][] boss, BufferedImage[][] enemy) {\n\t\t// load hero, then flip the right to get left\n\t\tBufferedImage image = Game.loadImage(\"ssHero.png\");\n\t\tBufferedImage image2 = SideScrollerEntity.resize(image,\n\t\t\t\timage.getWidth() * 52 / image.getHeight(), 52);\n\t\thero[1][0] = new BufferedImage(32, 64, BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics g = hero[1][0].getGraphics();\n\t\tg.drawImage(image2, 0, 12, null);\n\t\tg.dispose();\n\t\thero[0][0] = SideScrollerEntity.flip(hero[1][0]);\n\n\t\t// load boss\n\t\tboss[0][0] = Game.loadImage(\"ssBoss1.png\");\n\t\tboss[1][0] = SideScrollerEntity.flip(boss[0][0]);\n\n\t\t// load enemy\n\t\tenemy[0][0] = Game.loadImage(\"ssEnemy.png\");\n\t\tenemy[1][0] = SideScrollerEntity.flip(enemy[0][0]);\n\t}",
"public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }",
"@Override\n\tpublic void loadUnits() {\n\t\tsprites.put(\"axeman\", RES.getSprite(\"axeman\"));\n\t\tsprites.put(\"warg\", RES.getSprite(\"warg_right\"));\n\t}",
"@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }",
"public static void loadTextures() {\n loadFontTextures();\n loadAlternatePaletteTextures(); // Load alternate tiles.\n findAllTextures(); // Should be run last.\n System.out.println(\"Textures have been successfully loaded.\");\n }",
"public static void load() {\n\t\tspritesheet = new Spritesheet(\"src/de/kaffeeliebhaber/assets/pyxel/voland_spritesheet_new.png\", 32, 32);\n\t\tspritesheet.load();\n\t\t\n\t\t// load player\n\t\tAssetsLoader.loadPlayerAssets();\n\t\t\n\t\t// load crate\n\t\tAssetsLoader.loadCrates();\n\t\t\n\t\t// load item spritesheet \n\t\tspritesheetInventory = new Spritesheet(Config.ITEM_SPRITESHEET, Config.ITEM_SIZE, Config.ITEM_SIZE);\n\t\tspritesheetInventory.load();\n\t\t\n\t\t// load font \n\t\tloadFonts();\n\t\t\n\t\t// ui\n\t\timageUI = ImageLoader.loadImage(\"src/de/kaffeeliebhaber/assets/ui/ui.png\");\n\t\t\n\t\tAssetsLoader.loadInfoPaneAssets();\n\t\t\n\t\t// npc\n\t\tspritesheetNPC = new Spritesheet(\"src/de/kaffeeliebhaber/assets/AH_SpriteSheet_People1.png\", 16, 16);\n\t\tspritesheetNPC.load();\n\t\t\n\t\t// fox\n\t\tspritesheetNPCFox = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/72c68863962b7a6b5a9f5f5bcc5afb16.png\", 32, 32);\n\t\tspritesheetNPCFox.load();\n\n\t\t// *** LOAD NPCs\n\t\tAssetsLoader.loadFoxAssets();\n\t\t\n\t\tAssetsLoader.loadNPCs();\n\t\t\n\t\tspritesheetFemale = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/Female 01-1.png\", 32, 32);\n\t\tspritesheetFemale.load();\n\t}",
"private void loadHealthBar()\r\n\t{\r\n \tTextureRegion [][] tempFrames;\r\n \tTextureRegion [] frames;\r\n\t\tTexture appearance = new Texture(\"img/hud/HeartBar.png\");\r\n\t\thealthWidth = appearance.getWidth() / 2;\r\n\t\thealthHeight = appearance.getHeight() / 26;\r\n\t\ttempFrames = TextureRegion.split(appearance, healthWidth,\r\n\t\t\t\thealthHeight);\r\n\t\tint index = 0;\r\n\t\tframes = new TextureRegion[52];\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (int j = 0; j < 2; j++) {\r\n\t\t\t\tframes[index++] = tempFrames[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\thealthBarAnimation = new Animation(0.01f, frames);\r\n\t\theroHealth.setOrigin(healthWidth/2, healthHeight/2);\r\n\t\theroHealth.setBounds(getX(),getY(), camera.viewportWidth * 0.3f,camera.viewportWidth * 0.3f * (appearance.getHeight() / 26)/(appearance.getWidth() / 2));\r\n\t\t\r\n\t\tstateTime = 0f;\r\n\t\tcurrentFrame = healthBarAnimation.getKeyFrame(stateTime, true);\r\n\t\t\r\n\t\t\r\n\t\tTexture tempT = new Texture(\"img/hud/HeartBarCover.jpg\");\r\n\t\tcover = new Sprite(tempT);\r\n\t\tcover.setSize(250f/270f * heroHealth.getWidth(), heroHealth.getHeight());\r\n\t\tcover.setOrigin(cover.getWidth(), cover.getHeight()/2);\r\n\t\tcover.setScale(1f, 1f);\r\n\t}",
"@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}",
"private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}",
"@Override\n\tpublic void loadEnemies() {\n\t\t\n\t}",
"public void create() {\r\n\t\t\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tGdx.input.setInputProcessor(new MyInputProcessor());\r\n\t\t\r\n\t\t\r\n\t\ttextures = Tex.getTex();\r\n\t\t// load images\r\n\t\ttextures.loadTexture(\"res/images/guyDown.png\", \"guyDown\");\r\n\t\ttextures.loadTexture(\"res/images/guyUp.png\", \"guyUp\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Down.png\", \"guyDown2\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Up.png\", \"guyUp2\");\r\n\t\ttextures.loadTexture(\"res/images/enemyDown.png\", \"enemyDown\");\r\n\t\ttextures.loadTexture(\"res/images/enemyUp.png\", \"enemyUp\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/skyline.png\", \"skyline\");\r\n\t\ttextures.loadTexture(\"res/images/skyline2.jpg\", \"skyline2\");\r\n\t\ttextures.loadTexture(\"res/images/skyline3.png\", \"skyline3\");\t\t\r\n\t\ttextures.loadTexture(\"res/images/circuit board.jpg\", \"fundo2\");\r\n\t\ttextures.loadTexture(\"res/images/grav3.jpg\", \"menu\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/singleplayer.png\", \"single\");\r\n\t\ttextures.loadTexture(\"res/images/multiplayer.png\", \"multi\");\r\n\t\ttextures.loadTexture(\"res/images/exit.png\", \"exit\");\r\n\t\ttextures.loadTexture(\"res/images/level1B.png\", \"B1\");\r\n\t\ttextures.loadTexture(\"res/images/level2B.png\", \"B2\");\r\n\t\ttextures.loadTexture(\"res/images/level3B.png\", \"B3\");\r\n\t\ttextures.loadTexture(\"res/images/mainMenuB.png\", \"mainB\");\r\n\t\ttextures.loadTexture(\"res/images/win1.png\", \"win1\");\r\n\t\ttextures.loadTexture(\"res/images/win2.png\", \"win2\");\r\n\t\ttextures.loadTexture(\"res/images/tryagain.png\", \"retry\");\r\n\t\ttextures.loadTexture(\"res/images/easy.png\", \"easy\");\r\n\t\ttextures.loadTexture(\"res/images/medium.png\", \"medium\");\r\n\t\ttextures.loadTexture(\"res/images/hard.png\", \"hard\");\r\n\t\ttextures.loadTexture(\"res/images/difficulty.png\", \"difficulty\");\r\n\t\ttextures.loadTexture(\"res/images/thunder2.png\", \"thunder\");\r\n\t\r\n\t\ttextures.loadTexture(\"res/images/levelcleared.png\", \"cleared\");\r\n\t\ttextures.loadTexture(\"res/images/you lost.png\", \"lost\");\r\n\t\ttextures.loadTexture(\"res/images/playerpress.png\", \"playerp\");\r\n\t\ttextures.loadTexture(\"res/images/player1press.png\", \"player1p\");\r\n\t\ttextures.loadTexture(\"res/images/player2press.png\", \"player2p\");\r\n\t\ttextures.loadTexture(\"res/images/selectthelevel.png\", \"select\");\r\n\t\t\r\n\t\t\r\n\t\tsb = new SpriteBatch();\r\n\t\tcam = new OrthographicCamera();\r\n\t\tcam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\thudCam = new OrthographicCamera();\r\n\t\thudCam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\tgsm = new GameStateManager(this);\r\n\t\t\t\t\r\n\t}",
"public void loadAllTextures()\n {\n int numChildren = androidRobot3DObject.numChildren();\n for(int i = 0;i<numChildren;i++)\n {\n String name = androidRobot3DObject.getChildAt(i).name();\n\n Log.d(\"min3d\", \"Texture name: \" + name);\n\n // The name is either extracted from the _mtl file\n // or directly from the *.3ds file\n // The name can be given directly into Blender\n if(name.indexOf(\"body\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_body\");\n }\n\n if(name.indexOf(\"head\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_head\");\n }\n\n if(name.indexOf(\"foot\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_foot\");\n }\n\n\n if(name.indexOf(\"arm\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_arm\");\n }\n\n if(name.indexOf(\"antenna\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_antenna\");\n }\n }\n\n }",
"public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}",
"public void cargarGameScreenTiled() {\n\n musicaTiled = get(rutaMusica, Music.class);\n musicaTiled.setLooping(true);\n platMusicInGame();\n\n TextureAtlas atlas = get(atlasTiledStuff, TextureAtlas.class);\n tiledMap = get(rutaTiled, TiledMap.class);\n\n SkeletonJson json = new SkeletonJson(atlas);\n json.setScale(.01f);\n ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/personajes.json\"));\n // ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/characters.json\"));\n json.setScale(.004f);\n skeletonBombData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n bombAnim = skeletonBombData.findAnimation(\"b1\");\n bombExAnim = skeletonBombData.findAnimation(\"b2x\");\n\n json.setScale(.005f);\n skeletonMonedaData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/coin.json\"));\n monedaAnim = skeletonMonedaData.findAnimation(\"normal\");\n monedaTomadaAnim = skeletonMonedaData.findAnimation(\"plus1\");\n\n json.setScale(.009f);\n chileSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chile.json\"));\n chileAnim = chileSkeletonData.findAnimation(\"normal\");\n chileTomadaAnim = chileSkeletonData.findAnimation(\"toospicy\");\n\n json.setScale(.009f);\n globoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/ballons.json\"));\n globoAnim = globoSkeletonData.findAnimation(\"normal\");\n globoTomadaAnim = globoSkeletonData.findAnimation(\"plus5\");\n\n json.setScale(.009f);\n dulceSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chocolate.json\"));\n dulceAnim = dulceSkeletonData.findAnimation(\"normal\");\n dulceTomadaAnim = dulceSkeletonData.findAnimation(\"speedup\");\n\n medallaPrimerLugar = atlas.findRegion(\"imagenes/podio/1stplacetrophy\");\n medallaSegundoLugar = atlas.findRegion(\"imagenes/podio/2ndplace\");\n medallaTercerLugar = atlas.findRegion(\"imagenes/podio/3rdplace\");\n congratulations = atlas.findRegion(\"imagenes/podio/congratulations\");\n youLose = atlas.findRegion(\"imagenes/podio/youlose\");\n timeUp = atlas.findRegion(\"imagenes/podio/timeup\");\n\n // json.setScale(.003f);\n // SkeletonData fuegoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n // fuegoAnim = fuegoSkeletonData.findAnimation(\"firedancing\");\n // fuegoSkeleton = new Skeleton(fuegoSkeletonData);\n\n json.setScale(.01f);\n SkeletonData fondoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/background.json\"));\n fondoAnim = fondoSkeletonData.findAnimation(\"animation\");\n fondoSkeleton = new Skeleton(fondoSkeletonData);\n\n //\n // json.setScale(.011f);\n // SkeletonData fogataSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/fogata.json\"));\n // fogataAnim = fogataSkeletonData.findAnimation(\"fogata\");\n // fogataSkeleton = new Skeleton(fogataSkeletonData);\n //\n // json.setScale(.005f);\n // SkeletonData plumaSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/feather.json\"));\n // plumaAnim = plumaSkeletonData.findAnimation(\"pluma\");\n // plumaSkeleton = new Skeleton(plumaSkeletonData);\n //\n // json.setScale(.011f);\n // SkeletonData bloodStoneSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstone.json\"));\n // bloodStoneAnim = bloodStoneSkeletonData.findAnimation(\"animation\");\n // bloodStoneSkeleton = new Skeleton(bloodStoneSkeletonData);\n //\n // SkeletonData bloodStone2SkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstones.json\"));\n // bloodStone2Anim = bloodStone2SkeletonData.findAnimation(\"glow1\");\n // bloodStone2Skeleton = new Skeleton(bloodStone2SkeletonData);\n\n fondo = atlas.findRegion(\"imagenes/fondo\");\n\n padIzq = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_izq\")));\n padDer = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_derecha\")));\n btBombaDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasalpresionar\")));\n btBombaUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasinpresionar\")));\n\n btJumpDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltoalpresionar\")));\n btJumpUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltosinpresionar\")));\n // btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncosinpresionar\")));\n // btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncopresionado\")));\n\n btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelas\")));\n btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelasPresionado\")));\n\n btPauseUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pause\")));\n\n indicador = atlas.findRegion(\"Interfaz/indicador\");\n indicadorCloud = atlas.findRegion(\"Interfaz/icono000\");\n indicadorCientifico = atlas.findRegion(\"Interfaz/icono001\");\n indicadorMinion = atlas.findRegion(\"Interfaz/icono002\");\n indicadorNatylol = atlas.findRegion(\"Interfaz/icono003\");\n indicadorLighthingAlba = atlas.findRegion(\"Interfaz/icono004\");\n indicadorIgnis = atlas.findRegion(\"Interfaz/icono005\");\n\n perfilRegionCloud = atlas.findRegion(\"perfiles/cloud\");\n perfilRegionNatylol = atlas.findRegion(\"perfiles/natylol\");\n perfilRegionIgnis = atlas.findRegion(\"perfiles/ignis\");\n perfilRegionCientifico = atlas.findRegion(\"perfiles/scientist\");\n perfilRegionLAlba = atlas.findRegion(\"perfiles/lightingalba\");\n perfilRegionEnemigo = atlas.findRegion(\"perfiles/enemy\");\n\n lugaresMarco = atlas.findRegion(\"Interfaz/lugares\");\n\n moneda = atlas.findRegion(\"moneda\");\n\n tronco = atlas.findRegion(\"tachuelas\");\n tachuelas = atlas.findRegion(\"tachuelas\");\n platano = atlas.findRegion(\"platano\");\n\n pickCoin = get(\"data/musica/coin.mp3\");\n jump = get(\"data/musica/salto.mp3\");\n }",
"public static void loadBg() {\n bg = new Texture (Gdx.files.internal(\"data/bbb.png\"));\n textureBg =new TextureRegion(bg);\n player = new Texture (Gdx.files.internal(\"data/nave2.png\"));\n texturePlayer =new TextureRegion(player);\n gameOver = new Texture (Gdx.files.internal(\"data/gameOver.png\"));\n textureGameOver =new TextureRegion(gameOver);\n textureGameOver.flip(false, true);\n laser= new Texture (Gdx.files.internal(\"data/disparo_sprite.png\"));\n textureLaser = new TextureRegion(laser);\n obstacle= new Texture (Gdx.files.internal(\"data/square.gif\"));\n textureObstacle = new TextureRegion(obstacle);\n title= new Texture (Gdx.files.internal(\"data/invadpt2.png\"));\n textureTitle = new TextureRegion(title);\n win = new Texture (Gdx.files.internal(\"data/win.png\"));\n textureWin =new TextureRegion(win);\n textureWin.flip(false, true);\n ranking = new Texture (Gdx.files.internal(\"data/ranking.png\"));\n textureRanking =new TextureRegion(ranking);\n textureRanking.flip(false, true);\n ranking1 = new Texture (Gdx.files.internal(\"data/ranking1.png\"));\n textureRanking1 =new TextureRegion(ranking1);\n textureRanking1.flip(false, true);\n ranking2 = new Texture (Gdx.files.internal(\"data/ranking2.png\"));\n textureRanking2 =new TextureRegion(ranking2);\n textureRanking2.flip(false, true);\n superEnemy= new Texture (Gdx.files.internal(\"data/superEnemy.png\"));\n textureSuperEnemy = new TextureRegion(superEnemy);\n textureSuperEnemy.flip(false, true);\n\n text1=new Texture(Gdx.files.internal(\"data/bg.jpg\"));\n text2 = new TextureRegion(text1);\n text= new TextureAtlas();\n text.addRegion(\"text\",text2);\n text.addRegion(\"text\",text1,0,0,20,30);\n loadColorInvaders();\n\n\n }",
"public void loadAllTextures() {\n loadEntityTextures();\n loadDynamicEntityTextures();\n loadTileTextures();\n loadLiveTileTextures();\n }",
"private void chargerTextures() {\n String messageErreur = \"\";\n try {\n JETON_2 = new Texture(Gdx.files.internal(\"textures/jeton_2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_2.png\"+\"\\n\";\n }\n try {\n JETON_3 = new Texture(Gdx.files.internal(\"textures/jeton_3.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_3.png\"+\"\\n\";\n }\n try {\n JETON_4 = new Texture(Gdx.files.internal(\"textures/jeton_4.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_4.png\"+\"\\n\";\n }\n try {\n JETON_5 = new Texture(Gdx.files.internal(\"textures/jeton_5.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_5.png\"+\"\\n\";\n }\n try {\n JETON_6 = new Texture(Gdx.files.internal(\"textures/jeton_6.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_6.png\"+\"\\n\";\n }\n try {\n JETON_8 = new Texture(Gdx.files.internal(\"textures/jeton_8.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_8.png\"+\"\\n\";\n }\n try {\n JETON_9 = new Texture(Gdx.files.internal(\"textures/jeton_9.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_9.png\"+\"\\n\";\n }\n try {\n JETON_10 = new Texture(Gdx.files.internal(\"textures/jeton_10.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_10.png\"+\"\\n\";\n }\n try {\n JETON_11 = new Texture(Gdx.files.internal(\"textures/jeton_11.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_11.png\"+\"\\n\";\n }\n try {\n JETON_12 = new Texture(Gdx.files.internal(\"textures/jeton_12.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_12.png\"+\"\\n\";\n }\n try {\n FORET = new Texture(Gdx.files.internal(\"textures/texture_foret.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_foret.png\"+\"\\n\";\n }\n try {\n PRE = new Texture(Gdx.files.internal(\"textures/texture_pre.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_pre.png\"+\"\\n\";\n }\n try {\n CHAMP = new Texture(Gdx.files.internal(\"textures/texture_champ.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_champ.png\"+\"\\n\";\n }\n try {\n COLLINE = new Texture(Gdx.files.internal(\"textures/texture_colline.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_colline.png\"+\"\\n\";\n }\n try {\n MONTAGNE = new Texture(Gdx.files.internal(\"textures/texture_montagne.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_montagne.png\"+\"\\n\";\n }\n try {\n DESERT = new Texture(Gdx.files.internal(\"textures/texture_desert.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_desert.png\"+\"\\n\";\n }\n try {\n MER = new Texture(Gdx.files.internal(\"textures/texture_mer.jpg\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_mer.jpg\"+\"\\n\";\n }\n try {\n PORT = new Texture(Gdx.files.internal(\"textures/texture_port2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_port2.png\"+\"\\n\";\n }\n System.err.println(messageErreur);\n }",
"private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n BufferedImage img = ImageIO.read(textureURL);\n ImageUtil.flipImageVertically(img);\n Texture temp = AWTTextureIO.newTexture(GLProfile.getDefault(), img, true);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);\n textures.put(i, temp);\n }\n } catch (IOException | GLException e) {\n e.printStackTrace();\n }\n });\n textures.get(0).enable(gl);\n }",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}",
"private boolean load() {\r\n \t\r\n int[] textureIds = new int[1];\r\n GLES10.glGenTextures(1, textureIds, 0);\r\n this.textureId = textureIds[0];\r\n \r\n InputStream in = null;\r\n // try loading from assets\r\n try {\r\n \t\r\n in = FileIO.getInstance().readAsset(\"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e) {\r\n \t\r\n \t// if not found in assets try loading from sd-card\r\n try {\r\n \t\r\n \tin = FileIO.getInstance().readFile(APP_FOLDER + File.separator + \"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e2) {\r\n \t\r\n \treturn false;\r\n \t\r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e2) {}\r\n }\r\n }\r\n \r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e) {}\r\n }\r\n }\r\n \r\n return true;\r\n }",
"private void loadGraphics() {\n\t\ttopAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 1024, 1024);\r\n\t\ttopRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(topAtlas, activity, \"pizza_top.png\", 0, 0);\r\n\t\ttopAtlas.load();\r\n\t\t\r\n\t\t\r\n\t\tbottomAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 1024, 1024);\r\n\t\tbottomRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(bottomAtlas, activity, \"pizza_bottom.png\", 0, 0);\r\n\t\tbottomAtlas.load();\t\r\n\t\t\t\t\t\t\r\n\t\t\r\n\t\tbalanceAtlas = new BuildableBitmapTextureAtlas(engine.getTextureManager(), 1024, 512);\r\n\t\trod = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"baserod.png\");\r\n\t\tbase = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"balancebase.png\");\r\n\t\tbalanceRod = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"balancerod.png\");\r\n\t\tchain = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"chain.png\");\r\n\t\tpan = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"pan.png\");\r\n\t\tok = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"OK.png\");\r\n\t\twinner = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"winner.png\");\r\n\t\ticon = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"icon.png\");\r\n\t\t\r\n\t\tweight = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"w.png\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbalanceAtlas.build(new BlackPawnTextureAtlasBuilder<IBitmapTextureAtlasSource, BitmapTextureAtlas>(0, 1, 1));\r\n\t\t} catch (TextureAtlasBuilderException e) {\r\n\t\t\tLog.e(\"PLAYSCENE\", \"ERROR BUILDING BALANCEATLAS\");\r\n\t\t}\r\n\t\tbalanceAtlas.load();\r\n\t\t\r\n\t}",
"private void loadSpritesheet() {\n\t\tobjects = new SpriteSheet(\"res\\\\pong.png\");\n\t\tobjects_hires = new SpriteSheet(\"res\\\\ponghires.png\",\n\t\t\t\tSpriteSheet.LINEAR);\n\t}",
"public void loadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.LOADING) {\n\t\t\treturn;\n\t\t}\n\t\tmanager.finishLoading();\n\t\t\n\n\t\tint cols = 11;\n\t\tint rows = 1;\n\n\t\t//animationDef\n\t\t//load the animation content here\n\n\t\tlilyFrames = splice(4, 12, 47, LILY_TEXTURE);\n\n\t\tlilyFramesDay = splice(4, 12, 47, LILY_TEXTURE);\n\t\tlilyFramesNight = splice(24, 2, 47, LILY_TEXTURE_N);\n\t\tlilyFramesSunset = splice(24, 2, 47, LILY_TEXTURE_S);\n\n\n\t\tgoalFrames = splice(4,20, GOAL_TEXTURE);\n\t\tgoalAnimation = new Animation(.01f, goalFrames);\n\t\t//lilyAnimation = new Animation(.2f, lilyFrames);\n\t\t\n\t\tenemyFrames = splice(4, 10, 39, ENEMY_TEXTUREA);\n\t\tenemyAnimation = new Animation(.02f, enemyFrames);\n\n\n\t\tcols = 11;\n\t\trows = 1;\n\n\n\t\tclosedFlowerFramesDay = splice(26, 1, \"tethers/Floating_Closed_Day_small.png\");\n\t\tclosedFlowerFramesNight = splice(26, 1, \"tethers/Floating_Closed_Night_small.png\");\n\t\tclosedFlowerFramesSunset = splice(26, 1, \"tethers/Floating_Closed_Sunset_small.png\");\n\t\tclosedFlowerFramesT = splice(23, 1, \"tethers/Floating_Closed_Sunset2.png\");\n\n\n\t\tint index = 0;\n\n\t\topenFlowerFramesDay = splice(26, 1, \"tethers/Floating_Open_Day_small.png\");\n\t\topenFlowerFramesNight = splice(26, 1, \"tethers/Floating_Open_Night_small.png\");\n\t\topenFlowerFramesSunset = splice(26, 1, \"tethers/Floating_Open_Sunset_small.png\");\n\t\topenFlowerFramesT = splice(23, 1, \"tethers/Floating_Open_Sunset2.png\");\n\n\n\t\tcols = 8; \n\n\t\topeningFlowerFramesDay = splice(26, 1, \"tethers/Opening_Flower_Day_small.png\" );\n\t\topeningFlowerFramesNight = splice(26, 1, \"tethers/Opening_Flower_Night_small.png\");\n\t\topeningFlowerFramesSunset = splice(26, 1, \"tethers/Opening_Flower_Sunset_small.png\");\n\t\topeningFlowerFramesT = splice(26, 1, \"tethers/Opening_Flower_Sunset2.png\");\n\n\t\tclosingFlowerFramesDay = splice(26, 1, \"tethers/Closing_Flower_Day_small.png\");\n\t\tclosingFlowerFramesNight = splice(26, 1, \"tethers/Closing_Flower_Night_small.png\");\n\t\tclosingFlowerFramesSunset = splice(26, 1, \"tethers/Closing_Flower_Sunset_small.png\");\n\t\tclosingFlowerFramesT = splice(26, 1, \"tethers/Opening_Flower_Sunset2.png\");\n\n\t\tcols = 12;\n\t\tkoiSSheet = new Texture(Gdx.files.internal(\"koi/Straight_Koi.png\"));\n\t\tTextureRegion[][] tmpkoiS = TextureRegion.split(koiSSheet, koiSSheet.getWidth()/cols, koiSSheet.getHeight()/rows); // #10\n\t\tkoiSFrames = new TextureRegion[cols * rows];\n\t\tindex = 0;\n\t\tfor (int i = 0; i < rows; i++) {\n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tkoiSFrames[index++] = tmpkoiS[i][j];\n\t\t\t}\n\t\t}\n\t\tkoiSAnimation = new Animation(.05f, koiSFrames); \n\t\tkoiSspriteBatch = new SpriteBatch(); \n\n\t\tcols = 31;\n\n\t\t//remeber kiddies, animate both directions\n\t\tkoiCSheet = new Texture(Gdx.files.internal(\"koi/curve_koi.png\"));\n\n\t\tTextureRegion[][] tmpkoiC = TextureRegion.split(koiCSheet, koiCSheet.getWidth()/cols, koiCSheet.getHeight()/rows); // #10\n\t\tTextureRegion[][] tmpkoiCFlipped = TextureRegion.split(koiCSheet, koiCSheet.getWidth()/cols, koiCSheet.getHeight()/rows); // #10\n\n\t\tkoiCFrames = new TextureRegion[cols * rows];\n\t\tkoiCFramesFlipped = new TextureRegion[cols * rows];\n\t\tindex = 0;\n\t\tfor (int i = 0; i < rows; i++) {\n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\t//tmpkoiC[i][j].flip(false, true);\n\t\t\t\tkoiCFrames[index] = tmpkoiC[i][j];\n\t\t\t\ttmpkoiCFlipped[i][j].flip(false, true);\n\t\t\t\tkoiCFramesFlipped[index++] = tmpkoiCFlipped[i][j];\n\t\t\t}\n\t\t}\n\t\tkoiCAnimation = new Animation(.02f, koiCFrames); \n\t\tkoiCAnimationFlipped = new Animation(.02f, koiCFramesFlipped);\n\n\n\n\t\tenergyBarTexture = createTexture(manager, ENERGYBAR_TEXTURE, false);\n\t\t//enemyTexture = createTexture(manager,ENEMY_TEXTURE,false);\n\t\tenemyTexture = enemyFrames[0];\n\t\tkoiTexture = koiSFrames[0];\n\t\t//koiTexture = createTexture(manager, KOI_TEXTURE, false);\n\n\t\t//lilyTexture = lilyFramesNight[0];\n\t\tlilyTexture = lilyFrames[0];\n\t\tlanternTexture = closedFlowerFramesDay[0];\n\t\tlightingTexture = createTexture(manager, LIGHTING_TEXTURE, false);\n\t\tshadowTexture = createTexture(manager, SHADOW_TEXTURE, false);\n\t\t//goalTexture = createTexture(manager, GOAL_TEXTURE, false);\n\t\tgoalTexture = goalFrames[0];\n\n\t\tUILotusTexture = createTexture(manager, UI_FLOWER, false);\t\n\n\t\tearthTile = createTexture(manager,EARTH_FILE_N,true);\n\t\tearthTileDay = createTexture(manager,EARTH_FILE_D, true);\n\t\tearthTileNight = createTexture(manager,EARTH_FILE_N, true);\n\t\tearthTileSunset = createTexture(manager,EARTH_FILE_S, true);\n\t\tshoreTile = createTexture(manager,SHORE_FILE,true);\n\n\t\trockDay = createTexture(manager,ROCK_FILE_D, true);\n\t\trockNight = createTexture(manager,ROCK_FILE_N, true);\n\t\trockSunset = createTexture(manager,ROCK_FILE_S, true);\n\n\t\t\n\t\t\n\t\twhirlpoolTexture = createTexture(manager, WHIRLPOOL_TEXTURE, true);\n\n\t\tkoiArrow = createTexture(manager, KOI_ARROW, false);\n\t\twhirlArrow = createTexture(manager, WHIRL_ARROW, false);\n\t\t\n\t\ttutorial1 = createTexture(manager, TUTORIAL_TEXTURE1, false);\n\t\ttutorial2 = createTexture(manager, TUTORIAL_TEXTURE2, false);\n\t\ttutorial3 = createTexture(manager, TUTORIAL_TEXTURE3, false);\n\t\ttutorial4 = createTexture(manager, TUTORIAL_TEXTURE4, false);\n\t\ttutorial5 = createTexture(manager, TUTORIAL_TEXTURE5, false);\n\t\ttutorial6 = createTexture(manager, TUTORIAL_TEXTURE6, false);\n\t\t\n\t\thelpTexture = createTexture(manager, HELP_TEXTURE, false);\n\n\t\t// Allocate the tiles\n\n\t\t\n\t\t//setBackground(manager.get(BACKGROUND_FILE_N, Texture.class), 2);\n\t\tsetBackground(createTexture(manager, BACKGROUND_FILE_N, false).getTexture(), 2);\n\t\tgetBackground(2).setWrap(TextureWrap.Repeat, TextureWrap.Repeat);\n\n\t\tsetBackground(createTexture(manager, BACKGROUND_FILE_D, false).getTexture(), 0);\n\t\tgetBackground(0).setWrap(TextureWrap.Repeat, TextureWrap.Repeat);\n\n\t\tsetBackground(createTexture(manager, BACKGROUND_FILE_S, false).getTexture(), 1);\n\t\tgetBackground(1).setWrap(TextureWrap.Repeat, TextureWrap.Repeat);\n\n\t\toverlay = createTexture(manager, OVERLAY_FILE, true).getTexture();\n\t\toverlay.setWrap(TextureWrap.Repeat, TextureWrap.Repeat);\n\n\t\t// Allocate the font\n\t\tif (manager.isLoaded(FONT_FILE)) {\n\t\t\tdisplayFont = manager.get(FONT_FILE,BitmapFont.class);\n\t\t} else {\n\t\t\tdisplayFont = null;\n\t\t}\n\n\t\tif (manager.isLoaded(FONT_FILE2)) {\n\t\t\tsecondFont = manager.get(FONT_FILE2,BitmapFont.class);\n\t\t} else {\n\t\t\tsecondFont = null;\n\t\t}\n\t\t\n\t\tlightingSound = Gdx.audio.newMusic(Gdx.files.internal(LIGHTING_SOUND));\n\t\tlightingSound.setLooping(false);\n\t\t\n\t\tclickSound = Gdx.audio.newMusic(Gdx.files.internal(MENU_CLICK_SOUND));\n\t\tclickSound.setLooping(false);\n\t\t\n\t\tfailSound = Gdx.audio.newMusic(Gdx.files.internal(FAIL_SOUND));\n\t\tfailSound.setLooping(false);\n\t\t\n\t\twhirlSound = Gdx.audio.newMusic(Gdx.files.internal(WHIRL_SOUND));\n\t\twhirlSound.setLooping(false);\n\t\twhirlSound.setPosition(7);\n\t\t\n\t\tworldAssetState = AssetState.COMPLETE;\n\t}",
"abstract public void loadSprite();",
"private void onLoad(Zombie zombie) {\n ImageView view = new ImageView(zombieImage);\n addEntity(zombie, view);\n squares.getChildren().add(view);\n }",
"private void loadAssets()\n {\n assetManager.setErrorListener(this);\n // load texture atlas\n assetManager.load(Constants.TEXTURE_ATLAS_OBJECTS, TextureAtlas.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n // load texture atlas\n assetManager.load(Constants.TEXTURE_ATLAS_OBJECTS_02, TextureAtlas.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n // Load strings resource file\n assetManager.load(Constants.I18N_BUNDLE, I18NBundle.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n Gdx.app.debug(TAG, \"# of assets loaded: \" + assetManager.getAssetNames().size);\n }",
"private void loadTextures() {\r\n int[] imgData;\r\n int width;\r\n int height;\r\n\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n //圖片質量,數字越大越差\r\n options.inSampleSize = 1;\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(path, 0, path.length, options);\r\n width = bitmap.getWidth();\r\n height = bitmap.getHeight();\r\n imgData = new int[width * height * 4];\r\n bitmap.getPixels(imgData, 0, width, 0, 0, width, height);\r\n bitmap.recycle();\r\n System.gc();\r\n\r\n mTextures.add(Texture.loadTextureFromIntBuffer(imgData, width, height));\r\n }",
"private void loadTextures() {\n\t\tspriteSheet01 = new Texture(\"data/buttonsspritesheet02.png\");\n\n\t\tnew TextureRegion(spriteSheet01, BROKEN_COLUMN * SQUARE_SIZE,\n\t\t\t\tBROKEN_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, EMPTY_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tEMPTY_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, ACTIVATED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, DEPRESSED_BUTTON * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, HIGHLIGHTED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, CAROUSEL_COLUMN * SQUARE_SIZE,\n\t\t\t\t(CAROUSEL_ROW * SQUARE_SIZE) + CAROUSEL_PIXELS, SQUARE_SIZE,\n\t\t\t\tCAROUSEL_PIXELS);\n\n\t\tnew TextureRegion(spriteSheet01, FIX_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tFIX_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, WILD_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tWILD_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tcarousel = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tcarousel[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(CAROUSEL_COLUMN * SQUARE_SIZE) + (i * CAROUSEL_PIXELS),\n\t\t\t\t\tCAROUSEL_ROW * SQUARE_SIZE, CAROUSEL_PIXELS,\n\t\t\t\t\tCAROUSEL_PIXELS);\n\t\t}\n\n\t\trings = new TextureRegion[RING_AMOUNT];\n\t\tfor (int i = 0; i < RING_AMOUNT; i++) {\n\t\t\trings[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tRING_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tmainColour = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tmainColour[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + MAIN_COLOUR_COLUMN) * SQUARE_SIZE, MAIN_COLOUR_ROW,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tspecials = new TextureRegion[SPECIALS_AMOUNT];\n\t\tfor (int i = 0; i < SPECIALS_ROW_ONE_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\t\tfor (int i = SPECIALS_ROW_ONE_AMOUNT; i < SPECIALS_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i - SPECIALS_ROW_ONE_AMOUNT) * SQUARE_SIZE,\n\t\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tenemyBaseColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyBaseColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_BASE_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyHalfColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyHalfColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_HALF_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyThirdColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyThirdColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_THIRD_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyRimColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyRimColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_RIM_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyConnectors = new TextureRegion[ENEMY_CONNECTORS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_CONNECTORS_AMOUNT; i++) {\n\t\t\tenemyConnectors[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + ENEMY_CONNECTORS_COLUMN) * SQUARE_SIZE,\n\t\t\t\t\tENEMY_CONNECTORS_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\t}",
"public void loadContent(AssetManager manager) {\n\t\tif (ragdollAssetState != AssetState.LOADING) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tcrosshairTexture = createTexture(manager,CROSS_FILE,false);\n\t\tbackgroundTexture = createTexture(manager,BACKG_FILE,false);\n\t\tforegroundTexture = createTexture(manager,FOREG_FILE,false);\n\t\t\n\t\tbubbleTexture = createTexture(manager,BUBBLE_FILE,false);\n\t\tbodyTextures = new TextureRegion[RAGDOLL_FILES.length];\n\t\tfor(int ii = 0; ii < RAGDOLL_FILES.length; ii++) {\n\t\t\tbodyTextures[ii] = createTexture(manager,RAGDOLL_FILES[ii],false);\n\t\t}\n\t\tfor(int ii = 0; ii < BUBBLE_SOUNDS.length; ii++) {\n\t\t\tSoundController.getInstance().allocate(manager, BUBBLE_SOUNDS[ii]);\n\t\t}\n\n\t\tsuper.loadContent(manager);\n\t\tragdollAssetState = AssetState.COMPLETE;\n\t}",
"private void init() {\n healthBars = new TextureAtlas( Gdx.files.internal( \"health/health.pack\" ) );\n buildUIElements();\n }",
"public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }",
"public void initialHeroCastle() {\n Pair<Integer, Integer> heroCastlePosition = world.getHeroCastlePosition();\n SimpleIntegerProperty x2 = new SimpleIntegerProperty();\n SimpleIntegerProperty y2 = new SimpleIntegerProperty();\n x2.set(heroCastlePosition.getValue0());\n y2.set(heroCastlePosition.getValue1());\n String type = \"HeroCastle\";\n Building heroBuilding = new HeroCastleBuilding(x2, y2, type, 0);\n ImageView view = new ImageView(heroBuilding.getImage());\n addEntity(heroBuilding, view);\n squares.getChildren().add(view);\n }",
"public static void load(){\n\t\trobot=new BufferedImage[5];\n\t\ttry {\n\t\t\tfor(int i=0;i<5;i++)\n\t\t\t\trobot[i]=ImageIO.read(new File(\"robot\" + i +\".png\"));\n\t\t\t\n\t\t\tminiRobot=ImageIO.read(new File(\"miniRobot.png\"));\n\t\t\toil=ImageIO.read(new File(\"oil.png\"));\n\t\t\tslime=ImageIO.read(new File(\"slime.png\"));\n\t\t\tmap=ImageIO.read(new File(\"map.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e + \"Failed to load images\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}",
"public void init() throws IOException\n\t{\n\t\tString pth = \"\";\n\t\tif(normal)\n\t\t{\n\t\t\tpth = \"Assets\\\\Art\\\\Tiles\\\\\";\n\t\t}\n\t\ttry\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+path));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+\"default.png\"));\n\t\t}\n\n\t\theight = texture.getImageHeight();\n\t\twidth = texture.getImageWidth();\n\t\tRandom rand = new Random();\n\t\tthis.identity = rand.nextInt();\n\t\ta = new AudioController();\n\t\t\n\t}",
"@Override\n\tpublic void LoadContent()\n\t{\n\t\tspriteBatch = new SpriteBatch(getGraphicsDevice());\n\t\t\n\t\tbackground = Texture2D.FromStream(getGraphicsDevice(), TitleContainer.OpenStream(\"test.png\"));\n\t\t\n\t\t//background = Content.Load(\"test.png\");\n\t\t\n\t\t// TODO: use this.Content to load your game content here\n\t}",
"public void loadContent(){\n\t\tspriteBatch = new SpriteBatch(getGraphicsDevice());\n\t\t//TODO: put content loading code here\n\t\t\n\t}",
"@Override\n public void initScene()\n {\n myLight.position.setAll(300,150,150);\n\n myLight = new Light();\n myLight.type(LightType.DIRECTIONAL);\n\n scene.lights().add(myLight);\n scene.backgroundColor().setAll(255,255,255,1);\n\n IParser myParser = Parser.createParser(Parser.Type.MAX_3DS, getResources(), \"min3d.sampleProject1:raw/squared_robot_3ds\", false);\n myParser.parse();\n\n androidRobot3DObject = myParser.getParsedObject();\n androidRobot3DObject.position().x = androidRobot3DObject.position().y = androidRobot3DObject.position().z = 0;\n\n\n // We scale the robot, check this value if you want to target another scale\n androidRobot3DObject.scale().x = androidRobot3DObject.scale().y = androidRobot3DObject.scale().z = 1f;\n scene.addChild(androidRobot3DObject);\n\n // Preloading the textures with the textureManager()\n Bitmap b;\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_body_business);\n Shared.textureManager().addTextureId(b, \"squared_robot_body_business\");\n b.recycle();\n\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_body);\n Shared.textureManager().addTextureId(b, \"squared_robot_body\");\n b.recycle();\n\n\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_arm);\n Shared.textureManager().addTextureId(b,\"squared_robot_arm\");\n b.recycle();\n\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_foot);\n Shared.textureManager().addTextureId(b,\"squared_robot_foot\");\n b.recycle();\n\n\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_antenna);\n Shared.textureManager().addTextureId(b,\"squared_robot_antenna\");\n b.recycle();\n\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_head);\n Shared.textureManager().addTextureId(b,\"squared_robot_head\");\n b.recycle();\n\n b = Utils.makeBitmapFromResourceId(R.drawable.squared_robot_head_business);\n Shared.textureManager().addTextureId(b,\"squared_robot_head_business\");\n b.recycle();\n\n loadAllTextures();\n\n }",
"private void loadMap(BufferedImage[][] heroImages,\n\t\t\tBufferedImage[][] bossImages, BufferedImage[][] enemyImages) {\n\t\t// read in map graphics\n\t\tBufferedImage[] tiles = new BufferedImage[3];\n\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t\ttiles[i] = Game.loadImage(\"ssTile\" + (i + 1) + \".png\");\n\n\t\t// create scanner\n\t\tScanner in = new Scanner(Game.loadStream(\"map2.txt\"));\n\n\t\t// read in map\n\t\tint width = in.nextInt(), height = in.nextInt();\n\t\tin.nextLine();\n\t\tin.nextLine();\n\t\tint[][] grid = new int[height][width];\n\t\tfor (int i = 0; i < height; i++)\n\t\t\tprocessMapLine(grid, in.nextLine(), width, i);\n\n\t\t// read in entities\n\t\thero = loadEntity(in, 200, heroImages, 32);\n\t\tboss = loadEntity(in, 1000, bossImages, 32);\n\t\tenemies = new ArrayList<SideScrollerEntity>();\n\t\tint numEnemies = in.nextInt();\n\t\tfor (int i = 0; i < numEnemies; i++)\n\t\t\tenemies.add(loadEntity(in, 1000, enemyImages, 32));\n\n\t\t// load shop graphics\n\t\tBufferedImage shopTile = Game.loadImage(\"shop2.png\");\n\n\t\tmap = new SideScrollerMap(this, this, hero, boss, enemies, 0,\n\t\t\t\t-32 * 32 + 600, sighting);\n\t\tmap.loadResources(tiles, grid, shopTile, 29, 5);\n\t}",
"public void initialize() {\n\t\tImageIcon bg = new ImageIcon(\"bg.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"Hero1 Normal.png\");\n\t\tin1[1] = new ImageIcon(\"20ed.png\");\n\t\tin1[2] = new ImageIcon(\"50ed.png\");\n\t\tin1[3] = new ImageIcon(\"100ed.png\");\n\t\tin1[4] = new ImageIcon(\"200ed.png\");\n\t\tin1[5] = new ImageIcon(\"500ed.png\");\n\t\tin1[6] = new ImageIcon(\"Hero1 Att200.png\");\n\t\tin1[7] = new ImageIcon(\"Hero1 Att500.png\");\n\t\tin1[8] = new ImageIcon(\"Hero1 Defence01.png\");\n\t\tin1[9] = new ImageIcon(\"Hero1Defence02.png\");\n\t\tin1[10] = new ImageIcon(\"Hero1 to fire.png\");\n\t\tin1[11] = new ImageIcon(\"Hero1 die.png\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"20ed02.png\");\n\t\tin2[2] = new ImageIcon(\"50ed02.png\");\n\t\tin2[3] = new ImageIcon(\"100ed02.png\");\n\t\tin2[4] = new ImageIcon(\"200ed02.png\");\n\t\tin2[5] = new ImageIcon(\"500ed02.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"B1fire02.png\");\n\t\tinBullet1[1] = new ImageIcon(\"B1fire03.png\");\n\t\tinBullet1[2] = new ImageIcon(\"B1fire05.png\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}",
"private static void initResources() {\n\t\tString[] res = new String[4];\r\n\t\tres[0] = \"res/entity/spaceshipv1.png\";\r\n\t\tres[1] = \"res/entity/prob.png\";\r\n\t\tres[2] = \"res/dot.png\";\r\n\t\tres[3] = \"res/entity/spaceshipv2.png\";\r\n\t\tSResLoader.addSpriteArray(res);\r\n\t}",
"@Override\n public void loadGame() {\n\n }",
"public static void startHeroes(){\n\t\tCoordinate[] placement = map.getHeroSpawnPoints();\n\t\t\n\t\tplayer.setNumCharactersToSpawn(placement.length);\n\t\t\n\t\theroList = player.getCharacters();\n\t\t\n\t\tfor (int i = 0; i < placement.length; i++){\n\t\t\theroList[i].setCoordinate(placement[i]);\n\t\t}\n\t}",
"public void preload() {\n\t\ttry {\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(file));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tloaded = true;\n\t}",
"private static void loadSprites(){\n \t\tshipSprites.put(\"SCOUT_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/colonizer.png\"), 0.5f, 0.5f));\n \t\t\n \t\t/*\n \t\t * Ships Red Player\n \t\t */\n \t\tshipSprites.put(\"SCOUT_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/colonizer.png\"), 0.5f, 0.5f));\n \n \t\t/*\n \t\t * Path Arrows\n \t\t */\n\t\tpathTextures.put(\"HEAD\", Toolkit.getDefaultToolkit().getImage(\"res/path/head.png\"));\n\t\tpathTextures.put(\"START\", Toolkit.getDefaultToolkit().getImage(\"res/path/start.png\"));\n\t\tpathTextures.put(\"STRAIGHT\", Toolkit.getDefaultToolkit().getImage(\"res/path/straight.png\"));\n\t\tpathTextures.put(\"TURN\", Toolkit.getDefaultToolkit().getImage(\"res/path/turn.png\"));\n \t\t\n \t\t/*\n \t\t * Planets\n \t\t */\n \t\tmetalplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_0.png\"), 0.5f, 0));\n \t\tmetalplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_1.png\"), 0.5f, 0));\n \t\tmetalplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_2.png\"), 0.5f, 0));\n \t\tmetalplanets.put(3, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_3.png\"), 0.5f, 0));\n \t\tgasplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_0.png\"), 0.5f, 0));\n \t\tgasplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_1.png\"), 0.5f, 0));\n \t\tgasplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_2.png\"), 0.5f, 0));\n \t\t\n \t\t/*\n \t\t * Colony Sprite\n \t\t */\n \t\tloadColonySprites(Color.RED, \"RED\");\n \t\tloadColonySprites(Color.BLUE, \"BLUE\");\n \t}",
"public void loadFromSavedBitmap() {\n if (bitmap != null) {\n // genera un nuovo puntatore ad una texture\n GLES20.glGenTextures(1, texture, 0);\n // lega questo puntatore ad una variabile disponibile all'app\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture[0]);\n\n // setta alcuni parametri che diranno a OpenGL come trattare la texture\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n // caricamento della texture\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n // libera memoria\n bitmap.recycle();\n }\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"loadFromSavedBitmap\");\n }",
"public CreateHero() {\r\n\t\tinitComponents();\r\n\t}",
"public static void loadItemTextures() {\n\t\tspriteTItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteRItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t}",
"private void loadSprites() throws IOException {\n \t\tsprites.put(\"fullBin\", ImageIO.read(new File(\"user-trash-full64.png\")));\n \t\tsprites.put(\"emptyBin\", ImageIO.read(new File(\"user-trash64.png\")));\n \t\tsprites.put(\"sysfileLarge\", ImageIO.read(new File(\"sysfile1-48.png\")));\n \t\tsprites.put(\"sysfileMedium\", ImageIO.read(new File(\"sysfile2-32.png\")));\n \t\tsprites.put(\"sysfileSmall\", ImageIO.read(new File(\"sysfile3-16.png\")));\n \t\tsprites.put(\"junk\", ImageIO.read(new File(\"junk.png\")));\n \t\tsprites.put(\"grass\", ImageIO.read(new File(\"grass.jpg\")));\n \t}",
"public void loadGame() {\n game.loadGame();\n }",
"public Sprite loadBitmap(Context context, GL10 gl, int resourceId)\r\n\t{\r\n\t if(context != null && gl != null)\r\n\t {\r\n\t \t//Generate one texture pointer...\r\n\t gl.glGenTextures(1, mTexture, 0);\r\n\t \r\n\t //grab location index\r\n\t int textureID = mTexture[0];\r\n\t \r\n\t\t\t//...and bind it to our array\r\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);\r\n\t \r\n\t\t\t//Create Nearest Filtered Texture //GL_NEAREST\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\r\n\t\r\n\t\t\t//Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);\r\n\t\t\t\r\n\t // select modulate to mix texture with color for shading\r\n\t gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, /*GL10.GL_REPLACE*/ GL10.GL_MODULATE);\r\n\t\r\n\t InputStream is = context.getResources().openRawResource(resourceId);\r\n\t Bitmap bitmap;\r\n\t try\r\n\t {\r\n\t bitmap = BitmapFactory.decodeStream(is, null, sBitmapOptions);\r\n\t }\r\n\t finally\r\n\t {\r\n\t try\r\n\t {\r\n\t is.close();\r\n\t }\r\n\t catch(IOException e)\r\n\t {\r\n\t //Log.e(\"ImageLoaderIO\", \"DecodeStreamError: \" + e);\r\n\t }\r\n\t }\r\n\t\r\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n\t int width = bitmap.getWidth();\r\n\t int height = bitmap.getHeight();\r\n\t \r\n\t // clean up\r\n\t bitmap.recycle();\r\n\t\r\n\t return new Sprite(textureID,width,height);\r\n\t }\r\n\t return null;\r\n\t}",
"public interface IGameAsset {\n\t\n\t/**\n\t * abstract method for load all game's resources in startup time.\n\t */\n\tpublic void load();\n\n\t/**\n\t * Dispose the resources in game asset when exiting game\n\t */\n\tpublic void dispose();\n\t\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param isLoop set audio is looping\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return the Music\n\t */\n\tpublic Music loadMusic(String fileName, boolean isLoop, float volumn);\n\t/**\n\t * Load Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName, float volume);\n\t/**\n\t * Load a Sound from filepath\n\t * @param file File to load\n\t * @return the Sound\n\t */\n\tpublic Sound loadSound(String file);\n\n\t/**\n\t * Load a shader from shader-vs and shader-fs from file path\n\t * @param vsProcess\n\t * @param fsProcess\n\t * @return ShaderProgram\n\t */\n\tpublic ShaderProgram loadShader(String vsProcess, String fsProcess);\n\n\t/**\n\t * Load a Model for object 3D from file path\n\t * @param filepath\n\t * @return\n\t */\n\tpublic StillModel loadModel(String filepath);\n\t/**\n\t * Load texture from file path\n\t * @param file File to load\n\t * @return The texture\n\t */\n\tpublic Texture loadTexture(String file, Format format, boolean useMipMap);\n\n//\t/**abstract method for load TextureRegion\n//\t * @param filepath File to load\n//\t * @param format format of texture\n//\t * @param useMipMap\n//\t * @param rec \n//\t * @return\n//\t */\n//\tTextureRegion loadTextureRegion(String filepath, Format format,\n//\t\t\tboolean useMipMap, Rectangle rec);\n\n\t/**abstract method for load TextureRegion\n\t * @param texture texture of TextureRegion\n\t * @param rec rectangle used to specify the region on texture\n\t * @return\n\t */\n\tpublic TextureRegion loadTextureRegion(Texture texture, Rectangle rec);\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @param flip Flip the font for axis-y down\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage, boolean flip);\n\n\tpublic TextureRegion loadTextureRegion(Texture t);\n\n\tTextureRegion loadTextureRegion(String textureFile, Rectangle rec);\n\n\tTextureRegion loadTextureRegion(String textureFile);\n\n\tTexture loadTexture(String filepath);\n\n\tBitmapFont loadBitmapFont(String fileFont);\n\n\tShaderProgram loadShader(String vsFilePath);\n}",
"protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }",
"public void loadGLTexture(GL10 gl, Location location)\n\t{\n\t\tgl.glGenTextures(2, textures, 0);\n\n\t\t// loading texture\n\t\tBitmap bitmap;\n\t\tfloat width;\n\t\tfloat height;\n\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble longitude = location.getLongitude();\n\t\t\tif (longitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" E\" + df.format(Math.abs(longitude)) );\n\t\t\telse if (longitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" W\" + df.format(Math.abs(longitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_long[0] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[3] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_long[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle();\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[1]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble latitude = location.getLatitude();\n\t\t\tif (latitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" N\" + df.format(Math.abs(latitude)) );\n\t\t\telse if (latitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" S\" + df.format(Math.abs(latitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_lat[6] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[9] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_lat[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle(); \n\t}",
"private void loadEnemies(BasicEnemy enemy) {\n String enemyName = enemy.getType().get();\n switch (enemyName) {\n case \"Slug\":\n onLoad((Slug) enemy);\n break;\n case \"Zombie\":\n onLoad((Zombie) enemy);\n break;\n case \"Vampire\":\n onLoad((Vampire) enemy);\n break;\n default:\n System.out.println(\"Should not see this LMWC: {\" + enemyName + \"}\");\n break;\n }\n }",
"private void loadTreasure() {\r\n\t\tchest = TreasureChest.getInstance();\r\n\t\tImageView chestView = chest.getImage();\r\n\t\tchestView.setX(chest.getX() * scalingFactor);\r\n\t\tchestView.setY(chest.getY() * scalingFactor);\r\n\r\n\t\troot.getChildren().add(chestView);\r\n\t}",
"public void initialize2() {\n\t\txHero1 = 10;\n\t\tinsecondmode=true;\n\t\tImageIcon bg = new ImageIcon(\"bg for one player.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"\");\n\t\tin1[1] = new ImageIcon(\"\");\n\t\tin1[2] = new ImageIcon(\"\");\n\t\tin1[3] = new ImageIcon(\"\");\n\t\tin1[4] = new ImageIcon(\"\");\n\t\tin1[5] = new ImageIcon(\"\");\n\t\tin1[6] = new ImageIcon(\"\");\n\t\tin1[7] = new ImageIcon(\"\");\n\t\tin1[8] = new ImageIcon(\"\");\n\t\tin1[9] = new ImageIcon(\"\");\n\t\tin1[10] = new ImageIcon(\"\");\n\t\tin1[11] = new ImageIcon(\"\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[2] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[3] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[4] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[5] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"\");\n\t\tinBullet1[1] = new ImageIcon(\"\");\n\t\tinBullet1[2] = new ImageIcon(\"\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tcannotdefend(1);\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}",
"public Hero(LogicController logicController, Vector2 vec){\n this.setWorld(logicController.getWorld());\n this.logicController=logicController;\n sprite = new Sprite();\n position=vec;\n booleanDefinition();\n resetCounters();\n this.bombs=new ArrayList<Bomb>();\n if(!logicController.getGame().getIsTest())\n heroAnimations();\n heroBody = new HeroBody(logicController, this,vec);\n if(!logicController.getGame().getIsTest()) {\n heroStandingTextureLoad();\n standRight.flip(true, false);\n sprite.setBounds(0, 0, 17*MyGame.PIXEL_TO_METER, 22*MyGame.PIXEL_TO_METER);\n }\n soundHurt= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_hurt.wav\"));\n soundDying= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_dying.wav\"));\n }",
"public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }",
"@Override\n public ResourceLocation getTextureLocation(DroneEntity entity) {\n return entity.isAttacking() ? mobShootingTexture : mobTexture;\n }",
"private void addAllSprites(String heroName) throws IOException {\n BufferedReader reader = new BufferedReader(\n new FileReader(\"assets/config/characters/\"+heroName+\"Sprites.txt\")\n );\n String line = reader.readLine();\n String[] data;\n BufferedImage[] sprites;\n while (line != null) {\n data = line.split(\"\\\\s+\"); //regex for spliting all spaces\n sprites = new BufferedImage[data.length-1];\n for (int i = 1; i < data.length; i++) {\n sprites[i-1] = Util.urlToImage(\"characters/\"+heroName+\"/\"+data[i]);\n \n }\n this.sprites.put(data[0], sprites);\n line = reader.readLine();\n }\n reader.close();\n }",
"public StoneSummon() {\n// ArrayList<BufferedImage> images = SprssssssaasssssaddddddddwiteUtils.loadImages(\"\"\n createStones();\n\n }",
"public void gatherAssets(AssetDirectory directory) {\r\n\r\n\t\tassets = directory;\r\n\t\tavatarTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Idle\",Texture.class));\r\n\t\tcombinedTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_stand\",Texture.class));\r\n\r\n\t\t// Tiles\r\n\t\tlightTexture = new TextureRegion(directory.getEntry( \"shared:solidCloud_light\", Texture.class ));\r\n\t\tdarkTexture = new TextureRegion(directory.getEntry( \"shared:solidCloud_dark\", Texture.class ));\r\n\t\tallTexture = new TextureRegion(directory.getEntry( \"shared:solidCloud_all\", Texture.class ));\r\n\t\trainLightTexture = new TextureRegion(directory.getEntry( \"shared:rain_cloud_light\", Texture.class ));\r\n\t\trainDarkTexture = new TextureRegion(directory.getEntry( \"shared:rain_cloud_dark\", Texture.class ));\r\n\t\trainAllTexture = new TextureRegion(directory.getEntry( \"shared:rain_cloud_all\", Texture.class ));\r\n\t\tlightningLightTexture = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_light\", Texture.class ));\r\n\t\tlightningDarkTexture = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_dark\", Texture.class ));\r\n\t\tlightningAllTexture = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_all\", Texture.class ));\r\n\t\tcrumbleLightTexture = new TextureRegion(directory.getEntry( \"shared:rain_crumble_light\", Texture.class ));\r\n\t\tcrumbleDarkTexture = new TextureRegion(directory.getEntry( \"shared:rain_crumble_dark\", Texture.class ));\r\n\t\tcrumbleAllTexture = new TextureRegion(directory.getEntry( \"shared:rain_crumble_all\", Texture.class ));\r\n\r\n\t\trainLightTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_cloud_light_reduced\", Texture.class ));\r\n\t\trainDarkTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_cloud_dark_reduced\", Texture.class ));\r\n\t\trainAllTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_cloud_all_reduced\", Texture.class ));\r\n\t\tlightningLightTextureReduced = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_light_reduced\", Texture.class ));\r\n\t\tlightningDarkTextureReduced = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_dark_reduced\", Texture.class ));\r\n\t\tlightningAllTextureReduced = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_all_reduced\", Texture.class ));\r\n\t\tcrumbleLightTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_crumble_light_reduced\", Texture.class ));\r\n\t\tcrumbleDarkTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_crumble_dark_reduced\", Texture.class ));\r\n\t\tcrumbleAllTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_crumble_all_reduced\", Texture.class ));\r\n\r\n\t\t// Tutorial\r\n\t\ttutorial_signs = new TextureRegion[]{\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:camera_pan\", Texture.class)), //0\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_dash\", Texture.class)), //1\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_jump\", Texture.class)), //2\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_propel\", Texture.class)), //3\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_walk\", Texture.class)), //4\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_dash\", Texture.class)), //5\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_jump\", Texture.class)), //6\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_propel\", Texture.class)), //7\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_walk\", Texture.class)), //8\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:spirit_switch\", Texture.class)), //9\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:spirit_separate\", Texture.class)), //10\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:spirit_unify\", Texture.class)), //11\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:dash_catch\", Texture.class)),\t //12\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:propel_dash_vertical\", Texture.class))\t //13\r\n\r\n\t\t};\r\n\r\n\t\t// Base models\r\n\t\tsomniTexture = new TextureRegion(directory.getEntry(\"platform:somni_stand\",Texture.class));\r\n\t\tsomniIdleTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Idle\",Texture.class));\r\n\t\tsomniWalkTexture = new TextureRegion(directory.getEntry(\"platform:somni_walk_cycle\",Texture.class));\r\n\t\tsomniDashSideTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Jump_Dash\",Texture.class));\r\n\t\tsomniDashUpTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Falling\",Texture.class));\r\n\t\tsomniFallTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Falling\", Texture.class));\r\n\r\n\t\tphobiaTexture = new TextureRegion(directory.getEntry(\"platform:phobia_stand\",Texture.class));\r\n\t\tphobiaIdleTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Idle\",Texture.class));\r\n\t\tphobiaWalkTexture = new TextureRegion(directory.getEntry(\"platform:phobia_walk_cycle\",Texture.class));\r\n\t\tphobiaDashSideTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Jump_Dash\",Texture.class));\r\n\t\tphobiaDashUpTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Falling\",Texture.class));\r\n\t\tphobiaFallTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Falling\", Texture.class));\r\n\r\n\r\n\t\t// Combined models\r\n\t\tsomniPhobiaTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_stand\",Texture.class));\r\n\t\tsomniPhobiaWalkTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_walk\",Texture.class));\r\n\t\tsomniPhobiaDashSideTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_dash_side\",Texture.class));\r\n\t\tsomniPhobiaDashUpTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_dash_up\",Texture.class));\r\n\t\tphobiaSomniTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_stand\",Texture.class));\r\n\t\tphobiaSomniWalkTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_walk\",Texture.class));\r\n\t\tphobiaSomniDashSideTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_dash_side\",Texture.class));\r\n\t\tphobiaSomniDashUpTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_dash_up\",Texture.class));\r\n\r\n\t\tsomniPhobiaHandsTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_hands\",Texture.class));\r\n\t\tphobiaSomniHandsTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_hands\",Texture.class));\r\n\t\tblueRingBigTexture = new TextureRegion(directory.getEntry(\"platform:blue_ring_big\",Texture.class));\r\n\t\tyellowRingBigTexture = new TextureRegion(directory.getEntry(\"platform:yellow_ring_big\",Texture.class));\r\n\t\tblueRingSmallTexture = new TextureRegion(directory.getEntry(\"platform:blue_ring_small\",Texture.class));\r\n\t\tyellowRingSmallTexture = new TextureRegion(directory.getEntry(\"platform:yellow_ring_small\",Texture.class));\r\n\t\tsomniHandFrontTexture = new TextureRegion(directory.getEntry(\"platform:somni_hand_front\",Texture.class));\r\n\t\tsomniHandBackTexture = new TextureRegion(directory.getEntry(\"platform:somni_hand_back\",Texture.class));\r\n\t\tphobiaHandFrontTexture = new TextureRegion(directory.getEntry(\"platform:phobia_hand_front\",Texture.class));\r\n\t\tphobiaHandBackTexture = new TextureRegion(directory.getEntry(\"platform:phobia_hand_back\",Texture.class));\r\n\r\n\t\tbackgrounds = new TextureRegion[] {\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_forest\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_forest\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_gear\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_gear\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_dreams\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_dreams\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_house\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_house\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_statues\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_statues\", Texture.class)),\r\n\r\n\t\t};\r\n\r\n\r\n\t\tTextureRegion [] somnis = {somniIdleTexture,somniWalkTexture,somniDashSideTexture,somniDashUpTexture, somniFallTexture, somniDashUpTexture};\r\n\t\tsomnisTexture = somnis;\r\n\t\tTextureRegion [] phobias = {phobiaIdleTexture,phobiaWalkTexture,phobiaDashSideTexture,phobiaDashUpTexture, phobiaFallTexture, phobiaDashUpTexture};\r\n\t\tphobiasTexture = phobias;\r\n\t\tTextureRegion [] somniphobias = {somniPhobiaTexture,somniPhobiaWalkTexture,somniPhobiaDashSideTexture,somniPhobiaDashUpTexture, somniPhobiaDashUpTexture};\r\n\t\tsomniphobiasTexture = somniphobias;\r\n\t\tTextureRegion [] phobiasomnis = {phobiaSomniTexture,phobiaSomniWalkTexture,phobiaSomniDashSideTexture,phobiaSomniDashUpTexture, phobiaSomniDashUpTexture};\r\n\t\tphobiasomnisTexture = phobiasomnis;\r\n\t\tTextureRegion [] somniHands = {somniHandFrontTexture, somniHandBackTexture, somniPhobiaHandsTexture};\r\n\t\tsomniHandsTextures = somniHands;\r\n\t\tTextureRegion [] phobiaHands = {phobiaHandFrontTexture, phobiaHandBackTexture, phobiaSomniHandsTexture};\r\n\t\tphobiaHandsTextures = phobiaHands;\r\n\r\n\t\tanimationSpeed = new float[]{0.1f, 0.5f, 0.1f, 0.1f, 0.1f, 0.1f};\r\n\t\tframePixelWidth = new double[]{32, 64, 32, 32, 32, 32};\r\n\t\toffsetsX = new float[]{12, 19, 0, 0, 15, 0};\r\n\t\toffsetsY = new float[]{0, 0, 0, 0, 0, 0};\r\n\t\tsecOffsetsX = new float[]{-20, -16, 52, 60, -18, 35, -18};\r\n\t\tsecOffsetsY = new float[]{0, 0, -80, -60, 0, -70, 0};\r\n\t\tthirdOffsetsX = new float[]{0, -18, -22, -22, 0, -22, 10, -15, 0, 0, 5, 0, 0, -20, 0, 0, -2, 0};\r\n\t\tthirdOffsetsY = new float[]{0, 0, 0, 0, 0, 0};\r\n\t\tdashAngles = new float[] {0, 0, -1.55f, 0, 0, 3.14f};\r\n\t\tpropelAngles = new float[] {0, 0, 0, 1.55f, 0, -1.55f};\r\n\r\n\r\n\t\t// Setup masking\r\n\t\tcircle_mask = new TextureRegion(directory.getEntry(\"circle_mask\",Texture.class));\r\n\t\tVector2 mask_size = new Vector2(circle_mask.getRegionWidth(), circle_mask.getRegionHeight());\r\n\t\tMIN_MASK_DIMENSIONS = new Vector2(mask_size).scl(mask_shrink_factor);\r\n\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\r\n\t\tsliderBarTexture = directory.getEntry( \"platform:sliderbar\", Texture.class);\r\n\t\tsliderKnobTexture = directory.getEntry( \"platform:sliderknob\", Texture.class);\r\n\r\n\t\tjumpSound = directory.getEntry( \"platform:jump\", SoundBuffer.class );\r\n\t\tfireSound = directory.getEntry( \"platform:pew\", SoundBuffer.class );\r\n\t\tplopSound = directory.getEntry( \"platform:plop\", SoundBuffer.class );\r\n\r\n\t\tconstants = directory.getEntry( \"constants\", JsonValue.class );\r\n\r\n\r\n\r\n\r\n\r\n//Gather sound assets\r\n\t\twinTrack = directory.getEntry(\"winTrack\", SoundBuffer.class);\r\n\t\tSoundController.getInstance().setWinTrack(winTrack);\r\n\r\n\t\tfailTrack = directory.getEntry(\"failTrack\", SoundBuffer.class);\r\n\t\tSoundController.getInstance().setFailTrack(failTrack);\r\n\r\n\r\n\r\n//\t\tsomniTrack = directory.getEntry(\"somniTrack\", SoundBuffer.class);\r\n//\t\tphobiaTrackPath = directory.getEntry(\"phobiaTrack\", SoundBuffer.class);\r\n//\t\tcombinedTrackPath = directory.getEntry(\"combinedTrack\", SoundBuffer.class);\r\n\r\n\r\n//\t\tmenu drawables\r\n\t\torangeUnderline = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pausemenu_underline_red\", Texture.class));\r\n\t\tblueUnderline = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pausemenu_underline\", Texture.class));\r\n\t\tblueRectangle = new TextureRegionDrawable(directory.getEntry(\"pause_menu:bluerectangle\", Texture.class));\r\n\t\tblueExit = new TextureRegionDrawable(directory.getEntry(\"pause_menu:exit_blue\", Texture.class));\r\n\t\tblueResume = new TextureRegionDrawable(directory.getEntry(\"pause_menu:resume_blue\", Texture.class));\r\n\t\tblueRestart = new TextureRegionDrawable(directory.getEntry(\"pause_menu:restart_blue\", Texture.class));\r\n\t\torangeRectangle = new TextureRegionDrawable(directory.getEntry(\"pause_menu:orangerectangle\", Texture.class));\r\n\t\torangeExit = new TextureRegionDrawable(directory.getEntry(\"pause_menu:exit_orange\", Texture.class));\r\n\t\torangeResume = new TextureRegionDrawable(directory.getEntry(\"pause_menu:resume_orange\", Texture.class));\r\n\t\torangeRestart = new TextureRegionDrawable(directory.getEntry(\"pause_menu:restart_orange\", Texture.class));\r\n\t\t//\t\tSliders\r\n\t\torangeSlider = new TextureRegionDrawable(directory.getEntry(\"pause_menu:slider_orange\", Texture.class));\r\n\t\tblueSlider = new TextureRegionDrawable(directory.getEntry(\"pause_menu:slider_blue\", Texture.class));\r\n\t\torangeKnob = new TextureRegionDrawable(directory.getEntry(\"pause_menu:knob_orange\", Texture.class));\r\n\t\tblueKnob = new TextureRegionDrawable(directory.getEntry(\"pause_menu:knob_blue\", Texture.class));\r\n\t\torangeSound = new TextureRegionDrawable(directory.getEntry(\"pause_menu:sound_orange\", Texture.class));\r\n\t\tblueSound = new TextureRegionDrawable(directory.getEntry(\"pause_menu:sound_blue\", Texture.class));\r\n\t\tblueMusicNote = new TextureRegionDrawable(directory.getEntry(\"pause_menu:musicnote_blue\", Texture.class));\r\n\t\torangeMusicNote = new TextureRegionDrawable(directory.getEntry(\"pause_menu:musicnote_orange\", Texture.class));\r\n\r\n\t\tblueNext = new TextureRegionDrawable(directory.getEntry(\"pause_menu:nextblue\", Texture.class));\r\n\t\torangeNext = new TextureRegionDrawable(directory.getEntry(\"pause_menu:nextorange\", Texture.class));\r\n\r\n\t\tbluePauseButton = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pause_button_blue\", Texture.class));\r\n\t\torangePauseButton = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pause_button_red\", Texture.class));\r\n\t\tblurBackground = new TextureRegion(directory.getEntry(\"pause_menu:blur\", Texture.class));\r\n\r\n\r\n\t\tsuper.gatherAssets(directory);\r\n\r\n\r\n\t}",
"@Override\n\tpublic void show() {\n\t backgroundImage = new Texture(Gdx.files.internal(\"resources/images/menu.png\"));\n\t soccerImage = new Texture(Gdx.files.internal(\"resources/images/ball.gif\"));\n\t boomerangImage = new Texture(Gdx.files.internal(\"resources/images/boomerang.gif\"));\n\t wolfImage = new Texture(Gdx.files.internal(\"resources/images/wolf.gif\"));\n\t boyImage = new Texture(Gdx.files.internal(\"resources/images/bueno2.png\"));\n\t boyImageInv = new Texture(Gdx.files.internal(\"resources/images/bueno2Inv.png\"));\n\t grassImage = new Texture(Gdx.files.internal(\"resources/images/piso.png\"));\n\t \n\n\t // load the drop sound effect and the rain background \"music\"\n\t dropSound = Gdx.audio.newSound(Gdx.files.internal(\"resources/drop.wav\"));\n\t rainMusic = Gdx.audio.newMusic(Gdx.files.internal(\"resources/rain.mp3\"));\n\n\t // start the playback of the background music immediately\n\t rainMusic.setLooping(true);\n\t //rainMusic.play();\n\n\t // create the camera and the SpriteBatch\n\t camera = new OrthographicCamera();\n\t camera.setToOrtho(false, 800, 480);\n\t batch = new SpriteBatch();\n\n\t // create a Rectangle to logically represent the boy\n\t boy = new Rectangle();\n\t boy.x = 130; //800 / 2 - 50 / 2; // center the boy horizontally\n\t boy.y = 235; // just above the ground\n\t boy.width = 50;\n\t boy.height = 74;\n\t \n\t //boy2\n\t boy2 = new Rectangle();\n\t boy2.x = 130;\n\t boy2.y = 160; \n\t boy2.width = 50;\n\t boy2.height = 74;\n\t \n\t //create a grass Rectangle to represent the grass\n\t grass = new Rectangle();\n\t grass.x = 0;\n\t grass.y = camera.viewportHeight/2-30;\n\t \n\t grass2 = new Rectangle();\n\t grass2.x = camera.viewportWidth;\n\t grass2.y = camera.viewportHeight/2-30;\n\t \n\t velocidad = 8;\n\t counterGravity = 0.0;\n\t \n\t countObjs = 1;\n\t //stateTime = 0;\n\n\t // create the soccerballs array and spawn the first soccer ball\n\t soccerballs = new Array<Rectangle>();\n\n\t //create the boomerans array and spawn the first boomerang\n\t boomerangs = new Array<Rectangle>();\n\t \n\n\t spawnBoomerangs();\n\t spawnSoccerBall();\n\t\t\n\t}",
"private void loadGameFiles(){\n\t}",
"Hero createHero();",
"private void init() throws IOException {\n //Initializing a new Display\n this.display = new Display(title, width, height);\n this.background = new SpriteSheet(gfx.loader(\"/images/RoadTile3.png\"));\n this.inputHandler = new InputHandler(this.display);\n Assets.init();\n\n gameState = new GameState();\n StateManager.setState(gameState);\n\n player = new Player();\n enemies = new ArrayList<>();\n }",
"protected ResourceLocation getEntityTexture(EntityMegaZombie p_110775_1_)\n {\n return zombieTextures;\n }",
"public void checkHealth() {\n if (health == 0) {\n this.texture = new Texture (\"soggy-\" + tex + \".png\");\n }\n }",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }",
"public void findImages() {\n URL imgURL = ImageLoader.class.getResource(\"/BackgroundMenu.jpg\");\n this.backgroundImages.put(MenuP.TITLE, loadImage(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/backgroundGame.png\");\n this.backgroundImages.put(ArenaView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/gameOver.jpg\");\n this.backgroundImages.put(GameOverView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Player.png\");\n this.entityImages.put(ID.PLAYER, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Enemy1.png\");\n this.entityImages.put(ID.BASIC_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/boss.png\");\n this.entityImages.put(ID.BOSS_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/meteorBrown_big1.png\");\n this.entityImages.put(ID.METEOR, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/BlueBullet.png\");\n this.bulletImages.put(new Pair<>(ID.PLAYER_BULLET, ID.PLAYER), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/redBullet.png\");\n this.entityImages.put(ID.ENEMY_BULLET, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_FireBoost.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Freeze.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL)); \n \n imgURL = ImageLoader.class.getResource(\"/powerup_Health.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.HEALTH), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Shield.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.SHIELD), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/bulletSpeedUp.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadEffect(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Explosion.png\");\n this.AnimationsEffect.put(new Pair<>(ID.EFFECT, SpecialEffectT.EXPLOSION), loadEffect(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/freeze.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL));\n }",
"public void random_hero_start() {\n\t\tint randomX;\n\t\tint randomY;\n\t\twhile (true) {\n\t\t\trandomX = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomY = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomX--;\n\t\t\trandomY--;\n\t\t\tif (labirinto.getLab()[randomX][randomY] == ' ')\n\t\t\t\tbreak;\n\t\t}\n\t\theroi.setX_coord(randomX);\n\t\theroi.setY_coord(randomY);\n\t\tchange_hero_pos();\n\t}",
"@Override\n\tpublic void init() {\n\t\tloadSpritesheet();\n\t\tloadSounds();\n\t\tinitIntro();\n\t}",
"private void onLoad(Vampire vampire) {\n ImageView view = new ImageView(vampireImage);\n addEntity(vampire, view);\n squares.getChildren().add(view);\n }",
"private void loadHUDBackground() {\r\n\r\n\t\tRectangle blabla = new Rectangle(0, HUD_TOP_BORDER,\r\n\t\t\t\t(float) (ResourceManager.getInstance().cameraWidth),\r\n\t\t\t\tResourceManager.getInstance().cameraHeight - HUD_TOP_BORDER,\r\n\t\t\t\tResourceManager.getInstance().getEngine()\r\n\t\t\t\t\t\t.getVertexBufferObjectManager());\r\n\t\tHUDRegion.attachChild(blabla);\r\n\t\tblabla.setColor(1f, 0.5f, 0.5f);\r\n\r\n\t}",
"public void loadTexture(GL10 gl, Context context) {\n\t gl.glGenTextures(1, textureIDs, 0); // Generate texture-ID array\n\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureIDs[0]); // Bind to texture ID\n\t // Set up texture filters\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\t \n\t // Construct an input stream to texture image \"res\\drawable\\gadiworks.png\"\n\t InputStream istream = context.getResources().openRawResource(R.drawable.gadiworks);\n\t Bitmap bitmap = null;\n\t try {\n\t // Read and decode input as bitmap\n\t bitmap = BitmapFactory.decodeStream(istream);\n\t } finally {\n\t try {\n\t istream.close();\n\t } catch(IOException e) { }\n\t }\n\t // Build Texture from loaded bitmap for the currently-bind texture ID\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t bitmap.recycle();\n\t}",
"public static void init()\n {\n \tSpriteSheet sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/spritesheet.png\"));\n BufferedImage img;\n /*for(int y = 0;y<4;y++)\n \t{\n \t\t\n \timg = sheet.crop(width*y,0,width,height);\n \t\t\n \t\tplayer.add(img);\n \t}*/\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n heroDown1 = sheet.crop(0,height+32,width+1,height);\n heroDown2 = sheet.crop(width+1,height+32,width+1,height);\n heroUp1 = sheet.crop(width*2+2,height+32,width,height);\n heroUp2 = sheet.crop(width*3+2,height+32,width,height);\n heroLeft1 = sheet.crop(width*4+2,height+32,width,height);\n heroLeft2 = sheet.crop(width*5+2,height+32,width,height);\n heroRight1 = sheet.crop(width*6+2,height+32,width,height);\n heroRight2 = sheet.crop(width*7+2,height+32,width,height);\n \n /*for(int i = 0;i<4;i++)\n {\n \tfor(int y = 0;y<4;y++)\n \t{\n \t\tif(y==1)\n \t\t{\n \t\t\timg = sheet.crop(width*y,height*i,width,height);\n \t\t}\n \t\telse\n \t\t{\n \t\t\timg = sheet.crop(width*y+1,height*i+1,width,height);\n \t\t}\n \t\tplayer.add(img);\n \t}\n }*/\n sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/PokemonTileSet.png\"));\n for(int i = 0;i<50;i++)\n {\n \tfor(int y = 0;y<8;y++)\n \t{\n \t\timg = sheet.crop(tileW*y,tileH*i,tileW,tileH);\n \t\tassets.add(img);\n \t}\n }\n \n /*\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n treeTopLeft = sheet.crop(0,firstRow,tWidth,tHeight);\n treeTopRight = sheet.crop(tWidth,firstRow,tWidth,tHeight);\n treeMidLeft = sheet.crop(tWidth*2,firstRow,tWidth,tHeight);\n treeMidRight = sheet.crop(tWidth*3,firstRow,tWidth,tHeight);\n treeBotLeft = sheet.crop(tWidth*4,firstRow,tWidth,tHeight);\n treeBotRight = sheet.crop(tWidth*5,firstRow,tWidth,tHeight);\n treeTopLeftGrass = sheet.crop(tWidth*6,firstRow,tWidth,tHeight);\n treeTopRightGrass = sheet.crop(tWidth*7,firstRow,tWidth,tHeight);\n treeTopLeftMushroom = sheet.crop(tWidth*8,firstRow,tWidth,tHeight);\n grass = sheet.crop(tWidth*9,firstRow,tWidth,tHeight);\n \n wildGrass = sheet.crop(0,secondRow,tWidth,tHeight);\n mushroom = sheet.crop(tWidth,secondRow,tWidth,tHeight);\n logLeft = sheet.crop(tWidth*2,secondRow,tWidth,tHeight);\n logRight = sheet.crop(tWidth*3,secondRow,tWidth,tHeight);\n ledgeLeft = sheet.crop(tWidth*4,secondRow,tWidth,tHeight);\n ledgeMid = sheet.crop(tWidth*5,secondRow,tWidth,tHeight);\n ledgeRight = sheet.crop(tWidth*6,secondRow,tWidth,tHeight);\n treeLeftOverlap = sheet.crop(tWidth*7,secondRow,tWidth,tHeight);\n treeRightOverlap = sheet.crop(tWidth*8,secondRow,tWidth,tHeight);\n \n heroWalkingDown1 = sheet.crop(0,thirdRow,width+1,height);\n heroWalkingDown2 = sheet.crop(width+1,thirdRow,width+1,height);\n heroWalkingUp1 = sheet.crop(width*2+1,thirdRow,width,height);\n heroWalkingUp2 = sheet.crop(width*3+1,thirdRow,width,height);\n heroWalkingLeft1 = sheet.crop(width*4+1,thirdRow,width,height);\n heroWalkingLeft2 = sheet.crop(width*5+1,thirdRow,width,height);\n heroWalkingRight1 = sheet.crop(width*6+1,thirdRow,width,height);\n heroWalkingRight2 = sheet.crop(width*7+1,thirdRow,width,height);\n */\n }",
"public void loadTexture(String s) {\n\t\tFile file = new File(s);\n\t\ttry {\n\t\t\tbufferimage = ImageIO.read(file);\n\t\t\tint pixels[] = bufferimage.getRGB(0, 0, bufferimage.getWidth(),\n\t\t\t\t\tbufferimage.getHeight(), null, 0, bufferimage.getWidth());\n\t\t\tbuffer = IntBuffer.wrap(pixels);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}",
"@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n Log.d(LOGTAG, \"onCreate\");\r\n super.onCreate(savedInstanceState);\r\n Bundle bundle = this.getIntent().getExtras();\r\n path = bundle.getByteArray(\"IMAGE\");\r\n vuforiaAppSession = new ArSession(this);\r\n\r\n startLoadingAnimation();\r\n\r\n mDatasetStrings.add(\"target_tiny_chief.xml\");\r\n\r\n vuforiaAppSession.initAR(this, ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\r\n\r\n mGestureDetector = new GestureDetector(this, new GestureListener());\r\n\r\n // Load any sample specific textures:\r\n mTextures = new Vector<>();\r\n loadTextures();\r\n\r\n mIsDroidDevice = android.os.Build.MODEL.toLowerCase().startsWith(\"droid\");\r\n }",
"public void Load() {\n\t\tsceneLoaded = false;\n\n\t\tfor (int i = 0 ; i < gameObjects.size();i++) {\n\t\t\tGameObject gO = gameObjects.get(i);\n\t\t\tEngine.Instance.AddObject(gO);\n\n\t\t}\n\t\tEngine.Instance.currentScenes.add(this);\n\t\tsceneLoaded = true;\n\t}",
"@Override\n\tpublic void create() {\n\t\t// TODO: create completely new batches for sprites and models\n\t\tsprites = new SpriteBatch();\n\t\tmodelBatch = new ModelBatch();\n\n\t\t// TODO: create a new environment\n\t\t// set a new color attribute for ambient light in the environment\n\t\t// add a new directional light to the environment\n\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 0.1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\n\t\t// create a new logo texture from the \"data/firstorder.png\" file\n\t\tlogo = new Texture(\"data/firstorder.png\");\n\n\t\t// TODO: create a new perspective camera with a field-of-view of around 70,\n\t\t// and the width and height found in the Gdx.graphics class\n\t\t// set the position of the camera to (100, 100, 100)\n\t\t// set the camera to look at the origin point (0, 0, 0)\n\t\t// set the near and far planes of the camera to 1 and 300\n\t\t// update the camera\n\t\tint width = Gdx.graphics.getWidth();\n\t\tint height = Gdx.graphics.getHeight();\n\t\tcam = new PerspectiveCamera(70f, width, height);\n\t\tcam.position.set(100f,100f,100f);\n\t\tcam.lookAt(0f, 0f, 0f);\n\t\tcam.near = 1f;\n\t\tcam.far = 300f;\n\t\tcam.update();\n\n\t\tbackgroundMusic = Gdx.audio.newMusic(Gdx.files.internal(\"data/StarWarsMusicTheme.mp3\"));\n\t\tbackgroundMusic.setLooping(true);\n\t\tbackgroundMusic.play();\n\n\t\t// create a new model loader\n\t\tfinal ModelLoader modelLoader = new ObjLoader();\n\n\t\t// TODO: load the internal file \"data/stormtrooper.obj\" into the model variable\n\t\tmodel = modelLoader.loadModel(Gdx.files.internal(\"data/stormtrooper_unwrapped.obj\"));\n\n\t\t// TODO: create a new model instance and scale it to 20% it's original size (it's huge...)\n\t\tinstance = new ModelInstance(model); // ← our model instance is here\n\t\tinstance.transform.scale(0.2f, 0.2f, 0.2f);\n\n\t\t// TODO: set the helmet details material to a new diffuse black color attribute\n\n\t\tgetHelmetDetails().material = new Material(ColorAttribute.createDiffuse(Color.BLACK));\n\t\tgetHelmetMoreDetails().material = new Material(ColorAttribute.createDiffuse(Color.DARK_GRAY));\n\t\tgetHelmetBase().material = new Material(ColorAttribute.createDiffuse(Color.WHITE));\n\n\t\t// set the input processor to work with our custom input:\n\t\t// clicking the image in the lower right should change the colors of the helmets\n\t\t// bonus points: implement your own GestureDetector and an input processor based on it\n\t\tGdx.app.log(\"instance node size\", \"\"+String.valueOf(instance.nodes.size));\n\n\n\t\tGdx.input.setInputProcessor(new FirstOrderInputProcessor(cam, new Runnable() {\n\t\t\tprivate Texture camouflage = new Texture(\"data/camouflage.png\");\n\t\t\tprivate Texture paper = new Texture(\"data/paper.png\");\n\t\t\tprivate Texture hive = new Texture(\"data/hive.png\");\n\t\t\tprivate Texture strips = new Texture(\"data/strip.png\");\n\t\t\tprivate Texture grass = new Texture(\"data/grass.jpeg\");\n\t\t\tpublic void run() {\n\t\t\t\t// TODO: change the helmet details material to a new diffuse random color\n\n\t\t\t\tgetHelmetDetails().material = getRandomMaterial();\n\t\t\t\tgetHelmetMoreDetails().material = getRandomMaterial();\n\n\t\t\t\t// bonus points:\n\t\t\t\t// randomly change the material of the helmet base to a texture\n\t\t\t\t// from the files aloha.png and camouflage.png (or add your own!)\n\t\t\t\tgetHelmetBase().material = getRandomMaterial();\n\t\t\t\tsetRandomLight();\n\n\t\t\t}\n\n\t\t\tprivate Material getRandomMaterial() {\n\t\t\t\tint rand = (int) (MathUtils.random() * 100) % 8;\n\t\t\t\tGdx.app.log(\"Random\", \"\" + rand);\n\n\t\t\t\t//Texture aloha = new Texture(\"data/aloha.png\");\n\t\t\t\tMaterial randMaterial = null;\n\n\t\t\t\tswitch (rand) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\trandMaterial = new Material(ColorAttribute.createReflection(Color.WHITE));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(paper));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(hive));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(camouflage));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\trandMaterial = new Material(ColorAttribute.createDiffuse(getRandomColor()));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(strips));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(grass));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn randMaterial;\n\t\t\t}\n\t\t}));\n\t}",
"public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }",
"public static void loadImages() {\n PonySprite.loadImages(imgKey, \"graphics/ponies/GrannySmith.png\");\n }",
"@Override\n\tpublic void createScene()\n\t\n\t{\n\t loading = new Sprite (0,0,resourceManager.loadingRegion,vbo); // тупо ставим спрайт с картинкой\n\t\tattachChild(loading);\n\t}",
"private void onLoad(Slug slug) {\n ImageView view = new ImageView(slugImage);\n addEntity(slug, view);\n squares.getChildren().add(view);\n }",
"public void setUpAnimations(){\n //Vertical movement animation\n this.verticalMovement = new Animation[NUMBER_OF_VERTICAL_FRAMES]; //Number of images\n TextureRegion[][] heroVerticalSpriteSheet = TextureRegion.split(new Texture(\"img/hero/hero_vertical.png\"), HERO_WIDTH_PIXEL, HERO_HEIGHT_PIXEL); //TODO: Load atlas?\n\n for(int i = 0; i < NUMBER_OF_VERTICAL_FRAMES; i++)\n verticalMovement[i] = new Animation(ANIMATION_SPEED, heroVerticalSpriteSheet[0][i]); //TODO HANDLE EXCEPTION?\n\n //Jump animation\n this.jumpMovement = new Animation[NUMBER_OF_JUMP_FRAMES];\n TextureRegion[][] heroJumpSpriteSheet = TextureRegion.split(new Texture(\"img/hero/hero_jump.png\"), HERO_WIDTH_PIXEL, HERO_HEIGHT_PIXEL); //TODO: Load atlas?\n\n for(int i = 0; i < NUMBER_OF_JUMP_FRAMES; i++)\n jumpMovement[i] = new Animation(ANIMATION_SPEED, heroJumpSpriteSheet[0][i]); //TODO HANDLE EXCEPTION?\n\n }",
"private void ini_Sprites()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Sprites\");\r\n\t\tResourceCache.LoadSprites(false);\r\n\t}",
"Hero()\n\t{\n\t\t\n\t\tsuper(152,500,97,124);\n\t\tlife = 3;\n\t\tdoubleFire = 0;\n\t\t\n\t}",
"public static void classInit(){\n //set up font\n //font = WurfelEngine.getInstance().manager.get(\"com/BombingGames/WurfelEngine/EngineCore/arial.fnt\"); //load font\n font = new BitmapFont(false);\n //font.scale(2);\n\n\n font.setColor(Color.GREEN);\n //font.scale(-0.5f);\n \n //load sprites\n Block.loadSheet();\n addInputProcessor(staticStage);\n skin = new Skin(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/skin/uiskin.json\"));\n GameplayScreen.msgSystem().viewInit(skin,Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/4);\n }",
"@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}"
]
| [
"0.75198907",
"0.70615196",
"0.702959",
"0.6943762",
"0.69197357",
"0.6867434",
"0.67171407",
"0.6643141",
"0.6639264",
"0.65913033",
"0.65879655",
"0.6552477",
"0.65479624",
"0.65469986",
"0.6523963",
"0.64969456",
"0.6492209",
"0.6458155",
"0.64325887",
"0.6410755",
"0.6394913",
"0.63624007",
"0.6275499",
"0.62715733",
"0.6268029",
"0.62453395",
"0.6206724",
"0.6206466",
"0.62025917",
"0.6202174",
"0.619647",
"0.6185352",
"0.61686826",
"0.61073506",
"0.60981053",
"0.60924804",
"0.6065176",
"0.60431415",
"0.60243005",
"0.6019888",
"0.6013305",
"0.59871113",
"0.597601",
"0.5967518",
"0.59546936",
"0.59276587",
"0.59095776",
"0.59023577",
"0.5869705",
"0.58674926",
"0.5856849",
"0.5854026",
"0.5849248",
"0.5848579",
"0.5822642",
"0.58212143",
"0.58164734",
"0.5789563",
"0.5776009",
"0.57651967",
"0.57560295",
"0.57546884",
"0.57501066",
"0.5742095",
"0.5739407",
"0.57294863",
"0.5715297",
"0.5712069",
"0.5701786",
"0.56948036",
"0.56927407",
"0.5685764",
"0.5684893",
"0.56847364",
"0.56820357",
"0.56811357",
"0.5665188",
"0.56646746",
"0.56637806",
"0.56603086",
"0.5659847",
"0.56508887",
"0.56473255",
"0.5644746",
"0.5639505",
"0.56387156",
"0.5632561",
"0.5614905",
"0.56072485",
"0.5593882",
"0.559385",
"0.55921674",
"0.5576954",
"0.5575275",
"0.55735636",
"0.5566908",
"0.5562787",
"0.5556032",
"0.55558664",
"0.5555561"
]
| 0.6668772 | 7 |
Change the texture for Hero | public Texture changeImg(String ImageFile2) {
Texture imgTexture = new Texture ();
try {
imgTexture.loadFromFile (Paths.get (ImageFile2));
} catch (IOException ex) {
ex.printStackTrace ();
}
imgTexture.setSmooth (true);
return imgTexture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void glBindTexture(int target, int texture);",
"public void setTexture(String texture) {\n this.texture = texture;\n }",
"@Override\n\tpublic void setTexture(int texID) {\n\n\t}",
"private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1, 16, 21);\n standFront = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_front.png\", Texture.class), 1, 1, 17, 22);\n standRight = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n }",
"@Override\n public void loadTexture() {\n\n }",
"public Hero(int x, int y) {\r\n this.centerX = x;\r\n this.centerY = y;\r\n this.currentHealth = 100;\r\n rect1 = new FloatRect (100,630,80,110);\r\n imgTexture = new Texture ();\r\n try {\r\n imgTexture.loadFromFile (Paths.get (ImageFile));\r\n } catch (IOException ex) {\r\n ex.printStackTrace ();\r\n }\r\n imgTexture.setSmooth (true);\r\n\r\n img = new Sprite (imgTexture);\r\n img.setOrigin (Vector2f.div (new Vector2f (imgTexture.getSize ()), 2));\r\n img.setPosition (x, y);\r\n // Store references to object and key methods\r\n obj = img;\r\n setPosition = img::setPosition;\r\n\r\n background = new Sprite (bg.loadTextures ());\r\n background.setOrigin(Vector2f.div(new Vector2f(bg.getTexture1 ()), 1000000));\r\n background.setPosition (0,0);\r\n }",
"public void changeHeadTexture(String aTextureName)\n {\n if(androidRobot3DObject.getChildByName(\"head\")!=null)\n {\n androidRobot3DObject.getChildByName(\"head\").textures().removeAll();\n androidRobot3DObject.getChildByName(\"head\").textures().addById(aTextureName);\n }\n }",
"public void setTexture(int set_texture) {\n\t\ttexture = set_texture;\n\t}",
"public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }",
"public void changeBodyTexture(String aTextureName)\n {\n // If you want, you can target a specific part of the robot\n // and only change the texture of this part by using the getChildByName(\"\")\n \t/* Passing through all the children of the robot\n \t * and applying a new texture on them */\n for(int i = 0;i<androidRobot3DObject.numChildren();i++)\n {\n String name = androidRobot3DObject.getChildAt(i).name();\n Log.d(\"min3d\", \"Texture name: \" + name);\n\n if(name.indexOf(\"body\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(aTextureName);\n }\n }\n }",
"SurfaceTexture mo17015a();",
"SurfaceTexture mo17006a();",
"@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\t}",
"void glActiveTexture(int texture);",
"void glActiveTexture(int texture);",
"@Override\n\tprotected ResourceLocation getEntityTexture(Entity entity) {\n\t\treturn texture;\n\t}",
"public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }",
"protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }",
"public void setTexture(int index, Texture texture)\n\t{\n\t\tif (tmpReg == null)\n\t\t\ttmpReg = new TextureRegion[textures.length];\n\t\tif (tmpReg[index] == null) //minimize object creation since a lot of users will use this every frame\n\t\t\ttmpReg[index] = new TextureRegion();\n\t\ttmpReg[index].setRegion(texture);\n\t\tsetTexture(index, tmpReg[index]);\n\t}",
"public void setHeroHurt(Animation<TextureRegion> heroHurt) {\n this.heroHurt = heroHurt;\n }",
"@Override\n public ResourceLocation getTextureLocation(DroneEntity entity) {\n return entity.isAttacking() ? mobShootingTexture : mobTexture;\n }",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }",
"@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }",
"public native void setTexturePath ( String texturePath );",
"@Override\r\n\tprotected ResourceLocation getEntityTexture(EntityAngel entity)\r\n {\r\n return ANGEL_TEXTURE;\r\n }",
"public final void setTexture(Phase phase1) {\n this.phase = phase1;\n PolygonRegionAttachmentLoader attachmentLoader = new PolygonRegionAttachmentLoader(this, phase, assetProvider.getTextureAtlas(SpineToolFullEditorOverlay.getSelectedSkeleton()));\n finalSkeleton = createSkeleton(attachmentLoader);\n finalize(finalSkeleton);\n\n //set bones back in place\n for (Bone b : finalSkeleton.getBones()) {\n b.setRotation(b.getSkeleton().getData().findBone(b.getData().getName()).getRotation());\n b.setX(b.getSkeleton().getData().findBone(b.getData().getName()).getX());\n b.setY(b.getSkeleton().getData().findBone(b.getData().getName()).getY());\n }\n\n AnimationStateData stateDataFinal = new AnimationStateData(finalSkeleton.getData()); // Defines mixing (crossfading) between animations.\n stateFinal = new AnimationState(stateDataFinal); // Holds the animation stateFinal for a skeleton (current animation, time, etc).\n stateFinal.setTimeScale(.5f);\n }",
"public void create() {\r\n\t\t\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tGdx.input.setInputProcessor(new MyInputProcessor());\r\n\t\t\r\n\t\t\r\n\t\ttextures = Tex.getTex();\r\n\t\t// load images\r\n\t\ttextures.loadTexture(\"res/images/guyDown.png\", \"guyDown\");\r\n\t\ttextures.loadTexture(\"res/images/guyUp.png\", \"guyUp\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Down.png\", \"guyDown2\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Up.png\", \"guyUp2\");\r\n\t\ttextures.loadTexture(\"res/images/enemyDown.png\", \"enemyDown\");\r\n\t\ttextures.loadTexture(\"res/images/enemyUp.png\", \"enemyUp\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/skyline.png\", \"skyline\");\r\n\t\ttextures.loadTexture(\"res/images/skyline2.jpg\", \"skyline2\");\r\n\t\ttextures.loadTexture(\"res/images/skyline3.png\", \"skyline3\");\t\t\r\n\t\ttextures.loadTexture(\"res/images/circuit board.jpg\", \"fundo2\");\r\n\t\ttextures.loadTexture(\"res/images/grav3.jpg\", \"menu\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/singleplayer.png\", \"single\");\r\n\t\ttextures.loadTexture(\"res/images/multiplayer.png\", \"multi\");\r\n\t\ttextures.loadTexture(\"res/images/exit.png\", \"exit\");\r\n\t\ttextures.loadTexture(\"res/images/level1B.png\", \"B1\");\r\n\t\ttextures.loadTexture(\"res/images/level2B.png\", \"B2\");\r\n\t\ttextures.loadTexture(\"res/images/level3B.png\", \"B3\");\r\n\t\ttextures.loadTexture(\"res/images/mainMenuB.png\", \"mainB\");\r\n\t\ttextures.loadTexture(\"res/images/win1.png\", \"win1\");\r\n\t\ttextures.loadTexture(\"res/images/win2.png\", \"win2\");\r\n\t\ttextures.loadTexture(\"res/images/tryagain.png\", \"retry\");\r\n\t\ttextures.loadTexture(\"res/images/easy.png\", \"easy\");\r\n\t\ttextures.loadTexture(\"res/images/medium.png\", \"medium\");\r\n\t\ttextures.loadTexture(\"res/images/hard.png\", \"hard\");\r\n\t\ttextures.loadTexture(\"res/images/difficulty.png\", \"difficulty\");\r\n\t\ttextures.loadTexture(\"res/images/thunder2.png\", \"thunder\");\r\n\t\r\n\t\ttextures.loadTexture(\"res/images/levelcleared.png\", \"cleared\");\r\n\t\ttextures.loadTexture(\"res/images/you lost.png\", \"lost\");\r\n\t\ttextures.loadTexture(\"res/images/playerpress.png\", \"playerp\");\r\n\t\ttextures.loadTexture(\"res/images/player1press.png\", \"player1p\");\r\n\t\ttextures.loadTexture(\"res/images/player2press.png\", \"player2p\");\r\n\t\ttextures.loadTexture(\"res/images/selectthelevel.png\", \"select\");\r\n\t\t\r\n\t\t\r\n\t\tsb = new SpriteBatch();\r\n\t\tcam = new OrthographicCamera();\r\n\t\tcam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\thudCam = new OrthographicCamera();\r\n\t\thudCam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\tgsm = new GameStateManager(this);\r\n\t\t\t\t\r\n\t}",
"public void setColorTexture(String name) {\n this.colorTexture = name;\n }",
"Hero createHero();",
"public void setTexture(PImage image) {\n //m_tImage = image;\n m_texture = image.pixels;\n TEX_WIDTH = image.width;\n TEX_HEIGHT = image.height;\n F_TEX_WIDTH = TEX_WIDTH-1;\n F_TEX_HEIGHT = TEX_HEIGHT-1;\n INTERPOLATE_UV = true;\n \n if (image.format == ARGB) {\n m_drawFlags |= R_TEXTURE32;\n } else if (image.format == RGB) {\n m_drawFlags |= R_TEXTURE24;\n } else if (image.format == ALPHA) {\n m_drawFlags |= R_TEXTURE8;\n }\n }",
"private void setupTexture() {\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n GLES20.glGenTextures(1, textures, 0);\n checkGlError(\"Texture generate\");\n\n GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, textures[0]);\n checkGlError(\"Texture bind\");\n\n videoTexture = new SurfaceTexture(textures[0]);\n videoTexture.setOnFrameAvailableListener(this);\n }",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityBat)p_110775_1_);\n }",
"public void SetID(int id) {\n TextureID = id;\n }",
"protected ResourceLocation getEntityTexture(EntitySentientSpecter entity)\n {\n return texture;\n }",
"@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}",
"public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }",
"public T caseTexture(Texture object) {\r\n\t\treturn null;\r\n\t}",
"public String getTexture(){\n\t\treturn texture;\n\t}",
"public abstract TextureObject getTexture();",
"protected ResourceLocation getEntityTexture(EntityBat entity)\n {\n return BAT_TEXTURES;\n }",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCowTextures((EntityCow)par1Entity);\n }",
"public void checkHealth() {\n if (health == 0) {\n this.texture = new Texture (\"soggy-\" + tex + \".png\");\n }\n }",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"public void setTexture(TextureRegion region) {\n \ttexture = region;\n \torigin = new Vector2(texture.getRegionWidth()/2.0f,texture.getRegionHeight()/2.0f);\n }",
"Hero()\n\t{\n\t\t\n\t\tsuper(152,500,97,124);\n\t\tlife = 3;\n\t\tdoubleFire = 0;\n\t\t\n\t}",
"public void atacar() {\n texture = new Texture(Gdx.files.internal(\"recursos/ataques.png\"));\n rectangle=new Rectangle(x,y,texture.getWidth(),texture.getHeight());\n tmp = TextureRegion.split(texture, texture.getWidth() / 4, texture.getHeight() / 4);\n switch (jugadorVista) {\n case \"Derecha\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Izquierda\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Abajo\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Arriba\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n }\n }",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"public void initialHeroCastle() {\n Pair<Integer, Integer> heroCastlePosition = world.getHeroCastlePosition();\n SimpleIntegerProperty x2 = new SimpleIntegerProperty();\n SimpleIntegerProperty y2 = new SimpleIntegerProperty();\n x2.set(heroCastlePosition.getValue0());\n y2.set(heroCastlePosition.getValue1());\n String type = \"HeroCastle\";\n Building heroBuilding = new HeroCastleBuilding(x2, y2, type, 0);\n ImageView view = new ImageView(heroBuilding.getImage());\n addEntity(heroBuilding, view);\n squares.getChildren().add(view);\n }",
"private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}",
"private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}",
"public void equipHero() {\n\t\ttipo = 'A';\n\t}",
"private void loadHealthBar()\r\n\t{\r\n \tTextureRegion [][] tempFrames;\r\n \tTextureRegion [] frames;\r\n\t\tTexture appearance = new Texture(\"img/hud/HeartBar.png\");\r\n\t\thealthWidth = appearance.getWidth() / 2;\r\n\t\thealthHeight = appearance.getHeight() / 26;\r\n\t\ttempFrames = TextureRegion.split(appearance, healthWidth,\r\n\t\t\t\thealthHeight);\r\n\t\tint index = 0;\r\n\t\tframes = new TextureRegion[52];\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (int j = 0; j < 2; j++) {\r\n\t\t\t\tframes[index++] = tempFrames[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\thealthBarAnimation = new Animation(0.01f, frames);\r\n\t\theroHealth.setOrigin(healthWidth/2, healthHeight/2);\r\n\t\theroHealth.setBounds(getX(),getY(), camera.viewportWidth * 0.3f,camera.viewportWidth * 0.3f * (appearance.getHeight() / 26)/(appearance.getWidth() / 2));\r\n\t\t\r\n\t\tstateTime = 0f;\r\n\t\tcurrentFrame = healthBarAnimation.getKeyFrame(stateTime, true);\r\n\t\t\r\n\t\t\r\n\t\tTexture tempT = new Texture(\"img/hud/HeartBarCover.jpg\");\r\n\t\tcover = new Sprite(tempT);\r\n\t\tcover.setSize(250f/270f * heroHealth.getWidth(), heroHealth.getHeight());\r\n\t\tcover.setOrigin(cover.getWidth(), cover.getHeight()/2);\r\n\t\tcover.setScale(1f, 1f);\r\n\t}",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.func_110914_a((EntitySpiritWolf)par1Entity);\n }",
"@Override\n\tpublic void use(Hero player) {\n\t\t\n\t}",
"public ModelTexture(int id) {\r\n\t\tthis.textureID = id;\r\n\t}",
"public ResourceLocation getEntityTexture(T entity) {\n return MINECART_TEXTURES;\n }",
"public Enemy(Texture tex) \r\n\t{\r\n\t\tsuper(tex);\r\n\t\tm_type = \"enemy\";\r\n\t\tm_controller = new IAController();\r\n\t\tm_weapon = new AttackEmitter();\r\n\t\t\r\n\t\tm_lifeBar.setScale(new Vector2(0.3f,0.3f));\r\n\t\t\r\n\t\tm_speed = 50;\r\n\t\tm_life = 4;\r\n\t\t\r\n\t}",
"public static void loadBg() {\n bg = new Texture (Gdx.files.internal(\"data/bbb.png\"));\n textureBg =new TextureRegion(bg);\n player = new Texture (Gdx.files.internal(\"data/nave2.png\"));\n texturePlayer =new TextureRegion(player);\n gameOver = new Texture (Gdx.files.internal(\"data/gameOver.png\"));\n textureGameOver =new TextureRegion(gameOver);\n textureGameOver.flip(false, true);\n laser= new Texture (Gdx.files.internal(\"data/disparo_sprite.png\"));\n textureLaser = new TextureRegion(laser);\n obstacle= new Texture (Gdx.files.internal(\"data/square.gif\"));\n textureObstacle = new TextureRegion(obstacle);\n title= new Texture (Gdx.files.internal(\"data/invadpt2.png\"));\n textureTitle = new TextureRegion(title);\n win = new Texture (Gdx.files.internal(\"data/win.png\"));\n textureWin =new TextureRegion(win);\n textureWin.flip(false, true);\n ranking = new Texture (Gdx.files.internal(\"data/ranking.png\"));\n textureRanking =new TextureRegion(ranking);\n textureRanking.flip(false, true);\n ranking1 = new Texture (Gdx.files.internal(\"data/ranking1.png\"));\n textureRanking1 =new TextureRegion(ranking1);\n textureRanking1.flip(false, true);\n ranking2 = new Texture (Gdx.files.internal(\"data/ranking2.png\"));\n textureRanking2 =new TextureRegion(ranking2);\n textureRanking2.flip(false, true);\n superEnemy= new Texture (Gdx.files.internal(\"data/superEnemy.png\"));\n textureSuperEnemy = new TextureRegion(superEnemy);\n textureSuperEnemy.flip(false, true);\n\n text1=new Texture(Gdx.files.internal(\"data/bg.jpg\"));\n text2 = new TextureRegion(text1);\n text= new TextureAtlas();\n text.addRegion(\"text\",text2);\n text.addRegion(\"text\",text1,0,0,20,30);\n loadColorInvaders();\n\n\n }",
"public void loadTexture(int imageNum, Texture atex)\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tgl.glTexImage2D(GL_TEXTURE_2D, imageNum, 3, atex.gTexW, atex.gTexH, 0,\r\n\t\t GL_BGRA_EXT, GL_UNSIGNED_BYTE, atex.pixels);\r\n\t}",
"protected ResourceLocation getEntityTexture(T entity) {\n\t\treturn ORECART_TEXTURES;\n\t}",
"String getTextureName();",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture0((EntityEnderPig)p_110775_1_);\n }",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCaveSpiderTextures((EntityCaveSpider)par1Entity);\n }",
"private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setTextureVertice(int i, Vertice uv) {\n\t\t(textureVertices.get(i)).set(uv);\n\t}",
"@Override\n\tpublic void show() {\n\t backgroundImage = new Texture(Gdx.files.internal(\"resources/images/menu.png\"));\n\t soccerImage = new Texture(Gdx.files.internal(\"resources/images/ball.gif\"));\n\t boomerangImage = new Texture(Gdx.files.internal(\"resources/images/boomerang.gif\"));\n\t wolfImage = new Texture(Gdx.files.internal(\"resources/images/wolf.gif\"));\n\t boyImage = new Texture(Gdx.files.internal(\"resources/images/bueno2.png\"));\n\t boyImageInv = new Texture(Gdx.files.internal(\"resources/images/bueno2Inv.png\"));\n\t grassImage = new Texture(Gdx.files.internal(\"resources/images/piso.png\"));\n\t \n\n\t // load the drop sound effect and the rain background \"music\"\n\t dropSound = Gdx.audio.newSound(Gdx.files.internal(\"resources/drop.wav\"));\n\t rainMusic = Gdx.audio.newMusic(Gdx.files.internal(\"resources/rain.mp3\"));\n\n\t // start the playback of the background music immediately\n\t rainMusic.setLooping(true);\n\t //rainMusic.play();\n\n\t // create the camera and the SpriteBatch\n\t camera = new OrthographicCamera();\n\t camera.setToOrtho(false, 800, 480);\n\t batch = new SpriteBatch();\n\n\t // create a Rectangle to logically represent the boy\n\t boy = new Rectangle();\n\t boy.x = 130; //800 / 2 - 50 / 2; // center the boy horizontally\n\t boy.y = 235; // just above the ground\n\t boy.width = 50;\n\t boy.height = 74;\n\t \n\t //boy2\n\t boy2 = new Rectangle();\n\t boy2.x = 130;\n\t boy2.y = 160; \n\t boy2.width = 50;\n\t boy2.height = 74;\n\t \n\t //create a grass Rectangle to represent the grass\n\t grass = new Rectangle();\n\t grass.x = 0;\n\t grass.y = camera.viewportHeight/2-30;\n\t \n\t grass2 = new Rectangle();\n\t grass2.x = camera.viewportWidth;\n\t grass2.y = camera.viewportHeight/2-30;\n\t \n\t velocidad = 8;\n\t counterGravity = 0.0;\n\t \n\t countObjs = 1;\n\t //stateTime = 0;\n\n\t // create the soccerballs array and spawn the first soccer ball\n\t soccerballs = new Array<Rectangle>();\n\n\t //create the boomerans array and spawn the first boomerang\n\t boomerangs = new Array<Rectangle>();\n\t \n\n\t spawnBoomerangs();\n\t spawnSoccerBall();\n\t\t\n\t}",
"public PBRTProperty setTextureSetting(String name, String value) {\n\t\tif (name == null)\n\t\t\tthrow new NullPointerException(\"the given name is null!\");\n\t\tif (value == null)\n\t\t\tthrow new NullPointerException(\"the given value is null!\");\n\t\tremoveSetting(name);\n\t\ttextures.put(name, value);\n\t\treturn this;\n\t}",
"protected ResourceLocation getEntityTexture(EntityLiving entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }",
"void texImage2D(int target, int level, int resourceId, int border);",
"public void bind() {\n if (isTextureLoaded()) {\n glBindTexture(GL_TEXTURE_2D, texId.getId());\n } else {\n System.err.println(\"[Error] texture::bind() Binding a unloaded texture.\");\n }\n }",
"public void render(){\r\n if(getLives() >= 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPurple.png\",super.radius*2,super.radius*2);\r\n }\r\n if(getLives() < 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPink.png\",super.radius*2,super.radius*2);\r\n }\r\n }",
"private void setSprite(String filepath){\n try {\n this.sprite = new Sprite(new Texture(Gdx.files.internal(filepath)));\n }\n catch (Exception e){\n }\n }",
"@Override\n public void onUpdated(Preview.PreviewOutput output){\n ViewGroup parent = (ViewGroup) textureView.getParent();\n parent.removeView(textureView);\n parent.addView(textureView, 0);\n\n textureView.setSurfaceTexture(output.getSurfaceTexture());\n }",
"public Texture() {\n }",
"public ModelTexture(int textureID) {\n this.textureID = textureID;\n }",
"public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }",
"public MyTextureMoon(){\n textureMoon = new Texture(Gdx.files.internal(\"moon2.png\"));\n lastTimeMoon = TimeUtils.nanoTime();\n moonXposition = Gdx.graphics.getWidth() / 2 - textureMoon.getWidth() / 2;\n isXAtBorder = false;\n lastTimeXAtBorder = 0;\n }",
"protected ResourceLocation getEntityTexture(Entity entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }",
"public Hero(LogicController logicController, Vector2 vec){\n this.setWorld(logicController.getWorld());\n this.logicController=logicController;\n sprite = new Sprite();\n position=vec;\n booleanDefinition();\n resetCounters();\n this.bombs=new ArrayList<Bomb>();\n if(!logicController.getGame().getIsTest())\n heroAnimations();\n heroBody = new HeroBody(logicController, this,vec);\n if(!logicController.getGame().getIsTest()) {\n heroStandingTextureLoad();\n standRight.flip(true, false);\n sprite.setBounds(0, 0, 17*MyGame.PIXEL_TO_METER, 22*MyGame.PIXEL_TO_METER);\n }\n soundHurt= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_hurt.wav\"));\n soundDying= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_dying.wav\"));\n }",
"public Hero(float x, float y, int controlType) {\n\t\tgraphic = new Graphic(\"HERO\");\n\t\tspeed = 0.12f;\n\t\tthis.controlType = controlType;\n\t\tgraphic.setPosition(x,y);\n\t}",
"public void setBackground(String texture)\r\n {\r\n \tFileInputStream inFile = null;\r\n \t try\r\n \t {\r\n \t inFile = new FileInputStream(texture);\r\n \t JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(inFile);\r\n \t BufferedImage bgBuffImg = decoder.decodeAsBufferedImage();\r\n \t ImageComponent2D bgImange = new ImageComponent2D(BufferedImage.TYPE_INT_RGB, bgBuffImg);\r\n \t bg.setImage(bgImange);\r\n \t inFile.close();\r\n \t }\r\n \t catch (Exception e)\r\n\t\t{\r\n \t \tSystem.out.println(e + \"\\n\" + \"Texture Import failed!\");\r\n \t }\r\n }",
"public void act() \n {\n setImage(\"1up.png\");\n setImage(\"acrate.png\");\n setImage(\"Betacactus.png\");\n setImage(\"bullet1.png\");\n setImage(\"bullet2.png\");\n setImage(\"burst.png\");\n setImage(\"cowboy.png\");\n setImage(\"fOxen1.png\");\n setImage(\"fOxen2.png\");\n setImage(\"fOxen3.png\");\n setImage(\"fOxen4.png\");\n setImage(\"fOxenH.png\");\n setImage(\"fWagon1.png\");\n setImage(\"fWagon2.png\");\n setImage(\"fWagon3.png\");\n setImage(\"fWagon4.png\");\n setImage(\"fWagonH.png\");\n setImage(\"health.png\");\n setImage(\"indian.png\");\n setImage(\"normal.png\");\n setImage(\"oxen.png\");\n setImage(\"oxen2.png\");\n setImage(\"oxen3.png\");\n setImage(\"oxen4.png\");\n setImage(\"oxen-hit.png\");\n setImage(\"plasma.png\");\n setImage(\"rapid.png\");\n setImage(\"snake1.png\");\n setImage(\"snake2.png\");\n setImage(\"snake3.png\");\n setImage(\"snake4.png\");\n setImage(\"spread.png\");\n setImage(\"theif.png\");\n setImage(\"train1.png\");\n setImage(\"train-hit.png\");\n setImage(\"wagon.png\");\n setImage(\"wagonhit.png\");\n setImage(\"wave.png\");\n getWorld().removeObject(this);\n }",
"public void addTexture (String path, String key) throws IOException {\n\t\tTexture texture = new Texture();\n\t\ttexture.load(path);\n\t\ttextures.put(key, texture);\n\t}",
"public void bind()\n {\n glBindTexture(GL_TEXTURE_2D, texture);\n }",
"public Texture(int target, int textureID) {\n\tthis.target = target;\n\tthis.textureID = textureID;\n }",
"public Sprite(String newSpriteLocation){\n\t\timages = new Texture[1];\n\t\timages[0] = new Texture(newSpriteLocation);\n\t}",
"public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }",
"protected ResourceLocation getEntityTexture(EntitySquid entity)\n {\n return SQUID_TEXTURES;\n }",
"void deleteTexture(int texID) {\n renderEngine.a(texID);\n }",
"protected ResourceLocation getEntityTexture(EntityMegaZombie p_110775_1_)\n {\n return zombieTextures;\n }",
"public abstract void setUniforms(GameObject gameObject);",
"public CreateHero() {\r\n\t\tinitComponents();\r\n\t}",
"public Mario(){\n setImage(\"06.png\");\n \n }",
"public Sprite(Texture newImage){\n\t\timages = new Texture[1];\n\t\timages[0] = newImage;\n\t}",
"public final native void setTexturePath(String path)/*-{\r\n\tthis.setTexturePath(path);\r\n\t}-*/;",
"public void setParticleTextureIndex(int p_70536_1_) {\n/* 232 */ if (getFXLayer() != 0)\n/* */ {\n/* 234 */ throw new RuntimeException(\"Invalid call to Particle.setMiscTex\");\n/* */ }\n/* */ \n/* */ \n/* 238 */ this.particleTextureIndexX = p_70536_1_ % 16;\n/* 239 */ this.particleTextureIndexY = p_70536_1_ / 16;\n/* */ }",
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"protected ResourceLocation getEntityTexture(EntityBat p_110775_1_)\n {\n return batTextures;\n }",
"private void handleSetSurfaceTexture(SurfaceTexture st) {\n st.setOnFrameAvailableListener(this);\n try {\n mCamera.setPreviewTexture(st);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n mCamera.startPreview();\n }",
"public void setHeroDying(Animation<TextureRegion> heroDying) {\n this.heroDying = heroDying;\n }"
]
| [
"0.70299745",
"0.6795672",
"0.6717406",
"0.6668054",
"0.6632888",
"0.6505852",
"0.64877474",
"0.64311904",
"0.6407631",
"0.6347783",
"0.62734044",
"0.62503195",
"0.62411624",
"0.61772335",
"0.61772335",
"0.61756283",
"0.6167446",
"0.610218",
"0.60957474",
"0.60659987",
"0.60487837",
"0.60183865",
"0.60119176",
"0.6007427",
"0.5994191",
"0.5986777",
"0.59847015",
"0.5973117",
"0.59282476",
"0.59102947",
"0.5906723",
"0.5891198",
"0.58528614",
"0.5826552",
"0.58160734",
"0.5803012",
"0.57875806",
"0.5776142",
"0.57680476",
"0.5765978",
"0.57645184",
"0.5763339",
"0.57507384",
"0.57423824",
"0.5727413",
"0.56927943",
"0.56701726",
"0.5669527",
"0.56674844",
"0.5664002",
"0.56631106",
"0.5663058",
"0.565946",
"0.5644776",
"0.5640794",
"0.5626886",
"0.5624258",
"0.5616767",
"0.56109977",
"0.55828416",
"0.5576739",
"0.55741054",
"0.55679274",
"0.5559612",
"0.55479056",
"0.5534989",
"0.552445",
"0.5524055",
"0.55233103",
"0.5513015",
"0.5510068",
"0.5508665",
"0.54832244",
"0.54805505",
"0.547576",
"0.54710543",
"0.5468968",
"0.54652715",
"0.54549944",
"0.5447795",
"0.54407406",
"0.5432794",
"0.5430667",
"0.54305893",
"0.5426604",
"0.5416566",
"0.5409611",
"0.5404862",
"0.53932637",
"0.539137",
"0.5379952",
"0.5373304",
"0.5365313",
"0.5364597",
"0.53566283",
"0.53557956",
"0.5348807",
"0.5341943",
"0.5340846",
"0.53377783"
]
| 0.5612385 | 58 |
Move the Hero left | public void moveLeft() {
speedX = -6;
Texture r1 = changeImg ("./graphics/characters/player/leftWalk1.png");
img = new Sprite (r1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }",
"public void moveLeft() {\n\t\tposX -= speed;\n\t}",
"public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}",
"public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}",
"public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}",
"private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }",
"public void moveLeft() {\n\t\t\n\t}",
"public void moveLeft()\n\t{\n\t\tmoveLeft = true;\n\t}",
"public void moveLeft() {\n locX = locX - 1;\n }",
"void moveLeft();",
"public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }",
"void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}",
"public void moveLeft(){\n myRectangle.setX(myRectangle.getX() - PADDLE_SPEED);\n }",
"protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }",
"private void turnLeft() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.NORTH;\n break;\n case WEST:\n direction = Position.Direction.SOUTH;\n break;\n case NORTH:\n direction = Position.Direction.WEST;\n break;\n case SOUTH:\n direction = Position.Direction.EAST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }",
"public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}",
"public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(animation!=ANIMATION.MOVELEFT) {\n\t\t\tanimation=ANIMATION.MOVELEFT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.LEFT;\n\t\tdirection=\"left\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=-1*spd/2;\n\t\tvelY=0;\n\t}",
"public void moveLeft() {\n \tif(!move.moveLeft()) {\n \t\tif(physinteractor(getX()-1,getY())) {\n \t\t\tmove.moveLeft();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }",
"public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }",
"public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }",
"public void left() {\n if (x - movementSpeed > -55) {\r\n x = x - movementSpeed;\r\n }\r\n }",
"public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }",
"public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }",
"private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }",
"public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"public void moveLeft() {\n this.velocity = this.velocity.add(leftVelocity());\n }",
"private void moveLeft(GObject bottom) {\r\n\t\tif(facingEast) {\r\n\t\t\tdouble x = player.getX();\r\n\t\t\tdouble y = player.getY();\r\n\t\t\tremove(player);\r\n\t\t\tplayer = new GImage(\"PlayerWest.png\");\r\n\t\t\tplayer.scale(.75);\r\n\t\t\tadd(player, x, y);\r\n\t\t\tfacingEast = false;\r\n\t\t}\r\n\t\tif(player.getX() > 5 && bottom != null)\r\n\t\t\tplayer.move(-PLAYER_X_MOTION, 0);\r\n\t}",
"public void moveLeft() {\n this.accelerateXL();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(141);\n this.setLoopCells(true);\n }",
"private void LeftLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t}",
"public void turnLeft()\r\n\t{\r\n\t\t\r\n\t\theading -= 2; //JW\r\n\t\t//Following the camera:\r\n\t\t\t//heading -= Math.sin(Math.toRadians(15))*distance; \r\n\t\t\t//heading -= Math.cos(Math.toRadians(15))*distance;\r\n\t}",
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"public void moveLeft() {\n speedX -= (speedX > 0) ? acceleration * 2 : acceleration;\n if (speedX < -maxSpeed) {\n speedX = -maxSpeed;\n }\n direction = Direction.LEFT;\n }",
"public void slideLeft() {\n turnLeft();\n move();\n turnRight();\n }",
"public void moveLeft() {\n this.x -= 10;\n repaint();\n }",
"private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"public void moveLeft()\n\t{\n\t\tcol--;\n\t}",
"public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }",
"private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}",
"public void turnLeft ()\n\t{\n\t\t//changeFallSpeed (-1);\n\t\tturnInt = -1;\n\t}",
"public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forward();\n }",
"@FXML\n\tprivate void moveLeft(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\tif(l.leftValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveLeft();\n\t\t\tsetCurrentPos();\n\t\t\tif(combatroll <= 80) { // Roll for combat\n\t\t\t\t\n\t\t\t\tcombat();\t\n\t\t\t}else if(itemroll>=40) {\n\t\t\t\trollCommonDrop();\n\t\t\t}\n\t\t}else {\n\t\t\treturn;\n\t\t}\n\t}",
"public void turnLeft() {\n\t\tthis.setSteeringDirection(getSteeringDirection()-5);\n\t\t}",
"public void turnLeft();",
"public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }",
"public void setMoveLeft(boolean TorF) {\n moveLeft = TorF;\n }",
"private boolean moveLeft() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() - rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() - rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}",
"public void strafeLeft(){\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}",
"public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }",
"public void moveLeft(double dt) {\r\n double adjustedSpeed = this.mySpeed * dt;\r\n if (this.myPaddle.getUpperLeft().getX() - adjustedSpeed > 0) {\r\n myPaddle.getUpperLeft().setPosition(\r\n myPaddle.getUpperLeft().getX() - adjustedSpeed,\r\n myPaddle.getUpperLeft().getY());\r\n myPaddle.getLowerLeft().setPosition(\r\n myPaddle.getLowerLeft().getX() - adjustedSpeed,\r\n myPaddle.getLowerLeft().getY());\r\n myPaddle.getUpperRight().setPosition(\r\n myPaddle.getUpperRight().getX() - adjustedSpeed,\r\n myPaddle.getUpperRight().getY());\r\n myPaddle.getLowerRight().setPosition(\r\n myPaddle.getLowerRight().getX() - adjustedSpeed,\r\n myPaddle.getLowerRight().getY());\r\n this.thisOne.setRect(myPaddle);\r\n } else {\r\n myPaddle.getUpperLeft().setPosition(0, getUpperLeftY);\r\n myPaddle.getLowerLeft().setPosition(0, getUpperLeftY + 10);\r\n myPaddle.getUpperRight().setPosition(this.width, getUpperLeftY);\r\n myPaddle.getLowerRight().setPosition(this.width, getUpperLeftY + 10);\r\n this.thisOne.setRect(myPaddle);\r\n }\r\n }",
"void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }",
"public void turnLeft() { turn(\"LEFT\"); }",
"public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}",
"public void animateMovementLeft()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (leftMvt.length);\n setImage(leftMvt[imageNumber]);\n }\n }",
"@Override\r\n\tpublic void onLeft() {\n\t\tif (snakeView.smer != snakeView.VZHOD) {\r\n\t\t\tsnakeView.naslednjaSmer = snakeView.ZAHOD;\r\n\t\t}\r\n\t}",
"private void RightLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\t\n \t\t\n \t\n \t}\n \t}",
"public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}",
"@Override\r\n\tpublic void moveLeft() {\n\t\tswitch(state) {\r\n\t\tcase 0: case 2:\r\n\t\t\t{\r\n\t\t\t\tboolean ok = true;\r\n\t\t\t\tfor(Case c: cases) {\r\n\t\t\t\t\tif(!grille.isEmpty(c.getX()+x-1, c.getY()+y))\r\n\t\t\t\t\t\tok = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(ok)\r\n\t\t\t\t\t--x;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t{\r\n\t\t\tint x3 = cases.get(3).getX()-1, y3 = cases.get(3).getY();\r\n\t\t\tif(grille.isEmpty(x+x3, y+y3))\r\n\t\t\t\t--x;\r\n\t\t\t\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 3:\r\n\t\t{\r\n\t\t\tint x0 = cases.get(0).getX()-1, y0 = cases.get(0).getY();\r\n\t\t\tif(grille.isEmpty(x+x0, y+y0))\r\n\t\t\t\t--x;\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault : \r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }",
"public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void setLeft(MoveLeftCommand left) {\n\r\n\t}",
"private static int moveLeft()\n {\n int num_chocolates = choArr[baby.row][baby.column-1];\n // change both the choArr and baby position\n baby.column=baby.column-1;\n choArr[baby.row][baby.column]=0;\n return num_chocolates;\n }",
"private void turnLeft(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\tfacingDirection = Direction.WEST;\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tfacingDirection = Direction.EAST;\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tfacingDirection = Direction.SOUTH;\n\t\t\tbreak;\n\t\tcase EAST:\n\t\t\tfacingDirection = Direction.NORTH;\n\t\t}\n\t}",
"public FallingPiece moveLeft(){\r\n return new FallingPiece(coord.moveLeft(), innerPiece);\r\n }",
"public void moveLeftRight(double power){\n\t\trobot.motor0.setPower(-power);\n\t\trobot.motor1.setPower(-power);\n\t\trobot.motor2.setPower(power);\n\t\trobot.motor3.setPower(power);\n\t}",
"public void moveRight() {\n\t\tsetPosX(getPosX() + steps);\n\t}",
"private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }",
"public void turnLeft(Agent agent) throws RemoteException {\n\t\tObject obj = agents.get(agent.getName());\n\t\tPoint point = (Point) obj;\n\t\tif (agent.getRow() != point.x || agent.getColumn() != point.y) {\n\t\t\tSystem.out.println(\"Incompativeis!!!\");\n\t\t\treturn;\n\t\t}\n\t\tsetDirection(agent.getRow(), agent.getColumn(), agent.getName(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tagent.getDirection());\n\t}",
"public void move(long timePassed) {\r\n\t\t// if ship is moving left and reached the left side of the screen, don't move\r\n\t\tif ((dx < 0) && (x < 10)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if ship is moving right and reached the right side of the screen, don't move\r\n\t\tif ((dx > 0) && (x > 530)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsuper.move(timePassed);\r\n\t}",
"public void moveSpaceShipLeft() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveLeft();\n\t}",
"private void moveUnitLeft()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }",
"public void moveRight() {\n\t\tposX += speed;\n\t}",
"public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}",
"public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}",
"public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }",
"private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }",
"@Override\n\tpublic boolean moveLeft() {\n\t\tboolean rs = super.moveLeft();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}",
"private void leftToRightAnimation(View v, int t) {\n ObjectAnimator canonMoveLeft = ObjectAnimator.ofFloat(v, \"translationX\", 0f);\n canonMoveLeft.setDuration(t);\n ObjectAnimator canonMoveRight = ObjectAnimator.ofFloat(v, \"translationX\", 870f);\n canonMoveRight.setDuration(t);\n AnimatorSet moveCanon = new AnimatorSet();\n moveCanon.play(canonMoveRight).before(canonMoveLeft);\n moveCanon.start();\n }",
"public void move()\r\n {\r\n if(goRight)\r\n {\r\n setLocation(getX()+10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }else\r\n {\r\n setLocation(getX()-10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }\r\n if(getY()>getWorld().getHeight())\r\n ((CaveWorld)(getWorld())).deleteAxe(this);\r\n }",
"public abstract void turnLeft();",
"public boolean moveLeft() {\n if (position.isLinked(position.getWest())) {\n position.getGameObjects().remove(this.type);\n position = position.getWest();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"public void moveRight(){\n myRectangle.setX(myRectangle.getX() + PADDLE_SPEED);\n }",
"public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}",
"public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void moveHero(Labirinto lab, String direction, sword espada, ArrayList<dragon> dragons) {\n\t\tlab.getTable()[pos_x][pos_y] = ' ';\n\t\tswitch(direction)\n\t\t{\n\t\tcase \"n\":\n\t\tcase \"N\":\n\t\t\tif (lab.getTable()[pos_x - 1][pos_y] == ' ')\n\t\t\t{\n\t\t\t\tpos_x--;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'E')\n\t\t\t{\n\t\t\t\tpos_x--;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'D' || lab.getTable()[pos_x - 1][pos_y] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x - 1, pos_y).changeState();\n\t\t\t\t\tpos_x--;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_x--;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\tcase \"S\":\n\t\t\tif (lab.getTable()[pos_x + 1][pos_y] == ' ')\n\t\t\t{\n\t\t\t\tpos_x++;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'E')\n\t\t\t{\n\t\t\t\tpos_x++;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'D' || lab.getTable()[pos_x + 1][pos_y] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x + 1, pos_y).changeState();\n\t\t\t\t\tpos_x++;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_x++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"e\":\n\t\tcase \"E\":\n\t\t\tif (lab.getTable()[pos_x][pos_y + 1] == ' ')\n\t\t\t{\n\t\t\t\tpos_y++;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'E')\n\t\t\t{\n\t\t\t\tpos_y++;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'D' || lab.getTable()[pos_x][pos_y + 1] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x, pos_y + 1).changeState();\n\t\t\t\t\tpos_y++;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_y++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"o\":\n\t\tcase \"O\":\n\t\t\tif (lab.getTable()[pos_x][pos_y - 1] == ' ')\n\t\t\t{\n\t\t\t\tpos_y--;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'E')\n\t\t\t{\n\t\t\t\tpos_y--;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'D' || lab.getTable()[pos_x][pos_y - 1] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x, pos_y - 1).changeState();\n\t\t\t\t\tpos_y--;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_y--;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"@Test\n public void testTurnLeft() {\n saab.xPos = 0;\n saab.yPos = 0;\n saab.startEngine();\n\n saab.move();\n\n Assertions.assertEquals(1, saab.direction[0]);\n Assertions.assertEquals(0, saab.direction[1]);\n\n Assertions.assertEquals(0.1, saab.xPos);\n Assertions.assertEquals(0, saab.yPos);\n\n\n saab.turnLeft();\n\n // Should be same position\n Assertions.assertEquals(0.1, saab.xPos);\n Assertions.assertEquals(0, saab.yPos);\n\n // Should be different direction\n Assertions.assertEquals(0, saab.direction[0]);\n Assertions.assertEquals(1, saab.direction[1]);\n\n saab.move();\n\n Assertions.assertEquals(0.1, saab.xPos);\n Assertions.assertEquals(0.1, saab.yPos);\n }",
"public void uturn() {\n\t\tthis.turnLeft(2);\n\t}",
"public void moveLeft(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex -= 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex >= 0) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very first line move to the end of the previous line\n if (lineIndex > 0) {\n lineIndex--;\n currentText = texts.get(lineIndex);\n characterIndex = currentText.getCharacterEdges().length - 1;\n if (characterIndex < 0) {\n characterIndex = 0;\n }\n updatePosition();\n }\n //If this is the first line character index should not change and position does not need to be updated\n else {\n characterIndex = 0;\n }\n }\n }\n }",
"public void moveRight() {\n locX = locX + 1;\n }",
"public void rotLeft()\n\t{\n\t\t//only rotate if a PlayerShip is currently spawned\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\t((PlayerShip)gameObj[1].get(0)).moveLeft();\n\t\t\tSystem.out.println(\"Heading +10 degrees\");\n\t\t}else {\n\t\t\tSystem.out.println(\"there is not currently a player ship spawned\");\n\t\t}\n\t}",
"public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}",
"public void winArrow(){\n hero.incrementArrow();\n }",
"public void moveRight() {\r\n speedX = 6;\r\n Texture r1 = changeImg (\"./graphics/characters/player/rightWalk1.png\");\r\n img = new Sprite (r1);\r\n if (centerX > startScrolling)\r\n bg.setBackX (bg.getBackX () + 6);\r\n bg.update ();\r\n }",
"public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}",
"private void stateMovingLeft(float dt) {\n setPosition(b2body.getPosition().x - getWidth() / 2, b2body.getPosition().y - getHeight() / 2);\n setRegion(bridgeStand);\n\n // Kinematic bodies do not collide with static ones (we can't use WorldContactListener)\n float velX;\n if (getX() <= 0) {\n velX = b2body.getLinearVelocity().x * -1;\n b2body.setLinearVelocity(velX, VELOCITY_Y);\n currentState = State.MOVING_RIGHT;\n }\n }",
"void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}",
"public void rotLeft()\n\t{\n\t\t//only rotate if a PlayerShip is currently spawned\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext ())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif(current instanceof PlayerShip)\n\t\t\t{\n\t\t\t\t((PlayerShip)current).moveLeft();\n\t\t\t\tSystem.out.println(\"Heading -20\");\n\t\t\t\tnotifyObservers();\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(\"There is no playerShip spawned\");\n\t}",
"private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}"
]
| [
"0.75099105",
"0.74561",
"0.73397416",
"0.73300505",
"0.72802985",
"0.7275935",
"0.7267475",
"0.7222571",
"0.7098249",
"0.7092389",
"0.70770985",
"0.7057874",
"0.703321",
"0.70326966",
"0.70285463",
"0.7011999",
"0.7000301",
"0.6972037",
"0.69560283",
"0.6955478",
"0.694717",
"0.68750983",
"0.68493783",
"0.68293107",
"0.68154323",
"0.678936",
"0.6764157",
"0.67567575",
"0.67186075",
"0.67109776",
"0.6693946",
"0.6677222",
"0.666391",
"0.6641177",
"0.6615626",
"0.65848136",
"0.65832555",
"0.6580718",
"0.6545211",
"0.6532421",
"0.6532157",
"0.6531138",
"0.65213686",
"0.6506162",
"0.6493537",
"0.6454527",
"0.64206994",
"0.640522",
"0.6393096",
"0.6377963",
"0.6366155",
"0.6346231",
"0.6294161",
"0.6291502",
"0.62786496",
"0.6261623",
"0.6259585",
"0.6241117",
"0.62381953",
"0.62110054",
"0.6206504",
"0.61995494",
"0.61916775",
"0.6185557",
"0.61539733",
"0.61189306",
"0.6093487",
"0.60605145",
"0.6060038",
"0.60526526",
"0.60516614",
"0.6044981",
"0.6043983",
"0.6041613",
"0.604145",
"0.60288167",
"0.60204154",
"0.6019001",
"0.6008898",
"0.60041165",
"0.5988667",
"0.59880275",
"0.59743446",
"0.5968892",
"0.5968306",
"0.596639",
"0.59642637",
"0.59639907",
"0.5961907",
"0.5959281",
"0.595519",
"0.5952753",
"0.5950763",
"0.59461415",
"0.59446615",
"0.59389406",
"0.5936556",
"0.5935733",
"0.59249085",
"0.59241265"
]
| 0.64355063 | 46 |
Move the Hero right | public void moveRight() {
speedX = 6;
Texture r1 = changeImg ("./graphics/characters/player/rightWalk1.png");
img = new Sprite (r1);
if (centerX > startScrolling)
bg.setBackX (bg.getBackX () + 6);
bg.update ();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void moveRight() {\n\t\t\n\t}",
"private void moveRight(){\n if(getXFromCamera() > -10 && getXFromCamera() < 10){\n getWorld().moveCamera(speed);\n }\n setGlobalLocation(getGlobalX() + speed, getGlobalY());\n animationSpeedRight();\n }",
"public void moveRight() {\n\t\tposX += speed;\n\t}",
"public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}",
"public void moveRight() {\n if (xcoor <= Game.widthOfGameBoard - movingSpeed) {\n xcoor = xcoor + movingSpeed * 2;\n }\n }",
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"void moveRight();",
"private void turnRight() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.SOUTH;\n break;\n case WEST:\n direction = Position.Direction.NORTH;\n break;\n case NORTH:\n direction = Position.Direction.EAST;\n break;\n case SOUTH:\n direction = Position.Direction.WEST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }",
"public void moveRight() {\n\t\tsetPosX(getPosX() + steps);\n\t}",
"public void moveRight(){\n myRectangle.setX(myRectangle.getX() + PADDLE_SPEED);\n }",
"public void moveRight() {\n for(int i=0;i<this.body.size();i++){\n// TranslateTransition translate = new TranslateTransition();\n// translate.setNode(this.body.get(i));\n// smoothSnake obj=new smoothSnake();\n// obj.swiftSnake(translate,i,this,1);\n this.body.get(i).setCenterX(this.body.get(i).getCenterX()+10);\n }\n\n \tsetScoreText();\n }",
"void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}",
"public void moveRight()\n\t{\n\t\tmoveRight = true;\n\t}",
"public void moveRight() {\n locX = locX + 1;\n }",
"public void moveRight(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.RIGHT;\n\t\tif(animation!=ANIMATION.MOVERIGHT) {\n\t\t\tanimation=ANIMATION.MOVERIGHT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.RIGHT;\n\t\tdirection=\"right\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=spd/2;\n\t\tvelY=0;\n\t}",
"private void moveRight(GObject bottom) {\r\n\t\tif(!facingEast) {\r\n\t\t\tdouble x = player.getX();\r\n\t\t\tdouble y = player.getY();\r\n\t\t\tremove(player);\r\n\t\t\tplayer = new GImage(\"PlayerEast.png\");\r\n\t\t\tplayer.scale(.75);\r\n\t\t\tadd(player, x, y);\r\n\t\t\tfacingEast = true;\r\n\t\t}\r\n\t\tif(player.getX() < getWidth() - player.getWidth() - 5 && bottom != null)\r\n\t\t\tplayer.move(PLAYER_X_MOTION, 0);\r\n\t}",
"public void moveRight() {\n this.accelerateXR();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(74);\n this.setLoopCells(true);\n }",
"public void right() {\n if (x + movementSpeed < 450) {\r\n x = x + movementSpeed;\r\n }\r\n }",
"public void strafeRight()\r\n\t{\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] += Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] += Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}",
"public void moveRight() {\n Coordinate rightCoord = new Coordinate(getX() + 1, getY());\n handleMove(rightCoord, InteractionHandler.RIGHT);\n }",
"public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }",
"public void moveRight() {\n this.position.addColumn(1);\n }",
"public void moveRight() {\n if (!this.state.equals(\"onRightWall\")) {\n this.dir = 1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }",
"protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }",
"public void turnRight()\r\n\t{\r\n\t\theading += 2; //JW\r\n\t\t//Following the camera\r\n\t\t//heading += Math.sin(Math.toRadians(15)); \r\n\t\t//heading += Math.cos(Math.toRadians(15));\r\n\t}",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"public void moveRight() {\n \t\n \tif(!move.moveRight()) {\n \t\tif(physinteractor(getX()+1,getY())) {\n \t\t\tmove.moveRight();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \t//System.out.print(\"I moved right\" + getX() + getY());\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }",
"public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}",
"public void moveRight()\n {\n if (xPos == xBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive X because we are moving RIGHT! \n movementX = 0.5;\n movementY = 0;\n }",
"public void moveRight() {\n this.velocity = this.velocity.add(rightVelocity());\n }",
"public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}",
"public void goRight() {\n\t\tx += dx;\n\t\tbgBack.setDx(false);\n\t\tbgBack.move();\n\t\tif(x > Game.WIDTH - 200) {\n\t\t\tif(!bgBack.getReachEnd()) {\n\t\t\t\tx = Game.WIDTH - 200;\n\t\t\t\tbgFront.setDx(false);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x > Game.WIDTH - 50) {\n\t\t\t\tx = Game.WIDTH - 50;\n\t\t\t}\n\t\t}\n\t}",
"public static void turnRight() {\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.backward();\n }",
"@FXML\n\tprivate void moveRight(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\tif(l.rightValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveRight();\n\t\t\tsetCurrentPos();\n\t\t\t\n\t\t\tif(combatroll <= 80) { // Roll for combat\n\t\t\t\t\n\t\t\tcombat();\t\n\t\t\t}else if(itemroll>=40) {\n\t\t\t\trollCommonDrop();\n\t\t\t}\n\t\t}else {\n\t\t\treturn;\n\t\t}\n\t}",
"public void moveRight()\n\t{\n\t\tx = x + STEP_SIZE;\n\t}",
"public void slideRight() {\n turnRight();\n move();\n turnLeft();\n }",
"public void moveRight() {\n speedX += (speedX < 0) ? acceleration * 2 : acceleration;\n if (speedX > maxSpeed) {\n speedX = maxSpeed;\n }\n direction = Direction.RIGHT;\n }",
"@Override\r\n\tpublic void onRight() {\n\t\tif (snakeView.smer != snakeView.ZAHOD) {\r\n\t\t\tsnakeView.naslednjaSmer = snakeView.VZHOD;\r\n\t\t}\r\n\t}",
"public void turnRight ()\n\t{\n\t\t//changeFallSpeed (1);\n\t\tturnInt = 1;\n\t}",
"public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }",
"public void turnRight() {\n\t\tthis.setSteeringDirection(getSteeringDirection()+5);\n\t}",
"private void playerMoveRight()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() + 1);\n if (this.getCurrentX() < 11) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }",
"private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }",
"public void move()\r\n {\r\n if(goRight)\r\n {\r\n setLocation(getX()+10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }else\r\n {\r\n setLocation(getX()-10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }\r\n if(getY()>getWorld().getHeight())\r\n ((CaveWorld)(getWorld())).deleteAxe(this);\r\n }",
"public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}",
"public void moveRight(double dt) {\r\n double adjustedSpeed = this.mySpeed * dt;\r\n if (this.myPaddle.getUpperRight().getX() + adjustedSpeed < 800) {\r\n myPaddle.getUpperLeft().setPosition(\r\n myPaddle.getUpperLeft().getX() + adjustedSpeed,\r\n myPaddle.getUpperLeft().getY());\r\n myPaddle.getLowerLeft().setPosition(\r\n myPaddle.getLowerLeft().getX() + adjustedSpeed,\r\n myPaddle.getLowerLeft().getY());\r\n myPaddle.getUpperRight().setPosition(\r\n myPaddle.getUpperRight().getX() + adjustedSpeed,\r\n myPaddle.getUpperRight().getY());\r\n myPaddle.getLowerRight().setPosition(\r\n myPaddle.getLowerRight().getX() + adjustedSpeed,\r\n myPaddle.getLowerRight().getY());\r\n this.thisOne.setRect(myPaddle);\r\n } else {\r\n myPaddle.getUpperLeft().setPosition(800 - this.width, getUpperLeftY);\r\n myPaddle.getLowerLeft().setPosition(800 - this.width, getUpperLeftY + 10);\r\n myPaddle.getUpperRight().setPosition(800, getUpperLeftY);\r\n myPaddle.getLowerRight().setPosition(800, getUpperLeftY + 10);\r\n this.thisOne.setRect(myPaddle);\r\n }\r\n\r\n }",
"public void setHeroWalkRight(Animation<TextureRegion> heroWalkRight) {\n this.heroWalkRight = heroWalkRight;\n }",
"public void turnRight() { turn(\"RIGHT\"); }",
"public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }",
"public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }",
"@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}",
"private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}",
"public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}",
"public void moveHero(Labirinto lab, String direction, sword espada, ArrayList<dragon> dragons) {\n\t\tlab.getTable()[pos_x][pos_y] = ' ';\n\t\tswitch(direction)\n\t\t{\n\t\tcase \"n\":\n\t\tcase \"N\":\n\t\t\tif (lab.getTable()[pos_x - 1][pos_y] == ' ')\n\t\t\t{\n\t\t\t\tpos_x--;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'E')\n\t\t\t{\n\t\t\t\tpos_x--;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'D' || lab.getTable()[pos_x - 1][pos_y] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x - 1, pos_y).changeState();\n\t\t\t\t\tpos_x--;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_x--;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\tcase \"S\":\n\t\t\tif (lab.getTable()[pos_x + 1][pos_y] == ' ')\n\t\t\t{\n\t\t\t\tpos_x++;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'E')\n\t\t\t{\n\t\t\t\tpos_x++;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'D' || lab.getTable()[pos_x + 1][pos_y] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x + 1, pos_y).changeState();\n\t\t\t\t\tpos_x++;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_x++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"e\":\n\t\tcase \"E\":\n\t\t\tif (lab.getTable()[pos_x][pos_y + 1] == ' ')\n\t\t\t{\n\t\t\t\tpos_y++;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'E')\n\t\t\t{\n\t\t\t\tpos_y++;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'D' || lab.getTable()[pos_x][pos_y + 1] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x, pos_y + 1).changeState();\n\t\t\t\t\tpos_y++;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_y++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"o\":\n\t\tcase \"O\":\n\t\t\tif (lab.getTable()[pos_x][pos_y - 1] == ' ')\n\t\t\t{\n\t\t\t\tpos_y--;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'E')\n\t\t\t{\n\t\t\t\tpos_y--;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'D' || lab.getTable()[pos_x][pos_y - 1] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x, pos_y - 1).changeState();\n\t\t\t\t\tpos_y--;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_y--;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"private boolean moveRight() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() + rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() + rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}",
"public void moveRight(int x){\r\n \tbox.translate(x,0);\r\n \tif (selfmove){ //if the frog is moving itself\r\n \t\timg = imgs[1]; //draw a moving animation\r\n \t\tdelay = 10; //for 10 frames\r\n \t}\r\n \t\r\n }",
"public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}",
"public void uturn() {\n\t\tthis.turnLeft(2);\n\t}",
"public FallingPiece moveRight(){\r\n return new FallingPiece(coord.moveRight(), innerPiece);\r\n }",
"private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}",
"public void calRightMove() {\n }",
"private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}",
"private void moveHeroTo(Player hero, int x, int y, Board board) {\n board.removeObject(\n \"player\",\n hero.getPlayerMovement().getYPosition(), 1,\n hero.getPlayerMovement().getXPosition(), 1);\n boolean worked = board.addObject(hero.getPlayerImage(),\n \"player\", false, y, 1, x, 1);\n if (worked) {\n hero.getPlayerMovement().setXPosition(x);\n hero.getPlayerMovement().setYPosition(y);\n }\n }",
"private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot.rightFront.setPower(-TURN_POWER);\n }",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"private void RightLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n \t\t}}\n \t\t\n\t\t\n\t}",
"public boolean moveRight() {\r\n\t\tif (this.x >= 1050 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x += 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public void moveSpaceShipRight() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveRight();\n\t}",
"public void winArrow(){\n hero.incrementArrow();\n }",
"public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }",
"@Override\n\tpublic void run() {\n\t\tmoveRight();\n\t}",
"public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\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}\n\t\t\t}\n\t\t}\n\t}",
"public void move(){\n\t\t\n\t}",
"public void moveRight()\n\t{\n\t\tcol++;\n\t}",
"public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}",
"public void move(String direction) {\n \n }",
"@Override\n\tpublic void onTurnRight(PlatformPlayer player) {\n\t\t\n\t}",
"public void setMoveRight(boolean TorF) {\n moveRight = TorF;\n }",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"void moveRight() {\n\t\ttry {\n\t\t\twhile(x + 60 < getWidth()) {\n\t\t\t\tx += 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t} catch(InterruptedException e) {\n\t\t}\n\t}",
"private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}",
"private static void turnRight(Robot r) \n {\n for(int i=0; i<3;i++)\n {\n r.turnLeft();\n }\n }",
"public void rotRight()\n\t{\n\t\t//only rotate if a PlayerShip is currently spawned\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\t((PlayerShip)gameObj[1].get(0)).moveRight();\n\t\t\tSystem.out.println(\"Heading -10 degrees\");\n\t\t}else {\n\t\t\tSystem.out.println(\"there is not currently a player ship spawned\");\n\t\t}\n\t}",
"private void RightRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n\t}",
"protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }",
"private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }",
"public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}",
"private void switchHeroSide(Player hero, Board board) {\n board.removeObject(\n \"player\",\n hero.getPlayerMovement().getYPosition(), 1,\n hero.getPlayerMovement().getXPosition(), 1);\n boolean worked = board.addObject(hero.getPlayerImage(),\n \"player\", false,\n hero.getPlayerMovement().getYPosition(), 1,\n hero.getPlayerMovement().getXPosition(), 1);\n }",
"public void moveLeftRight(double power){\n\t\trobot.motor0.setPower(-power);\n\t\trobot.motor1.setPower(-power);\n\t\trobot.motor2.setPower(power);\n\t\trobot.motor3.setPower(power);\n\t}",
"@Override\n public void hero_dies() {\n SoundPlayer.playHeroDies();\n this.stop();\n\n get_hero().setPosition(PLAYER_START_POSITION);\n start();\n\n // setting every flower to its original position\n //reason: hero can knock the flower out of the pipe when it hits it\n for (int i = 0; i < get_pipes().size(); i++) {\n if (get_pipes().get(i).with_flower()) {\n get_pipes().get(i).get_flower().setLinearVelocity(new Vec2(0f, 0f));\n get_pipes().get(i).get_flower().setPosition(get_pipes().get(i).get_flower().get_original_position());\n }\n }\n \n for (int i = 0; i < get_fire_rods().size(); i++) {\n get_fire_rods().get(i).reset_position();\n }\n get_hero().addLife(-1);\n if (get_hero().get_life() < 1){\n getGameController().gameOver();\n //get_sound_player().stop_level_two_music();\n }\n }",
"public void turn() {\n rightMotor.resetTachoCount();\n rightMotor.setSpeed(DEFAULT_TURN_SPEED);\n leftMotor.setSpeed(DEFAULT_TURN_SPEED);\n rightMotor.forward();\n leftMotor.backward();\n\n }",
"public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }",
"public void moveRight() {\n if (rec.getUpperLeft().getX() + rec.getWidth() + 5 > rightBorder) {\n rec.getUpperLeft().setX(rightBorder - rec.getWidth());\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() + 5);\n }\n }",
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"public void move();"
]
| [
"0.72283155",
"0.71939117",
"0.7182932",
"0.7155825",
"0.71471345",
"0.7137116",
"0.7132462",
"0.7115105",
"0.70663",
"0.7066002",
"0.70507896",
"0.7034816",
"0.69721174",
"0.6926746",
"0.69253683",
"0.68799037",
"0.6858147",
"0.68061876",
"0.68028367",
"0.68005234",
"0.6794831",
"0.6760325",
"0.6752603",
"0.6748544",
"0.6738386",
"0.67326564",
"0.67306167",
"0.6705337",
"0.6676411",
"0.66740245",
"0.66552",
"0.6652645",
"0.6637717",
"0.6613027",
"0.66016287",
"0.6571703",
"0.65465975",
"0.65409756",
"0.65378934",
"0.65308267",
"0.6524464",
"0.65076846",
"0.6463964",
"0.64390534",
"0.64164084",
"0.6408458",
"0.63999563",
"0.63974744",
"0.6391496",
"0.6383777",
"0.6373197",
"0.63553923",
"0.6347744",
"0.6321453",
"0.6275796",
"0.62656176",
"0.62514615",
"0.6239323",
"0.62386054",
"0.62319076",
"0.6226424",
"0.6223566",
"0.6217627",
"0.61689144",
"0.61628723",
"0.6142413",
"0.61418134",
"0.61212796",
"0.6116397",
"0.6110514",
"0.6102864",
"0.60907733",
"0.60902506",
"0.60901064",
"0.60840106",
"0.60811865",
"0.6076555",
"0.6076015",
"0.60728675",
"0.60602427",
"0.60574454",
"0.6041984",
"0.60386884",
"0.60368407",
"0.602863",
"0.6026773",
"0.60193825",
"0.6009992",
"0.6000245",
"0.5999241",
"0.59941995",
"0.59920686",
"0.59880155",
"0.5975003",
"0.5963985",
"0.5958814",
"0.59556687",
"0.59529024",
"0.5947332",
"0.5947214"
]
| 0.70874935 | 8 |
Update the window about the Hero's position | public void update(RenderWindow window) {
bg.update (); //update X and scroll background accordingly
updateXPosition ();
updateYPosition (); // Updates Y Position
handleJumping (); // Handles Jumping
Font fontStyle = new Font(); //load font
try {
fontStyle.loadFromFile(Paths.get(FontFile));
} catch (IOException ex) {
ex.printStackTrace( );
}
Text healthbar = new Text(("health: " + String.valueOf(getCurrentHealth())), fontStyle, 15);
healthbar.setColor(Color.GREEN);
healthbar.setStyle(Text.BOLD | Text.UNDERLINED);
healthbar.setPosition(centerX, centerY-15);
if(this.getCurrentHealth() <= 50) {
healthbar.setColor(Color.YELLOW);
}
if(this.getCurrentHealth() <= 25) {
healthbar.setColor(Color.RED);
}
window.draw(background);
window.draw(healthbar);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this ration th=o set the new meter value\r\n\t\tEnvironmentVariables.setMeter(EnvironmentVariables.getMeter() * ratio);\r\n\t\t\r\n\t\t//use the ratio to set all objects new location\r\n\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tif(EnvironmentVariables.getMainPlayer() != null) {\r\n\t\t\tEnvironmentVariables.getMainPlayer().setX(EnvironmentVariables.getMainPlayer().getX() * ratio);\r\n\t\t\tEnvironmentVariables.getMainPlayer().setY(EnvironmentVariables.getMainPlayer().getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}",
"public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }",
"public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }",
"public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }",
"public void moveCharacter(Stage mainWindow, Scene scene, Player hero, Board board) {\n mainWindow.setScene(scene);\n timer.start();\n\n }",
"void update(){\r\n\t\twindowHeight = this.getHeight();\r\n\t}",
"public void initialHeroCastle() {\n Pair<Integer, Integer> heroCastlePosition = world.getHeroCastlePosition();\n SimpleIntegerProperty x2 = new SimpleIntegerProperty();\n SimpleIntegerProperty y2 = new SimpleIntegerProperty();\n x2.set(heroCastlePosition.getValue0());\n y2.set(heroCastlePosition.getValue1());\n String type = \"HeroCastle\";\n Building heroBuilding = new HeroCastleBuilding(x2, y2, type, 0);\n ImageView view = new ImageView(heroBuilding.getImage());\n addEntity(heroBuilding, view);\n squares.getChildren().add(view);\n }",
"public void updateScreen(){}",
"void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t\tif(!this.explShowing)\n\t\t{\n\t\t\tx+= dx;\n\t\t\ty+= dy;\n\t\n\t\t\tif(x < 0)\n\t\t\t{\n\t\t\t\tx = 0;\n\t\t\t\tdx = dx *-1;\n\t\t\t}\n\t\t\telse\n\t\t\tif(x + w > MainGame.getInstance().X_WORLD_END)\n\t\t\t{\n\t\t\t\tx = MainGame.getInstance().X_WORLD_END - w ;\n\t\t\t\tdx = dx *-1;\t\n\t\t\t}\n\t\n\t\t\tif(y < 0)\n\t\t\t{\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t\telse\n\t\t\tif(y + h > MainGame.getInstance().Y_WORLD_END)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t}\n\t\t\n\t\ts.update();\n\t\n\t\tif(this.explShowing)\n\t\t{\n\t\t\tif(expl.isHasFinished())\n\t\t\t{\n\t\t\t\texplShowing = false;\n\t\t\t\ts = this.normalImage;\n\t\t\t\tthis.x = this.xStart;\n\t\t\t\tthis.y = this.yStart;\n\t\t\t\ts.setX(this.xStart);\n\t\t\t\ts.setY(this.yStart);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//s.setX(x);\n\t\t//s.setY(y);\n\t\t\n\t\tthis.rect.setFrame(getX(),getY(),getW(),getH());\t\n\t}",
"@Override\n public void start(Stage stage) throws Exception {\n window = stage;\n rootPane = new BorderPane(); //Spans the entire window.\n clientID = 1; //THE CLIENT ID IS OFFICIALLY 1\n //displayedLocationPane = new BorderPane(); //A displayedLocationPane\n //displayedLocationPane.setStyle(\"-fx-background-color: pink\");\n World guiWorld = new WorldImpl(); //This is the different world.\n GUIWorldManager worldManager = new GUIWorldManager(guiWorld);\n worldManager.makeCharactersInWorld(guiWorld);\n clientChar = guiWorld.getCharacter(clientID);\n LocationHome home = new LocationHome(clientChar); //Note: GUILocationPane\n\n //Creating characters\n for(PlayerCharacter each : guiWorld.getCharacters().values()) {\n guiCharacters.put(each.getId(), each); //Put the characters in a data structure so that they can be kept track of\n home.placePlayer(each); //home.placePlayer initially places a sprite on the board.\n each.addMovementListener(new MovementListener() {\n @Override\n public void thingMoved(int thingId, Position position) {\n //System.out.println(\"Movemade\");\n\n Platform.runLater(() -> {\n try {\n home.relocatePlayer(guiCharacters.get(thingId));\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n });\n }\n });\n }\n\n\n\n System.out.println(\"Client Id: \" + clientID);\n clientChar = guiCharacters.get(clientID);\n home.attachDialoguePane();\n //rootPane.setStyle(\"-fx-background-color: pink\");\n //home.setStyle(\"-fx-background-color: pink\");\n //home.setStyle(\"-fx-background-color: green\");\n //displayedLocationPane.getChildren().addAll(home);\n rootPane.getChildren().addAll(home);\n Scene currScene = new Scene( rootPane, 1024, 1024 );//Passing the rootPane/group to currScene\n currScene.getStylesheets().add(\"/spoonstyle.css\");\n stage.setScene(currScene); //Make currScene contents visible\n GUIMovementKeys keyInputObj = new GUIMovementKeys(currScene);\n keyInputObj.addMovementKeysToScene(currScene, clientChar); //Makes the current scene capable of accepting input and moving the client player\n keyInputObj.setClientSprite(home.getClientSprite());\n keyInputObj.setAllSprites(home.getAllPlayerSpritesInLocation());\n stage.setTitle(\"Spoon Game\");\n stage.show();\n// System.out.println(\"rootPane width and height: \" + rootPane.getWidth() + \" \" + rootPane.getHeight());\n// System.out.println(\"home width and height: \" + home.getWidth() + \" \" + home.getHeight());\n// System.out.println(\"displayablelocation width and height: \" + displayedLocationPane.getWidth() + \" \" + displayedLocationPane.getHeight());\n\n //LocationHome home = new LocationHome(guiCharacters.get(1));\n\n\n //#TODO: How does the backend know its client's player?\n new Timer().schedule(\n new TimerTask() {\n\n @Override\n public void run() {\n guiWorld.timestep();\n }\n }, 0, 5);\n\n\n //worldManager.backendTimeStep(guiWorld);\n\n }",
"@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }",
"public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"void home() {\n\t\tx = y = 10;\n\t\twin.repaint();\n\t}",
"public void updateScreen()\n {\n super.updateScreen();\n }",
"public void scrollScreen(){\r\n//for smile\r\n\t\tif (smile.getY() < (Constants.GAMEHEIGHT/3)){\r\n\r\n\t\t\tfor (int a = 0; a < arrayPlat.size(); a++){\r\n\r\n\t\t\t\tarrayPlat.get(a).setY(arrayPlat.get(a).getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\t\t\t\t\t\t}\r\n\t\t\t//for monster\r\n\t\t\tfor(Monster monster:arrayMonster) {\r\n\t\t\t\tmonster.setY(monster.getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsmile.setY(Constants.GAMEHEIGHT/3);\r\n\r\n\t\t}\r\n\r\n\t}",
"private void youWin() {\r\n\t\tImage win = new Image(\"win.png\", 1000, 0, true, true);\r\n\t\tImageView winIV = new ImageView(win);\r\n\t\twinIV.setX(0);\r\n\t\twinIV.setY(500);\r\n\t\troot.getChildren().add(winIV);\r\n\t}",
"@Override\n public void run() {\n ((ImageView)findViewById(R.id.home_oa)).getLocationInWindow(move);\n scrollView.scrollTo(0, move[1]-Utils.getStatusBarHeight(HomeActivity.this));\n }",
"public void updateScreen() {\n\t\t++this.panoramaTimer;\n\t}",
"public void clawOpen(){\n claw.setPosition(0.1);\n }",
"@Override\n public void update() {\n adjustRenderHitbox();\n if (renderHurtboxes) {\n renderHurtbox.setRect(player.getHurtbox().x / 1920 * gameWidth, player.getHurtbox().y / 1080 * gameHeight, player.getHurtbox().width / 1920 * gameWidth, player.getHurtbox().height / 1080 * gameHeight);\n }\n updateAnimationLoop();\n }",
"public void updateHud() {\r\n\r\n\t\tif (m_planet.getCoordinateSystemType() == Planet.CoordinateSystemType.GEOCENTRIC) {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Hud.getSexagesinal(m_planet.getLongitude(), true);\r\n\t\t\tlat = Hud.getSexagesinal(m_planet.getLatitude(), false);\r\n\t\t\t\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t} else {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Double.toString(m_planet.getLongitude());\r\n\t\t\tlat = Double.toString(m_planet.getLatitude());\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t}\r\n\t\t\r\n\t\tcompass.setScale(new Vec3(75,75,75));\r\n\t\tcompass.setPosition(new Vec3(m_canvas3d.getWidth()-70,m_canvas3d.getHeight()-70,0));\r\n\t\t// Repainting view\r\n\t\tif (m_canvas3d != null)\r\n\t\t\tm_canvas3d.repaint();\r\n\t}",
"public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }",
"public void openGamePane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(GAMEPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\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\tgamePane.setBackground(new Background(new BackgroundFill(new Color(195/256.0,222/256.0,250/256.0,1),CornerRadii.EMPTY, Insets.EMPTY)));\n\t\tgameObjects=new HashMap<Integer,GameObjectVisualComponent>();\n\t\tpodium=new ArrayList<Text>();\n\t\tpodium.add(new Text(gamePane.getWidth()-100,15,\"TOP\"));\n\t\tgamePane.getChildren().add(podium.get(0));\n\t}",
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }",
"public HousingAnimation() {\n\t\tsetSize(WINDOW_X, WINDOW_Y);\n\t\tsetVisible(true);\n\n\t\tTimer timer = new Timer(TENANT_SPEED, this);\n\t\ttimer.start();\n\t\n\t\t//addGui(tenant.getGui());\n\t}",
"public void updateInfo()\n\t{\n\t\twidth = Game.frame.getWidth();\n\t\theight = Game.frame.getHeight();\n\t\tGame.frame.revalidate();\n\t\tGame.frame.repaint();\n\t}",
"@Override\n\tpublic void show() {\n\t\tworld = new Worlds();\n\t\trenderer = new WorldRenderer(world, false);\n\t\tcontroller = new WorldController(world);\n\t\tGdx.input.setInputProcessor(this);\n\t}",
"public void update() {\n if (showBar) {\n cp5.getController(\"bar\").setPosition(bX, bY - ih);\n cp5.getController(\"bar\").setSize(bW - iw, ih);\n cp5.getController(\"exit_btn_\" + id).setPosition(bX + bW - cp5.getController(\"exit_btn_\" + id).getWidth(), bY - cp5.getController(\"exit_btn_\" + id).getHeight());\n }\n\n if (isActive) {\n draw();\n\n if (WIN_GROUP != null)\n WIN_GROUP.setPosition(bX, bY + bH + WIN_GROUP.getHeight() + 1);\n\n if (!cp5.isVisible()) {\n cp5.show();\n }\n } else if (cp5.isVisible() && !isActive) {\n cp5.hide();\n }\n }",
"public void update() {\n this.infoWindowManager.update();\n }",
"Point onScreen();",
"@Override\n public void show() {\n player = new Player(game.getAssetManager().get(\"player.png\", Texture.class), world, new Vector2(1, 2));\n floor = new Floor(game.getAssetManager().get(\"floor.png\", Texture.class), world, new Vector2(0, 0 + 0.5f), 20f, 1f);\n hud = new HUD();\n\n stage.addActor(floor);\n stage.addActor(player);\n\n //TODO: AUTOGENERATE when the player goes up.\n platforms.clear();\n int ax = (int) (Math.random() * 5 + 0);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(ax, 3), 1.2f, 0.3f));\n for (int i = 3; i <= 25; i++) {\n\n int x, y;\n x = (int) (Math.random() * 4.5 + 0.5);\n y = ((int) (Math.random() * 3 + 1)) + i;\n\n while ((x < ax && x > ax + 1f) && (x > ax && x < ax - 1f)) {\n x = (int) (Math.random() * 4.5 + 0.5);\n }\n Gdx.app.log(\"kk\",x+\"x\"+y);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(x, y), 1f, 0.3f));\n ax = x;\n }\n\n for (Platform platform : platforms) {\n stage.addActor(platform);\n }\n\n stage.getCamera().position.set(cameraInitialPosition);\n stage.getCamera().update();\n\n playing = false;\n jumps = 0;\n lastPlatformTouched = 0;\n\n song.play();\n\n }",
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"public void updateView(GameScreen game) {\n Vector2 playerPos = game.getCurrentPlayer().getPosition();\n\n Vector2 gameBounds = game.getBounds();\n\n Vector2 viewSize = getSize();\n\n float gWidth = gameBounds.x;\n float gHeight = gameBounds.y;\n\n float cHalfWidth = viewSize.x / 2;\n float cHalfHeight = viewSize.y / 2;\n\n if (playerPos.x > -gWidth + cHalfWidth\n && playerPos.x < gWidth - cHalfWidth) {\n pos = new Vector2(playerPos.x, pos.y);\n }\n if (playerPos.y > -gHeight + cHalfHeight\n && playerPos.y < gHeight - cHalfHeight) {\n pos = new Vector2(pos.x, playerPos.y);\n }\n view.setCenter(pos.toVector2f());\n }",
"void title_screen_setup() {\n // Logo setup\n title_image_view = new ImageView(logo_image);\n title_image_view.setX(scene_width/2.0 - Dimensions.TITLE_WIDTH/2.0);\n title_image_view.setY(Dimensions.TITLE_Y_PADDING);\n title_screen_pane.getChildren().add(title_image_view);\n\n // Text setup\n instructions_text = new Text(\"Instructions\");\n instructions_text.setFont(Font.font (\"Verdana\", FontWeight.BOLD, 40));\n instructions_text.setTranslateX(scene_width/2.0 - instructions_text.getLayoutBounds().getWidth()/2);\n instructions_text.setTranslateY(title_image_view.getTranslateY() + 2 * Dimensions.TITLE_HEIGHT);\n title_screen_pane.getChildren().add(instructions_text);\n\n controls_text = new Text(\"ENTER - Start Game\\n\" +\n \"A or ◄, D or ► - Move ship left or right\\n\" +\n \"SPACE - Fire!\\n\" +\n \"Q - Quit Game\\n\" +\n \"1 or 2 or 3 - Start Game at a specific level\");\n controls_text.setTextAlignment(TextAlignment.CENTER);\n controls_text.setFont(Font.font (\"Arial\", 25));\n controls_text.setTranslateX(scene_width/2.0 - controls_text.getLayoutBounds().getWidth()/2);\n controls_text.setTranslateY(instructions_text.getTranslateY() + controls_text.getLayoutBounds().getHeight()/2);\n title_screen_pane.getChildren().add(controls_text);\n\n assignment_text = new Text(\"Implemented by Wendy Xu (20631406) for CS 349, University of Waterloo, W20\");\n assignment_text.setFont(Font.font (\"Arial\", 13));\n assignment_text.setTranslateX(scene_width/2.0 - assignment_text.getLayoutBounds().getWidth()/2);\n assignment_text.setTranslateY(scene_height- assignment_text.getLayoutBounds().getHeight());\n title_screen_pane.getChildren().add(assignment_text);\n }",
"private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}",
"public void update()\n\t{\n\t\t// Place this GameCanvas at the proper location and size\n\t\tthis.setBounds(0, 0, game.getWindow().getWidth(), game.getWindow().getHeight());\n\t\t\n\t\tif (timeCount > game.getFps())\n\t\t\ttimeCount = 0;\n\t\t\n\t\ttimeCount++;\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void Onwin(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice2]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }",
"private void draw() {\n model.tick();\n\n List<Entity> entities = model.getCurrentLevel().getEntities();\n\n for (EntityView entityView: entityViews) {\n entityView.markForDelete();\n }\n\n double heroXPos = model.getCurrentLevel().getHeroX();\n heroXPos -= xViewportOffset;\n\n if (heroXPos < VIEWPORT_MARGIN) {\n if (xViewportOffset >= 0) {\n xViewportOffset -= VIEWPORT_MARGIN - heroXPos;\n if (xViewportOffset < 0) {\n xViewportOffset = 0;\n }\n }\n } else if (heroXPos > width - VIEWPORT_MARGIN) {\n xViewportOffset += heroXPos - (width - VIEWPORT_MARGIN);\n }\n\n backgroundDrawer.update(xViewportOffset);\n\n for (Entity entity: entities) {\n boolean notFound = true;\n for (EntityView view: entityViews) {\n if (view.matchesEntity(entity)) {\n notFound = false;\n view.update(xViewportOffset);\n break;\n }\n }\n if (notFound) {\n EntityView entityView = new EntityViewImpl(entity);\n entityViews.add(entityView);\n pane.getChildren().add(entityView.getNode());\n }\n }\n\n for (EntityView entityView: entityViews) {\n if (entityView.isMarkedForDelete()) {\n pane.getChildren().remove(entityView.getNode());\n }\n }\n entityViews.removeIf(EntityView::isMarkedForDelete);\n\n if (model.heroDead()) {\n try {\n java.util.concurrent.TimeUnit.SECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.restartLevel();\n }\n if (model.finish()) {\n Text finished = new Text(\"F I N I S H E D !\");\n finished.setFont(new Font(50));\n finished.setX(model.getCurrentLevel().getWidth()/2-150);\n finished.setY(model.getCurrentLevel().getHeight()/2);\n pane.getChildren().add(finished);\n } else if (model.gameOver()) {\n Text finished = new Text(\"G A M E O V E R !\");\n finished.setFont(new Font(50));\n finished.setX(model.getCurrentLevel().getWidth()/2-200);\n finished.setY(model.getCurrentLevel().getHeight()/2);\n pane.getChildren().add(finished);\n\n lives.setText(\"Lives: \" + model.getLives());\n lives.setFont(new Font(20));\n lives.setX(width-100);\n lives.setY(30);\n\n } else {\n elapsedTime = (new Date()).getTime() - model.getStartTime();\n elapsedTime = elapsedTime/1000;\n time.setText(\"Time: \" + elapsedTime);\n time.setFont(new Font(20));\n time.setX(30);\n time.setY(30);\n lives.setText(\"Lives: \" + model.getLives());\n lives.setFont(new Font(20));\n lives.setX(width-100);\n lives.setY(30);\n }\n\n\n\n\n\n }",
"public void moveAndDraw(Graphics window)\r\n {\n Color temp = getColor();\r\n\t\tdraw(window, Color.WHITE);\r\n\t\tsetPos(getXSpeed()+xSpeed, getYSpeed()+ySpeed);\r\n\t\tdraw(window, temp);\r\n\t\t//setY\r\n\r\n\t\t//draw the ball at its new location\r\n }",
"@Override\r\n\tpublic void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\t\t_resolutionResolver = new ScaledResolution(Minecraft.getMinecraft(), Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);\r\n\t\tthis.width = _resolutionResolver.getScaledWidth();\r\n\t\tthis.height = _resolutionResolver.getScaledHeight();\r\n\r\n\t\t// Handle when the player clicked on a cell\r\n\t\tif (_selectedCell != -1) {\r\n\t\t \r\n\t\t\t// make sure we have our player or otherwise we will\r\n\t\t // not be able to set the correct position for the player\r\n\t\t\tif (HubbyUtils.getServerPlayer() != null) {\r\n\t\t\t\tint cellIndex = _startCell + _selectedCell;\r\n\t\t\t\tif (cellIndex < UltraTeleportWaypoint.getWaypointCount()) {\r\n\t\t\t\t UltraTeleportWaypoint p = UltraTeleportWaypoint.getWaypoints().get(cellIndex);\r\n\t\t\t\t double posX = p.getPos().getX();\r\n\t\t\t\t double posY = p.getPos().getY();\r\n\t\t\t\t double posZ = p.getPos().getZ();\r\n\t\t\t\t float yaw = p.getRotationY();\r\n\t\t\t\t float pitch = p.getRotationX();\r\n\r\n\t\t\t\t // Get the client world to be able to find the proper block for teleporting\r\n\t\t\t\t World world = HubbyUtils.getClientWorld();\r\n\t\t\t\t if (world != null) {\r\n\t\t\t\t while (true) {\r\n\t\t\t\t \tBlockPos pos = new BlockPos(posX, posY, posZ);\r\n\t\t\t\t if (world.isAirBlock(pos)) {\r\n\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t\t posY += 1.0d;\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\r\n\t\t\t\t // Update the player's location on the server and then\r\n\t\t\t\t // that will pass down to the client player and update his\r\n\t\t\t\t // position as well\r\n\t\t\t\t HubbyUtils.getServerPlayer().playerNetServerHandler.setPlayerLocation(posX, posY, posZ, yaw, pitch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t_selectedCell = -1;\r\n\t\t}\r\n\r\n\t\t// update selected list\r\n for (int i = 0; i < UltraTeleportWaypoint.getWaypointCount(); ++i) {\r\n if (i >= _selectedList.size()) {\r\n _selectedList.add(false);\r\n }\r\n }\r\n\r\n // Only show delete button when we have something selected\r\n if (getSelectedCount() > 0) {\r\n this.buttonList.add(_deleteButton);\r\n }\r\n else {\r\n this.buttonList.clear();\r\n }\r\n\t}",
"private void handleWin(){\n\t\tScreen cs = new Screen(this.getStage(), \"Highscore\", \"View/WinScreen.fxml\");\n\t\tController controller = new HighscoreScreenController(this.getStage(), this.originalMap,\n\t\t\t\t Math.max(100 - (int)(this.timeConsumed), 0));\n\t\tcs.display(controller);\n\t}",
"private void winScreen() {\n timer.stop();\n gameModel.setState(\"Win Screen\");\n WinScreen screen = new WinScreen(width, height);\n Button replayButton = screen.getReplayButton();\n replayButton.setOnAction(e -> {\n try {\n Controller newGame = new Controller();\n newGame.start(mainWindow);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n Button exitButton = screen.getExitButton();\n exitButton.setOnAction(e -> {\n System.exit(0);\n });\n Scene scene = screen.getScene();\n mainWindow.setScene(scene);\n }",
"public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}",
"public StageScreen() {\n initComponents();\n hp_1.setValue(0);\n hp_2.setValue(0);\n \n // new animationAndRepainting().setVisible(true);\n }",
"public ViewGuaranterWindow() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }",
"public void updateWindowsForAnimator() {\n forAllWindows(this.mUpdateWindowsForAnimator, true);\n }",
"public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }",
"public void createWinWindow(float cameraX, float cameraY) {\n\t\tcamera.position.x = cameraX;\r\n\t\tcamera.position.y = cameraY;\r\n\t\tcamera.update();\r\n\t\twinMenu = new Table();\r\n\t\twinMenu.setBackground(blueRectangle);\r\n\t\twinMenu.setFillParent(true);\r\n\r\n\t\tTextureRegionDrawable drawable1 = new TextureRegionDrawable(new Texture(Gdx.files.internal(\"pause_menu\\\\dreamcomplete.png\")));\r\n\t\tImage img = new Image (drawable1);\r\n\r\n\t\texitButtonWin = new Button(blueExit);\r\n\t\tadvanceButton = new Button(blueNext);\r\n\t\tunderlineWinMenu = new Image(blueUnderline);\r\n\r\n\r\n\t\t//Buttons needed\r\n\t\twinMenu.add(img).colspan(2);\r\n\t\twinMenu.row().padTop(50);\r\n\t\twinMenu.add(exitButtonWin).size(150,70);\r\n\t\twinMenu.add(advanceButton).size(150,70).padLeft(90).padRight(40);\r\n\t\twinMenu.row();\r\n\t\twinMenu.add(underlineWinMenu);\r\n\t\tunderlineWinMenu.setVisible(false);\r\n\t\twinMenu.row();\r\n\t\twinMenu.add(underlineWinMenu);\r\n\t\tunderlineWinMenu.setVisible(false);\r\n\r\n\t\texitButtonWin.addListener(new ClickListener() {\r\n\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\texitClicked = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tadvanceButton.addListener(new ClickListener() {\r\n\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\tadvanceClicked = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\twinMenuStage.addActor(winMenu);\r\n\t\twinMenu.validate();\r\n\t\twinMenu.setTransform(true);\r\n\t\twinMenu.setScale(0.5f);\r\n\t\tunderlineWinMenu.setZIndex(0);\r\n\t\tunderlineWinMenu.setVisible(false);\r\n\r\n\t}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\t\thero.x = e.getX();\r\n\t\thero.y = e.getY();\r\n\t\tSystem.out.println(hero.x + \":\" + hero.y);\r\n\t\t\r\n\t}",
"private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }",
"protected void warp() {\n\t\tRandom r = new Random();\n\t\t\n\t\t// Get random index from coordinates list\n\t\tint nextPos = r.nextInt(this.coords.length);\n\t\t\n\t\t// Set new position for monster\n\t\tthis.setBounds(this.coords[nextPos].width, this.coords[nextPos].height, mWidth, mHeight);\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"public void moveAndDraw(Graphics window)\r\n {\r\n \t//draw a white ball at old ball location\r\n\t draw(window, Color.WHITE);\r\n\t setx(getx()+xSpeed);\r\n\t sety(gety()+ySpeed);\r\n\r\n\t\t\t//draw the ball at its new location\r\n\t this.draw(window);\r\n }",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"@Override\n\t\t\tpublic void onLocatorChanged(LocatorData locatorData) {\n\t\t\t\tsphero_x = locatorData.getPositionX();\n\t\t\t\tsphero_y = locatorData.getPositionY();\n\t\t\t}",
"private void bossMove() {\n int radius = 150; // radius\n\n angle += 0.03;\n this.getView().setTranslateX((int)(x + radius*Math.cos(angle)));\n this.getView().setTranslateY((int)(y - radius*Math.sin(angle)));\n }",
"public void makeVisible()\n {\n wall.makeVisible();\n roof.makeVisible();\n window.makeVisible();\n }",
"void updatePosition() {\n if (gameScreen.cursorIsOnLeft()) \n {\n // set the panel's rightmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 11/12 - getWidth(), \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n else // Otherwise the cursor must be on the right half of the screen\n {\n // set the panel's leftmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 1/12, \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n }",
"public void refresh() {\n if (currentClient != null) {\n Page page = currentClient.getCurrentPage();\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }else{\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }\n root.setPrefWidth(1280);\n root.setPrefHeight(720);\n root.setTop(clientBar.getRoot());\n root.setRight(null); // remove any errors\n //this.mainStage.setScene(scene);\n mainStage.show();\n\n }",
"public MainWindow() {\n initComponents();\n \n StationView = new SpaceStationView();\n EnemyView = new EnemyStarshipView();\n \n stationPanel.add(StationView);\n enemyPanel.add(EnemyView);\n \n message.setVisible(false);\n \n setTitle(appName);\n \n repaint();\n setLocationRelativeTo(null);\n \n }",
"public void Onwin2(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice2]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }",
"public void update() {\n\t\tif (screen.scale != newScale) \n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t\n\t\tif (screen.width != Game.width || screen.height != Game.height) {\n\t\t\t\n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t}\n\t\t\n\t\tfor (Terrain t : terrainObjs) {\n\t\t\tt.update();\n\t\t}\n\t\t\n\t\tif (backgroundMain != null) {\n\t\t\tbackgroundMain.update();\n\t\t}\n\t\t\n\t\txPos += xMoving;\n\t\tyPos += yMoving;\n\t}",
"public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}",
"public void updateUi() {\n updateTextView(R.id.blindword, gameInstance.getBlindWord(), EditMode.ADDSPACING);\n updateTextView(R.id.guessedletters, gameInstance.getGuessedSoFar(), EditMode.ADDSPACING);\n\n int livesTotal = settings.getInt(\"lives\", 7);\n int livesLeft = gameInstance.getLives();\n StringBuilder healthbar = new StringBuilder();\n for(int i=0;i<livesLeft;i++) {\n healthbar.append('\\u2764'); //black heart\n }\n\n for(int i=0;i<(livesTotal - livesLeft);i++) {\n healthbar.append('\\u2661'); //white heart\n }\n\n updateTextView(R.id.healthbar, healthbar.toString(), EditMode.NONE);\n\n gameOverListener();\n\n }",
"public void UpdateView(){\n\t\tStageArray[CurrentStage].Update();\r\n\t\t//updateUI will activate the Draw function\r\n\t\tStageArray[CurrentStage].updateUI();\r\n\t\t//this completely refreshes totalGUI and removes and mouse listener it had\r\n\t\tif(CardMain.frame.getContentPane()!=StageArray[CurrentStage]){\r\n\t\t\tCardMain.frame.setContentPane(StageArray[CurrentStage]);\r\n\t\t}\r\n\t}",
"@Override\n public void show() {\n Label title = new Label(\"Hall of Fame\", new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE));\n title.setPosition(MENU_WIDTH / 2 - title.getWidth() / 2, MENU_HEIGHT / 1.9f + 3*title.getHeight());\n stage.addActor(title);\n }",
"public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }",
"public void updateDetailWindow();",
"private void displayWinScreen() {\n if (crewState.getShip().getShieldLevel() > 0) {\n new EventPopupWindow(String.format(\"You Won:\\nYou managed to collect all %d parts.\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n } else {\n new EventPopupWindow(String.format(\"Although your ship is toast, you technically \"\n + \"still won the game. None of the parts are useful anymore, you will die on \"\n + \"this planet, but according to the job description you did everything that \"\n + \"was required. At least you can say you followed the spec, right?\\n\\n\"\n + \"Score: %d\",\n getShipPartsNeededCount(),\n getScore()));\n }\n }",
"public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }",
"public void update()\r\n {\r\n for (int i = 0; i < _menubar.length; i++)\r\n {\r\n _menubar[i].draw();\r\n }\r\n _ausgewahlt.draw();\r\n }",
"@Override\n public void doMove() {\n if (((-Transform.getOffsetTranslation().getX() - (Game.getWindowWidth()) < getPosition().getX()\n && (-Transform.getOffsetTranslation().getX() + (Game.getWindowWidth() * 2)) > getPosition().getX()\n && (-Transform.getOffsetTranslation().getY() - (Game.getWindowHeight())) < getPosition().getY()\n && (-Transform.getOffsetTranslation().getY() + (Game.getWindowHeight() * 2)) > getPosition().getY()))) {\n addPosition(new Vector(Velocity).mult(Game.getDelta()));\n } else {\n Level().RemoveObject(this);\n }\n }",
"@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}",
"public void update(boolean updateWorld) {\n println(\"GUI\", \"Updating the UI...\");\n Player p = ToF.getWorld().getPlayer();\n \n if(updateWorld)\n ToF.getWorld().nextTick();\n \n move(p, NORTH, (Shape) MoveNorth);\n move(p, SOUTH, (Shape) MoveSouth);\n move(p, EAST, (Shape) MoveEast);\n move(p, WEST, (Shape) MoveWest);\n move(p, UP, ButtonUpstairs);\n move(p, DOWN, ButtonDownstairs);\n updateMap();\n updateBars();\n updateInventory();\n \n if(ToF.getWorld().getPlayer().isDead())\n ifLose();\n \n UnderAttack.setVisible(ToF.getWorld().getPlayer().getOpponent().isPresent());\n UnderAttack.setText(\"Under Attack \" + ToF.getWorld().selectEntities(\n e -> ToF.getWorld().getPlayer().getLocation().equals(e.getLocation())\n ).count());\n if(p.getOpponent().isPresent()){\n ToF.getWorld().selectEntities(\n e -> ToF.getWorld().getPlayer().getLocation().equals(e.getLocation())\n ).forEach(e -> ToF.getWorld().newMessage(new Message()\n .add(\"Your opponent\")\n .add(e.getName())\n .add(\"has\")\n .add(e.getHealthBar().getCurrent() + \"HP\"))\n );\n }\n \n if(ToF.getWorld().isFullyExplored())\n ifWin();\n \n Message msg;\n while((msg = ToF.getWorld().getNextMessage()) != null){\n Text.setText(msg.toStringSimple() + \"\\n\" + Text.getText()\n .substring(0, min(1000, Text.getText().length())));\n }\n }",
"private void addMinigames(){\n Point a = new Point();\n getWindowManager().getDefaultDisplay().getSize(a);\n Log.d(\"XY\", Integer.toString(a.x)+\" \"+Integer.toString(a.y));\n\n\n\n generateMiniGames();\n\n addFlower();\n\n }",
"public void random_hero_start() {\n\t\tint randomX;\n\t\tint randomY;\n\t\twhile (true) {\n\t\t\trandomX = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomY = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomX--;\n\t\t\trandomY--;\n\t\t\tif (labirinto.getLab()[randomX][randomY] == ' ')\n\t\t\t\tbreak;\n\t\t}\n\t\theroi.setX_coord(randomX);\n\t\theroi.setY_coord(randomY);\n\t\tchange_hero_pos();\n\t}",
"private void updateTheTrack() {\n if(mOval != null){\n mOval = null;\n }\n mOval = new RectF(getPaddingLeft() + mTrackWidth, getPaddingTop() + mTrackWidth,\n getWidth() - getPaddingRight() - mTrackWidth,\n getHeight() - getPaddingBottom() - mTrackWidth);\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // Make activity fullscreen\n\n // SIEMPRE SIEMPRE CREAMOS ESTA COSA, PARA QUE TODOO LO DEMAS JALE\n final Context context = this;\n AbsoluteLayout windowsCanvas = new AbsoluteLayout(this);\n\n // CREAMOS EL CONTENEDOR PADRE\n this.window = new SfPanel();\n\n // CREAMOS PANELES HIJOS\n //SfPanel cuadro1 = new SfPanel();\n //SfPanel cuadro2 = new SfPanel();\n\n // CREO EL VIEW\n View backGround = new View(context);\n ///View c1 = new View(context);\n //ImageView c2 = new ImageView(context);\n\n // LE DOY COLOR DE FONDO\n\n backGround.setBackgroundResource(R.color.darksss);\n //backGround.setBackgroundResource(R.drawable.po);\n\n //c1.setBackgroundColor(Color.RED);\n\n // LENO VIEWS (LOS QUE SE PUEDAN)\n //c2.setImageResource(R.drawable.go_1);\n\n // PONEMOS EL VIEW EN EL PANEL\n this.window.setView(backGround);\n //cuadro1.setView(c1);\n //cuadro2.setView(c2);\n\n // DOY TAMAÑOS A TODOO\n this.window.setSize(-100, -100);\n //cuadro1.setSize(-90, -50);\n //cuadro2.setSize(-40, -25);\n\n // HACEMOS APPENDS\n //this.window.append(cuadro1);\n //this.window.append(cuadro2);\n\n // AGREGAMOS A LA PANTALLA\n windowsCanvas.addView(backGround);\n //windowsCanvas.addView(c1);\n //windowsCanvas.addView(c2);\n\n String name = new String();\n int id;\n String idPokemon = new String();\n\n for ( int i = 1; i<=15; i++ ) {\n name = \"go_\".concat(String.valueOf(i));\n\n SfPanel pokemonPanel = new SfPanel();\n ImageView pokemonView = new ImageView(context);\n\n id = context.getResources().getIdentifier(name, \"drawable\", context.getPackageName());\n pokemonView.setImageResource(id);\n //pokemonView.setBackgroundColor(Color.GRAY);\n //pokemonView.setBackgroundResource(R.drawable.border);\n idPokemon = String.valueOf(i);\n\n final String finalIdPokemon = idPokemon;\n pokemonView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"POKEMON CON ID: \" + String.valueOf(finalIdPokemon), Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(Home.this, pokemonDetail.class);\n intent.putExtra(\"pokemonId\", finalIdPokemon);\n startActivity(intent);\n\n }\n });\n\n pokemonPanel.setView(pokemonView);\n this.window.append(pokemonPanel);\n pokemonPanel.setSize(-30,-15);\n pokemonPanel.setMargin(15,5,25,0);\n pokemonPanel.setKey(name);\n windowsCanvas.addView(pokemonView);\n }\n\n // PONER ESTO\n window.update(this);\n\n // MAGIA\n //Activity activity = (Activity) context;\n this.setContentView(windowsCanvas);\n }",
"public GameWindow() {\n\t\tthis.initWindow();\n\t}",
"@Override\n\tpublic void update() \n\t{\n\t\tPoint loc = getLocationCopy();\n\t\tEnemy c = game.findNearestEnemy(loc);\n\t\tif (c == null)\n\t\t\treturn;\n\t\t\n\t\tif(c.getLocation().distance(loc) < 100 && game.getFrameCount() % 30 == 0)\n\t\t{\n\t\t\tFlyingSalt s = new FlyingSalt(game, loc, \n\t\t\t\t\t\t\t\t\tc.getLocation().x - position.x,\n\t\t\t\t\t\t\t\t\tc.getLocation().y - position.y);\n\t\t\tgame.addAnimatable(s);\n\t\t}\n\t}",
"@Override\n\tprotected void init() {\n\t\tsuper.init();\n\t\tisAnchorPointForPosition = true;\n\t\tsetContentSize(Screen.GAME_W, Screen.GAME_H);\n\t\tsetAnchor(Graphics.HCENTER | Graphics.VCENTER);\n\t}",
"@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n dotsSet = false;\n\n\n startNewGame();\n keeper.start();\n }",
"public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2); \n}",
"public void showView(){\n this.addObserver(GameView.GameViewNewGame(this));\n }",
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"public void centre(){\n //Skip if not windowed\n if(type != Type.WINDOWED){\n return;\n }\n\n //Retrieve the handle of the primary monitor\n long primaryMonitor = glfwGetPrimaryMonitor();\n\n //Retrieve the top left corner of the primary monitor\n IntBuffer posX;\n IntBuffer posY;\n try(MemoryStack stack = MemoryStack.stackPush()){\n posX = stack.mallocInt(1);\n posY = stack.mallocInt(1);\n glfwGetMonitorPos(primaryMonitor, posX, posY);\n }\n\n //Centre the window on that monitor\n GLFWVidMode mode = glfwGetVideoMode(primaryMonitor);\n int newX = posX.get(0) + (mode.width() / 2) - (int) (size.x / 2);\n int newY = posY.get(0) + (mode.height() / 2) - (int) (size.y / 2);\n\n //Move the window and change the field\n glfwSetWindowPos(handle, newX, newY);\n position.set(newX, newY);\n }",
"@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }",
"public void update() {\n\t\tImage background_buffer = createImage(stats.getWidth(),\n\t\t\t\tstats.getHeight());\n\t\tGraphics background_buffer_graphics = background_buffer.getGraphics();\n\t\t// updates the stats on screen\n\t\tbackground_buffer_graphics.drawString(\n\t\t\t\t\"Current Move: \" + (model.isWhiteToPlay() ? \"White\" : \"Black\"),\n\t\t\t\t5, 20);\n\t\tbackground_buffer_graphics.drawString(\"White Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getWhiteScore()), 20, 125);\n\t\tbackground_buffer_graphics.drawString(\"Black Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getBlackScore()), 20, 145);\n\n\t\tImage wc = null;\n\t\tImage bc = null;\n\t\t//\n\t\ttry {\n\t\t\twc = ImageIO.read(new File((\"images/white_piece.png\")));\n\t\t\tbc = ImageIO.read(new File((\"images/black_piece.png\")));\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (model.isWhiteToPlay()) {\n\t\t\tbackground_buffer_graphics.drawImage(wc, 25, 30, null, null);\n\n\t\t} else {\n\t\t\tbackground_buffer_graphics.drawImage(bc, 25, 30, null, null);\n\n\t\t}\n\n\t\tstats.getGraphics().drawImage(background_buffer, 0, 0, null);\n\n\t}",
"public void update(MazeEventWon e) {\r\n }",
"public void updateConicalView();",
"void go(){\n\t\twindow.setSize(28, 80);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setVisible(true);\n\t\twindow.setResizable(false);\n\t\twindow.add(new PewGrid());\n\t\t// Adds a listener for mouse related events\n\t\twindow.addMouseListener(new mouseevent());\n\t\twindow.repaint();\n\t\t//move();\n\t}",
"public void calculateWindow()\n {\n Vector2 windowBottomLeftBounds = new Vector2(1000000, 1000000);\n Vector2 windowTopRightBounds = new Vector2(-1000000, -1000000);\n for (Element<?> e : children())\n {\n if (e.id() != null && (e.id().startsWith(id() + \"hBar\") || e.id().startsWith(id() + \"vBar\")))\n {\n continue;\n }\n for (Element<?> child : e)\n {\n Vector2 alignmentVector = child.alignment().alignmentVector();\n Vector2 bottomLeftBounds = new Vector2(child.x() - (alignmentVector.x * child.width()), child.y()\n - (alignmentVector.y * child.height()));\n Vector2 topRightBounds = new Vector2(bottomLeftBounds.x + child.width(), bottomLeftBounds.y + child.height());\n // left\n if (windowBottomLeftBounds.x > bottomLeftBounds.x)\n {\n windowBottomLeftBounds.x = bottomLeftBounds.x;\n }\n // bottom\n if (windowBottomLeftBounds.y > bottomLeftBounds.y)\n {\n windowBottomLeftBounds.y = bottomLeftBounds.y;\n }\n // right\n if (windowTopRightBounds.x < topRightBounds.x)\n {\n windowTopRightBounds.x = topRightBounds.x;\n }\n // top\n if (windowTopRightBounds.y < topRightBounds.y)\n {\n windowTopRightBounds.y = topRightBounds.y;\n }\n }\n }\n \n content = new CRectangle(windowBottomLeftBounds.x, windowBottomLeftBounds.y, windowTopRightBounds.x - windowBottomLeftBounds.x,\n windowTopRightBounds.y - windowBottomLeftBounds.y);\n content.origin = new Vector2(0, 0);\n \n calculateScrollSize();\n }"
]
| [
"0.66563547",
"0.6519369",
"0.64035857",
"0.63427174",
"0.6238129",
"0.621018",
"0.62093645",
"0.61567575",
"0.61329114",
"0.61234874",
"0.60923266",
"0.6059113",
"0.60385865",
"0.60232544",
"0.60138094",
"0.59808373",
"0.5948611",
"0.59465873",
"0.5930023",
"0.5917802",
"0.59153354",
"0.58968365",
"0.58939725",
"0.587555",
"0.5867662",
"0.58639944",
"0.5863723",
"0.5855314",
"0.5851363",
"0.58406436",
"0.5838452",
"0.581115",
"0.5808415",
"0.57879204",
"0.5775751",
"0.577205",
"0.5755886",
"0.57406306",
"0.5729314",
"0.5727918",
"0.5723876",
"0.57229894",
"0.5721636",
"0.5718603",
"0.5718165",
"0.57093877",
"0.5707234",
"0.57002157",
"0.56920296",
"0.56917554",
"0.56857073",
"0.5679095",
"0.5673752",
"0.5668991",
"0.5667857",
"0.5647479",
"0.5646636",
"0.56434",
"0.5636211",
"0.5620307",
"0.5600159",
"0.55971885",
"0.5593846",
"0.5592875",
"0.5592114",
"0.5591534",
"0.55871916",
"0.55837077",
"0.55809563",
"0.55797863",
"0.5577317",
"0.5576765",
"0.5567811",
"0.55586034",
"0.5557385",
"0.55542165",
"0.5546209",
"0.5544602",
"0.5541322",
"0.55411947",
"0.5537361",
"0.5531449",
"0.55271506",
"0.5524017",
"0.5523169",
"0.55173457",
"0.55001026",
"0.54978085",
"0.5496537",
"0.5489167",
"0.5488622",
"0.54847443",
"0.54817593",
"0.5476744",
"0.5474911",
"0.5473858",
"0.5470562",
"0.5468463",
"0.54661846",
"0.54661316"
]
| 0.6562875 | 1 |
Update the Y position of the hero | public void updateYPosition(){
if (centerY + speedY >= 630) {
centerY = 630;
rect1= new FloatRect (centerX,centerY,80,110);
}else if(!collide){
centerY += speedY;
rect1= new FloatRect (centerX,centerY,80,110);
}
else if((jumped && collide && Keyboard.isKeyPressed (Keyboard.Key.W )&& collidedTop)){
speedY=-20;
centerY +=speedY;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"void setY(int y) {\n position = position.setY(y);\n }",
"public void setY(int y){ yPosition = y; }",
"public void moveY() {\n\t\tsetY( getY() + getVy() );\n\t}",
"public void setY(float y){\n hitBox.offsetTo(hitBox.left,y);\n //this.y=y;\n }",
"void setY(int newY) {\n this.yPos = newY;\n }",
"void setPlayerYRelative(int y) {\n }",
"@Override\n\tpublic void setY(int y) {\n\t\tyPos = y;\n\t}",
"public void setY(int value)\n\t{\n\t\tgetWorldPosition().setY(value);\n\t}",
"public void updateYLoc();",
"public void setSpawnY(int y)\n {\n spawnY = y;\n }",
"void moveY(float y) {\n _y += y;\n }",
"public void setYPosition(double y)\n\t{\n\t\tthis.yPosition = y;\n\t}",
"public void moveY(double y) {\n this.y += y;\n }",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"public void setY(int y) {\n collider.setLocation((int) collider.getX(), y);\n }",
"@Test\r\n\tpublic void testSetPositionY(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPositionY(25);\r\n\t\t\r\n\t\tassertEquals(25, title.getPositionY());\r\n\t}",
"public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }",
"public void translateY(float y) {\n if (collides((int) x, (int) (this.y + y))) return;\n this.y += y;\n this.model.setY(this.y);\n }",
"public void setPositionY(float y) {\n\t\tthis.position.set(this.position.x, y, 0);\n\t}",
"public void setYPosition(int newY) {\n this.yPosition = newY;\n }",
"public void setY(int y) {\n\tbaseYCoord = y;\n}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"double getPositionY();",
"double getPositionY();",
"double getPositionY();",
"public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y){\n\t\tthis.y_location = y;\n\t}",
"public int getY(){ return yPosition; }",
"public int setObjYCoord() {\n\t\tint objY = ThreadLocalRandom.current().nextInt(1, getRoomLength() - 1);\r\n\t\treturn objY;\r\n\t}",
"public void setY(int y) {\n this.y = y;\r\n }",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n\t\tthis.y = y;\n\t}",
"@Override\n\tpublic void setY(float y) {\n\n\t}",
"public void setYPos(int y) {\n // from MoveEventHandler\n // convert to real y coord\n // y = yP * (ymaxR - yminr) / (ymaxP - yminP)\n double tmp = config.getMaximumRealY() + (y - config.getMaximumPixelY())*(config.getMaximumRealY() - config.getMinimumRealY())/(config.getMaximumPixelY() - config.getMinimumPixelY());\n ypos.setText(formatter.format(tmp));\n }",
"public void setY(float y) {\n this.y = y;\n }",
"public void setY(float y){\n this.y = y;\n }",
"public void setY(int y) {\n\t\tthis.Y = y;\n\t}",
"private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}",
"public void setY(int newY)\n\t{\n\t\ty+=newY;\n\t\tboundingBox = new Rectangle(x,y,width,height);\n\t}",
"public void setY(float y)\n {\n getBounds().offsetTo(getBounds().left, y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }",
"@Override\n\tpublic void setY(int y) {\n\n\t}",
"public void setY(int value) {\n this.y = value;\n }",
"public void moveY(int dir) { velocity.add(PVector.mult(up, speed * dir)); }",
"@Override\n\tpublic void setY(int y) {\n\t\t\n\t}",
"public void setY(int y)\n {\n this.y = y;\n }",
"void setY(int y) {\n this.y = y;\n }",
"public void setY(float y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",
"void setY(float y) {\n _y = y;\n }",
"public void setYCoordinates(double newY) { this.yCoordinates = newY; }",
"public float placeYOnScreen(float y) {\r\n\t\ty -= this.getYPos();\r\n\t\treturn y;\r\n\t}",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"@Override\n public void update() {\n y += velY;\n setRectHitBox();\n }",
"public void setY(int y) { loc.y = y; }",
"public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }",
"public void moveVertical(int y)\n {\n wall.moveVertical(y);\n roof.moveVertical(y);\n window.moveVertical(y);\n }",
"public void setY(int theY)\r\n {\r\n y = theY;\r\n }",
"public final MotionUpdateEvent setY(double y) {\n pos.setY(y);\n return this;\n }",
"public void setPosY(float posY) {\n this.posY = posY;\n }",
"public void resetY() {this.startY = 11.3f;}",
"public void setMovementY(int directionY) {\r\n movementY = directionY;\r\n }",
"@Override\n\tpublic void setY(float y) \n\t{\n\t\t_y = y;\n\t}",
"public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}",
"public void setY(final int y) {\n\n this.y = y;\n }",
"public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}",
"@Override\n public void setY(int y) {\n this.y=y;\n }",
"private void moveUpDown(int Height) {\n d = Math.random();\n if (d < 0.1 && getY() + wolfHeight <= Height - Height / 40) setY(getY() + Height / 40);\n else if (d > 0.9 && getY() >= 15) setY(getY() - Height / 40);\n }",
"public void setTileY(int y) {\n\t\ttileY = y;\n\t}",
"public void setY(int index, float y) {\n\t\tpoints.get(index).setY(y);\n\t}",
"public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }",
"public void moveY(boolean isDown){\n if(isDown){\n this.y += velocity[1];\n } else{\n this.y -= velocity[1];\n }\n }",
"@Test\r\n\tpublic void testGetPositionY(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPositionY(25);\r\n\t\t\r\n\t\tassertEquals(25, title.getPositionY());\r\n\t}",
"public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}",
"@Override\n public void update(){\n super.update();\n if(getPositionY() < -2.f){\n setAngleXYDeltaTheta(0.0f);\n setAngleXY(0.0f);\n setPositionY(1.0f);\n setDy(0.0f);\n setDx(0.0f);\n setInPlay(true);\n }\n }",
"public void updateUp() {\n int newY = this.getY() + 1;\n this.setY(newY);\n }",
"public void updateGridY();",
"public void setVelocityY(double y) {\n\t\tvelocity.setY(y);\n\t}",
"public void updatePosition()\r\n\t{\r\n\t\tsuper.updatePosition();\r\n\t\t\r\n\t\t// Update the bomb's position\r\n\t\tPoint nextPosition = getPath().getLocation(t++);\r\n\t\tsetX(nextPosition.x + startX);\r\n\t\tint nextY = nextPosition.y + startY;\r\n\t\tsetY(nextY);\r\n\t\t\r\n\t\t// Blow the bomb up after it reaches mid screen\r\n\t\tif (t > 120 || (nextY < (Global.WINDOW_HEIGHT >> 1) && t > 30))\r\n\t\t{\r\n\t\t\tbombSound.stop();\r\n\t\t\tsuper.remove();\r\n\t\t\tGamePanel.makeExplosion(getX(), getY());\r\n\t\t\t\r\n\t\t\t// Injure all the enemies on the screen\r\n\t\t\t\r\n\t\t\tArrayList<Sprite> sprites = GamePanel.getSprites();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < sprites.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (sprites.get(i) instanceof Enemy)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy enemy = (Enemy) sprites.get(i);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint currentYTop = GamePanel.getLevel().getCurrentY() +\r\n\t\t\t\t\t\tBLOCKS_PER_Y - 1;\r\n\t\t\t\t\tboolean visibleX = enemy.getX() + enemy.getWidth() >= 0 &&\r\n\t\t\t\t\t\tenemy.getX() <= Global.WINDOW_WIDTH;\r\n\t\t\t\t\tboolean yOnScreen = enemy.getY() <= Global.WINDOW_HEIGHT +\r\n\t\t\t\t\t\t100;\r\n\t\t\t\t\tboolean visibleY = enemy.getYBlock() >= currentYTop &&\r\n\t\t\t\t\t\tyOnScreen;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (visibleX && visibleY && enemy.isAlive())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tenemy.offsetHealth(-300);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (enemy.getHealth() <= 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tenemy.remove();\r\n\t\t\t\t\t\t\tGamePanel.offsetNumLevelPoints(100);\r\n\t\t\t\t\t\t\tGamePanel.makeExplosion(enemy.getX(), enemy.getY());\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\t}",
"public void setSpawnY(int spawnY) \n\t{\n\t\tthis.spawnY = spawnY;\n\t}",
"public void setPosY(double posY) {\n\t\tthis.PosY = posY;\r\n\t}",
"public void setY(Float y) {\n\t\tthis.y = y;\n\t}",
"int getYPos() {\n if (new Random().nextBoolean()) {\n return CollectTheFruit.height - 35;\n } \n else {\n return CollectTheFruit.height - 200;\n }\n }",
"public void follow() {\n\n\t\t// moves y position\n\t\tif (centerY < StartingClass.MIDDLE_Y - 100) {\n\t\t\tcenterY += MOVEMENT_SPEED;\n\t\t} else {\n\t\t\tisMovingY = false;\n\t\t}\n\t}",
"public void moveY(){\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\tif(solid.type.equals(\"Projectile\") && this.type.equals(\"Projectile\")){\n\t\t\t\t\tPlayer parent = ((Projectile)this).parent;\n\t\t\t\t\tPlayer other = ((Projectile)solid).parent;\n\n\t\t\t\t\tif(parent != other){\n\t\t\t\t\t\tstun(parent);\n\t\t\t\t\t\tstun(other);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint clangTemp = Gameplay.random.nextInt(8) + 1;\n\t\t\t\t\tif(clangTemp <= 4){\n\t\t\t\t\t\tparent.clang1.play();\n\t\t\t\t\t}\n\t\t\t\t\telse if(clangTemp >= 5 && clangTemp <= 6){\n\t\t\t\t\t\tparent.clang2.play();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tparent.clang3.play();\n\t\t\t\t\t}\n\n\t\t\t\t\tlevel.solids.remove(this);\n\t\t\t\t\tlevel.solids.remove(solid);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(solid.type.equals(\"Hitbox\")){\n\t\t\t\t\tif(solid != parent.hitbox){\n\t\t\t\t\t\tdouble dist = Math.abs(solid.y - this.y);\n\t\t\t\t\t\tfor(int n = 1; n <= dist && !isColliding(solid, x, y + Math.signum(velY)) && Math.signum(velY) != 0; n++){\n\t\t\t\t\t\t\ty += Math.signum(velY);\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\trelativeY += velY;\n\t\tvelY += accelY;\n\t\ty = (float) (parent.y + parent.hitbox.height / 2.0 + relativeY); //start it at the center of the player's hitbox, then move to its relative x\n\t}",
"public void setYCoordinate(int newValue)\n {\n y = newValue;\n }",
"public void setyPos(int yPos) {\r\n this.yPos = yPos;\r\n }",
"int getY() {\n return yPos;\n }",
"public void setCurrentYPosition(int y) {\n\t\tthis.currentYPosition = y;\n\t\tthis.currentXPosition = this.floats.leftIntersectionPoint(this.box.getAbsoluteX()\n\t\t\t\t+ this.box.marginLeft + this.box.paddingLeft, this.box.getAbsoluteY() + y\n\t\t\t\t+ this.box.marginTop + this.box.paddingTop, this.currentRowMaxWidth, this.box);\n\t}"
]
| [
"0.7216943",
"0.71570545",
"0.7133463",
"0.706311",
"0.695656",
"0.6926426",
"0.6900778",
"0.67996067",
"0.67557275",
"0.6708194",
"0.66558295",
"0.66514766",
"0.66146785",
"0.661443",
"0.6597136",
"0.65784127",
"0.65720195",
"0.6565543",
"0.6551531",
"0.6549507",
"0.6481804",
"0.6472933",
"0.6466619",
"0.6466619",
"0.6466619",
"0.6466619",
"0.6450464",
"0.6450464",
"0.6450464",
"0.64458376",
"0.64458376",
"0.64458376",
"0.64440715",
"0.6436034",
"0.6435984",
"0.6434641",
"0.64261913",
"0.64258933",
"0.64258933",
"0.64258933",
"0.64258933",
"0.64222026",
"0.641785",
"0.6415077",
"0.6412078",
"0.64110565",
"0.6408567",
"0.6403905",
"0.63995785",
"0.6396907",
"0.6394389",
"0.63807386",
"0.6380086",
"0.6374392",
"0.63719887",
"0.6357183",
"0.6351669",
"0.6337893",
"0.6328504",
"0.6325853",
"0.6319543",
"0.6313656",
"0.6313656",
"0.6313656",
"0.6292278",
"0.6288355",
"0.62870944",
"0.6286811",
"0.6277907",
"0.6274723",
"0.6245732",
"0.62455547",
"0.6242652",
"0.62381035",
"0.62370485",
"0.6227687",
"0.62233615",
"0.6219751",
"0.620915",
"0.6203747",
"0.6202722",
"0.6187341",
"0.618585",
"0.6180899",
"0.6178962",
"0.6172217",
"0.6172093",
"0.61660224",
"0.6164968",
"0.6162904",
"0.61626357",
"0.6157995",
"0.6156",
"0.6153925",
"0.61535215",
"0.61510193",
"0.6150426",
"0.6142504",
"0.6141252",
"0.6123329"
]
| 0.717826 | 1 |
Update the X position of the hero | public void updateXPosition(){
if (centerX + speedX <= 60) {
centerX = 60;
}
if(centerX + bg.getBackX() > 4890) {
bg.setBackX(4890-startScrolling);
if(centerX + speedX >= 1500) {
centerX = 1500;
rect1= new FloatRect (centerX,centerY,80,110);
}
if(centerX < 1504) {
centerX+=speedX;
rect1= new FloatRect (centerX,centerY,80,110);
}
}
else if (speedX < 0) {
centerX += speedX;
rect1= new FloatRect (centerX,centerY,80,110);
}
else {
if (centerX <= startScrolling) {
centerX += speedX;
rect1= new FloatRect (centerX,centerY,80,110);
} else {
background.setPosition((-bg.getBackX ()),0);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"void setPlayerXRelative(int x) {\n }",
"void setX(int x) {\n position = position.setX(x);\n }",
"public void setX(float x){\n hitBox.offsetTo(x,hitBox.top);\n //this.x=x;\n }",
"private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}",
"void setX(int newX) {\n this.xPos = newX;\n }",
"public void setSpawnX(int x)\n {\n spawnX = x;\n }",
"public void setX(int x){ xPosition = x; }",
"public void moveX() {\n\t\tsetX( getX() + getVx() );\n\t}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\t\thero.x = e.getX();\r\n\t\thero.y = e.getY();\r\n\t\tSystem.out.println(hero.x + \":\" + hero.y);\r\n\t\t\r\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void setX(int x)\n\t{\n\t\tgetWorldPosition().setX(x);\n\t}",
"public void updateXLoc();",
"@Test\r\n\tpublic void testSetPositionX(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPositionX(10);\r\n\t\t\r\n\t\tassertEquals(10, title.getPositionX());\r\n\t}",
"public void updatePlayerXPos(){\n\t\tif(goRight&&Player.getxPlayerLoc()<=(screenWidth - (Player.getPlayerImage().getWidth()* Player.getPlayerScale() ) ) ){\n\t\t\tPlayer.updateXPos(true);\n\t\t\tPlayer.setPlayerImage(true);\n\t\t\t\n\t\t}\n\t\tif(goLeft&&Player.getxPlayerLoc() >=( (Player.getPlayerImage().getWidth() / 2) * Player.getPlayerScale() ) ){\n\t\t\tPlayer.updateXPos(false);\n\t\t\tPlayer.setPlayerImage(false);\n\t\t}\n\t}",
"@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}",
"public float getPositionX() {return this.position.getX();}",
"public void setMovement(){\n\t\tfloat distance = GameManager.getInstance().getGameCamera().getWidth();\n\t\tfloat durationTime = distance/this.speed;\n\t\t\n\t\tmoveX = new MoveByModifier(durationTime, -(this.xInicial-this.xFinal), 0);\n\t\t\n\t\tthis.registerEntityModifier(moveX);\n\t}",
"public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"public int setObjXCoord() {\n\t\tint objX = ThreadLocalRandom.current().nextInt(1, getRoomWidth() - 1);\r\n\t\treturn objX;\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tposX -= ninja.getSpeedX();\n\t\t\n\t}",
"@Override\n\tpublic void move_x() {\n\t\tif(mX < 0){\n\t \tdirection *= -1 ;\n\t \t setScale(-1, 1);\n\t }else if (mX > activity.getCameraWidth()-64){\n\t \tdirection *= -1 ;\n\t \tsetScale(1, 1);\n\t } \n\t\tmove_x(direction);\n\t}",
"public void moveX(){\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\tif(solid.type.equals(\"Projectile\") && this.type.equals(\"Projectile\")){\n\t\t\t\t\tPlayer parent = ((Projectile)this).parent;\n\t\t\t\t\tPlayer other = ((Projectile)solid).parent;\n\n\t\t\t\t\tif(parent != other){ \n\t\t\t\t\t\tstun(parent);\n\t\t\t\t\t\tstun(other);\n\t\t\t\t\t}\n\n\t\t\t\t\tlevel.solids.remove(this);\n\t\t\t\t\tlevel.solids.remove(solid);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(solid.type.equals(\"Hitbox\")){\n\t\t\t\t\tif(solid != parent.hitbox){\n\t\t\t\t\t\tdouble dist = Math.abs(solid.x - this.x);\n\t\t\t\t\t\tfor(int n = 1; n <= dist && !isColliding(solid, x + Math.signum(velX), y) && Math.signum(velX) != 0; n++){\n\t\t\t\t\t\t\tx += Math.signum(velX);\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\trelativeX += velX;\n\t\tvelX += accelX;\n\t\tx = (float) (parent.x + parent.hitbox.width / 2.0 + relativeX); //start it at the center of the player's hitbox, then move to its relative x\n\t}",
"private void move(double newXPos){\n this.setX(newXPos);\n }",
"public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }",
"@Override\n public void move() {\n _location.x++;\n }",
"public void setX(int newX)\n\t{\n\t\tx += newX;\n\t\tboundingBox = new Rectangle(x,y,width,height);\n\t}",
"public void PlayerX(){\n\n if(directionX > 0){//going right\n int tempX = (int) ((x + directionX + bmp.getWidth()) / Tile.tileWidth);\n if(!CollisionWithTile(tempX, (int)y / Tile.tileHeight)) {\n x += directionX * speed * time;\n }\n }\n else if(directionX < 0){//going left\n int tempX = (int)((x + directionX) / Tile.tileWidth);\n if(!CollisionWithTile(tempX, (int)y / Tile.tileHeight)) {\n x += directionX * speed * time;\n }\n }\n }",
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"public void setXLoc(int xLoc){\n myRectangle.setX(xLoc);\n }",
"public void reposition(float x) {\r\n posTopTube.set(x, rand.nextInt(FLUCT) + TUBE_GAP + LOWEST_OPENING);\r\n posBotTube.set(x, posTopTube.y - TUBE_GAP - botTube.getHeight());\r\n\r\n boundsTop.setPosition(posTopTube.x, posTopTube.y);\r\n boundsBot.setPosition(posBotTube.x, posBotTube.y);\r\n }",
"public void setX(int x) {\n\tbaseXCoord = x;\n}",
"public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }",
"public int getX() { return position.x; }",
"public void random_hero_start() {\n\t\tint randomX;\n\t\tint randomY;\n\t\twhile (true) {\n\t\t\trandomX = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomY = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomX--;\n\t\t\trandomY--;\n\t\t\tif (labirinto.getLab()[randomX][randomY] == ' ')\n\t\t\t\tbreak;\n\t\t}\n\t\theroi.setX_coord(randomX);\n\t\theroi.setY_coord(randomY);\n\t\tchange_hero_pos();\n\t}",
"public float getPosX(){return px;}",
"public float placeXOnScreen(float x) {\r\n\t\tx -= this.getXPos();\r\n\t\treturn x;\r\n\t}",
"public void setPosX(float posX) {\n this.posX = posX;\n }",
"void moveX(float x) {\n _x += x;\n }",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"public void Move()\n {\n this.x += this.speed;\n\n //Cutoff the position\n if (this.x <= 2)\n {\n this.x = 2;\n }\n else if (this.x >= GameConstants.SCREEN_WIDTH - 2 * this.imageWidth)\n {\n this.x = GameConstants.SCREEN_WIDTH - 2 * this.imageWidth;\n }\n }",
"double getPositionX();",
"double getPositionX();",
"double getPositionX();",
"public void setSpawnX(int spawnX) \n\t{\n\t\tthis.spawnX = spawnX;\n\t}",
"public void setX(int x) {\n synchronized (this.xLock) {\n this.movementComposer.setXPosition(x);\n }\n }",
"public void setPosition(float x, float y) {\n internalGroup.setPosition(x, y);\n dataTrait.x = x;\n dataTrait.y = y;\n resetSprite();\n }",
"public int getX(){ return xPosition; }",
"public void moveX(double x) {\n this.x += x;\n }",
"private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }",
"private void bossMove() {\n int radius = 150; // radius\n\n angle += 0.03;\n this.getView().setTranslateX((int)(x + radius*Math.cos(angle)));\n this.getView().setTranslateY((int)(y - radius*Math.sin(angle)));\n }",
"public void update(){\n\t\t\tif (x<200){\n\t\t\t\txmoving=1; \n\t\t\t}\n\t\t\tif (x>900){ \n\t\t\t\txmoving=-.1; \n\t\t\t} \n\n\t\t\tx+=xmoving;\n\n\t}",
"public void setX(float x)\n {\n getBounds().offsetTo(x - positionAnchor.x, getBounds().top);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }",
"public void move()\n\t{\n\t\tx = x + dx;\n\t}",
"private void moveHeroTo(Player hero, int x, int y, Board board) {\n board.removeObject(\n \"player\",\n hero.getPlayerMovement().getYPosition(), 1,\n hero.getPlayerMovement().getXPosition(), 1);\n boolean worked = board.addObject(hero.getPlayerImage(),\n \"player\", false, y, 1, x, 1);\n if (worked) {\n hero.getPlayerMovement().setXPosition(x);\n hero.getPlayerMovement().setYPosition(y);\n }\n }",
"public void move(int x, int y){\n universe.erase(this);\n this.yPosition = y;\n this.xPosition = x;\n universe.draw(this);\n }",
"public void resetPaddleToStartingPosition(){\n myRectangle.setX(initialXLocation);\n }",
"void setPos(float x, float y);",
"public void setMovementX(int directionX) {\r\n movementX = directionX;\r\n }",
"public void setPosX(int posX) {\n this.posX = posX;\n }",
"public void setPixelX(int x) {\n // from AddEventHandler - leave empty\n }",
"public void move() {\r\n\t\tx = x + speed;\r\n\t}",
"public void setStartX(float startX) {this.startX = startX;}",
"public void setPosition(float x, float y);",
"public void setX(int position) {\r\n\t\tif(position<5 && position>=0) {\r\n\t\t\tthis.xcoord = position;\r\n\t\t}\r\n\t\telse {\r\n\t\t\trandomX();\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testGetPositionX(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPositionX(10);\r\n\t\t\r\n\t\tassertEquals(10, title.getPositionX());\r\n\t}",
"public void moveToPoint(int x, int y) {\n /**\n * DO NOT EDIT THIS CODE TO REMOVE DUPLICATIONS IT WILL BREAK MULTIPLAYER\n * SERIOUSLY JUST DO NOT DO IT\n *\n * DON'T DO IT\n *\n *\n * JUST DON'T TOUCH THIS CODE AT ALL\n */\n AbstractHero hero = map.getCurrentTurnHero();\n\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), x, y)) {\n map.updateVisibilityArray();\n visionChanged = true;\n gameState.updateMovementGoal(x, y);\n }\n\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n\n centerMapOnCurrentHero();\n }",
"public void setXCoordinates(double newX) { this.xCoordinates = newX; }",
"@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}",
"public void move()\n\t{\n\t\tx = x + frogVelocityX;\n\t}",
"public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}",
"@Override\n\tpublic void move() {\n\t\tx += ((direction) * xSpeed);\n\t\t//If any sprite has collided with the left or right edge of the screen set collided to true\n\t\tif (x >= 800 - spriteImage.getWidth(null) || x <= 0) collided = true;\n\t}",
"@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }",
"public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }",
"public void setX(float x) {\r\n\t\tleft = x - width / 2;\r\n\t}",
"public void setxPos(int xPos) {\r\n \tthis.xPos = xPos;\r\n }",
"public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}",
"public void setXCoordinate(int newValue)\n {\n x = newValue;\n }",
"public float getxPosition() {\n return xPosition;\n }",
"@Override\n\tpublic void update(){\n\t\t\n\t\tx += dx;\n\t\tif(x <= 2){\n\t\t\tx = 2;\n\t\t}else if(x >= ((this.width+this.paddlewidth)-350)){\n\t\t\tx = (this.width+this.paddlewidth)-350;\n\t\t}else if(x <= Dimensions.PADDLE_LEFT){\n\t\t\tx = Dimensions.PADDLE_LEFT;\n\t\t}\n\t}",
"public void resetX() {this.startX = 0f;}",
"private double xPos(double xMetres){\r\n\t\treturn xMetres*14+canvas.getWidth()/2;\r\n\t}",
"public void setPosX(double posX) {\n\t\tthis.PosX = posX;\r\n\t}",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"@Override\n public void setPosition(float x, float y) {\n }",
"public void updatePosition(float x, float y){\n rect = new Rectangle2D.Float(x,y,width,height);\n this.x = x;\n this.y = y;\n }",
"public void setStartX(double x)\n {\n startxcoord=x; \n }",
"public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }",
"void moveWest() {\n xpos = xpos - xspeed;\n if (xpos <= 0){ // 20\n xpos = width; // 25\n }\n }",
"void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void setX(float x) {\n\n\t}",
"public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }",
"public int getMovementX() {\r\n return movementX;\r\n }",
"public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}",
"public void setCardPos(double x, double y ){\r\n setX(x);\r\n setY(y);\r\n }"
]
| [
"0.73773825",
"0.7198807",
"0.6877112",
"0.67836726",
"0.6779093",
"0.6747242",
"0.67419505",
"0.6614567",
"0.6594866",
"0.6586374",
"0.6573585",
"0.6490177",
"0.64397323",
"0.64310133",
"0.6401909",
"0.6394497",
"0.63405806",
"0.63382494",
"0.6334628",
"0.6316508",
"0.6315094",
"0.6307719",
"0.62988824",
"0.629434",
"0.62804973",
"0.62760794",
"0.6273816",
"0.6163246",
"0.61616075",
"0.6161397",
"0.6143099",
"0.6139747",
"0.6132301",
"0.6126948",
"0.6124022",
"0.61047256",
"0.6075583",
"0.6073828",
"0.6073046",
"0.606612",
"0.6064972",
"0.6052476",
"0.6046139",
"0.60460657",
"0.60460657",
"0.60460657",
"0.6041961",
"0.60331327",
"0.6024412",
"0.60235554",
"0.6016832",
"0.6009416",
"0.60016745",
"0.5997579",
"0.5996527",
"0.59927464",
"0.59851193",
"0.59832764",
"0.5979359",
"0.5978761",
"0.5972149",
"0.59721416",
"0.5956542",
"0.5953736",
"0.5947751",
"0.59378225",
"0.5937316",
"0.59337085",
"0.5933303",
"0.5928522",
"0.5924593",
"0.592342",
"0.59155166",
"0.59084237",
"0.59039366",
"0.59010154",
"0.59001005",
"0.5894201",
"0.5884852",
"0.5884127",
"0.5881297",
"0.5878069",
"0.58718264",
"0.58670795",
"0.58667356",
"0.58663565",
"0.58605117",
"0.5840693",
"0.58403283",
"0.58383304",
"0.58377963",
"0.5837342",
"0.5835897",
"0.58321774",
"0.58318955",
"0.58299077",
"0.582638",
"0.5823534",
"0.58224565",
"0.58218867"
]
| 0.67031586 | 7 |
Allows the Hero to Jump | public void handleJumping(){
if ( !collide) {
speedY += 1;
if ((centerY + speedY >= 630 || collide )) {
centerY = 630;
speedY = 0;
jumped = false;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void jump(){\n getField().pandaJumped(this);\n }",
"public void jump() {\n jumped = true;\n teleport = true;\n waste = true;\n }",
"@Override\n\tpublic void onJump(PlatformPlayer player) {\n\t\t\n\t}",
"private void jump(){\n if(getYFromCamera() > -20 && getYFromCamera() < 20){\n getWorld().setCameraLocation(getGlobalX(),getGlobalY() + vSpeed);\n }\n vSpeed = vSpeed - jumpStrength;\n changeJumping(true);\n fall();\n }",
"@Override\r\n\tpublic boolean Jump(Player arg0) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean Jump(Player arg0) {\n\t\treturn false;\r\n\t}",
"void jump() {\n if (myIsJumping == myNoJumpInt) {\n myIsJumping++;\n // switch the cowboy to use the jumping image\n // rather than the walking animation images:\n setFrameSequence(null);\n setFrame(0);\n }\n }",
"@Override\n\tprotected void onJump() {\n\t\tvelocity.setPolar(moveSpeed, GMath.random.nextInt(8) * GMath.QUARTER_PI);\n\n\t\t// Occasionally jump toward the player.\n\t\tif (GMath.random.nextInt(10) == 0) {\n\t\t\tsuper.onJump();\n\t\t\tvelocity.scale(1.7);\n\t\t\tzVelocity *= 1.3;\n\t\t}\n\t}",
"public void setJumping(boolean jumping) { isJumping = jumping; }",
"private void jump() {\r\n\t\tjumping = true;\r\n\t\tjumpKeyPresses++;\r\n\t\tif (jumpKeyPresses < 12) {\r\n\t\t\tif (jumpKeyPresses == 1)\r\n\t\t\t\tdy = -0.02 * (1 / (0.3 + fatLevel));\r\n\t\t\tdy -= 0.001 * (1 / (0.3 + fatLevel));\r\n\t\t}\r\n\t}",
"public void jump(){\n if(isOnGround()){\n setDy(0.08f);\n setOnGround(false);\n }\n }",
"public static void jump(Jumpable object){\n\n if (object.canJump()) {\n ///\n }\n\n }",
"private void jump() {\r\n\t\tvelocity = new Vector(velocity.getX(), 7.0);\r\n\t}",
"@Override\n public boolean canJump()\n {\n return canJump;\n }",
"public void jump() {\n endSoftwareAnimations();\n }",
"public void jump() {\n\t\tif(!dead) {\r\n\t\t\tplaying = true;\r\n\t\t\tvelocity = jumpVelocity;\r\n\t\t\tplaySound(\"jump1.wav\");\r\n\t\t}\r\n\t}",
"public void moveJump() {\n\t\t// getSpeed().setY(-getClimbPertTick());\n\t\t// setJumpTTL(getJumpTTL() - 1);\n\n\t}",
"@Override\n public void start() {\n final LivingEntity target = mob.getTarget();\n if( target == null )\n return;\n \n // Perform the jump\n mob.getLookControl().setLookAt( target, 180.0F, 0.0F );\n final Vector3d jumpXZ = new Vector3d( target.getX() - mob.getX(), 0.0, target.getZ() - mob.getZ() )\n .normalize().scale( Config.ELITE_AI.JUMP.jumpSpeedForward.get() ).add( mob.getDeltaMovement().scale( 0.2 ) );\n mob.setDeltaMovement( jumpXZ.x, Config.ELITE_AI.JUMP.jumpSpeedUpward.get(), jumpXZ.z );\n \n // Start the cooldown (this won't tick down until the entity has landed)\n cooldownTimer = Config.ELITE_AI.JUMP.cooldown.next( mob.getRandom() );\n }",
"public void jump() {\n if (this.numJumps < 3) {\n if (this.state.equals(\"onLeftWall\")) {\n this.moveRight();\n this.setSpecialState(\"jumpFromWall\", 180);\n } else if (this.state.equals(\"onRightWall\")) {\n this.moveLeft();\n this.setSpecialState(\"jumpFromWall\", 180);\n }\n this.yVel = this.jumpVel;\n this.numJumps++;\n }\n\n\n }",
"void startClipJump();",
"public void jump()\r\n\t{\t\r\n\t\t//que pasa si morimos:\r\n\t\tif (gameOver)\r\n\t\t{\t//si morirmos repintamos el pajaro\r\n\t\t\tif (Menu.jugador.equals(\"cide\") || Menu.jugador.equals(\"Cide\") || Menu.jugador.equals(\"CIDE\")) {\r\n\t\t\t\tbird = new Rectangle(WIDTH / 2 - 10, HEIGHT / 2 - 10, 75, 75);\r\n\t\t\t} else {\r\n\t\t\t\tbird = new Rectangle(WIDTH / 2 - 10, HEIGHT / 2 - 10, 50, 50);\r\n\t\t\t}\r\n\t\t\t//limiamos las columnas que se habian pintado antes\r\n\t\t\tcolumns.clear();\r\n\t\t\t//movimiento a cero\r\n\t\t\tyMotion = 0;\r\n\t\t\t//puntuacion a cero\r\n\t\t\tscore = 0;\r\n\t\t\t//creacion de las nuevas columnas\r\n\t\t\taddColumn(true);\r\n\t\t\taddColumn(true);\r\n\t\t\taddColumn(true);\r\n\t\t\taddColumn(true);\r\n\t\t\t//vivimos\r\n\t\t\tgameOver = false;\r\n\t\t}\r\n\r\n\t\t//ymotion es el salto del pajaro\r\n\t\tif (!started)\r\n\t\t{\r\n\t\t\tstarted = true;\r\n\t\t}\r\n\t\telse if (!gameOver)\r\n\t\t{\r\n\t\t\tif (yMotion > 0) {\r\n\t\t\t\tyMotion = 0;\r\n\t\t\t}\r\n\t\t\tyMotion -= 10;\r\n\t\t}\r\n\t}",
"public boolean isJumping() { return isJumping; }",
"public void jump(){\n if(onGround)\n y_velocity = -0.45f;\n }",
"public void actionPerformed(ActionEvent e)\n {\n if(jumpState != 2){\n //if the player is not jumping this if else statement will\n //change the character from leg out to leg in position\n if(jumpState == 1){\n //sets the image to have the leg in\n jumpState = 0;\n }\n else{\n //sets the image to have the leg out\n jumpState = 1;\n }\n\n }\n\n }",
"void jump() {\n myCowboy.jump();\n }",
"private void jump() {\n\t\t\n\t\t// resets game\n\t\tif (gameOver) {\n\t\t\tbird = new Rectangle(WIDTH/2-10, HEIGHT/2-10, 20, 20);\n\t\t\tcolumns.clear();\n\t\t\tyMotion = 0;\n\t\t\tscore = 0;\n\t\t\t\n\t\t\taddColumn(true);\n\t\t\taddColumn(true);\n\t\t\taddColumn(true);\n\t\t\taddColumn(true);\n\t\t\t\n\t\t\tgameOver = false;\n\t\t}\n\t\t\n\t\t// starts game\n\t\tif (!started) {\n\t\t\tstarted = true;\n\t\t}\n\t\t\n\t\telse if (started && !gameOver) {\n\t\t\tif (yMotion > 0) {\n\t\t\t\tyMotion = 0;\n\t\t\t}\n\t\t\t\n\t\t\tyMotion -= 10;\n\t\t}\n\t\t\n\t}",
"public void jump() {\n\t\t// if (isBlock_down()) {\n\t\t// setJumpTTL(getMaxJumpTTL());\n\t\t// setBlock_down(false);\n\t\t// }\n\t}",
"public void jump()\n {\n \ttry {\n \t\tif(!secret)\n \t\t\timg = ImageIO.read(new File(\"FlappyBirdUp.png\"));\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n yVelocity = -8;\n }",
"public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}",
"@Override\n\tpublic void onStopJump(PlatformPlayer player) {\n\t\t\n\t}",
"@Test\n\tpublic void testJump() {\n\t\tActorWorld world = new ActorWorld();\n\t\tworld.add(new Location(5, 5), alice); // alice default direction is NORTH\n\t\talice.jump();\n\t\tassertEquals(new Location(3, 5), alice.getLocation());\n\t}",
"@Override\n public void setCanJump(boolean b)\n {\n canJump = b;\n isJumping = !b;\n }",
"public boolean canJump() {\n\t\treturn false;\n\t}",
"public void setJumpSpot(int spot)\n{\n jumpSpot = spot;\n}",
"public void jump(Boolean flag) {\n\t\tif (parent.onGround && jumpTicks == 0 && !(parent instanceof EntityFlyingPixelmon)) {\n\t\t\tif (parent instanceof EntityPixelmon)\n\t\t\t\tif (flag) {\n\t\t\t\t\tparent.motionY += 0.2; // makes mount jump higher. Do not\n\t\t\t\t\t\t\t\t\t\t\t// use big values!\n\t\t\t\t}\n\t\t\tjumpTicks = 10;\n\t\t}\n\t\tif (parent instanceof EntityFlyingPixelmon) {\n\t\t\tif (parent.onGround) {\n\t\t\t\tparent.motionY += 0.3;\n\t\t\t} else\n\t\t\t\tparent.motionY += 0.1;\n\t\t}\n\t}",
"public JumpCommand(Player jump) {\r\n\t\tthis.jump = jump;\r\n\t}",
"public Jump() {\n try {\n myCanvas = new JumpCanvas(this);\n myCanvas.addCommand(myExitCommand);\n myCanvas.addCommand(myMusicCommand);\n myCanvas.addCommand(myPauseCommand);\n myCanvas.setCommandListener(this);\n } catch (Exception e) {\n errorMsg(e);\n }\n }",
"public void setJumping(boolean isJumping) {\r\n\t\tthis.isJumping = isJumping;\r\n\t}",
"public void jump() {\n\n if (this.getPlanet() == null) {\n return;\n }\n\n float rot = this.getAngleBetween(this.getPlanet());\n\n this.jumpingTime = 0.5f;\n\n rot -= Math.PI / 2.0;\n\n Vector2 direction = new Vector2((float) Math.cos(rot), (float) Math.sin(rot)).nor();\n\n this.applyForceToCenter(direction.rotate(180).scl((float) (Math.pow(this.calculatePullForce(this.getPlanet()).len(), 4))), true);\n\n this.limitVelocity();\n\n this.removeFromPlanet();\n\n float time = this.state.getTime();\n\n this.setState(new FloatState(time + jumpBonusTime));\n\n }",
"public void jumpPressed() {\n jumpingPressed = true;\n keys.get(keys.put(Keys.JUMP, true));\n }",
"public boolean jump () {\n\t\t// Velocity first (Symplectic Euler)\n\t\tdata._jumpVel = data._jumpVel - data._timeStep * data._gravity;\n\t\tdata._jumpPos = data._jumpPos + data._jumpVel * data._timeStep;\n\t\tif (data._jumpVel <= -10.5) {\n\t\t\tdata._timeStep = 0.02;\n\t\t\tdata._jumpPos = 0; \n\t\t\tdata._jumpVel = 10; \n\t\t\treturn false; \n\t\t}\n\t\t// Set position\n\t\tthis.setPosition( new Vec2d(this.getMainCharacter().getData().getPosition().x, - 70 * data._jumpPos + 400));\n\t\tthis.getMainCharacter().getData().setPosition(this.getPosition());\n\t\treturn true;\n\t}",
"public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"public void autoAdvManualJump(ActionEvent e)\n {\n _animateDisplayedChild(\"dmoTpl:autoAdvDeck\", _autoAdvChild);\n }",
"@Test\n public void testJump() {\n world.add(new Location(4, 4), jumper);\n assertEquals(new Location(4, 4), jumper.getLocation());\n jumper.jump();\n assertEquals(new Location(2, 4), jumper.getLocation());\n }",
"@Test\n\tpublic void testCanJump() {\n\t\tActorWorld world = new ActorWorld();\n\t\t/* case1:\n\t\t * next location is a Rock, next two cells location is empty.\n\t\t */\n\t\tworld.add(new Location(5, 1), alice);\n\t\tworld.add(new Location(4, 1), new Rock());\n\t\tassertEquals(true, alice.canJump());\n\n\t\t/* case2:\n\t\t * next location is Rock. next two cells location is flower. \n\t\t */\n\t\talice.moveTo(new Location(5, 2));\n\t\tworld.add(new Location(4, 2), new Rock());\n\t\tworld.add(new Location(3, 2), new Flower());\n\t\tassertEquals(true, alice.canJump());\n\n\t\t/* case2:\n\t\t * next location is Rock. next two cells location is Rock. \n\t\t */\n\t\talice.moveTo(new Location(5, 3));\n\t\tworld.add(new Location(4, 3), new Rock());\n\t\tworld.add(new Location(3, 3), new Rock());\n\t\tassertEquals(false, alice.canJump());\n\t}",
"private void continuousJump(Vector3 position, Move m) {\n if (m.moving)\n position.y += m.jumpForceMoving;\n\t\telse\n position.y += m.jumpForce;\n //Gdx.app.log(TAG, \"continuious jkumpj\");\n\n\t}",
"public void changeHasHighJump()\r\n\t{\r\n\t\thasHighJump = !hasHighJump;\r\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t//if the player has already pressed the jump and thus changing the status\n\t\t//so only when a player has not double jump before, and is now jumping, and also has\n\t\t//the power up present could this player double jump\n\t\tif(this.player.getDoubleJump() && this.player.getPowerUp() && this.player.getJump()){\n\t\t\tthis.player.doubleJump();\t\t\t\n\t\t\tthis.jumpSound.play();\n\t\t}\n\t\t//other wise, if the player is not on a gap, allow to jump\n\t\telse if(!(this.foreground.getIndex(this.player.getX()).getIsGap())){\n\t\t\tthis.player.jump();\n\t\t\tthis.jumpSound.play();\n\t\t}\n\t}",
"public void startMovingToTarget() \r\n {\n movingToTarget = true;\r\n }",
"public boolean isJumping(){\r\n\t\tif(jumping){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Test\n public void testCanJump() {\n world.add(new Location(2, 2), jumper);\n world.add(new Location(0, 2), rock);\n assertEquals(false, jumper.canJump());\n jumper.turn();\n world.add(new Location(0, 4), flower);\n assertEquals(true, jumper.canJump());\n jumper.jump();\n assertEquals(false, jumper.canJump());\n jumper.turn();\n jumper.turn();\n jumper.turn();\n world.add(new Location(2, 4), jumper2); \n assertEquals(false, jumper.canJump());\n jumper.turn();\n world.add(new Location(2, 2), bug);\n assertEquals(false, jumper.canJump());\n }",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"public abstract String jump();",
"public boolean isJumping() {\r\n\t\treturn this.isJumping;\r\n\t}",
"public void jump(int dyIn)\n\t{\n\t\ty = y - dY;\n\t}",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }",
"public void setJumpCount(int jumpCount) {this.jumpCount = jumpCount;}",
"@EventHandler(ignoreCancelled = true)\n public void onHorseJump(HorseJumpEvent event) {\n AbstractHorse abstractHorse = event.getEntity();\n Entity passenger = Util.getPassenger(abstractHorse);\n if (!(passenger instanceof Player)) {\n return;\n }\n\n Player player = (Player) passenger;\n SavedHorse savedHorse = DB.findOrAddHorse(abstractHorse);\n\n if (CONFIG.DEBUG_EVENTS && savedHorse.isDebug()) {\n debug(abstractHorse, \"Horse jump: \" + player.getName());\n }\n }",
"public void endJump() {\n\t\tsetVy(Math.min(0, getVy()));\n\t}",
"abstract boolean performJump(long value);",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}",
"private void jumpToRoomDetail(UnitFamilyRoomModel roomModel){\n }",
"@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}",
"public void teleport(boolean penalty) { \n\t\tPublisher teleport_h = new Publisher(\"/ariac_human/go_home\", \"std_msgs/Bool\", bridge);\n\t\tif(penalty)\t\n\t\t\tteleport_h.publish(new Bool(true));\t\n\t\telse\n\t\t\tteleport_h.publish(new Bool(false));\t\n\n\t\t// Reset \"smart\" orientation variables\n\t\tlastHumanState_MsgT = System.currentTimeMillis();\n\t\tlastUnsafeD_MsgT = System.currentTimeMillis();\n\t\tpreviousDistance = 50.0;\n\t\tisAproximating = false;\n\t}",
"void setGameOver() {\n myGameOver = true;\n myJump.userPauseThreads();\n }",
"@Override\n public void start() {\n this.mob.getNavigation().startMovingTo(\n this.mob.getPositionTarget().getX(),\n this.mob.getPositionTarget().getY(),\n this.mob.getPositionTarget().getZ(),\n this.speed\n );\n }",
"public void setJumpCount(int count)\n{\n jumpCount = count;\n}",
"public void moveHero(Labirinto lab, String direction, sword espada, ArrayList<dragon> dragons) {\n\t\tlab.getTable()[pos_x][pos_y] = ' ';\n\t\tswitch(direction)\n\t\t{\n\t\tcase \"n\":\n\t\tcase \"N\":\n\t\t\tif (lab.getTable()[pos_x - 1][pos_y] == ' ')\n\t\t\t{\n\t\t\t\tpos_x--;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'E')\n\t\t\t{\n\t\t\t\tpos_x--;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'D' || lab.getTable()[pos_x - 1][pos_y] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x - 1, pos_y).changeState();\n\t\t\t\t\tpos_x--;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x - 1][pos_y] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_x--;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\tcase \"S\":\n\t\t\tif (lab.getTable()[pos_x + 1][pos_y] == ' ')\n\t\t\t{\n\t\t\t\tpos_x++;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'E')\n\t\t\t{\n\t\t\t\tpos_x++;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'D' || lab.getTable()[pos_x + 1][pos_y] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x + 1, pos_y).changeState();\n\t\t\t\t\tpos_x++;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x + 1][pos_y] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_x++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"e\":\n\t\tcase \"E\":\n\t\t\tif (lab.getTable()[pos_x][pos_y + 1] == ' ')\n\t\t\t{\n\t\t\t\tpos_y++;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'E')\n\t\t\t{\n\t\t\t\tpos_y++;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'D' || lab.getTable()[pos_x][pos_y + 1] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x, pos_y + 1).changeState();\n\t\t\t\t\tpos_y++;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y + 1] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_y++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"o\":\n\t\tcase \"O\":\n\t\t\tif (lab.getTable()[pos_x][pos_y - 1] == ' ')\n\t\t\t{\n\t\t\t\tpos_y--;\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'E')\n\t\t\t{\n\t\t\t\tpos_y--;\n\t\t\t\tequipHero();\n\t\t\t\tespada.changeState();\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'D' || lab.getTable()[pos_x][pos_y - 1] == 'd')\n\t\t\t{\n\t\t\t\tif(tipo == 'A'){\n\t\t\t\t\tfindDragon(dragons, pos_x, pos_y - 1).changeState();\n\t\t\t\t\tpos_y--;\n\t\t\t\t\tkillDragonsAround(dragons);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (lab.getTable()[pos_x][pos_y - 1] == 'S' && tipo == 'A')\n\t\t\t{\n\t\t\t\tboolean dead = true;\n\t\t\t\tfor(int i = 0;i < dragons.size(); i++){\n\t\t\t\t\tif (dragons.get(i).getState() == true)\n\t\t\t\t\t\tdead = false;\n\t\t\t\t}\n\t\t\t\tif (dead)\n\t\t\t\t\tpos_y--;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"protected abstract T jump(T neighbor, T current, Set<T> goals);",
"public int jump() {\n if (Ylocation > 475) {\n Ylocation -= Ydir;\n }\n\n return Ylocation;\n }",
"private void updateJump()\n {\n\t\tif(isJumping && jumpKeyDown)\n\t\t{\n\t\t\tif(ySpeed > maxJumpSpeed)\n\t\t\t{\n\t \t\tySpeed -= jumpIncr;\n\t \t\tSystem.out.println(\" Player.updateJump() : \" + ySpeed);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\n \t\t\t\t\"updateJump() --> maximum jump speed reached : \" + ySpeed);\n\t\t\t\tisJumping = false;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }",
"public void setJumpState(int n)\n{\n jumpState=n;\n}",
"@Override\n\tpublic void render(float arg0) {\n\t\t Gdx.gl.glClearColor(1, 1, 1, 1);\n\t Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n\t label.setText(hardJump.score+\"\");\n\t\t label.setPosition(1050*MainActivity.w, 400*MainActivity.h);\n\t if(fail==0)\n\t\t {\n\t\t \t failcount++;\n\t\t }\n\t\t if(failcount==1)\n\t\t {\n\t\t \t loading.setText(\"Loading...\");\n\t\t }\n\t\t if(failcount==10)\n\t\t {\n\t\t \t fail=1;\n\t\t \t failcount=0;\n\t\t \t gs.setScreen(gs.hfg);\n\t\t }\n\t stage.act();\n\t stage.draw();\n\t \n\t if(Gdx.input.justTouched())\n\t\t\t{\n\t \t if(Gdx.input.getX()>470*MainActivity.w&&Gdx.input.getX()<788*MainActivity.w&&Gdx.input.getY()>310*MainActivity.h&&Gdx.input.getY()<407*MainActivity.h)\n\t \t {\n\t \t\t Gdx.app.exit();\n\t \t }\n\t \t if(Gdx.input.getX()>470*MainActivity.w&&Gdx.input.getX()<788*MainActivity.w&&Gdx.input.getY()>145*MainActivity.h&&Gdx.input.getY()<250*MainActivity.h)\n\t \t {\n\t \t\t// Gdx.gl.glClearColor(1, 1, 1, 1);\n\t \t // Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n\t \t fail=0;\n\t \t\t if(hardJump.state==hardJump.STATE.Left)\n\t \t\t\t hardJump.state=hardJump.STATE.Right;\n\t \t\t\t if(hardJump.state==hardJump.STATE.Right)\n\t \t\t\t \t hardJump.state=hardJump.STATE.Left;\n\t \t\t\t \t//Jump.d.setPosition(Jump.right[1].x, Jump.right[1].y);\n\t \t\t\t if(hardJump.state==hardJump.STATE.Up)\n\t \t\t\t\t // Jump.d.setPosition(Jump.up[1].x, Jump.up[1].y);\n\t \t\t\t \t hardJump.state=hardJump.STATE.Down;\n\t \t\t\t if(hardJump.state==hardJump.STATE.Down)\n\t \t\t\t\t //Jump.d.setPosition(Jump.down[1].x, Jump.down[1].y);\n\t \t\t\t \t hardJump.state=hardJump.STATE.Up;\n\t \t\t n=hardJump.n;\n\t \t\t while(n==hardJump.n)\n\t \t\t {\n\t \t\t\t hardJump.n=new Random().nextInt(3);\n\t \t\t }\n\t \t\t m=hardJump.m;\n\t \t\t while(m==hardJump.m)\n\t \t\t {\n\t \t\t\t hardJump.m=new Random().nextInt(3);\n\t \t\t }\n\t \t\t hardFirstGame.gap=0;\n\t \t\t hardFirstGame.fling=-1;\n\t \t\t hardFirstGame.area=0;\n\t \t\t hardFirstGame.fireexist=false;\n\t \t\t hardFirstGame.speed=1;\n\t \t\t hardFirstGame.hasreset1=false;\n\t \t\t hardFirstGame.hasreset2=false;\n\t \t\t hardFirstGame.hasreset3=false;\n\t \t\t hardFirstGame.hasreset4=false;\n\t \t\t hardFirstGame.hasreset5=false;\n\t \t\t hardFirstGame.hasreset6=false;\n\t \t\t hardFirstGame.hasreset7=false;\n\t \t\t hardFirstGame.hasreset8=false;\n\t \t\t hardJump.fail=0;\n\t \t\t hardJump.ifcontinue=0;\n\t \t\t hardJump.playcount=0; \n\t \t\t \n\t \t\t hardJump.score=0;\n\t \t\t hardFirstGame.playMusic=0;\n hardball.down1.setPosition(LBorder, DBorder-64*MainActivity.h);\n hardball.down2.setPosition(LBorder+160*MainActivity.w, DBorder-64*MainActivity.h);\n\t \t\t\t//Ball.down3.setPosition(LBorder+256, DBorder-64);\n hardball.left1.setPosition(LBorder-64*MainActivity.w, DBorder);\n hardball.left2.setPosition(LBorder-64*MainActivity.w, DBorder+160*MainActivity.h);\n\t \t\t\t//Ball.left3.setPosition(LBorder-64, DBorder+128*2);\n hardball.up1.setPosition(LBorder, UBorder+64*MainActivity.h);\n hardball.up2.setPosition(LBorder+160*MainActivity.w,UBorder+64*MainActivity.h);\n\t \t\t\t//Ball.up3.setPosition(LBorder+128*2, UBorder+64);\n hardball.right1.setPosition(RBorder+64*MainActivity.w, DBorder);\n hardball.right2.setPosition(RBorder+64*MainActivity.w, DBorder+160*MainActivity.h);\n\t \t\t\t//Ball.right3.setPosition(RBorder+64, DBorder+128*2);\n\t \t\t\n\t \t\t\t\t//gs.setScreen(gs.hfg);\n\t \t\t\n\t \t }\n\t \t \n\t\t\t\t//System.out.println(\"受到法律卡上飞机快乐撒地方;萨度\");\n\t\t\t}\n\t}",
"public void touchExit() \n {\n if (getOneIntersectingObject(Exit.class) != null)\n Level1.transitionToGameWinWorld(); \n }",
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"boolean goHome(IGeneticMob geneticMob);",
"@Override\n public void hero_dies() {\n SoundPlayer.playHeroDies();\n this.stop();\n\n get_hero().setPosition(PLAYER_START_POSITION);\n start();\n\n // setting every flower to its original position\n //reason: hero can knock the flower out of the pipe when it hits it\n for (int i = 0; i < get_pipes().size(); i++) {\n if (get_pipes().get(i).with_flower()) {\n get_pipes().get(i).get_flower().setLinearVelocity(new Vec2(0f, 0f));\n get_pipes().get(i).get_flower().setPosition(get_pipes().get(i).get_flower().get_original_position());\n }\n }\n \n for (int i = 0; i < get_fire_rods().size(); i++) {\n get_fire_rods().get(i).reset_position();\n }\n get_hero().addLife(-1);\n if (get_hero().get_life() < 1){\n getGameController().gameOver();\n //get_sound_player().stop_level_two_music();\n }\n }",
"public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }",
"public void setHeroWalkDown(Animation<TextureRegion> heroWalkDown) {\n this.heroWalkDown = heroWalkDown;\n }",
"public void doubleJump() {\n\t\tmultipleJump = true;\n\t\tint pieceJumping = arr[prevPosX][prevPosY];\n\t\tLogic.arr[prevPosX][prevPosY] = 0;\n\t\tLogic.arr[prevPosX + (xdiff * 2)][prevPosY + (ydiff * 2)] = 0;\n\t\tLogic.arr[prevPosX + (xdiff * 3)][prevPosY + (ydiff * 3)] = 0;\n\t\tif (prevPosX + (xdiff * 4) == 7 || prevPosX + (xdiff * 4) == 0) {\n\t\t\tif (pieceJumping < 3) // If the piece is a pawn\n\t\t\t\tsetPieceJumpingToArr(pieceJumping + 2); // Make a king\n\t\t\telse\n\t\t\t\tsetPieceJumpingToArr(pieceJumping); // Set the king on row 0 or 7\n\t\t} else\n\t\t\tsetPieceJumpingToArr(pieceJumping); // Set the piece\n\t\tP2P.pieceMoveChanger();\n\t\tfor (int i = 0; i < 8; i++){\n\t\t\tSystem.out.println();\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tSystem.out.print(arr[i][j]);\n\t\t}\n\t}",
"private void returnPlayerHome(Player player_to_be_eaten)\n {\n player_to_be_eaten.setX_cordinate(player_to_be_eaten.getInitial_x());\n player_to_be_eaten.setY_cordinate(player_to_be_eaten.getInitial_y());\n player_to_be_eaten.setSteps_moved(0);\n }",
"@Override\n\tprotected float getJumpUpwardsMotion() {\n\t\treturn canFly() ? 1 : super.getJumpUpwardsMotion();\n\t}",
"public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)\r\n {\r\n Player p = (Player)sender;\r\n World World = p.getWorld();\r\n Location spawn = new Location(World, 448.5, 165, 1156.5);\r\n if(!(sender instanceof Player))\r\n {\r\n p.sendMessage(\"vous n'êtes pas un joueur, vous ne pouvez pas éxecuter la commande.\");\r\n }\r\n if(cmd.getName().equalsIgnoreCase(\"jump\"))\r\n {\r\n if((args.length == 1))\r\n {\r\n if(args[0].equalsIgnoreCase(\"stop\"))\r\n {\r\n if(EventClass.bParcour.contains(p.getUniqueId()))\r\n {\r\n p.teleport(spawn);\r\n EventClass.checkPoint = 0;\r\n EventClass.remove(p);\r\n }\r\n else\r\n {\r\n p.sendMessage(\"Pour arrêter le parcours il faut au moins l'avoir commncé !\");\r\n }\r\n }\r\n else if(args[0].equalsIgnoreCase(\"help\"))\r\n {\r\n p.sendMessage(\"§6[Parcours] §fCette commande te permet d'arrêter le parcour à condition de l'avoir commencer !.\");\r\n }\r\n else\r\n {\r\n p.sendMessage(\"/jump stop\");\r\n }\r\n\r\n }\r\n else if(args.length == 0)\r\n {\r\n p.sendMessage(\"/jump stop\");\r\n }\r\n else\r\n {\r\n p.sendMessage(\"/jump stop\");\r\n }\r\n }\r\n\r\n return false;\r\n }",
"@Test\n public void isJumpActionLegalFor()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final Agent agentRed = agents.get(0);\n final Agent agentWhite = agents.get(1);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentRed, CheckersPosition.P21,\n CheckersPosition.P17);\n action.doIt();\n }\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P14);\n action.doIt();\n }\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentRed, CheckersPosition.P22,\n CheckersPosition.P18);\n action.doIt();\n }\n final CheckersAdjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can jump his token over a red token to an empty space.\n assertTrue(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P14,\n CheckersPosition.P21));\n\n // Agent white cannot jump his token to an occupied space.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P14,\n CheckersPosition.P23));\n\n // Agent white cannot jump his token to an adjacent empty space.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P10,\n CheckersPosition.P15));\n\n // Agent white cannot jump his own token.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P08,\n CheckersPosition.P15));\n }",
"public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}",
"public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}",
"public void jumpRun(int bars) {\n }",
"@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }",
"public void act() \n {\n fall();\n if(Greenfoot.isKeyDown(\"space\") && isOnSolidGround())\n {\n jump();\n }\n move();\n }",
"public void goToSprite(Sprite target) { \n goToXY(target.pos.x,target.pos.y);\n }",
"private void changeCharacterLocations() {\n if (locationAnimationDirectionSwitch) {\n locationAnimationTicker++;\n } else {\n locationAnimationTicker--;\n }\n\n // While the user's FaceCharacter bobs up, their opponent should bob down.\n heroLocation[1] += locationAnimationTicker;\n antagonistLocation[1] -= locationAnimationTicker;\n\n if (locationAnimationTicker == 5 || locationAnimationTicker == -5) {\n locationAnimationDirectionSwitch = !locationAnimationDirectionSwitch;\n }\n }",
"@Override\n\tpublic boolean move() {\n\n\t\tif ((key_state & MyConst.Key.LEFT) == MyConst.Key.LEFT)\n\t\t\tif (x <= 0) {\n\t\t\t\tthis.pos.x = x + (int) (width * 0.25);\n\t\t\t\tthis.x = 0;\n\t\t\t} else {\n\t\t\t\tthis.pos.x -= 5;\n\t\t\t\tthis.x -= 5;\n\t\t\t}\n\t\tif ((key_state & MyConst.Key.RIGHT) == MyConst.Key.RIGHT)\n\t\t\tif (x >= MyConst.GamePan.GAMEPAN_W - MyImages.img_me.getWidth(null)) {\n\t\t\t\tx = MyConst.GamePan.GAMEPAN_W - MyImages.img_me.getWidth(null);\n\t\t\t\tthis.pos.x = x + (int) (width * 0.25);\n\t\t\t} else {\n\t\t\t\tthis.pos.x += 5;\n\t\t\t\tx += 5;\n\t\t\t}\n\t\tif (((key_state & MyConst.Key.UP) == MyConst.Key.UP) && !jump) {\n\t\t\tjump = true;\n\t\t\tSystem.out.println(jump);\n\t\t}\n\n\t\tif ((key_state & MyConst.Key.FIRE) == MyConst.Key.FIRE) {\n\t\t\tSystem.out.println(\"--Fire--\");\n\t\t\tbulletManager.make_bullet(x + width / 2, y);\n\t\t}\n\n\t\t// jump\n\t\tif (jump) {\n\t\t\tSystem.out.println(this.y);\n\t\t\tif (this.y >= jump_interval) {\n\t\t\t\tthis.y -= 5;\n\t\t\t\tthis.pos.y -= 5;\n\t\t\t} else {\n\t\t\t\tjump = false;\n\n\t\t\t}\n\t\t} else if (!jump && (this.y < MyConst.GamePan.GAMEPAN_H - height)) {\n\t\t\tthis.y += 5;\n\t\t\tthis.pos.y += 5;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n protected void end() {\n Robot.shooter.setShooterSpeed(0);\n Robot.elevator.elevatorUp(0);\n Robot.hopper.hopperOut(0);\n Robot.intake.enableIntake(0);\n\n\n }",
"public void jumpLocation ( Point loc )\r\n\t{\r\n\t\tif ( loc.x < 0 || loc.y < 0 || \r\n\t\t\t\t loc.x >= size || loc.y >= size )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tmaze [currentRow] [currentCol].removeWalker(Direction.NONE);\r\n\t\tcurrentRow = loc.y;\r\n\t\tcurrentCol = loc.x;\r\n\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t}",
"public void go_to_home_position() {\n stop_hold_arm();\n Pneumatics.get_instance().set_solenoids(false);\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_home, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }",
"@Test\n //test if the jumper can move if it's surrounded by the jumpers\n public void testMove() {\n world.add(new Location(FOUR , FOUR), jumper);\n world.add(new Location(THREE, FOUR), new jumper());\n world.add(new Location(FIVE, FOUR), new jumper());\n world.add(new Location(FOUR, THREE), new jumper());\n world.add(new Location(FOUR, FIVE), new jumper());\n jumper.act();\n assertEquals(new Location(TWO, FOUR), jumper.getLocation());\n }"
]
| [
"0.7309612",
"0.72310156",
"0.7188932",
"0.7156249",
"0.7047712",
"0.7047712",
"0.6996691",
"0.6936641",
"0.68822944",
"0.6845276",
"0.68442655",
"0.683275",
"0.67940015",
"0.67565656",
"0.6729288",
"0.66499364",
"0.66373223",
"0.66166013",
"0.6608249",
"0.6582055",
"0.6571019",
"0.65115994",
"0.6506358",
"0.648307",
"0.64771867",
"0.64699084",
"0.64694995",
"0.6468382",
"0.6425061",
"0.64103425",
"0.6392571",
"0.632217",
"0.631786",
"0.6290766",
"0.6264992",
"0.6251359",
"0.6242893",
"0.62200487",
"0.61804026",
"0.6168982",
"0.61569786",
"0.61466926",
"0.6143067",
"0.61294883",
"0.6119266",
"0.6040803",
"0.6028448",
"0.60090584",
"0.59957916",
"0.5995074",
"0.59879524",
"0.5977248",
"0.5976701",
"0.5951836",
"0.58954626",
"0.5877386",
"0.5857113",
"0.58486205",
"0.58312315",
"0.5828711",
"0.58187014",
"0.58072096",
"0.5736992",
"0.57334346",
"0.57321304",
"0.5712409",
"0.57028884",
"0.5680662",
"0.56774235",
"0.56709576",
"0.5667311",
"0.56581014",
"0.56383884",
"0.56179506",
"0.5616963",
"0.5601599",
"0.5601123",
"0.5593772",
"0.55790883",
"0.5574195",
"0.55659693",
"0.5559462",
"0.55533147",
"0.5552846",
"0.5544807",
"0.55294806",
"0.55204374",
"0.5519736",
"0.5518718",
"0.5505219",
"0.54995275",
"0.54943436",
"0.54846793",
"0.54827726",
"0.5481046",
"0.5477753",
"0.5475382",
"0.5474224",
"0.5472534",
"0.54682297"
]
| 0.61817104 | 38 |
Check for anything that collides with the hero | public void checkCollision(Box box){
if(collidingEntity2!=null && collidingEntity2!=box){
return;
}
FloatRect x = box.getRect ();
if (rect1==null || x==null){
return;
}
FloatRect ins = rect1.intersection (x);
if(ins!=null) {
this.collidingEntity2= box;
collide=true;
checkTopCollision (x);
if(collidedTop==false) {
checkRightCollision (x);
checkLeftCollision (x);
}
} else {
noCollision ();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }",
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\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}",
"private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void checkCollision()\n {\n if(isTouching(Rocket.class))\n {\n removeTouching(Rocket.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Fire.class))\n {\n removeTouching(Fire.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Sword.class))\n { \n removeTouching(Sword.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n notifyObservers(-20);\n }\n \n else if(isTouching(Star.class))\n { \n removeTouching(Star.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n count++;\n boost();\n }\n }",
"public void checkCollision() {}",
"@Override\n public void checkCollision( Sprite obj )\n {\n \n }",
"public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean checkCollideSingle(GameObject gameObject, int x, int y) {\n if (!(gameObject instanceof Player) || !isAlive())\n return false;\n\n boolean result = super.withinRange(x, y);\n\n if (result) {\n if (prev + (hitInterval * 10) < System.currentTimeMillis()) {\n prev = System.currentTimeMillis();\n startHitTime = prev + 300;\n startHit = true;\n }\n }\n\n if (result) {\n if (startHitTime < System.currentTimeMillis() && startHit) {\n HUD.getInstance().removeHealth(getDamage());\n setStatus(PlayerStatus.FIGHTING);\n startHit = false;\n }\n }\n\n return result;\n }",
"public void checkCollision() {\n\t\tfor(SolidObject i : solidObjects) {\r\n\t\t\tif(getBounds().intersects(i.getBounds())) {\r\n\t\t\t\t//Increments the KillCount\r\n\t\t\t\tif(i.onAttack(damage, flipped)) {\r\n\t\t\t\t\tkillCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"boolean collideWithVehicles(Vehicle v);",
"void checkCollision(Entity other);",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"private void collision(){\n\t\tboolean touched = false;\n\t\tboolean hit;\n\t\tint j =0;\n\t\twhile ( j< this.game_.getSaveBaby().size() && !touched){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n\t\t\ttouched = this.game_.getBunnyHood().getPosition().dst(b.getPosition())<=80;\n\t\t\thit = this.game_.getWolf().getPosition().dst(b.getPosition())<=80;\n\t\t\tif (touched){\n\t\t\t\tthis.game_.setBabySaved(b);\n\t\t\t}\n\t\t\tif (hit){\n\t\t\t\tthis.game_.wolfCatchBunnies(b);\n\t\t\t\t/**\n\t\t\t\t * Test de callback, retour vers l app android\n\t\t\t\t */\n\t\t\t\tif(this.game_.getScoreWolf()==3){\n\t\t\t\t\tif (this.gameCallBack != null) {\n\n this.gameCallBack.gameOverActivity(this.game_.getScoreBunny());\n\t\t\t\t\t\tthis.isGameOver=true;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tGdx.app.log(\"MyGame\", \"To use this class you must implement MyGameCallback!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t}",
"@Override\n public void checkCollision( Sprite obj )\n {\n\n }",
"private boolean collides(GameObject gameObject1) {\n return collides(gameObject1, 0.5);\n }",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"boolean collideWithCoins(Coin c);",
"public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}",
"private void collision(GameObjectContainer<GameObject> object) {\n \tGameObject renderObject = null;\r\n\t\tfor (int i = 0; i < object.getSize(); i++) {\r\n\t\t\trenderObject = object.iterator().next();\r\n\r\n\t\t\tif (renderObject.getType() == \"BLOCK\") {\r\n\t\t\t\tif (this.getBoundsInParent().intersects(renderObject.getBoundsInParent())) {\r\n\t\t\t\t\tSystem.out.println(\"intersected\");\r\n\t\t\t\t\tthis.setTranslateY(renderObject.getTranslateY() - renderObject.getHeight());\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t\tjump = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfalling = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (renderObject.getType() == \"NURSE\") {\r\n\t\t\t\tif (this.getBoundsInParent().intersects(renderObject.getBoundsInParent())) {\r\n\t\t\t\t\tSystem.out.println(\"nurse\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}else {\r\n\t\t\t\tfalling = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n }",
"public void checkCollisions(int xH, int yH) {\n Rectangle r1 = new Rectangle(xH, yH, 50, 50);\n Rectangle r2 = new Rectangle(zombie.x, zombie.y, 50, 50);\n if (r1.intersects(r2)) {\n zombieWins = true; \n }\n }",
"public abstract void collide(InteractiveObject obj);",
"public void collideWith(Rigidbody obj) {\n\t\t\r\n\t}",
"public void unitCollision() {\n\t}",
"public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }",
"public abstract boolean collisionWith(CollisionObject obj);",
"public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}",
"boolean collidesEnemy() {\n for(int i = 0; i < barrage.size(); i++) {\n // establish a rectangle for the laser\n Rectangle blaster = new Rectangle((int)barrage.get(i).getX(), (int)barrage.get(i).getY(), WIDTH, HEIGHT);\n \n // determine if the laser intersects an enemy\n for (int q = 0; q < fleet.size(); q++) {\n Rectangle enemy = new Rectangle((int)fleet.get(q).getX(), (int)fleet.get(q).getY(), 40, 36); \n \n // if blaster hits a ship, remove it\n if (blaster.intersects(enemy) && fleet.get(q).getCount() == 0) {\n fleet.get(q).hit = true; // set the enemy hit\n barrage.remove(barrage.get(i));\n score += 100; // add to score\n return true; // hit\n }\n }\n }\n return false; // miss\n }",
"@Override\n public void collide(CollisionEvent e) {\n //collision detection that will allow you to unlock a character\n if (e.getOtherBody() instanceof Player) {\n Player p = (Player) e.getOtherBody();\n //if player has not unlocked the 2nd hero for the first level then unlock\n if (!p.getUnlockHero2() && p.getWorld() instanceof Level1){\n p.setUnlockHero2(true);\n }\n //if player has not unlocked the 3rd hero for the second level then unlock\n if (!p.getUnlockHero3() && p.getWorld() instanceof Level2) {\n p.setUnlockHero3(true);\n }\n if (p.getWorld() instanceof Level3) {\n if (p.getHealth()<51){\n p.setHealth(p.getHealth()+50);\n }\n }\n //destroy the chest and acknowledge that it's been picked up\n c.destroy();\n p.getWorld().setPickedUp(true);\n }\n }",
"public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void collideWithBall() {\n die();\n }",
"@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}",
"private void checkCollision(Graphics g) {\n\t\t// collision detection for the tanks\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\tRectangle heroRectangle = hero.getBounds();\n\t\tRectangle hero2Rectangle = computer.getBounds();\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\t// hero1 --------------------\n\t\tAffineTransform at = g2d.getTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(hero.getAngle()), hero.getX() + hero.getImageWidth() / 2,\n\t\t\t\thero.getY() + hero.getImageHeight() / 2);\n\t\tGeneralPath heroPath = new GeneralPath();\n\t\theroPath.append(heroRectangle.getPathIterator(at), true);\n\t\tArea heroArea = new Area(heroPath);\n\n\t\t// hero2 ------------------------------\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(computer.getAngle()), computer.getX() + computer.getImageWidth() / 2,\n\t\t\t\tcomputer.getY() + computer.getImageHeight() / 2);\n\t\tGeneralPath hero2Path = new GeneralPath();\n\t\thero2Path.append(hero2Rectangle.getPathIterator(at), true);\n\t\tArea hero2Area = new Area(hero2Path);\n\n\t\t// tank1 -- tank2 collision\n\t\thero2Area.intersect(heroArea);\n\t\tif (!hero2Area.isEmpty()) {\n\t\t\tplay(\"tank-tank.wav\");\n\t\t\tposxt2 = computer.getX();\n\t\t\tposyt2 = computer.getY();\n\t\t\tposyt1 = hero.getY();\n\t\t\tposxt1 = hero.getX();\n\t\t\t\n\t\t\texplodet2 = true;\n\t\t\texplodet1 = true;\n\t\t\tg2d.setColor(Color.RED);\n\t\t\tg2d.fill(heroArea);\n\t\t\tcomputer.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(), computer.getImageWidth(),\n\t\t\t\t\tcomputer.getImageHeight())) {\n\t\t\t\tcomputer.spawnGenerator();\n\t\t\t}\n\n\t\t\thero.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\thero.spawnGenerator();\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m = heroMissiles.get(i);\n\t\t\tRectangle tank1BulletRect = m.getBounds();\n\t\t\tGeneralPath tank1BulletPath = new GeneralPath();\n\t\t\ttank1BulletPath.append(tank1BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank1BulletArea = new Area(tank1BulletPath);\n\t\t\thero2Area.intersect(tank1BulletArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposxt2 = computer.getX();\n\t\t\t\tposyt2 = computer.getY();\n\t\t\t\texplodet2 = true;\n\t\t\t\tif (computer.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp1score++;\n\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(),\n\t\t\t\t\t\t\tcomputer.getImageWidth(), computer.getImageHeight())) {\n\t\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\tcomputer.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// tank1 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tRectangle tankBulletRect = m1.getBounds();\n\t\t\tGeneralPath tankBulletPath = new GeneralPath();\n\t\t\ttankBulletPath.append(tankBulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tankBulletArea = new Area(tankBulletPath);\n\t\t\theroArea.intersect(tankBulletArea);\n\t\t\tif (!heroArea.isEmpty() && m1.isReflected()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- tank2 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tRectangle tank2BulletRect = m1.getBounds();\n\t\t\tGeneralPath tank2BulletPath = new GeneralPath();\n\t\t\ttank2BulletPath.append(tank2BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank2BulletArea = new Area(tank2BulletPath);\n\t\t\theroArea.intersect(tank2BulletArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thero2Missile.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\theroArea.intersect(powerupArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tif ((powerupArray.get(i)).getPowerupType() == 5) {\n\t\t\t\t\thero.setIndex(1);\n\t\t\t\t}\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\thero.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\thero2Area.intersect(powerupArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\tcomputer.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank 1 and wall collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (Wall w : wallArray) {\n\t\t\tRectangle wallRect = w.getBounds();\n\t\t\tGeneralPath wallPath = new GeneralPath();\n\t\t\twallPath.append(wallRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea wallArea = new Area(wallPath);\n\t\t\theroArea.intersect(wallArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\thero.setX(hero.getPrevX());\n\t\t\t\thero.setY(hero.getPrevY());\n\t\t\t}\n\t\t}\n\t}",
"protected void onCollision(Actor other) {\r\n\r\n\t}",
"public void checkCollision(Actor a) {\r\n\t\tif (a.equals(this))\r\n\t\t\treturn;\r\n\r\n\t\tPolygon otherPoly = a.basePoly;\r\n\t\tint distance = 1;\r\n\r\n\t\tif (otherPoly != null && basePoly != null) {\r\n\t\t\t// Calculate distance using the formula x^2 + y^2 = z^2\r\n\t\t\tint x = otherPoly.getBounds().x - basePoly.getBounds().x;\r\n\t\t\tint y = otherPoly.getBounds().y - basePoly.getBounds().y;\r\n\t\t\tdistance = (int) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\r\n\t\t}\r\n\t\tif (distance > 150 || a instanceof Particle)\r\n\t\t\treturn;\r\n\r\n\t\tfor (int i = 0; i < basePoly.npoints; i++) {\r\n\t\t\tif (otherPoly.contains(new Point(basePoly.xpoints[i],\r\n\t\t\t\t\tbasePoly.ypoints[i]))) {\r\n\t\t\t\tonCollision(a);\r\n\t\t\t\ta.onCollision(a);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean collides (Entity other)\r\n\t{\r\n\t\tif (other == owner || other instanceof Missile)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn super.collides(other);\r\n\t}",
"void onNoCollision();",
"@Override\n public void collide(ScreenObject other) {\n switch (other.getType()) {\n case ASTEROID:\n hp -= other.dealDamage();\n break;\n case ENEMY:\n hp -= other.dealDamage();\n break;\n case ENEMYBULLET:\n hp -= other.dealDamage();\n break;\n case MACGUFFIN:\n macguffinsCollected++;\n break;\n case PORT:\n if (macguffinsCollected >= level.getMacguffinCount()\n && boundingCircle.contains(other.getPosition())) {\n Gdx.app.log(\"Ship\", \"level over\");\n //ends level\n }\n break;\n }\n }",
"private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}",
"public void detectCollisions(){\n\t\tfor(int i = 0; i < pScene.getNumOf(); i++){\n\t\t\tEntity a = pScene.getObject(i);\n\t\t\tif (!a.isAlive())\n\t\t\t\tcontinue;\n\t\t\tfor(int j = i + 1; j < pScene.getNumOf(); j++){\n\t\t\t\tEntity b = pScene.getObject(j);\n\t\t\t\tif(a.intersects(b)&&(!(a.getStatic()&&b.getStatic()))){\n\t\t\t\t\tsManifolds.add(new Manifold(a,b)); // For regular objects\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }",
"public void checkCollision(){\n\r\n for(int i = 0; i < enemies.size(); i++){\r\n \r\n // Player and Enemy collision\r\n \r\n if(collide(this.player, enemies.get(i)) && this.player.isVisible() && enemies.get(i).isVisible()){\r\n System.out.println(\"Collide\");\r\n this.player.setHealth(this.player.getHealth() - 100);\r\n }\r\n\r\n // Player and Enemy bullet collision\r\n \r\n for(int j =0; j < enemies.get(i).getBullets().size(); j++){\r\n\r\n if(collide(this.player, enemies.get(i).getBullets().get(j)) && this.player.isVisible() && enemies.get(i).getBullets().get(j).isVisible()){\r\n\r\n enemies.get(i).getBullets().get(j).setVisible(false);\r\n this.player.setHealth(this.player.getHealth() - enemies.get(i).getBullets().get(j).getDamage());\r\n\r\n }\r\n }\r\n\r\n }\r\n //time = DEFAULT_TIME_DELAY;\r\n// }\r\n\r\n\r\n\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n\r\n\r\n // Player bullet and enemy collision\r\n\r\n for(int j = 0; j < enemies.size(); j++) {\r\n if (collide(enemies.get(j), player.getBullets().get(i)) && enemies.get(j).isVisible() && player.getBullets().get(i).isVisible()) {\r\n\r\n if (enemies.get(j).getHealth() < 0) {\r\n enemies.get(j).setVisible(false);\r\n score.addScore(100);\r\n }\r\n\r\n enemies.get(j).setHealth(enemies.get(j).getHealth() - player.getBullets().get(i).getDamage());\r\n // enemies.get(j).setColor(Color.RED);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n // Boss collision & player bullet collision\r\n\r\n if(collide(player.getBullets().get(i), this.boss1) && player.getBullets().get(i).isVisible() && boss1.isVisible()){\r\n\r\n if(boss1.getHealth() < 0){\r\n boss1.setVisible(false);\r\n score.addScore(1000);\r\n state = STATE.WIN;\r\n }\r\n this.boss1.setHealth(this.boss1.getHealth() - player.getBullets().get(i).getDamage());\r\n // this.boss1.setHealth(0);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n }\r\n\r\n }\r\n\r\n // Bullet vs Bullet Collision\r\n\r\n for(int k = 0 ; k < player.getBullets().size(); k++){\r\n\r\n if(player.getBullets().get(k).isVisible()) {\r\n for (int i = 0; i < enemies.size(); i++) {\r\n\r\n if(enemies.get(i).isVisible()) {\r\n for (int j = 0; j < enemies.get(i).getBullets().size(); j++) {\r\n\r\n if (collide(player.getBullets().get(k), enemies.get(i).getBullets().get(j)) && enemies.get(i).getBullets().get(j ).isVisible()) {\r\n\r\n\r\n System.out.println(\"bullets colliding\");\r\n\r\n player.getBullets().get(k).setVisible(false);\r\n enemies.get(i).getBullets().get(j).setColor(Color.yellow);\r\n enemies.get(i).getBullets().get(j).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n\r\n player.getBullets().add(enemies.get(i).getBullets().get(j));\r\n\r\n enemies.get(i).getBullets().remove(enemies.get(i).getBullets().get(j)); //removes bullet\r\n\r\n\r\n k++;\r\n j--;\r\n //enemies.get(i).getBullets().get(j).setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n for(int i = 0; i < boss1.getBullets().size(); i++) {\r\n\r\n\r\n if (collide(player.getBullets().get(k), boss1.getBullets().get(i)) && boss1.getBullets().get(i).isVisible()) {\r\n\r\n System.out.println(\"boss bullets colliding\");\r\n player.getBullets().get(k).setVisible(false);\r\n boss1.getBullets().get(i).setColor(Color.yellow);\r\n boss1.getBullets().get(i).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n player.getBullets().add(boss1.getBullets().get(i));\r\n boss1.getBullets().remove(boss1.getBullets().get(i));\r\n k++;\r\n i--;\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Boss bullet and player collision\r\n\r\n for(Bullet b : boss1.getBullets() ){\r\n\r\n\r\n if(collide(player, b) && player.isVisible() && b.isVisible()){\r\n b.setVisible(false);\r\n player.setHealth(player.getHealth() - b.getDamage());\r\n }\r\n }\r\n\r\n\r\n // Power up collision\r\n\r\n for(PowerUp p : powerUps){\r\n\r\n if(collide(player, p) && p.isVisible()){\r\n\r\n p.executeEffect(this.player);\r\n p.setVisible(false);\r\n }\r\n }\r\n\r\n\r\n\r\n // Deleting out of bound bullets\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n if(player.getBullets().get(i).getY() < 0 || player.getBullets().get(i).getY() > GameWorld.SCREEN_H ||\r\n player.getBullets().get(i).getX()< 0 || player.getBullets().get(i).getX() > GameWorld.SCREEN_W) {\r\n\r\n player.getBullets().remove(player.getBullets().get(i));\r\n }\r\n }\r\n\r\n }",
"private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }",
"int checkCollision(Tumbleweed tumbleweed) {\n int retVal = 0;\n if (collidesWith(tumbleweed, true)) {\n retVal = 1;\n // once the cowboy has collided with the tumbleweed,\n // that tumbleweed is done for now, so we call reset\n // which makes it invisible and ready to be reused.\n tumbleweed.reset();\n }\n return (retVal);\n }",
"private boolean handleCollisionWithAntOrNest()\n {\n ArrayList<GameObject> collisions = this.getCollisions();\n if(!collisions.isEmpty() && (collisions.get(0) instanceof Ant || collisions.get(0) instanceof Nest))\n {\n this.opponent = collisions.get(0);\n return true;\n }\n\n return false;\n }",
"public boolean collidesWith(ICollider other);",
"private boolean isInDoor(Entity player){\n Sprite playerSprite= (Sprite) player.getComponent(Sprite.class);\n for(int i = 0; i<Main.colliderWallMap.size(); i++){\n if(Main.colliderWallMap.get(i).intersects(playerSprite.getValue().getX(), playerSprite.getValue().getY(),playerSprite.getValue().getWidth(), playerSprite.getValue().getHeight())){\n return false;\n }\n }\n\n return true;\n }",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}",
"@Override\r\n public void checkIfInFrame(Hero hero) {\r\n\r\n }",
"void collisionHappened(int position);",
"private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}",
"private void checkCollisionwithMonster() {\n\t\tr1.set(this.getX(),this.getY(),this.getWidth(),this.getHeight());\r\n\t\t\r\n\t\t//check collision with monsters\t\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(TreeMonster treeMon : treeMonArray){\r\n\t\t\t\tif(treeMon.isVisible()){\r\n\t\t\t\t\tr2.set(treeMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(SlimeMonster slimeMon : slimeMonArray){\r\n\t\t\t\tif(slimeMon.isVisible()){\r\n\t\t\t\t\tr2.set(slimeMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(FireMonster fireMon : fireMonArray){\r\n\t\t\t\tif(fireMon.isVisible()){\r\n\t\t\t\t\tr2.set(fireMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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}",
"public void collision(ArrayList<Game_Object> obj) {\n for (int i = 0; i < obj.size(); i++) {\n \tif(collidesWith(obj.get(i)) && (obj.get(i) instanceof Unit)) {\n \t\tUnit unit = (Unit) obj.get(i);\n \t\tdamage(unit.getColDamage());\n \t}\n }\n }",
"public boolean checkHit(Rectangle r){\n\t\t\tif (exists){\n\t\t\t\tif(this.intersects(r) || this.contains(r)){\n\t\t\t\t\thealth -= 1; //reduces the curret health\n\t\t\t\t\tif (health == 0) {\n\t\t\t\t\t\texists = false;\n\t\t\t\t\t\tstartboomtimer = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tstartredtimer = true; //starts the red animation\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse return false;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic void collide(Entity e) {\n\n\t}",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"private void checkWeaponCollisions(GObject element) {\r\n\t\tGObject topLeft = getElementAt(element.getX() - 1, element.getY());\r\n\t\tGObject topRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY());\r\n\t\tGObject bottomLeft = getElementAt(element.getX() - 1, element.getY() + element.getHeight());\r\n\t\tGObject bottomRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY() + element.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public abstract void collideWith(Entity entity);",
"public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }",
"@Override\n\tpublic boolean collides(Vector3 v) {\n\t\treturn false;\n\t}",
"public void checkWindCollision() {\n\n if (Intersector.overlaps(player.boundingCircle, wind1.boundingRectangle)) {\n if (!wind1.angry) {\n //Blow Right\n if (wind1.left && (player.x + AssetHandler.WIND_STRENGTH + player.circleRad < AssetHandler.SCREEN_WIDTH)) {\n player.x += AssetHandler.WIND_STRENGTH;\n } else if (!wind1.left && player.x - AssetHandler.WIND_STRENGTH - player.circleRad > 0) {\n player.x -= AssetHandler.WIND_STRENGTH;\n }\n } else {\n wind1.boundingRectangle.x = -wind1.boundingRectangle.width;\n player.paralyzed = true;\n player.paralyzedStart = TimeUtils.nanoTime();\n shake = true;\n }\n\n }\n\n\n //Check 2nd wind\n\n if (Intersector.overlaps(player.boundingCircle, wind2.boundingRectangle)) {\n if (!wind2.angry) {\n if (wind2.left && (player.x + AssetHandler.WIND_STRENGTH + player.circleRad < AssetHandler.SCREEN_WIDTH)) {\n player.x += AssetHandler.WIND_STRENGTH;\n } else if (!wind2.left && player.x - AssetHandler.WIND_STRENGTH - player.circleRad > 0) {\n player.x -= AssetHandler.WIND_STRENGTH;\n }\n } else {\n wind2.boundingRectangle.x = -wind2.boundingRectangle.width;\n player.paralyzed = true;\n player.paralyzedStart = TimeUtils.nanoTime();\n shake = true;\n }\n }\n\n\n //Check 3rd wind\n\n if (Intersector.overlaps(player.boundingCircle, wind3.boundingRectangle)) {\n if (!wind3.angry) {\n if (wind3.left && (player.x + AssetHandler.WIND_STRENGTH + player.circleRad < AssetHandler.SCREEN_WIDTH)) {\n player.x += AssetHandler.WIND_STRENGTH;\n } else if (!wind3.left && player.x - AssetHandler.WIND_STRENGTH - player.circleRad > 0) {\n player.x -= AssetHandler.WIND_STRENGTH;\n }\n } else {\n wind3.boundingRectangle.x = -wind3.boundingRectangle.width;\n player.paralyzed = true;\n player.paralyzedStart = TimeUtils.nanoTime();\n shake = true;\n }\n }\n\n\n /*\n * Check Wind Collision For Particle Effect Generation\n */\n\n\n //Check 1st Wind\n\n if(Intersector.overlaps(player.boundingCircle, wind1.spriteRectangle)) {\n if(!particle) {\n cloudParticle.setPosition(player.x, wind1.y + wind1.height/2);\n if(cloudParticle.isComplete())\n cloudParticle.reset();\n particle = true;\n } else {\n cloudParticle.setPosition(cloudParticle.getEmitters().first().getX(), wind1.y + wind1.height/2);\n }\n if(wind1.angry) {\n cloudParticle.setFlip(false, true);\n } else {\n cloudParticle.setFlip(false, false);\n }\n }\n\n\n //Check 2nd Wind\n\n if(Intersector.overlaps(player.boundingCircle, wind2.spriteRectangle)) {\n if(!particle) {\n cloudParticle.setPosition(player.x, wind2.y + wind2.height/2);\n if(cloudParticle.isComplete())\n cloudParticle.reset();\n particle = true;\n } else {\n cloudParticle.setPosition(cloudParticle.getEmitters().first().getX(), wind2.y + wind2.height/2);\n }\n if(wind2.angry) {\n cloudParticle.setFlip(false, true);\n } else {\n cloudParticle.setFlip(false, false);\n }\n }\n\n\n //Check 3rd Wind\n\n if(Intersector.overlaps(player.boundingCircle, wind3.spriteRectangle)) {\n if(!particle) {\n cloudParticle.setPosition(player.x, wind3.y + wind3.height/2);\n if(cloudParticle.isComplete())\n cloudParticle.reset();\n particle = true;\n } else {\n cloudParticle.setPosition(cloudParticle.getEmitters().first().getX(), wind3.y + wind3.height/2);\n }\n if(wind3.angry) {\n cloudParticle.setFlip(false, true);\n } else {\n cloudParticle.setFlip(false, false);\n }\n }\n\n }",
"public boolean checkHit(int x, int y) {\n\t\t\n\t\t//Check if the guard caught the hero\n\t\tint[][] adjacent = new int[][] {\n\t\t\t{ getY() + 1, getX()},\n\t\t\t{ getY() - 1, getX()},\n\t\t\t{ getY(), getX() + 1},\n\t\t\t{ getY(), getX() - 1}\n\t\t\t};\n\n\t\tfor (int[] spot : adjacent) {\n\t\t\tif (spot[1] == x && spot[0] == y) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}",
"@Override\r\n public void update() {\r\n super.update();\r\n hero.checkForTileCollision(getXOverlap(hero.oldx,hero.oldx+width,hero.x,hero.x+width), getYOverlap(hero.oldy,hero.oldy+hero.height,hero.y, hero.y+hero.height));\r\n int i = 0;\r\n\r\n while (turningPoints[i]!= null)\r\n {\r\n if (intersects(turningPoints[i].x,turningPoints[i].y, turningPoints[i].width,turningPoints[i].height))\r\n {\r\n vx = -vx;\r\n vy = -vy;\r\n }\r\n i++;\r\n }\r\n }",
"public void checkCollision(Enemy enemy){\r\n if(collidingEntity!=null && collidingEntity!=enemy){\r\n return;\r\n }\r\n FloatRect x = enemy.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity= enemy;\r\n collide=true;\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n bounce(enemy);\r\n } else {\r\n noCollision ();\r\n }\r\n }",
"@Override\n public void onBodyHit () {\n Gdx.app.log(\"Token\", \"Collision\");\n\n if(getCell().getTile().getId() == BLANK_COIN)\n MyGdxGame.manager.get(\"audio/sounds/bump.wav\", Sound.class).play();\n else\n MyGdxGame.manager.get(\"audio/sounds/coin.wav\", Sound.class).play();\n\n\n setCategoryFilter(MyGdxGame.DESTROYED_BIT);\n //tile where Token is located is set to \"null\".\n getCell().setTile(tileSet.getTile(BLANK_COIN));\n Hud.addScore(100);\n }",
"public boolean isColliding(){\n for(int i = 0; i < eng.getIDManager().getObjectsWithID(\"GameObject\").size(); i++){\n GameObject temp = eng.getIDManager().getObjectsWithID(\"GameObject\").get(i);\n \n if(temp.getHitBox().getBounds().intersects(rect.getBounds()) &&\n temp.getHitBox() != this){\n currentCollidingObject = temp;\n return true;\n }\n }\n \n return false;\n }",
"public boolean isCollision(Ball ob) { // Kollisionsabfrage\r\n\t\t\r\n\t\tdX = posX - ob.getPosX();\r\n\t\tdY = posY - ob.getPosY();\r\n\t\tfloat vector = dX * dX + dY * dY;\r\n\t\tfloat hypo = radius * radius * 4;\r\n\t\tif (hypo >= vector) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private boolean playerDetection() {\n\t\tAxisAlignedBB axisalignedbb = new AxisAlignedBB(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).grow(DETECTION_RANGE);\n\t\tList<EntityPlayer> list = world.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb);\n\n\t\treturn !list.isEmpty();\n\t}",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"public boolean isCollision(double x, double y) {\n return false;\n }",
"void collisionDetection() {\n\t\tfor (int a = 0; a < botsList.size(); a++) {\r\n\t\t\tfor (int b = 0; b < botsList.size(); b++) {\r\n\r\n\t\t\t\tif (a == b) // Avoid checking if bot hits itself.\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\ttime = System.currentTimeMillis();\r\n\t\t\t\tif (time - botsList.get(a).enemy_last_detected > botsList.get(a).enemy_detect_timeout) {\r\n\t\t\t\t\tfor (int i = 0; i > botsList.get(b).bullets.size(); i++) {\r\n\t\t\t\t\t\tif (colides(botsList.get(a), botsList.get(b).bullets.get(i)))\r\n\t\t\t\t\t\t\tbotsList.get(a).loseLife();\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\r\n\t\tif (botsList.get(0).detect.intersects(botsList.get(1).body.getFrame())) {\r\n\t\t\tbotsList.get(0).enemyDetected(botsList.get(1).body);\r\n\t\t\tbot_1_detect = false;\r\n\t\t\tbot_1_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_1_detected > bot_1_detect_timeout)\r\n\t\t\tbot_1_detect = true;\r\n\t\t// and now same for bot 2\r\n\t\tif (botsList.get(1).detect.intersects(botsList.get(0).body.getFrame())) {\r\n\t\t\tbotsList.get(1).enemyDetected(botsList.get(0).body);\r\n\t\t\tbot_2_detect = false;\r\n\t\t\tbot_2_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_2_detected > bot_2_detect_timeout)\r\n\t\t\tbot_2_detect = true;\r\n\r\n\t\t// Bullets collision\r\n\t\t// See if bot_n hits the other bot with a bullet\r\n\t\tfor (int mainB = 0; mainB < botsList.size(); mainB++) {\r\n\t\t\tfor (int secB = 0; secB < botsList.size(); secB++) {\r\n\r\n\t\t\t\tif (secB == mainB)\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// if player_2 collides with player 1's bullets\r\n\t\t\t\tfor (int i = 0; i < botsList.get(mainB).bullets.size(); i++) {\r\n\t\t\t\t\tif (colides(botsList.get(secB), botsList.get(mainB).bullets.get(i))) {\r\n\t\t\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\t\t\tbotsList.get(mainB).bullets.remove(i);\r\n\t\t\t\t\t\tbotsList.get(secB).loseLife();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if player_1 collides with player 2's bullets\r\n\t\tfor (int i = 0; i < botsList.get(1).bullets.size(); i++) {\r\n\t\t\tif (colides(botsList.get(0), botsList.get(1).bullets.get(i))) {\r\n\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\tbotsList.get(1).bullets.remove(i);\r\n\t\t\t\tbotsList.get(0).loseLife();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public abstract void onCollision();",
"void checkHandleContactWithNonPlayerCharacters() {\n if (this.doesAffectNonPlayers) {\n // boundary collision for non-player characters\n for (ACharacter curCharacter : this.mainSketch.getCurrentActiveLevelDrawableCollection().getCharactersList()) {\n if (this.contactWithCharacter(curCharacter)) {\n curCharacter.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else if (curCharacter instanceof ControllableEnemy) { // this DOES NOT have contact with character AND character is controllable\n ((ControllableEnemy) curCharacter).setAbleToMoveLeft(true);\n ((ControllableEnemy) curCharacter).setAbleToMoveRight(true);\n }\n }\n }\n }",
"public boolean handleFireballCollisions(ArrayList<Fireball> fireballs) {\n\t\tboolean isCollide = false; \n\t\t//temporary variable to store status that whether hero \n\t\t//is hitted by fireball\n\t\tfor (int i = 0;i < fireballs.size(); i++) {\n\t\t\tif (graphic.isCollidingWith(fireballs.get(i).getGraphic()) == true) {\n\t\t\t\tisCollide = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (isCollide == true) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected void check_turn(List<CollisionObject> collidables) {\n //Firing rays\n\n //select an area of 180 degrees (pi radians)\n boolean turn = true;\n Vector2 start_point = get_ray_fire_point();\n for (int ray = 0; ray <= number_of_rays; ray++) {\n\n if (turn) {\n ray--;\n float ray_angle = sprite.getRotation() + ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = false;\n } else {\n float ray_angle = sprite.getRotation() - ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = true;\n }\n\n float ray_angle = ((ray_angle_range / number_of_rays) * ray) + sprite.getRotation();\n\n for (float dist = 0; dist <= ray_range; dist += ray_step_size) {\n\n double tempx = (Math.cos(Math.toRadians(ray_angle)) * dist) + (start_point.x);\n double tempy = (Math.sin(Math.toRadians(ray_angle)) * dist) + (start_point.y);\n //check if there is a collision hull (other than self) at (tempx, tempy)\n for (CollisionObject collideable : collidables) {\n if (collideable.isShown() &&\n ((Obstacle) collideable).getSprite().getY() > sprite.getY() - 200 &&\n ((Obstacle) collideable).getSprite().getY() < sprite.getY() + 200 &&\n ((Obstacle) collideable).getSprite().getX() > sprite.getX() - 200 &&\n ((Obstacle) collideable).getSprite().getX() < sprite.getX() + 200)\n for (Shape2D bound : collideable.getBounds().getShapes()) {\n if (bound.contains((float) tempx, (float) tempy)) {\n // Determines which side the ai should turn to\n if (turn) {\n turn(-1);\n return;\n } else {\n turn(1);\n return;\n }\n\n }\n }\n\n }\n }\n }\n }",
"public static boolean collide(CustomAABB us, CustomBlockBox block, Vector3f pos, Vector3f inertia, float width, float height, boolean onGround){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //double check to stop clipping if not enough space\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+2,block.getFront()))) {\n\n //floor detection\n if (block.getTop() > us.getBottom() && inertia.y < 0 && us.getBottom() - block.getTop() > -0.15f) {\n //this is the collision debug sphere for terrain\n float oldPos = pos.y;\n pos.y = block.getTop();\n //don't move up if too high\n if (pos.y - oldPos > 1) {\n pos.y = (int)oldPos;\n }\n inertia.y = 0;\n onGround = true;\n }\n }\n\n //stop getting shot across the map\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-2,block.getFront()))) {\n //head detection\n if (block.getBottom() < us.getTop() && inertia.y >= 0 && us.getTop() - block.getBottom() < 0.15f) {\n pos.y = block.getBottom() - height;\n inertia.y = 0;\n }\n }\n\n float averageX = Math.abs(((block.getLeft() + block.getRight())/2f) - pos.x);\n float averageY = Math.abs(((block.getBottom() + block.getTop())/2f) - pos.y);\n float averageZ = Math.abs(((block.getFront() + block.getBack())/2f) - pos.z);\n if (averageX > averageZ) {\n if (!detectBlock(new Vector3f(block.getLeft()+1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getRight() > us.getLeft() && inertia.x < 0) {\n pos.x = block.getRight() + width + 0.00001f;\n inertia.x = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft()-1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getLeft() < us.getRight() && inertia.x > 0) {\n pos.x = block.getLeft() - width - 0.00001f;\n inertia.x = 0;\n }\n }\n }\n } else {\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()+1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getBack() > us.getFront() && inertia.z < 0) {\n pos.z = block.getBack() + width + 0.00001f;\n inertia.z = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()-1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getFront() < us.getBack() && inertia.z > 0) {\n pos.z = block.getFront() - width - 0.00001f;\n inertia.z = 0;\n }\n }\n }\n }\n return onGround;\n }",
"@Override\n public void collide(CollisionEvent e) {\n \n if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Health) {\n prime.incrementHealthCount();\n healthSound.play();\n e.getReportingBody().destroy();\n \n \n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Emerald) {\n prime.incrementEmeraldCount();\n emeraldSound.play();\n e.getReportingBody().destroy();\n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof DeadZone) {\n e.getReportingBody().destroy();\n System.exit(0);\n } \n \n else if (e.getReportingBody() instanceof Boss && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n }\n \n else if (e.getReportingBody() instanceof StaticBody && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n } \n \n }",
"public void collision(Collidable collider);",
"public void checkCollision(Actor player) {\n\n for (int i = 0; i < activePickups.size(); i++) {\n Pickup p = activePickups.get(i);\n\n if (p.getBounds().intersects(player.getBounds())) {\n p.despawn();\n if (p instanceof FogLightsPickup) {\n PlayerInventory.incrementFogLights();\n } else if (p instanceof SlowMotionPickup) {\n PlayerInventory.incrementSlowMotion();\n } else if (p instanceof InvincibilityPickup) {\n PlayerInventory.incrementInvincibility();\n\n } else if (p instanceof CoinPickup) {\n coinsPickedUp++;\n canvas.playSound(\"coin.wav\");\n }\n }\n }\n }",
"public boolean collides (){\n if(shipX<=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=40 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n else if(shipX<=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=60 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n return false;\n }",
"public boolean isCollisionDisabled() { return mover.isCollisionDisabled(); }",
"private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }",
"private void bulletCollisionWithObject() {\r\n\t\tif(bullet != null) {\r\n\t\t\tGObject collider = getElementAt(bullet.getX() -1 , bullet.getY() + 1);\r\n\t\t\tif (dragon1 != null && collider == dragon1) {\r\n\t\t\t\thit(dragon1);\r\n\t\t\t}\r\n\t\t\tif(dragon2 != null && collider == dragon2) {\r\n\t\t\t\thit(dragon2);\r\n\t\t\t}\r\n\t\t\tif(mehran != null && collider == mehran && bullet.getY() > mehran.getY() + mehran.getHeight() / 2.0) {\r\n\t\t\t\thit(mehran);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"float shouldAggroOnHit(IGeneticMob geneticMob, EntityLiving attacker);",
"@Override\n public boolean collide(Entity e) {\n if (e.isExplosion() || (e.isBomb() && (((Bomb) e).isMissile()))) {\n kill();\n ArrayList<Mob> m = Board.getInstance().getMobsAtExcluding(this.getXTile(), this.getYTile(), this);\n for (Mob mob1 : m) {\n if (mob1.isAlive()) {\n mob1.kill();\n }\n }\n return true;\n }\n return false;\n }",
"public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }",
"public boolean check(double xDelt,double yDelt) {\r\n \tBounds pBound= player1.player.getBoundsInParent();\r\n \t\r\n \tfor( Node object: enemy1.hostileG.getChildren()) {\r\n \t\t\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\t\teHealth -= inventory.getpDamage();\r\n \t\t\tpHealth -= 1;\r\n\r\n \t\t\tSystem.out.println(\"eHealth \"+ eHealth);\r\n \t\t\tSystem.out.println(\"pHealth \"+ pHealth);\r\n \t\t\t\r\n \t\t\t//\"Deaths of the sprites\"\r\n \t\t\tif(pHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(player1.player);\r\n \t\t\t\tSystem.out.println(\"You died!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(eHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(enemy1.enemy);\r\n \t\t\t\tenemy1.enemy.setLayoutX(-10000);\r\n \t\t\t\tenemy1.enemy.setLayoutY(-10000);\r\n \t\t\t}\r\n \t\treturn false;\r\n \t\t}\r\n }\r\n \t\r\n \tfor( Node object: map1.walls.getChildren()) {\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())) return false;\r\n \t}\r\n \t\r\n \tfor( Node chest: map1.chests.getChildren()) {\r\n \tif(chest.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\tmap1.chests.getChildren().remove(chest);\r\n \t chestchose=inventory.getchestchose();\r\n \t \r\n \t if(chestchose==1) {\r\n \t \tinventory.sworda.setVisible(true);\r\n \t \tinventory.setpDamage(3);\r\n \t }\r\n \t if(chestchose==2) {\r\n \t \tinventory.healthbag.setVisible(true);\r\n \t }\r\n \t \r\n \t return false;\r\n \t} \r\n }\t\r\n \t\r\n return true;\r\n }",
"public boolean collidesWith(SpriteBase otherSprite) {\r\n boolean toReturn = false;\r\n\r\n if (distTo(otherSprite.x, x) < collideSize && distTo(otherSprite.y,y) < collideSize){\r\n toReturn = true;\r\n }\r\n\r\n return (toReturn);\r\n }",
"public void checkForHits ()\n\t\t{\n\t\t\tif (ball.getRectangle().x < 0) {\n\t\t\t\t//computerAI.getCharacter().gotHit(player.getCharacter().getDamage());\n\t\t\t\tplayer1.character.gotHit(player2.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player1.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//WinWindow.lose_window(0);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t} else if (ball.getRectangle().x > WIDTH - ball.getRectangle().width) {\n\t\t\t\tplayer2.character.gotHit(player1.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player2.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//dispose(); TODO - this might be necessary for resetting, but it's currently a breaking change\n\t\t\t\t\t//WinWindow.lose_window(1);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}",
"public void checkRockets() {\n for (Rocket rocket : rockets) {\n for (Ufo ufo : ufos) {\n if (ufo.intersects(rocket)) {\n ufo.die();\n rocket.die();\n }\n }\n\n if (rocket.getY() <= 0)\n rocket.die();\n }\n }",
"void checkHandleContactWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n\n if (this.doesAffectPlayer) {\n // boundary collision for player\n if (contactWithCharacter(curPlayer)) { // this has contact with non-player\n if (!this.charactersTouchingThis.contains(curPlayer)) { // new collision detected\n curPlayer.changeNumberOfVerticalBoundaryContacts(1);\n this.charactersTouchingThis.add(curPlayer);\n }\n curPlayer.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else { // this DOES NOT have contact with player\n if (this.charactersTouchingThis.contains(curPlayer)) {\n curPlayer.setAbleToMoveRight(true);\n curPlayer.setAbleToMoveLeft(true);\n curPlayer.changeNumberOfVerticalBoundaryContacts(-1);\n this.charactersTouchingThis.remove(curPlayer);\n }\n }\n }\n }",
"public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}",
"public boolean collisionDetected() {\r\n\t\tfor (GameElement target : getTargets()) {\r\n\t\t\tif (myInitiator.intersects(target) && checkTargetMatch(target)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void handleCollision(Collision c);",
"public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n {\n visible=false;\n }\n if(gaveResource==false) {\n int gameResource = Board.gameResources.getGameResources();\n Board.gameResources.setGameResources(gameResource + resourceReward);\n gaveResource=true;\n }\n }\n }",
"public boolean intersects(BaseGameObject other) {\r\n return (other.getPosx() - this.getPosx())\r\n * (other.getPosx() - this.getPosx())\r\n + (other.getPosy() - this.getPosy())\r\n * (other.getPosy() - this.getPosy())\r\n < (other.bound + this.bound) * (other.bound + this.bound);\r\n }"
]
| [
"0.72596383",
"0.716276",
"0.71581554",
"0.70635074",
"0.7028993",
"0.7005331",
"0.69344527",
"0.6910524",
"0.6896015",
"0.6858402",
"0.68525314",
"0.6845726",
"0.682975",
"0.68292373",
"0.6760796",
"0.6752575",
"0.67088276",
"0.66861695",
"0.66491",
"0.66270566",
"0.6625331",
"0.6620784",
"0.6596216",
"0.65879935",
"0.6584593",
"0.6573615",
"0.65701795",
"0.6566566",
"0.65577555",
"0.65518343",
"0.65457517",
"0.6515776",
"0.6509765",
"0.6506349",
"0.6503597",
"0.65001506",
"0.6493783",
"0.6491426",
"0.649064",
"0.64903677",
"0.6483527",
"0.6473952",
"0.6467812",
"0.64647996",
"0.6432766",
"0.64308894",
"0.6416005",
"0.6411549",
"0.63979",
"0.6396109",
"0.6392464",
"0.6385498",
"0.6385327",
"0.6383436",
"0.6381298",
"0.6381116",
"0.63795877",
"0.636956",
"0.6363963",
"0.636351",
"0.6358524",
"0.63475794",
"0.63341135",
"0.6330732",
"0.63224477",
"0.6316553",
"0.63031334",
"0.62893164",
"0.6283433",
"0.6282233",
"0.62797827",
"0.6278947",
"0.6277079",
"0.6276188",
"0.6272094",
"0.6268221",
"0.62658256",
"0.62556875",
"0.6249019",
"0.62284505",
"0.62266684",
"0.62249464",
"0.62152374",
"0.62118375",
"0.62084675",
"0.620758",
"0.61936986",
"0.6193011",
"0.6185682",
"0.6177985",
"0.61635953",
"0.61579573",
"0.61576825",
"0.6152371",
"0.61434007",
"0.6141264",
"0.6139143",
"0.6138027",
"0.6134491",
"0.61323506",
"0.61144114"
]
| 0.0 | -1 |
Check for collisions with enemy | public void checkCollision(Enemy enemy){
if(collidingEntity!=null && collidingEntity!=enemy){
return;
}
FloatRect x = enemy.getRect ();
if (rect1==null || x==null){
return;
}
FloatRect ins = rect1.intersection (x);
if(ins!=null) {
this.collidingEntity= enemy;
collide=true;
checkRightCollision (x);
checkLeftCollision (x);
bounce(enemy);
} else {
noCollision ();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\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}",
"boolean collidesEnemy() {\n for(int i = 0; i < barrage.size(); i++) {\n // establish a rectangle for the laser\n Rectangle blaster = new Rectangle((int)barrage.get(i).getX(), (int)barrage.get(i).getY(), WIDTH, HEIGHT);\n \n // determine if the laser intersects an enemy\n for (int q = 0; q < fleet.size(); q++) {\n Rectangle enemy = new Rectangle((int)fleet.get(q).getX(), (int)fleet.get(q).getY(), 40, 36); \n \n // if blaster hits a ship, remove it\n if (blaster.intersects(enemy) && fleet.get(q).getCount() == 0) {\n fleet.get(q).hit = true; // set the enemy hit\n barrage.remove(barrage.get(i));\n score += 100; // add to score\n return true; // hit\n }\n }\n }\n return false; // miss\n }",
"private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}",
"public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}",
"void checkCollision(Entity other);",
"private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}",
"private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void checkCollision(){\n\r\n for(int i = 0; i < enemies.size(); i++){\r\n \r\n // Player and Enemy collision\r\n \r\n if(collide(this.player, enemies.get(i)) && this.player.isVisible() && enemies.get(i).isVisible()){\r\n System.out.println(\"Collide\");\r\n this.player.setHealth(this.player.getHealth() - 100);\r\n }\r\n\r\n // Player and Enemy bullet collision\r\n \r\n for(int j =0; j < enemies.get(i).getBullets().size(); j++){\r\n\r\n if(collide(this.player, enemies.get(i).getBullets().get(j)) && this.player.isVisible() && enemies.get(i).getBullets().get(j).isVisible()){\r\n\r\n enemies.get(i).getBullets().get(j).setVisible(false);\r\n this.player.setHealth(this.player.getHealth() - enemies.get(i).getBullets().get(j).getDamage());\r\n\r\n }\r\n }\r\n\r\n }\r\n //time = DEFAULT_TIME_DELAY;\r\n// }\r\n\r\n\r\n\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n\r\n\r\n // Player bullet and enemy collision\r\n\r\n for(int j = 0; j < enemies.size(); j++) {\r\n if (collide(enemies.get(j), player.getBullets().get(i)) && enemies.get(j).isVisible() && player.getBullets().get(i).isVisible()) {\r\n\r\n if (enemies.get(j).getHealth() < 0) {\r\n enemies.get(j).setVisible(false);\r\n score.addScore(100);\r\n }\r\n\r\n enemies.get(j).setHealth(enemies.get(j).getHealth() - player.getBullets().get(i).getDamage());\r\n // enemies.get(j).setColor(Color.RED);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n // Boss collision & player bullet collision\r\n\r\n if(collide(player.getBullets().get(i), this.boss1) && player.getBullets().get(i).isVisible() && boss1.isVisible()){\r\n\r\n if(boss1.getHealth() < 0){\r\n boss1.setVisible(false);\r\n score.addScore(1000);\r\n state = STATE.WIN;\r\n }\r\n this.boss1.setHealth(this.boss1.getHealth() - player.getBullets().get(i).getDamage());\r\n // this.boss1.setHealth(0);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n }\r\n\r\n }\r\n\r\n // Bullet vs Bullet Collision\r\n\r\n for(int k = 0 ; k < player.getBullets().size(); k++){\r\n\r\n if(player.getBullets().get(k).isVisible()) {\r\n for (int i = 0; i < enemies.size(); i++) {\r\n\r\n if(enemies.get(i).isVisible()) {\r\n for (int j = 0; j < enemies.get(i).getBullets().size(); j++) {\r\n\r\n if (collide(player.getBullets().get(k), enemies.get(i).getBullets().get(j)) && enemies.get(i).getBullets().get(j ).isVisible()) {\r\n\r\n\r\n System.out.println(\"bullets colliding\");\r\n\r\n player.getBullets().get(k).setVisible(false);\r\n enemies.get(i).getBullets().get(j).setColor(Color.yellow);\r\n enemies.get(i).getBullets().get(j).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n\r\n player.getBullets().add(enemies.get(i).getBullets().get(j));\r\n\r\n enemies.get(i).getBullets().remove(enemies.get(i).getBullets().get(j)); //removes bullet\r\n\r\n\r\n k++;\r\n j--;\r\n //enemies.get(i).getBullets().get(j).setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n for(int i = 0; i < boss1.getBullets().size(); i++) {\r\n\r\n\r\n if (collide(player.getBullets().get(k), boss1.getBullets().get(i)) && boss1.getBullets().get(i).isVisible()) {\r\n\r\n System.out.println(\"boss bullets colliding\");\r\n player.getBullets().get(k).setVisible(false);\r\n boss1.getBullets().get(i).setColor(Color.yellow);\r\n boss1.getBullets().get(i).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n player.getBullets().add(boss1.getBullets().get(i));\r\n boss1.getBullets().remove(boss1.getBullets().get(i));\r\n k++;\r\n i--;\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Boss bullet and player collision\r\n\r\n for(Bullet b : boss1.getBullets() ){\r\n\r\n\r\n if(collide(player, b) && player.isVisible() && b.isVisible()){\r\n b.setVisible(false);\r\n player.setHealth(player.getHealth() - b.getDamage());\r\n }\r\n }\r\n\r\n\r\n // Power up collision\r\n\r\n for(PowerUp p : powerUps){\r\n\r\n if(collide(player, p) && p.isVisible()){\r\n\r\n p.executeEffect(this.player);\r\n p.setVisible(false);\r\n }\r\n }\r\n\r\n\r\n\r\n // Deleting out of bound bullets\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n if(player.getBullets().get(i).getY() < 0 || player.getBullets().get(i).getY() > GameWorld.SCREEN_H ||\r\n player.getBullets().get(i).getX()< 0 || player.getBullets().get(i).getX() > GameWorld.SCREEN_W) {\r\n\r\n player.getBullets().remove(player.getBullets().get(i));\r\n }\r\n }\r\n\r\n }",
"public void checkEnemy() {\n\t\tif (enemy != null)\n\t\tif (Integer.parseInt(getCurrentPositionX()) == enemy.getCurrentPositionX() && Integer.parseInt(getCurrentPositionY()) == enemy.getCurrentPositionY()) {\n\t\t\tx = spawnX;\n\t\t\ty = spawnY;\n\t\t}\n\t}",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"private void checkPlayerCollisions(int x, int y){\n\t\tint wHitBoxX = 100;\n\t\tint wHitBoxY = 150;\n\t\t\n\t\tfor(int i = 0; i<enemy_num; i++){\n\t\t\tfor(int j = 0; j<enemy_arrow_num[i]; j++){\n\t\t\t\tif(enemy_arrows[i][j][0] > x && enemy_arrows[i][j][0] < (x+wHitBoxX)){\n\t\t\t\tif(enemy_arrows[i][j][1] > y && enemy_arrows[i][j][1] < (y+wHitBoxY)){\n\t\t\t\t \tremove_arrow(i,j);\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t}",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"public void checkCollision() {}",
"private boolean checkSeesPlayer(int x, int y) {\r\n\t\tint enemy;\r\n\t\tif (creature.getCreature().team == 1) {\r\n\t\t\tenemy = 2;\r\n\t\t} else if (creature.getCreature().team == 2) {\r\n\t\t\tenemy = 1;\r\n\t\t} else {\r\n\t\t\tenemy = 0; //No enemy\r\n\t\t}\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Creature c : handler.getWorld().getEntityManager().getCreatures()) {\r\n\t\t\tif (c.getCreature().team == enemy) {\r\n\t\t\t\tif(c.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\t\tseenEnemy = c;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void checkCollisions(int xH, int yH) {\n Rectangle r1 = new Rectangle(xH, yH, 50, 50);\n Rectangle r2 = new Rectangle(zombie.x, zombie.y, 50, 50);\n if (r1.intersects(r2)) {\n zombieWins = true; \n }\n }",
"public boolean check(double xDelt,double yDelt) {\r\n \tBounds pBound= player1.player.getBoundsInParent();\r\n \t\r\n \tfor( Node object: enemy1.hostileG.getChildren()) {\r\n \t\t\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\t\teHealth -= inventory.getpDamage();\r\n \t\t\tpHealth -= 1;\r\n\r\n \t\t\tSystem.out.println(\"eHealth \"+ eHealth);\r\n \t\t\tSystem.out.println(\"pHealth \"+ pHealth);\r\n \t\t\t\r\n \t\t\t//\"Deaths of the sprites\"\r\n \t\t\tif(pHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(player1.player);\r\n \t\t\t\tSystem.out.println(\"You died!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(eHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(enemy1.enemy);\r\n \t\t\t\tenemy1.enemy.setLayoutX(-10000);\r\n \t\t\t\tenemy1.enemy.setLayoutY(-10000);\r\n \t\t\t}\r\n \t\treturn false;\r\n \t\t}\r\n }\r\n \t\r\n \tfor( Node object: map1.walls.getChildren()) {\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())) return false;\r\n \t}\r\n \t\r\n \tfor( Node chest: map1.chests.getChildren()) {\r\n \tif(chest.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\tmap1.chests.getChildren().remove(chest);\r\n \t chestchose=inventory.getchestchose();\r\n \t \r\n \t if(chestchose==1) {\r\n \t \tinventory.sworda.setVisible(true);\r\n \t \tinventory.setpDamage(3);\r\n \t }\r\n \t if(chestchose==2) {\r\n \t \tinventory.healthbag.setVisible(true);\r\n \t }\r\n \t \r\n \t return false;\r\n \t} \r\n }\t\r\n \t\r\n return true;\r\n }",
"private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}",
"private boolean isEnemyOccupied(int x, int y) {\n for (int i = 0; i < player.own.length; i++) {\n if (player.enemy[i].x == x && player.enemy[i].y == y) {\n System.out.println(\"enemy occupied:\" + i);\n return true;\n }\n }\n return false;\n }",
"public boolean enemyOutOfBounds() {\n return (position.x < 0\n || position.x + TYPE_A_WIDTH > World.WORLD_WIDTH\n || position.y < 0\n || position.y + TYPE_A_HEIGHT > World.WORLD_HEIGHT);\n }",
"public void checkCollision() {\n\t\tfor(SolidObject i : solidObjects) {\r\n\t\t\tif(getBounds().intersects(i.getBounds())) {\r\n\t\t\t\t//Increments the KillCount\r\n\t\t\t\tif(i.onAttack(damage, flipped)) {\r\n\t\t\t\t\tkillCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}",
"void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }",
"@Override\n public void checkCollision( Sprite obj )\n {\n \n }",
"private void enemyMove() {\n\n\t\tboolean goAgain = false;\n\n\t\tint x = (int) (Math.random() * 10);\n\t\tint y = (int) (Math.random() * 10);\n\n\t\t// Make sure the enemy hits in a checkerboard pattern.\n\t\tif (x % 2 == 0) { // if x is even, y should be odd\n\t\t\tif (y % 2 == 0) {\n\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\ty++;\n\t\t\t\telse\n\t\t\t\t\ty--;\n\t\t\t}\n\t\t} else { // if x is odd, y should be even\n\t\t\tif (y % 2 == 1)\n\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\ty++;\n\t\t\t\telse\n\t\t\t\t\ty--;\n\t\t}\n\n\t\tif (enemyLastShotHit && getDifficulty() > 0) { // /if last shot was a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hit, enemy\n\t\t\t// will try to\n\t\t\t// check around it only run if difficulty is\n\t\t\t// normal or above\n\t\t\tx = enemyLastHitX;\n\t\t\ty = enemyLastHitY;\n\n\t\t\tif (getDifficulty() != 2) {\n\n\t\t\t\tif (conflictX == 4) {\n\t\t\t\t\tconflictX = 0;\n\t\t\t\t} else if (conflictY == 4) {\n\t\t\t\t\tconflictY = 0;\n\t\t\t\t\t// System.out.println(\"conflict has been reset \");\n\t\t\t\t}\n\n\t\t\t\tif (conflictX != 0) {\n\t\t\t\t\tif (conflictX == 1)\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\tconflictX = 4;\n\t\t\t\t} else if (conflictY == 1) {\n\t\t\t\t\t// System.out.println(\"checking down\");\n\t\t\t\t\tconflictY = 4;\n\t\t\t\t\ty++;\n\t\t\t\t}\n\n\t\t\t\tif (x + 1 < 10 && x - 1 >= 0) {// branch for multiple hits\n\t\t\t\t\tif (egrid[x + 1][y] == 1 && egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tif (x + 2 < 10) {\n\t\t\t\t\t\t\tif (egrid[x + 2][y] == 1) {\n\t\t\t\t\t\t\t\tconflictX = 1;\n\t\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (y + 1 < 10 && y - 1 >= 0) {// branch for multiple vertical\n\t\t\t\t\t\t\t\t\t\t\t\t// hits\n\t\t\t\t\tif (egrid[x][y + 1] == 1 && egrid[x][y - 1] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tconflictY = 1;\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (conflictX == 0 && conflictY == 0) {\n\n\t\t\t\t\tif (checkDirection == 0) // checks in each direction\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse if (checkDirection == 1)\n\t\t\t\t\t\tx--;\n\t\t\t\t\telse if (checkDirection == 2)\n\t\t\t\t\t\ty++;\n\t\t\t\t\telse if (checkDirection == 3) {\n\t\t\t\t\t\ty--;\n\t\t\t\t\t\tenemyLastShotHit = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (x < 0) // making sure coordinates stay within bounds\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\telse if (x > 9)\n\t\t\t\t\t\tx = 9;\n\t\t\t\t\tif (y < 0)\n\t\t\t\t\t\ty = 0;\n\t\t\t\t\telse if (y > 9)\n\t\t\t\t\t\ty = 9;\n\t\t\t\t}\n\t\t\t} // medium diff\n\n\t\t\telse if (getDifficulty() == 2) {// hard difficulty\n\t\t\t\t// gives enemy unfair advantage\n\n\t\t\t\tif (conflictX == 4)\n\t\t\t\t\tconflictX = 0;\n\t\t\t\tif (conflictY == 4)\n\t\t\t\t\tconflictY = 0;\n\n\t\t\t\tif (conflictX != 0) {\n\t\t\t\t\tif (conflictX == 1)\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\tconflictX = 4;\n\t\t\t\t} else if (conflictY == 1) {\n\t\t\t\t\tconflictY = 4;\n\t\t\t\t\ty++;\n\t\t\t\t}\n\n\t\t\t\tif (x + 1 < 10 && x - 1 >= 0) {// branch for multiple hits\n\t\t\t\t\tif (egrid[x + 1][y] == 1 && egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tif (x + 2 < 10) {\n\t\t\t\t\t\t\tif (egrid[x + 2][y] == 1) {\n\t\t\t\t\t\t\t\tconflictX = 1;\n\t\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (y + 1 < 10 && y - 1 >= 0) {// branch for multiple vertical\n\t\t\t\t\t\t\t\t\t\t\t\t// hits\n\t\t\t\t\tif (egrid[x][y + 1] == 1 && egrid[x][y - 1] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tconflictY = 1;\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (conflictX == 0 && conflictY == 0) {\n\t\t\t\t\tif (y + 1 < 10) {\n\t\t\t\t\t\tif (egrid[x][y + 1] == 1)// if y+1 is a hit and it is\n\t\t\t\t\t\t\t\t\t\t\t\t\t// within bounds, it will go\n\t\t\t\t\t\t\t\t\t\t\t\t\t// there\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tif (egrid[x][y - 1] == 1)\n\t\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t\tif (x + 1 < 10) {\n\t\t\t\t\t\tif (egrid[x + 1][y] == 1)\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\t\tif (egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\tenemyLastShotHit = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} // hard diff\n\t\t\tcheckDirection++;\n\t\t} // lasthit\n\n\t\tint tryCount = 0;\n\t\twhile (egrid[x][y] == 3) { // makes sure enemy doesn't hit same spot\n\t\t\t\t\t\t\t\t\t// twice\n\t\t\tx = (int) (Math.random() * 10);\n\t\t\ty = (int) (Math.random() * 10);\n\t\t\tif (tryCount < 20 && getDifficulty() > 0) {\n\t\t\t\tif (x % 2 == 0) { // if x is even, y should be odd\n\t\t\t\t\tif (y % 2 == 0) { // for checkerboard pattern\n\t\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t} else { // if x is odd, y should be even\n\t\t\t\t\tif (y % 2 == 1)\n\t\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty--;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttryCount++;\n\t\t}\n\n\t\tif (egrid[x][y] == 1) { // hit branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilehit.jpg\"));\n\t\t\tstatus.setText(\" Enemy got a hit\");\n\t\t\tenemyLastShotHit = true; // starts ai\n\t\t\tcheckDirection = 0;\n\t\t\tif (conflictX == 0 && conflictY == 0) {\n\t\t\t\tenemyLastHitX = x; // stores x and y values\n\t\t\t\tenemyLastHitY = y;\n\t\t\t}\n\t\t\tehits--; // keeps score\n\t\t}\n\n\t\telse if (egrid[x][y] == 2) { // poweup branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilepower.jpg\"));\n\t\t\tstatus.setText(\" Enemy got a PowerUp\");\n\t\t\tgoAgain = true;\n\t\t}\n\n\t\telse\n\t\t\t// miss branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilemiss.jpg\"));\n\n\t\tegrid[x][y] = 3;\n\n\t\tcheckEnemyWin();\n\n\t\tif (goAgain)\n\t\t\tenemyMove();\n\n\t}",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }",
"@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }",
"@Override\r\n\tpublic boolean collides (Entity other)\r\n\t{\r\n\t\tif (other == owner || other instanceof Missile)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn super.collides(other);\r\n\t}",
"@Override\n public boolean onCollision(Enemy e) {\n if (!e.doesDamage()) {\n e.setVisible(false);\n return false;\n } else {\n //do damage\n return true;\n }\n }",
"private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }",
"void collisionDetection() {\n\t\tfor (int a = 0; a < botsList.size(); a++) {\r\n\t\t\tfor (int b = 0; b < botsList.size(); b++) {\r\n\r\n\t\t\t\tif (a == b) // Avoid checking if bot hits itself.\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\ttime = System.currentTimeMillis();\r\n\t\t\t\tif (time - botsList.get(a).enemy_last_detected > botsList.get(a).enemy_detect_timeout) {\r\n\t\t\t\t\tfor (int i = 0; i > botsList.get(b).bullets.size(); i++) {\r\n\t\t\t\t\t\tif (colides(botsList.get(a), botsList.get(b).bullets.get(i)))\r\n\t\t\t\t\t\t\tbotsList.get(a).loseLife();\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\r\n\t\tif (botsList.get(0).detect.intersects(botsList.get(1).body.getFrame())) {\r\n\t\t\tbotsList.get(0).enemyDetected(botsList.get(1).body);\r\n\t\t\tbot_1_detect = false;\r\n\t\t\tbot_1_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_1_detected > bot_1_detect_timeout)\r\n\t\t\tbot_1_detect = true;\r\n\t\t// and now same for bot 2\r\n\t\tif (botsList.get(1).detect.intersects(botsList.get(0).body.getFrame())) {\r\n\t\t\tbotsList.get(1).enemyDetected(botsList.get(0).body);\r\n\t\t\tbot_2_detect = false;\r\n\t\t\tbot_2_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_2_detected > bot_2_detect_timeout)\r\n\t\t\tbot_2_detect = true;\r\n\r\n\t\t// Bullets collision\r\n\t\t// See if bot_n hits the other bot with a bullet\r\n\t\tfor (int mainB = 0; mainB < botsList.size(); mainB++) {\r\n\t\t\tfor (int secB = 0; secB < botsList.size(); secB++) {\r\n\r\n\t\t\t\tif (secB == mainB)\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// if player_2 collides with player 1's bullets\r\n\t\t\t\tfor (int i = 0; i < botsList.get(mainB).bullets.size(); i++) {\r\n\t\t\t\t\tif (colides(botsList.get(secB), botsList.get(mainB).bullets.get(i))) {\r\n\t\t\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\t\t\tbotsList.get(mainB).bullets.remove(i);\r\n\t\t\t\t\t\tbotsList.get(secB).loseLife();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if player_1 collides with player 2's bullets\r\n\t\tfor (int i = 0; i < botsList.get(1).bullets.size(); i++) {\r\n\t\t\tif (colides(botsList.get(0), botsList.get(1).bullets.get(i))) {\r\n\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\tbotsList.get(1).bullets.remove(i);\r\n\t\t\t\tbotsList.get(0).loseLife();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void checkCollision( Sprite obj )\n {\n\n }",
"private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"void collisionHappened(int position);",
"private void checkWeaponCollisions(GObject element) {\r\n\t\tGObject topLeft = getElementAt(element.getX() - 1, element.getY());\r\n\t\tGObject topRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY());\r\n\t\tGObject bottomLeft = getElementAt(element.getX() - 1, element.getY() + element.getHeight());\r\n\t\tGObject bottomRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY() + element.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void collision() {\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).tick();\n\n if (friendlyBullets.get(i).getImgY() <= 40) {\n friendlyBullets.get(i).bulletImage.delete();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < enemies.size(); j++) {\n\n if (friendlyBullets.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n friendlyBullets.get(i).hit();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n\n enemies.get(j).hit();\n\n if (enemies.get(j).getHp() <= 0) {\n enemies.remove(enemies.get(j));\n score.setScore(50);\n j--;\n }\n //end this loop\n j = enemies.size();\n }\n }\n\n }\n\n ///////////////////////////////////////////////////////////////////////////////////////\n\n\n // Enemy out of bounds\n for (int i = 0; i < enemies.size(); i++) {\n\n enemies.get(i).tick();\n\n // Out of bounds\n if (enemies.get(i).getEnemyImage().getY() >= 750) {\n enemies.get(i).getEnemyImage().delete();\n enemies.remove(enemies.get(i));\n\n if (enemies.size() > 1) {\n i--;\n }\n }\n }\n\n\n //////////////////////////////////////////////////////////////////////////\n\n //powerUps out of bounds and collision with spaceships\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).tick();\n\n if (powerUps.get(i).getImgY() >= 745) {\n\n powerUps.get(i).powerUpImage.delete();\n powerUps.remove(powerUps.get(i));\n\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(powerUps.get(i).getHitbox())) {\n\n\n spaceShips.get(j).powerUp(powerUps.get(i).getPowerUpType());\n powerUps.get(i).hit();\n powerUps.remove(powerUps.get(i));\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n\n }\n\n }",
"private void checkExplosionKill() {\n\t\t\n\t\texplosion.expand();\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (explosion.detectDownwardCollision(a.getX(), a.getY())) {\n\t\t\t\t\ta.setVisibility(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void unitCollision() {\n\t}",
"public abstract boolean collide(int x, int y, int z, int dim, Entity entity);",
"HitEnemy checkHits(@NotNull List<Bullet> bullets, Bitmap hitEnemyImage) {\n for (Bullet b : bullets) {\n int enemyXCoordinate = x();\n int enemyYCoordinate = y();\n int enemyWidth = this.getBitmap().getWidth();\n int enemyHeight = this.getBitmap().getHeight();\n\n int bulletXCoordinate = b.x();\n int bulletYCoordinate = b.y();\n int bulletWidth = b.getBitmap().getWidth();\n int bulletHeight = b.getBitmap().getHeight();\n\n // Standard rectangular bitmap intersection formula\n // (Good enough up to +/- the corner pixels, which are not\n // noticeable in the game)\n if (enemyXCoordinate + enemyWidth >= bulletXCoordinate\n && bulletXCoordinate + bulletWidth >= enemyXCoordinate\n && enemyYCoordinate + enemyHeight >= bulletYCoordinate\n && bulletYCoordinate + bulletHeight >= enemyYCoordinate) {\n b.markForRemoval();\n this.markForRemoval();\n\n return new HitEnemy(this.x(), this.y() - 34, hitEnemyImage);\n }\n }\n\n return null;\n }",
"public abstract void collideWith(Entity entity);",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"public boolean isCollision(double x, double y) {\n return false;\n }",
"public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }",
"public void applyEntityCollision(Entity entityIn) {\n }",
"private void checkCollision()\n {\n if(isTouching(Rocket.class))\n {\n removeTouching(Rocket.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Fire.class))\n {\n removeTouching(Fire.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Sword.class))\n { \n removeTouching(Sword.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n notifyObservers(-20);\n }\n \n else if(isTouching(Star.class))\n { \n removeTouching(Star.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n count++;\n boost();\n }\n }",
"@Override\n public boolean collide(Entity e) {\n if (e.isExplosion() || (e.isBomb() && (((Bomb) e).isMissile()))) {\n kill();\n ArrayList<Mob> m = Board.getInstance().getMobsAtExcluding(this.getXTile(), this.getYTile(), this);\n for (Mob mob1 : m) {\n if (mob1.isAlive()) {\n mob1.kill();\n }\n }\n return true;\n }\n return false;\n }",
"private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }",
"private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }",
"public void tick() {\n\t\tif (Math.abs(disToPlayerX()) > Math.abs(disToPlayerY())) {\r\n\t\t\tif (disToPlayerX()<0) {\r\n\t\t\t\tx -= speed;\t//moves enemy to the left\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tx += speed; //moves enemy to the right\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (disToPlayerY()<0) {\r\n\t\t\t\ty-=speed; //moves enemy up\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ty+=speed; //moves enemy down\r\n\t\t\t}\r\n\t\t}\r\n\t\tenemyRectangle.setLocation((int)x,(int) y); //updates hitbox of enemy\r\n\r\n\t\t//checks all enemies and see if they run into player\r\n\t\tfor (int i=0;i<c.getEnemys().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(player.getRectangle().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes the enemy\r\n\t\t\t\tPlayer.health -=10; //removes 10 health\r\n\t\t\t\tbreak; //doesn't work without this BREAK. DO NOT REMOVE\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//checks all bullets if they hit an enemy\r\n\t\tfor (int i = 0;i<c.getBullets().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(c.getBullets().get(i).getRect().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes enemy\r\n\t\t\t\tc.removeBullet(c.getBullets().get(i)); //removes the bullet\r\n\t\t\t\tPlayer.score += 50; //adds 50 to the score\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void checkCollisionwithMonster() {\n\t\tr1.set(this.getX(),this.getY(),this.getWidth(),this.getHeight());\r\n\t\t\r\n\t\t//check collision with monsters\t\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(TreeMonster treeMon : treeMonArray){\r\n\t\t\t\tif(treeMon.isVisible()){\r\n\t\t\t\t\tr2.set(treeMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(SlimeMonster slimeMon : slimeMonArray){\r\n\t\t\t\tif(slimeMon.isVisible()){\r\n\t\t\t\t\tr2.set(slimeMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(FireMonster fireMon : fireMonArray){\r\n\t\t\t\tif(fireMon.isVisible()){\r\n\t\t\t\t\tr2.set(fireMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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}",
"@Override\n public boolean checkCollideSingle(GameObject gameObject, int x, int y) {\n if (!(gameObject instanceof Player) || !isAlive())\n return false;\n\n boolean result = super.withinRange(x, y);\n\n if (result) {\n if (prev + (hitInterval * 10) < System.currentTimeMillis()) {\n prev = System.currentTimeMillis();\n startHitTime = prev + 300;\n startHit = true;\n }\n }\n\n if (result) {\n if (startHitTime < System.currentTimeMillis() && startHit) {\n HUD.getInstance().removeHealth(getDamage());\n setStatus(PlayerStatus.FIGHTING);\n startHit = false;\n }\n }\n\n return result;\n }",
"public void collisionVS() {\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).tick();\n\n if (enemyBullets.get(i).getImgY() >= 750 || enemyBullets.get(i).getImgY() <= 40) {\n\n enemyBullets.get(i).bulletImage.delete();\n enemyBullets.remove(enemyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(enemyBullets.get(i).getHitbox())) {\n\n spaceShips.get(j).hit();\n enemyBullets.get(i).hit();\n enemyBullets.remove(enemyBullets.get(i));\n\n if (spaceShips.get(j).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(j));\n }\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n }\n\n //////////////////////////////////////////////////////////////////////////////////////////////\n\n // SPACESHIPS WITH ENEMIES AND ENEMY BULLETS\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).tick();\n\n // WITH ENEMIES\n for (int j = 0; j < enemies.size(); j++) {\n if (spaceShips.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n spaceShips.get(i).hit();\n enemies.get(j).hit(20);\n enemies.remove(enemies.get(j));\n\n if (spaceShips.get(i).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(i));\n }\n\n //if it collides with one leave the for loop\n j = enemies.size();\n }\n }\n }\n }",
"protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}",
"private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"int checkCollision(Tumbleweed tumbleweed) {\n int retVal = 0;\n if (collidesWith(tumbleweed, true)) {\n retVal = 1;\n // once the cowboy has collided with the tumbleweed,\n // that tumbleweed is done for now, so we call reset\n // which makes it invisible and ready to be reused.\n tumbleweed.reset();\n }\n return (retVal);\n }",
"private boolean checkCollision(int x, int y){\n\t\t\n\t\tboolean b = false;\n\t\tif(Math.abs((this.particles.get(x).getPosition().distance(this.particles.get(y).getPosition()))) < 0.5*Renderer.SCALE*(this.particles.get(x).getRadius() + this.particles.get(y).getRadius()))\n\t\t{\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}",
"private boolean isInDoor(Entity player){\n Sprite playerSprite= (Sprite) player.getComponent(Sprite.class);\n for(int i = 0; i<Main.colliderWallMap.size(); i++){\n if(Main.colliderWallMap.get(i).intersects(playerSprite.getValue().getX(), playerSprite.getValue().getY(),playerSprite.getValue().getWidth(), playerSprite.getValue().getHeight())){\n return false;\n }\n }\n\n return true;\n }",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public boolean collidesWith(ICollider other);",
"@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}",
"public void checkCollisions(ArrayList<Collidable> other);",
"private boolean collisonCheck(List<Tile> nextTiles, Snake enemy) {\n\t\t// check himself\n\t\tfor (Tile tile : (List<Tile>)snakeTiles) {\n\t\t\tfor (Tile t : nextTiles) {\n\t\t\t\tif (tile.equals(t)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// check enemy\n\t\tfor (Tile tile : enemy.getSnakeTiles()) {\n\t\t\tfor (Tile t : nextTiles) {\n\t\t\t\tif (tile.equals(t)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic void collide(Entity e) {\n\n\t}",
"private boolean withinRange(Enemy e) {\n \t\tRect r = e.r; //Get the collision box from the \n \t\tPoint rectCenter = new Point((int) r.exactCenterX(), (int) r.exactCenterY());\n \t\tif (Math.abs(center.x - rectCenter.x) <= (e.getSize()/2 + range)) {\n \t\t\tif (Math.abs(center.y - rectCenter.y) <= (e.getSize()/2 + range)) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t\treturn false;\t\n \t}",
"protected void onCollision(Actor other) {\r\n\r\n\t}",
"@Override\n public void collide(ScreenObject other) {\n switch (other.getType()) {\n case ASTEROID:\n hp -= other.dealDamage();\n break;\n case ENEMY:\n hp -= other.dealDamage();\n break;\n case ENEMYBULLET:\n hp -= other.dealDamage();\n break;\n case MACGUFFIN:\n macguffinsCollected++;\n break;\n case PORT:\n if (macguffinsCollected >= level.getMacguffinCount()\n && boundingCircle.contains(other.getPosition())) {\n Gdx.app.log(\"Ship\", \"level over\");\n //ends level\n }\n break;\n }\n }",
"@Override\n\tpublic void didContact(GameEntity entity){\n\t\tif (entity.getClass() == Enemy.class){\n\n\t\t\tentity.receiveDamage(100);\n\t\t\tthis.receiveDamage(10);\n\t\t\tSystem.out.println(\"hit enemy\");\n\t\t}\n\t}",
"private void checkCollisions() {\n int x1 = 0;\n int x2 = 0;\n for(CollisionBox e : cols) {\n for(CollisionBox f : cols) {\n if(\n x2 > x1 && // Skip checking collisions twice\n// (\n// e != f || // The entities are not the same entity\n// ( // One of the entities's parent object is not the bullet of the other's (aka ignore player bullets colliding with player)\n// // And also check they're not both from the same entity (two bullets colliding both going in the same direction from the same entity)\n// f.getParent() != null && // The first entity has a parent and\n// e.getParent() != null && // The second entity has a parent and\n// f.getParent().getParent() != null && // The first entity's parent has a parent and\n// e.getParent().getParent() != null && // The second entity's parent has a parent and\n// f.getParent().getParent() != e.getParent() && // The first entity's parent's parent is not the second entity's parent\n// e.getParent().getParent() != f.getParent() &&// The second entity's parent's parent is not the first entity's parent\n// f.getParent().getParent() != e.getParent().getParent() // The first and second entities' parents' parents are not the same\n// )\n// ) &&\n SAT.isColliding(e, f) // The entities are colliding\n ) { // Collide the Entities\n Entity ep = e.getParent();\n Entity fp = f.getParent();\n ep.collide(fp);\n fp.collide(ep);\n }\n x2++;\n }\n x1++;\n x2 = 0;\n }\n }",
"private void checkCollision(Graphics g) {\n\t\t// collision detection for the tanks\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\tRectangle heroRectangle = hero.getBounds();\n\t\tRectangle hero2Rectangle = computer.getBounds();\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\t// hero1 --------------------\n\t\tAffineTransform at = g2d.getTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(hero.getAngle()), hero.getX() + hero.getImageWidth() / 2,\n\t\t\t\thero.getY() + hero.getImageHeight() / 2);\n\t\tGeneralPath heroPath = new GeneralPath();\n\t\theroPath.append(heroRectangle.getPathIterator(at), true);\n\t\tArea heroArea = new Area(heroPath);\n\n\t\t// hero2 ------------------------------\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(computer.getAngle()), computer.getX() + computer.getImageWidth() / 2,\n\t\t\t\tcomputer.getY() + computer.getImageHeight() / 2);\n\t\tGeneralPath hero2Path = new GeneralPath();\n\t\thero2Path.append(hero2Rectangle.getPathIterator(at), true);\n\t\tArea hero2Area = new Area(hero2Path);\n\n\t\t// tank1 -- tank2 collision\n\t\thero2Area.intersect(heroArea);\n\t\tif (!hero2Area.isEmpty()) {\n\t\t\tplay(\"tank-tank.wav\");\n\t\t\tposxt2 = computer.getX();\n\t\t\tposyt2 = computer.getY();\n\t\t\tposyt1 = hero.getY();\n\t\t\tposxt1 = hero.getX();\n\t\t\t\n\t\t\texplodet2 = true;\n\t\t\texplodet1 = true;\n\t\t\tg2d.setColor(Color.RED);\n\t\t\tg2d.fill(heroArea);\n\t\t\tcomputer.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(), computer.getImageWidth(),\n\t\t\t\t\tcomputer.getImageHeight())) {\n\t\t\t\tcomputer.spawnGenerator();\n\t\t\t}\n\n\t\t\thero.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\thero.spawnGenerator();\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m = heroMissiles.get(i);\n\t\t\tRectangle tank1BulletRect = m.getBounds();\n\t\t\tGeneralPath tank1BulletPath = new GeneralPath();\n\t\t\ttank1BulletPath.append(tank1BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank1BulletArea = new Area(tank1BulletPath);\n\t\t\thero2Area.intersect(tank1BulletArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposxt2 = computer.getX();\n\t\t\t\tposyt2 = computer.getY();\n\t\t\t\texplodet2 = true;\n\t\t\t\tif (computer.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp1score++;\n\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(),\n\t\t\t\t\t\t\tcomputer.getImageWidth(), computer.getImageHeight())) {\n\t\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\tcomputer.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// tank1 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tRectangle tankBulletRect = m1.getBounds();\n\t\t\tGeneralPath tankBulletPath = new GeneralPath();\n\t\t\ttankBulletPath.append(tankBulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tankBulletArea = new Area(tankBulletPath);\n\t\t\theroArea.intersect(tankBulletArea);\n\t\t\tif (!heroArea.isEmpty() && m1.isReflected()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- tank2 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tRectangle tank2BulletRect = m1.getBounds();\n\t\t\tGeneralPath tank2BulletPath = new GeneralPath();\n\t\t\ttank2BulletPath.append(tank2BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank2BulletArea = new Area(tank2BulletPath);\n\t\t\theroArea.intersect(tank2BulletArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thero2Missile.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\theroArea.intersect(powerupArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tif ((powerupArray.get(i)).getPowerupType() == 5) {\n\t\t\t\t\thero.setIndex(1);\n\t\t\t\t}\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\thero.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\thero2Area.intersect(powerupArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\tcomputer.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank 1 and wall collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (Wall w : wallArray) {\n\t\t\tRectangle wallRect = w.getBounds();\n\t\t\tGeneralPath wallPath = new GeneralPath();\n\t\t\twallPath.append(wallRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea wallArea = new Area(wallPath);\n\t\t\theroArea.intersect(wallArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\thero.setX(hero.getPrevX());\n\t\t\t\thero.setY(hero.getPrevY());\n\t\t\t}\n\t\t}\n\t}",
"public void checkForDeath()\n {\n Bullet2 bullet2 = new Bullet2(getVelocity(), getRotation());\n myWorld2 world = (myWorld2)getWorld();\n Zombie2 zombie = new Zombie2();\n \n if (isTouching(Bullet2.class))\n {\n health -= bullet2.damage;\n \n if(health < 0)\n {\n world.score(2);\n world.removeObject(this);\n } \n }\n else if (getX() == 900) \n {\n world.score(-1);\n world.removeObject(this);\n } \n }",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}",
"@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}",
"public abstract boolean collisionWith(CollisionObject obj);",
"public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }",
"private void checkCollisions(MovementEngine currentShip)\n\t{\t\t\n\t\tif (currentShip.getWeaponName() == Constants.PLAYER \n\t\t\t\t|| currentShip.getWeaponName() == Constants.ENEMY_FIGHTER\n\t\t\t\t|| currentShip.getWeaponName() == Constants.ENEMY_BOSS\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.MISSILE_PLAYER\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.MISSILE_ENEMY\n\t\t\t\t|| currentShip.getWeaponName() == Constants.GUN_ENEMY\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.GUN_PLAYER\n\t\t\t\t|| currentShip.getWeaponName() == Constants.PARACHUTE\n\t\t\t\t&& currentShip.getDestroyedFlag() == false)\n\t\t{\n\t\t\tfor(int i = 0; i < GameState._weapons.size(); i ++)\n\t\t\t{\t\t\t\t\t\n\t\t\t\tif (i < GameState._weapons.size())\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tMovementEngine ship = GameState._weapons.get(i);\t\t\t\t\t\n\t\t\t\t\t\tif (ship.getWeaponName() == Constants.PLAYER \n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.ENEMY_FIGHTER\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.ENEMY_BOSS\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.MISSILE_PLAYER\t\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.MISSILE_ENEMY\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.GUN_ENEMY\t\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.GUN_PLAYER\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.PARACHUTE\n\t\t\t\t\t\t\t\t&& ship.getDestroyedFlag() == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint diffX = Math.abs((int)(currentShip.getX() - ship.getX())); \n\t\t\t\t\t\t\tint diffY = Math.abs((int)(currentShip.getY() - ship.getY())); \n\t\t\t\t\t\t\tif (diffX <= (10 * GameState._density) && diffY <= (10 * GameState._density))\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcurrentShip.onCollision(ship);\n\t\t\t\t\t\t\t\tship.onCollision(currentShip);\n\t\t\t\t\t\t\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\tcatch(ArrayIndexOutOfBoundsException e)\n\t\t\t\t\t{\n\t\t\t\t\t\t// ignore and continue\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"float shouldAggroOnHit(IGeneticMob geneticMob, EntityLiving attacker);",
"@Override\n\tpublic void doCollideEnemy(SlowEnemy enemy) {\n\t\t\n\t}",
"public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void checkPlayerCollisions() {\n\t\t//Iterate over the players\n\t\tfor (PlayerFish player : getPlayers()) {\n\t\t\t//Get collidables parallel.\n\t\t\tcollidables.parallelStream()\n\t\t\t\n\t\t\t//We only want the collidables we actually collide with\n\t\t\t.filter(collidable -> player != collidable && player.doesCollides(collidable))\n\t\t\t\n\t\t\t//We want to do the for each sequentially, otherwise we get parallelism issues\n\t\t\t.sequential()\n\t\t\t\n\t\t\t//Iterate over the elements\n\t\t\t.forEach(collidable -> {\n\t\t\t\tplayer.onCollide(collidable);\n\t\t\t\tcollidable.onCollide(player);\n\t\t\t});\n\t\t}\n\t}",
"@Override\r\n public boolean dye() {\r\n if (getX() > 3100 || getX() < 10 || getY() < 10 || getY() > 3100) {\r\n return true;\r\n }\r\n// int pixel = mapRGB.getRGB((int) getX(), (int) getY());\r\n// int red = (pixel >> 16) & 0xff;\r\n// if(red==255){this.handler.getWaves().removeEnemy(); return true;}\r\n int k = collision(velX, velY, this.getX(), this.getY());\r\n if(k!=0) {\r\n this.handler.getWaves().removeEnemy(); \r\n return true;\r\n }\r\n else{\r\n zombie_x = getX(); \r\n zombie_y = getY();\r\n }\r\n //I proiettili hanno una portata limitata o se ha colpito il player o se è uscito dalla mappa o se è andato contro un muro\r\n if ((this.getHealth() == 0) || (handler.getPlayer().getBounds().contains(getX(), getY()))) {\r\n int n = (int) (Math.random() * 10);\r\n if(n>1) n=2;\r\n switch (n) {\r\n case 2:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 3, 200, 25, handler.getPlayer(), this.handler, 30, 60, 60, 5, new Animation(Assets.zombie, 20), new Animation(Assets.zombieAttack, 35), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 0:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 4, 70, 50, handler.getPlayer(), this.handler, 0, 60, 60, 20, new Animation(Assets.zombie2, 15), new Animation(Assets.zombie2Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 1:\r\n this.handler.addSprite(new SpittleZombie(zombie_x, zombie_y, 3, 500, 40, handler.getPlayer(), this.handler, 0, 60, 60, 45, new Animation(Assets.zombie3, 15), new Animation(Assets.zombie3Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n }\r\n return true;\r\n }\r\n \r\n return false;\r\n }",
"private boolean HasRocketHitEnemy(Rocket rocket)\n\t {\n\t boolean HitEnemy = false;\n\t \n\t \n\t Rectangle rocketRectangle = new Rectangle(rocket.xCoord, rocket.yCoord,rocket.RocketImage.getWidth(), rocket.RocketImage.getHeight());\n\t \n\t // Go through all enemies.\n\t for(int j = 0; j < EnemyList.size(); j++)\n\t {\n\t Enemy eh = EnemyList.get(j);\n\n\t // Current enemy rectangle.\n\t Rectangle enemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\n\t // Is current rocket over current enemy?\n\t if(rocketRectangle.intersects(enemyRectangel))\n\t {\n\t \tHitEnemy = true;\n\t \n\t // Rocket hit the enemy so we reduce his health.\n\t eh.Health -= rocket.damagePower;\n\t \n\t // Rocket hit enemy so we don't need to check other enemies.\n\t break;\n\t }\n\t }\n\t \n\t return HitEnemy;\n\t }",
"public boolean checkHit(int x, int y) {\n\t\t\n\t\t//Check if the guard caught the hero\n\t\tint[][] adjacent = new int[][] {\n\t\t\t{ getY() + 1, getX()},\n\t\t\t{ getY() - 1, getX()},\n\t\t\t{ getY(), getX() + 1},\n\t\t\t{ getY(), getX() - 1}\n\t\t\t};\n\n\t\tfor (int[] spot : adjacent) {\n\t\t\tif (spot[1] == x && spot[0] == y) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}",
"@Override\n public void collide(CollisionEvent e) {\n //collision detection that will allow you to unlock a character\n if (e.getOtherBody() instanceof Player) {\n Player p = (Player) e.getOtherBody();\n //if player has not unlocked the 2nd hero for the first level then unlock\n if (!p.getUnlockHero2() && p.getWorld() instanceof Level1){\n p.setUnlockHero2(true);\n }\n //if player has not unlocked the 3rd hero for the second level then unlock\n if (!p.getUnlockHero3() && p.getWorld() instanceof Level2) {\n p.setUnlockHero3(true);\n }\n if (p.getWorld() instanceof Level3) {\n if (p.getHealth()<51){\n p.setHealth(p.getHealth()+50);\n }\n }\n //destroy the chest and acknowledge that it's been picked up\n c.destroy();\n p.getWorld().setPickedUp(true);\n }\n }",
"private void collideWithBall() {\n die();\n }",
"public boolean checkCollision(int x, int y){\n return x<=xEnd&&x>=xStart&&y<=yEnd&&y>=yStart;\n }",
"public boolean collides (){\n if(shipX<=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=40 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n else if(shipX<=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=60 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n return false;\n }",
"public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void collide(CollisionEvent e) {\n \n if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Health) {\n prime.incrementHealthCount();\n healthSound.play();\n e.getReportingBody().destroy();\n \n \n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Emerald) {\n prime.incrementEmeraldCount();\n emeraldSound.play();\n e.getReportingBody().destroy();\n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof DeadZone) {\n e.getReportingBody().destroy();\n System.exit(0);\n } \n \n else if (e.getReportingBody() instanceof Boss && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n }\n \n else if (e.getReportingBody() instanceof StaticBody && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n } \n \n }",
"public boolean collidesWith(SpriteBase otherSprite) {\r\n boolean toReturn = false;\r\n\r\n if (distTo(otherSprite.x, x) < collideSize && distTo(otherSprite.y,y) < collideSize){\r\n toReturn = true;\r\n }\r\n\r\n return (toReturn);\r\n }",
"private void collision(){\n\t\tboolean touched = false;\n\t\tboolean hit;\n\t\tint j =0;\n\t\twhile ( j< this.game_.getSaveBaby().size() && !touched){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n\t\t\ttouched = this.game_.getBunnyHood().getPosition().dst(b.getPosition())<=80;\n\t\t\thit = this.game_.getWolf().getPosition().dst(b.getPosition())<=80;\n\t\t\tif (touched){\n\t\t\t\tthis.game_.setBabySaved(b);\n\t\t\t}\n\t\t\tif (hit){\n\t\t\t\tthis.game_.wolfCatchBunnies(b);\n\t\t\t\t/**\n\t\t\t\t * Test de callback, retour vers l app android\n\t\t\t\t */\n\t\t\t\tif(this.game_.getScoreWolf()==3){\n\t\t\t\t\tif (this.gameCallBack != null) {\n\n this.gameCallBack.gameOverActivity(this.game_.getScoreBunny());\n\t\t\t\t\t\tthis.isGameOver=true;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tGdx.app.log(\"MyGame\", \"To use this class you must implement MyGameCallback!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t}",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}",
"public void collision(ArrayList<Game_Object> obj) {\n for (int i = 0; i < obj.size(); i++) {\n \tif(collidesWith(obj.get(i)) && (obj.get(i) instanceof Unit)) {\n \t\tUnit unit = (Unit) obj.get(i);\n \t\tdamage(unit.getColDamage());\n \t}\n }\n }",
"void check_missile_collisions() {\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n for (int j = aliens.size()-1; j >= 0; j --) {\n Alien alien = aliens.get(j);\n boolean hit = alien.checkMissileCollisions(missile);\n if (hit) {\n alien_destroyed_audio.play();\n\n // Move the missile off-screen to be deleted by delete_missiles()\n missile.moveOffScreen();\n\n // Update the score, speed up remaining aliens, remove the alien\n update_score(alien.points);\n Alien.speed_up();\n alien_audio_intervals = (long) (500000000 - (100000000 * Alien.alien_speed));\n ImageView alien_image_view = alien_image_views.get(j);\n game_pane.getChildren().remove(alien_image_view);\n alien_image_views.remove(j);\n aliens.remove(alien);\n break;\n }\n }\n }\n\n // Check if any alien missiles hit the ship\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n // Only check missiles that have reached the y-coordinate of the player\n if (missile.y_position+missile.missile_height >= ship.y_position) {\n boolean hit = ship.checkMissileCollisions(missile);\n if (hit) {\n ship_destroyed_clip.play();\n\n // Player loses a life\n lives -= 1;\n lives_text.setText(\"Lives: \" + lives);\n\n // Ship and missiles not respawn/removed for last life so that player can see how they died\n if (lives > 0){\n // Move the missile off-screen, deleted by delete_missiles()\n missile.moveOffScreen();\n ship_respawn();\n }\n break;\n }\n }\n }\n }",
"private boolean canReach(Point positionEnemy, Point towerPosition) {\n return towerPosition.distance(positionEnemy) / Tile.TILE_WIDTH <= tower.getFireRange();\n }"
]
| [
"0.75434864",
"0.73960745",
"0.7334075",
"0.7331061",
"0.7258594",
"0.70995045",
"0.70742184",
"0.7011241",
"0.6992071",
"0.6971434",
"0.6863767",
"0.6825711",
"0.68222183",
"0.6822073",
"0.6818747",
"0.6749501",
"0.66944885",
"0.66884375",
"0.66882116",
"0.6666091",
"0.6647707",
"0.66471416",
"0.66119736",
"0.65717125",
"0.655573",
"0.6554663",
"0.655327",
"0.6540634",
"0.65200603",
"0.6516846",
"0.6516192",
"0.6513506",
"0.65102327",
"0.6491477",
"0.6477741",
"0.6474517",
"0.6463584",
"0.64481854",
"0.64445513",
"0.6435278",
"0.6415044",
"0.6400982",
"0.64006376",
"0.6388159",
"0.6384589",
"0.63732296",
"0.6372954",
"0.6367037",
"0.6366456",
"0.6365516",
"0.6332204",
"0.6329018",
"0.631802",
"0.631741",
"0.6307552",
"0.62892234",
"0.62785995",
"0.62785864",
"0.62750155",
"0.62744117",
"0.6270736",
"0.62613195",
"0.6248283",
"0.624398",
"0.62438387",
"0.6243121",
"0.62373126",
"0.62361896",
"0.62347764",
"0.62310296",
"0.6229603",
"0.62179524",
"0.6215438",
"0.62048084",
"0.62025213",
"0.6189592",
"0.61865413",
"0.61859906",
"0.6185782",
"0.61842775",
"0.6183602",
"0.61825377",
"0.615618",
"0.6155842",
"0.6154637",
"0.61476445",
"0.6134733",
"0.6131585",
"0.6127077",
"0.612612",
"0.6122568",
"0.61171365",
"0.6109844",
"0.6102696",
"0.6088049",
"0.6083285",
"0.60830945",
"0.6064447",
"0.60585845",
"0.60568535"
]
| 0.77840686 | 0 |
Set parameters for no collision | public void noCollision(){
this.collidingEntity2=null;
this.collidingEntity=null;
collidedTop=false;
collide=false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCollisionRule(CollisionRule collisionRule);",
"public static void setCollision(boolean b)\r\n\t{\r\n\t\tcollision = b;\r\n\t}",
"private static void setParameters(CollisionShape shape, float b) {\n boolean flag = (b > 0.15f && b < 0.45f);\n shape.setContactFilterEnabled(flag);\n }",
"public void reset(){\n\t\tthis.setPosition(DEFAULT_X, DEFAULT_Y);\t\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(defaultWidth);\n\t\tspeed = 400;\n\t\tsetGlue(true);\n\t}",
"private CollisionLogic() {}",
"private void resetParams() {\n lowerYear = 1999;\n upperYear = 2020;\n yearRestriction = false;\n\n lowerProblem = 1;\n upperProblem = 60;\n problemRestriction = false;\n partTwo = false;\n }",
"@Override\n public void setUpCollision(Collision collisionPoints){\n //Walls at the bottom\n collisionPoints.addBoxCollision(2,39,32,15,flicker);\n collisionPoints.addBoxCollision(41,39,35,15,flicker);\n collisionPoints.addBoxCollision(34,40,7,1,flicker);\n //Walls sides\n collisionPoints.addBoxCollision(2,1,11,37,flicker);\n collisionPoints.addBoxCollision(62,14,11,36,flicker);\n collisionPoints.addBoxCollision(2,1,74,12,flicker);\n\n //DETAIL\n //Front\n collisionPoints.addBoxCollision(33,14,8,4,flicker);\n //Seats left\n collisionPoints.addBoxCollision(14,21,17,3,flicker);\n collisionPoints.addBoxCollision(14,26,17,3,flicker);\n collisionPoints.addBoxCollision(14,31,17,3,flicker);\n collisionPoints.addBoxCollision(14,36,17,3,flicker);\n //Seats right\n collisionPoints.addBoxCollision(43,21,19,3,flicker);\n collisionPoints.addBoxCollision(43,26,19,3,flicker);\n collisionPoints.addBoxCollision(43,31,19,3,flicker);\n collisionPoints.addBoxCollision(43,36,19,3,flicker);\n }",
"private void replaceMatchingParameters() {\r\n\t\tDisplay.getDefault().asyncExec(()->{\r\n\t\t\tif(mwt == null) return;\r\n\t\t\tmwt.pack();\r\n\t\t\r\n\t\t//\tCompositionBriques composition = mwt.getCompositionBriques();\r\n\t\t\t\r\n\t\t//\tList<Equation> eqn = composition.getEquation();\t\r\n\t\t//\tMatchIdenticalParameters.matchIdenticalBriqueParameters(eqn);\r\n\t\t});\r\n\r\n\t}",
"public void updateOptimalCollisionArea();",
"private void setCollision(){\n\t\tMapObjects mapObjects = map.getLayers().get(\"COLLISION\").getObjects();\n\t\tfor (int ii = 0; ii < mapObjects.getCount(); ++ii){\n\t\t\tRectangleMapObject rectangle_map_object = (RectangleMapObject) mapObjects.get(ii);\n\t\t\tareaCollision.add(new Rectangle(rectangle_map_object.getRectangle()));\n\t\t}\n\t}",
"@Override\n\tpublic void setDefaultParameters() {\n\t\tprobCatch = (probCatchBounds.get(0) + probCatchBounds.get(2)) / 2;\n\t}",
"void onNoCollision();",
"public void collision() {\n\t\tcapacity = 0;\n\t\tcolor = ColorUtil.YELLOW;\n\t}",
"private void resetParameters() {\n\t\twKeyDown = false;\n\t\taKeyDown = false;\n\t\tsKeyDown = false;\n\t\tdKeyDown = false;\n\t\tmouseDown = false;\n\t\t// reset mouse\n\t\tMouse.destroy();\n\t\ttry {\n\t\t\tMouse.create();\n\t\t} catch (LWJGLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t// resets the player's hp\n\t\tplayer.setHP(1000);\n\t\t// resets the player's position\n\t\tplayer.setX(initPlayerX);\n\t\tplayer.setY(initPlayerY);\n\t\t// the game is not over\n\t\tgameOver = false;\n\t\tstopDrawingPlayer = false;\n\t\tgameWon = false;\n\t\t// clears the entity arraylists\n\t\tenemy.clear();\n\t\tbullet.clear();\n\t\tenemy_bullet.clear();\n\t\tpowerup.clear();\n\t\texplosion.clear();\n\t\t// cash and totalCash are 0\n\t\tcash = 0;\n\t\ttotalCash = 0;\n\t\t// bullet is activated, upgraded weapons are not activated\n\t\tbulletShot = true;\n\t\tdoubleShot = false;\n\t\tlaserShot = false;\n\t\t// boss\n\t\tbossSpawned = false;\n\t\tbossMovement = 3;\n\t\tbossExplosionNum = 0;\n\t}",
"private void initialParameters()\n\t{\n\t\tasteroidList = new ArrayList<Asteroid>();\n\t\tfor(int i = 0 ; i < INITIAL_ASTEROIDS ; i++)\n\t\t\tasteroidList.add(new Asteroid(getRandomLocationX(), getRandomLocationY(), SCREEN_WIDTH, SCREEN_HEIGHT));\n\t\t\n\t\t//========== Game Status ===========\n\t\trunning \t= true;\n\t\tisWin \t\t= false;\n\t\tisGameOver \t= false;\n\t\t\n\t\t//========== Game Craft ===========\t\t\n\t\tcraft = new Craft(SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH, SCREEN_HEIGHT);\n\t}",
"@Override\r\n public void collideEffect(Spatial s) {\n }",
"@Override\n\tpublic void collision(SimpleObject s) {\n\t\t\n\t}",
"void setParameters() {\n\t\t\n\t}",
"public void setConstructingObstacle(Obstacle obstacle);",
"public void controlla_collisioni() {\n\n for (int i = punti; i > 0; i--) {\n\n if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) {\n in_gioco = false;\n }\n }\n\n if (y[0] >= ALTEZZA+85) { //devo aggungere +85 perche' l'area di gioco comincia dal punto 100,100\n in_gioco = false;\n }\n\n if (y[0] <= 100) {\n in_gioco = false;\n }\n\n if (x[0] >= LARGHEZZA+85) {\n in_gioco = false;\n }\n\n if (x[0] <= 100) {\n in_gioco = false;\n }\n }",
"public void colapse(){\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(getDefaultWidth());\n\t}",
"private void setUpCollisionBox()\n {\n \txLeftOffsetCollisionBox = width/COLLISION_WIDTH_DIV;\n \tcollisionBoxHeight = height - COLLISION_BOX_H_OFFSET;\n \n \tcollisionBox = new Rectangle(\n\t\t\t\t \t\txPos, \n\t\t\t\t \t\tyPos, \n\t\t\t\t \t\t(int)width / 2,\n\t\t\t\t \t\tcollisionBoxHeight);\n }",
"public void resetBird() { //at object collision i.e. game-over\n\t\tx = 100;\n\t\ty = 100;\t\n\t\tyVel = 0;\n\t\tgravity = 0;\t\n\t\t}",
"public void collide(){\n hp -= 10;\n resetPos();\n //canMove = false;\n }",
"public abstract void collision(SpaceThing thing);",
"public abstract void processCollisions();",
"private void initParameters(Canvas canvas) {\n hasInitialized = true;\n Random random = new Random();\n int unitY = canvas.getHeight() / 4;\n int x1 = 0;\n if (random.nextBoolean()) {\n x1 = canvas.getWidth();\n this.moveTo(random.nextInt(canvas.getWidth() / 4) + canvas.getWidth() / 4, -getHeight());\n } else {\n this.moveTo(random.nextInt(canvas.getWidth() / 4) + canvas.getWidth() / 2, -getHeight());\n }\n int x2 = canvas.getWidth() - x1;\n int x3 = x1;\n int y1 = random.nextInt(unitY) + unitY;\n int y2 = y1 + unitY;\n int y3 = y1 + 3 * unitY;\n\n m1 = computeMovement((int) getX(), (int) getY(), x1, y1);\n m2 = computeMovement(x1, y1, x2, y2);\n m3 = computeMovement(x2, y2, x3, y3);\n }",
"protected void init(final IClipParameters params){\n \n this.clippingLayer = params.getClippingLayer();\n assert this.clippingLayer != null;\n\n this.layerToClip = params.getLayerToClip();\n assert this.layerToClip != null;\n \n this.map = this.clippingLayer.getMap();\n assert this.map != null;\n \n this.clippingFeatures = params.getClippingFeatures();\n assert this.clippingFeatures != null;\n\n this.featuresToClip = params.getFeaturesToClip();\n assert this.featuresToClip != null;\n }",
"public static native void OpenMM_AmoebaOutOfPlaneBendForce_setOutOfPlaneBendParameters(PointerByReference target, int index, int particle1, int particle2, int particle3, int particle4, double k);",
"@Override\n\tprotected void initParams() {\n\t\t\n\t}",
"public static void resetParams()\n {\n Debug = false;\n SpecOption = false;\n MyspecOption = false;\n Spec2Option = false;\n Myspec2Option = false;\n SpecFile = \"\";\n WriteASTFlag = false;\n LabelFlag = false;\n ReportLabelsFlag = false;\n LabelRoot = \"Lbl_\";\n FairnessOption = \"\";\n FairAlgorithm = false;\n CheckTermination = false;\n NoOld = false;\n Nocfg = false;\n NoDoneDisjunct = false;\n optionsInFile = false;\n versionOption = null;\n inputVersionNumber = PcalParams.versionWeight;\n PcalTLAGen.wrapColumn = 78;\n PcalTLAGen.ssWrapColumn = 45;\n tlaPcalMapping = null ;\n \n }",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"public CollisionBox(String parameters) {\n\n\t\tString coordinates[] = parameters.split(\",\");\n\n\t\ttopleft.x = Integer.parseInt(coordinates[0]);\n\t\ttopleft.y = Integer.parseInt(coordinates[1]);\n\t\tbottomright.x = Integer.parseInt(coordinates[2]);\n\t\tbottomright.y = Integer.parseInt(coordinates[3]);\n\n\t}",
"private void setDefaultMonsterCords()\n {\n this.xBeginMap=0;\n this.yBeginMap=0;\n this.xEndMap=16;\n this.yEndMap=16;\n\n this.xBeginSrc=0;\n this.yBeginSrc=0;\n this.xEndSrc=0;\n this.yEndSrc=0;\n\n }",
"public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}",
"public void setStartConditions() {\r\n\t\tplayer1.relocate(0, 0);\r\n\t\tgamemap.setPlayerLocation(1, 1);\r\n\t\tgamemap.setEnemyLocation(20, 10);\r\n\t\tenemy1.relocate(19*46, 9*85);\r\n\t\tportal1.relocate(9*46, 9*85);\r\n\t\tportal2.relocate(9*46, 0*85);\r\n\t\tspikes1.relocate(5*46,0*85);\r\n\t\tspikes2.relocate(5*46,1*85);\r\n\t\tspikes3.relocate(5*46,2*85);\r\n\t\tspikes4.relocate(5*46,7*85);\r\n\t\tspikes5.relocate(5*46,8*85);\r\n\t\tspikes6.relocate(5*46,9*85);\r\n\t\tspikes7.relocate(10*46,2*85);\r\n\t\tspikes8.relocate(10*46,3*85);\r\n\t\tspikes9.relocate(10*46,4*85);\r\n\t\tspikes10.relocate(10*46,5*85);\r\n\t\tspikes11.relocate(10*46,6*85);\r\n\t\tspikes12.relocate(10*46,7*85);\r\n\t\tspikes13.relocate(15*46,0*85);\r\n\t\tspikes14.relocate(15*46,1*85);\r\n\t\tspikes15.relocate(15*46,2*85);\r\n\t\tspikes16.relocate(15*46,7*85);\r\n\t\tspikes16.relocate(15*46,8*85);\r\n\t\tspikes17.relocate(15*46,9*85);\r\n\t\tRandom randomObj = new Random();\r\n\t\tint randomX = randomObj.nextInt(20);\r\n\t\tint randomY = randomObj.nextInt(10);\r\n\t\tcoins1.relocate(randomX*46, randomY*85);\r\n\t\tgamemap.setLootLocation(randomX + 1, randomY + 1);\r\n\t\t//coins1.relocate(10*46,5*85);\r\n\t\t//gamemap.setLootLocation(11, 6);\r\n\t}",
"public SharePoiParm() {\n\t\t\tname = \"\";\n\t\t\tpoi = \"\";\n\t\t\ttarget = -1;\n\t\t}",
"void collision(float x_a,float y_a,float x_b,float y_b){\n float dy = y_a - y_b;\r\n float dx = x_a - x_b;\r\n float distance12 = dy * dy + dx * dx;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ((GameActivity)mActivity).mTimer.cancel();\r\n ((GameActivity)mActivity).layout.removeAllViews();\r\n new AlartMessage(mActivity);\r\n }\r\n\r\n }",
"private void circleCollison() {\n\t\t\n\t}",
"public GameFilter() {\r\n\t\tthis.category = 1;\r\n\t\tthis.mask = Long.MAX_VALUE;\r\n\t\tthis.v1 = null;\r\n\t\tthis.v2 = null;\r\n\t\tthis.noJoints = true;\r\n\t}",
"protected abstract void setDefaultPositions(GameData data);",
"public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}",
"public void checkCollision() {}",
"public void setInitialParameters() {\n /** DO NOTHING */\n }",
"@Test\n\tpublic void correctParameters() {\n\t\tassertEquals(startTime, circle.startTime);\n\t\tassertEquals(duration, circle.duration);\n\t\tassertEquals(type, circle.type);\n\t\tassertEquals(height, circle.height, 0);\n\t}",
"Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }",
"private void init(){\n \tdimension.set(0.5f, 0.5f);\n \tsetAnimation(Assets.instance.goldCoin.animGoldCoin);\n \tstateTime = MathUtils.random(0.0f,1.0f);\n \t\n \t//regGoldCoin = Assets.instance.goldCoin.goldCoin;\n \t // Set bounding box for collision detection\n \tbounds.set(0,0,dimension.x, dimension.y);\n \tcollected = false;\n }",
"public void setDefaultParameters(){\n clearParametersVector();\n addParameter( new DataSetPG(\"Data Set\",DataSetTools.dataset.DataSet.EMPTY_DATA_SET));\n addParameter( new IntegerPG(\"Detector ID\",1));\n addParameter( new IntegerPG(\"Min Time Channel\",1));\n addParameter( new IntegerPG(\"Max Time Channel\",1000));\n addParameter( new IntegerPG(\"Max num Peaks\",30));\n addParameter( new IntegerPG(\"min Peak intensity\",0));\n addParameter( new StringPG(\"Pixel rows to keep\",\"1:100\"));\n addParameter( new StringPG(\"Pixel cols to keep\",\"1:100\"));\n }",
"public abstract void collided(Collision c);",
"@Override\n\tpublic void createCollisionShape() {\n\t\t\n\t}",
"public void reset()\n\t{\n\t\t\n\t\tif (lifeCount > 1)\n\t\t{\n\t\t\tthis.setCollisionOn(false);\n\t\t\tthis.setEingabe(false);\n\t\t\tthis.reduceLifeCount();\n\t\t\timg.setRotation(0);\n\t\t\tthis.posX = startPosX;\n\t\t\tthis.setPosY(startPosY + 105);\n\t\t\tthis.spdX = startSpdX;\n\t\t\tthis.setSpdY(-60);\n\t\t\tcollisionShape.setCenterX(startPosX);\n\t\t\tcollisionShape.setCenterY(startPosY);\n\t\t\tsetRupeesInBag(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/*\n\t\t\t * When Gameover\n\t\t\t */\n\t\t\t\n\t\t\tthis.posX = startPosX;\n\t\t\tthis.setPosY(startPosY);\n\t\t\tcollisionShape.setCenterX(startPosX);\n\t\t\tcollisionShape.setCenterY(startPosY);\n\t\t\tthis.reduceLifeCount();\n\t\t}\n\t}",
"public void collideWith(Rigidbody obj) {\n\t\t\r\n\t}",
"public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void doCollision(CollisionResult c) {\n\t\t\n\t}",
"public abstract void collide(InteractiveObject obj);",
"public abstract void onCollision();",
"public void setDefaultParameters(){\n clearParametersVector();\n addParameter( new LoadFilePG(\"Vanadium NeXus File Name\",\"\"));\n addParameter( new LoadFilePG(\"Background NeXus File Name\",\"\"));\n addParameter( new LoadFilePG(\"Integrated Peaks File\",\"\"));\n addParameter( new SaveFilePG(\"Adjusted Integrate File\",\"\"));\n addParameter( new FloatPG(\"Min Time-of-Flight to Sum\",0.0));\n addParameter( new FloatPG(\"Max Time-of-Flight to Sum\",48000));\n addParameter( new IntegerPG(\"Zero Pixel Border Size\",8));\n addParameter( new IntegerPG(\"Region Half-Width\",5));\n }",
"private void setBaseSpawns() {\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team0-X:148\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team0-Y:517\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team0-Radius:20\");\r\n\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team1-X:330\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team1-Y:517\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team1-Radius:20\");\r\n\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team2-X:694\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team2-Y:517\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team2-Radius:20\");\r\n\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team3-X:876\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team3-Y:517\");\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team3-Radius:20\");\r\n\r\n }",
"void collisionHappened(int position);",
"@Override\n\tpublic void collide(Entity e) {\n\n\t}",
"public Space_Object (){\n groundPosition = 0;\n }",
"public void initialize() {\n redCircle.setCenterX(100);\n redCircle.setCenterY(60);\n\n blueCircle.setCenterX(300);\n blueCircle.setCenterY(60);\n\n checkOverlap();\n\n }",
"protected void setupParameters() {\n \n \n\n }",
"private void collideStageLimits(GOval ball) {\n if (isBallCollideCelling(ball)){\n vy = - vy;\n }\n if (isBallCollideRightWall(ball) || isBallCollideLeftWall(ball)){\n vx = - vx;\n }\n }",
"public void unitCollision() {\n\t}",
"public void preCalculateCollisions(){\n for(int i = 0; i < ALL_POSSIBLE_STATES.length; i++){\n collisions[i] = new StateMapEntry();\n collisions[i].incomingState = ALL_POSSIBLE_STATES[i];\n collisions[i].resultingState = calculateAllPossibleOutboundStates(ALL_POSSIBLE_STATES[i], ALL_POSSIBLE_STATES);\n //collisions[i].print();\n }\n }",
"public static void setHardLevelObstacles() {\n\t\t// Setting values for obstacles\n\t\tint selectedPlatform = 0;\n\t\tint selectedXPart = 0;\n\t\tfor(int i = 0; i < obstacle.length; i++) {\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_WIDTH, OBSTACLE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacle));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_LARGE_WIDTH, OBSTACLE_LARGE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacleLarge));\n\t\t\t}\n\n\t\t\tint x;\n\t\t\tint y;\n\t\t\tint randomOffset = (int) (Math.random() * OBSTACLE_INCREASE);\n\t\t\t\t\n\t\t\t// X CALCULATION //\n\t\t\t\n\t\t\t// Place on second platform\n\t\t\tif((float) i / 6 == 1) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Place on third and last platform\n\t\t\tif((float) i / 6 == 2) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Next \"third part section\" of the platform \n\t\t\tif(i % 2 == 0) selectedXPart += 2;\n\t\t\t\n\t\t\tif(selectedXPart != 6) x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset;\n\t\t\telse x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset - OBSTACLE_LARGE_WIDTH;\n\t\t\t\n\t\t\t// Y CALCULATION //\n\t\t\t\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tint temp = (int) (Math.random() * 10);\n\t\t\t\tif(temp <= 5) y = ground[selectedPlatform].getY() - Init.getObstacleGroundOffset();\n\t\t\t\telse y = platform[selectedPlatform].getY() + Init.getObstaclePlatformOffset();\n\t\t\t}\n\t\t\telse y = platform[selectedPlatform].getY() - Init.getObstacleLargePlatformOffset();\n\t\t\t\n\t\t\tobstacle[i].setLocation(x, y);\n\t\t}\n\t}",
"private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }",
"public ShareRouteParm() {\n\t\t\tname = \"\";\n\t\t\tstart = \"\";\n\t\t\tend = \"\";\n\t\t\troutePoint = \"\";\n\t\t\tavoidPoint = \"\";\n\t\t\tconditionCode = -1;\n\t\t\taviodCondition = -1;\n\t\t\tforbidCondition = -1;\n\t\t\ttarget = -1;\n\t\t\tmapVer = \"\";\n\t\t}",
"public void checkParameters() {\n }",
"public void set() {\n if(keyLeft&&keyRight||!keyLeft&&!keyRight){\n xspeed *=0.8;\n }\n else if(keyLeft&&!keyRight) {\n xspeed--;\n }\n else if(keyRight&&!keyLeft){\n xspeed++;\n }\n if (xspeed>0 && xspeed <0.75) xspeed=0;\n if (xspeed<0 && xspeed >-0.75) xspeed=0;\n\n if (xspeed>7) xspeed=7;\n if (xspeed<-7) xspeed=-7;\n\n if(keyUp) {\n hitBox.y++;\n for(Wall wall: panel.walls) {\n if(wall.hitBox.intersects(hitBox)){\n yspeed=-8;\n }\n }\n hitBox.y--;\n }\n\n if (yspeed < 8) yspeed += 0.3;\n\n //Horizontal collisons\n hitBox.x += xspeed;\n for(Wall wall: panel.walls) {\n if(hitBox.intersects(wall.hitBox)){ //if on floor\n hitBox.x -= xspeed;//Moves hitbox back to last place\n while(!wall.hitBox.intersects(hitBox)){\n hitBox.x += Math.signum(xspeed);\n }\n hitBox.x -= Math.signum(xspeed); //Moves hitbox to space next to the wall\n panel.cameraX += x - hitBox.x;\n xspeed = 0;\n hitBox.x = x;\n }\n }\n\n //Vertical collisions\n hitBox.y += yspeed;\n for(Wall wall: panel.walls) {\n if(hitBox.intersects(wall.hitBox)){\n hitBox.y -= yspeed;\n while(!wall.hitBox.intersects(hitBox)) hitBox.y += Math.signum(yspeed);\n hitBox.y -= Math.signum(yspeed);\n yspeed = 0;\n y = hitBox.y;\n }\n }\n\n panel.cameraX -= xspeed;\n y += yspeed;\n hitBox.x=x;\n hitBox.y=y;\n\n //Death\n if(y>MainFrame.FRAME_HEIGHT+100) panel.reset();\n }",
"public abstract void addCollision(Geometry s, Geometry t);",
"public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"public void prepareRematch() {\r\n\t\tgame.prepareRematch();\r\n\t}",
"public void collision(Ball b){\n float cir_center_X = b.getCenterX();\r\n float cir_center_Y = b.getCenterY();\r\n \r\n // aabb half extent\r\n float extent_X = (this.p4[0]-this.p1[0])/2; //half width\r\n float extent_Y = (this.p3[1]-this.p4[1])/2; // half height\r\n // rec center \r\n float rec_center_X = this.p1[0]+extent_X;\r\n float rec_center_Y = this.p1[1]+extent_Y;\r\n \r\n // difference between center : vector D = Vector Cir_center-Rec-center\r\n float d_X =cir_center_X-rec_center_X;\r\n float d_Y = cir_center_Y-rec_center_Y;\r\n \r\n //\r\n float p_X =Support_Lib.clamp(d_X,-extent_X,extent_X);\r\n float p_Y =Support_Lib.clamp(d_Y,-extent_Y,extent_Y);\r\n \r\n\r\n \r\n float closest_point_X = rec_center_X +p_X;\r\n float closest_point_Y = rec_center_Y +p_Y; \r\n \r\n \r\n d_X = closest_point_X -cir_center_X;\r\n d_Y = closest_point_Y -cir_center_Y;\r\n \r\n \r\n \r\n float length = (float)Math.sqrt((d_X*d_X)+(d_Y*d_Y));\r\n \r\n if(length+0.001 <=b.getRadius()){\r\n\r\n \r\n float ratio =(closest_point_X-rec_center_X)/(extent_X*2);\r\n b.accelartion(ratio);\r\n b.updateVelocity(Support_Lib.direction(d_X,d_Y));\r\n \r\n }\r\n \r\n \r\n }",
"public void handleCollision(Collision c);",
"@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"protected void setPropagationEffectParams() {\n\n\t\tif ( (this.site != null) && (this.eqkRupture != null)) {\n\t\t\tdistanceJBParam.setValue(eqkRupture, site);\n\t\t}\n\t}",
"private void setStart(int a_x, int a_y)\n {\n if(!isObstacle(m_grid[a_x][a_y]))\n {\n if(m_startPoint != null)\n m_grid[(int)m_startPoint.x][(int)m_startPoint.y] = Map.NIL;\n\n m_startPoint = new Vector2d(a_x,a_y);\n m_grid[(int)m_startPoint.x][(int)m_startPoint.y] = Map.START;\n }\n }",
"public HitWall() {\n\t\ttouch_r = Settings.TOUCH_R;\n\t\ttouch_l = Settings.TOUCH_L;\n\t\tpilot = Settings.PILOT;\n\t}",
"private void resetPolygonsFlags() {\n for ( Polygon p : polygons ) {\n p.setOverlap(false);\n }\n }",
"protected void onCollision(Actor other) {\r\n\r\n\t}",
"private void resetArena() {\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team0-X:\" + SPAWN_CIRCLE0_X);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team0-Y:\" + SPAWN_CIRCLE0_Y);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team0-Radius:1\");\r\n\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team1-X:\" + SPAWN_CIRCLE1_X);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team1-Y:\" + SPAWN_CIRCLE1_Y);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team1-Radius:1\");\r\n\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team2-X:\" + SPAWN_CIRCLE2_X);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team2-Y:\" + SPAWN_CIRCLE2_Y);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team2-Radius:1\");\r\n\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team3-X:\" + SPAWN_CIRCLE3_X);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team3-Y:\" + SPAWN_CIRCLE3_Y);\r\n m_botAction.sendUnfilteredPublicMessage(\"?set Spawn:Team3-Radius:1\");\r\n\r\n if(m_ensureLock) {\r\n m_ensureLock = false;\r\n m_botAction.toggleLocked();\r\n }\r\n }",
"protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}",
"public void setParameters(MaterialParams mp);",
"CollisionRule getCollisionRule();",
"@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}",
"@Override\n\tpublic boolean collides(Vector3 v) {\n\t\treturn false;\n\t}",
"public abstract boolean collisionWith(CollisionObject obj);",
"@Test\n\tpublic void test() {\n\t\tCollisionBox cb = new CollisionBox(0,0,1,1);\n\t\tCollisionBox cb2 = new CollisionBox(1,1,1,1);\n\t\tassertEquals(false,cb.checkCollision(cb2));\n\t\t\n\t\tcb2.setPos(0, 0);\n\t\tassertEquals(true,cb.checkCollision(cb2));\n\n\t}",
"@Override\n public void setup(EvolutionState state, Parameter base) {\n super.setup(state, base);\n nearWalls = state.parameters.getBoolean(base.push(P_NEAR_WALLS), null, true);\n }",
"public abstract void collideWith(Entity entity);",
"@Override\n\tpublic void setParameters(Map<String, Double> data) {\n\t\tprobCatch = data.get(PROBCATCH_PARAMETER_LABEL);\n\t\tprobCatchBounds.set(1, probCatch);\n\t\tcreateParametersBounds();\n\t}",
"public void init()\n\t{\n\t\tpaused = false;\n\t\tbg.play();\n\t\tdeath.setVolume(10);\n\t\texplosion.setVolume(20);\n\t\tsetGameOver(false);\n\t\tscore = 0;\n\t\tlives = 3;\n\t\tgameTime = 0;\n\t\tgameObj = new GameWorldCollection();\n\t\tshipSpawned = false;\n\t\tsound = true;\n\t\ttotalNPS = 0;\n\t\tcollisionVectorPS = new Vector<ICollider>();\n\t\tcollisionVectorNPS\t = new Vector<ICollider>();\n\t\tcollisionVectorAsteroid = new Vector<ICollider>();\n\t\ttrash\t\t\t\t\t= new Vector<ICollider>();\n\t\tnotifyObservers();\t\n\t}",
"@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}",
"@Override\n protected void update() {\n if (Pneumatics.get_instance().get_solenoids() && in_inner_thresh()) {\n Pneumatics.get_instance().set_solenoids(false);\n }\n }",
"public void processCollisions(){\n\t\tSet<String> allCollisionKeys = new HashSet<String>();\n \n\t\t// prepare a list of collisions to handle\n\t\tList<CollisionData> collisions = new ArrayList<CollisionData>();\n \n\t\tSet<Integer> types = collisionsTypes.keySet();\n \n\t\t// obtain every type for collision\n\t\tfor(Integer type : types){\n\t\t\t// obtain for each type the type it collides with\n\t\t\tList<Integer> collidesWithTypes = collisionsTypes.get(type);\n \n\t\t\tfor(Integer collidingType : collidesWithTypes){\n\t\t\t\t// if the pair was already treated ignore it else treat it\n\t\t\t\tif( !allCollisionKeys.contains(getKey(type, collidingType)) ){\n\t\t\t\t\t// obtain all object of type\n\t\t\t\t\tList<CollidableObject> collidableForType = collidables.get(type);\n\t\t\t\t\t// obtain all object of collidingtype\n\t\t\t\t\tList<CollidableObject> collidableForCollidingType = collidables.get(collidingType);\n \n\t\t\t\t\tfor( CollidableObject collidable : collidableForType ){\n\t\t\t\t\t\tfor( CollidableObject collidesWith : collidableForCollidingType ){\n\t\t\t\t\t\t\tif(collidable.isCollidingWith(collidesWith)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tCollisionData cd = new CollisionData();\n\t\t\t\t\t\t\t\tcd.handler = collisionHandlers.get(getKey(type, collidingType));\n\t\t\t\t\t\t\t\tcd.object1 = collidable;\n\t\t\t\t\t\t\t\tcd.object2 = collidesWith;\n \n\t\t\t\t\t\t\t\tcollisions.add(cd);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \n\t\t\t\t\tallCollisionKeys.add(getKey(type, collidingType));\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n \n\t\tfor(CollisionData cd : collisions){\n\t\t\tcd.handler.performCollision(cd.object1, cd.object2);\n \n\t\t}\n\t\t\n//\t System.out.println(\"unsorted map\");\n//\t for (String key : collisionHandlers.keySet()) {\n//\t System.out.println(\"key/value: \" + key + \"/\"+collisionHandlers.get(key));\n//\t }\n\t}",
"private void setParameters(String preposition)\r\n/* 37: */ {\r\n/* 38:33 */ System.err.println(\"Cause word is \" + preposition);\r\n/* 39:34 */ repaint();\r\n/* 40: */ }"
]
| [
"0.63239473",
"0.6198384",
"0.6101867",
"0.59716696",
"0.58780867",
"0.5818267",
"0.5788645",
"0.5787523",
"0.5747618",
"0.5720398",
"0.5719429",
"0.5698439",
"0.5677908",
"0.5663426",
"0.56513387",
"0.5633416",
"0.5632727",
"0.5630155",
"0.5607386",
"0.5501633",
"0.54820764",
"0.547173",
"0.5459405",
"0.5442547",
"0.54151946",
"0.54112196",
"0.5401931",
"0.5400356",
"0.5397163",
"0.53906626",
"0.5388449",
"0.5343234",
"0.53328186",
"0.53326136",
"0.5304393",
"0.53042495",
"0.52901894",
"0.5290113",
"0.5287949",
"0.52814776",
"0.5266743",
"0.5254923",
"0.52507377",
"0.5246013",
"0.5236483",
"0.52285403",
"0.522614",
"0.5212091",
"0.5211397",
"0.5202746",
"0.51987296",
"0.5198094",
"0.5192585",
"0.5185384",
"0.517517",
"0.5174625",
"0.5168454",
"0.51629955",
"0.5156649",
"0.5150124",
"0.5145719",
"0.514491",
"0.5143463",
"0.5143379",
"0.5141218",
"0.5126555",
"0.5126418",
"0.512245",
"0.5104369",
"0.5097382",
"0.5092045",
"0.50904495",
"0.50851405",
"0.508475",
"0.50790405",
"0.5078343",
"0.5076518",
"0.50758743",
"0.5072302",
"0.50709856",
"0.5068672",
"0.50667995",
"0.5065459",
"0.5060392",
"0.5055185",
"0.5053613",
"0.50505376",
"0.5049593",
"0.50464886",
"0.50335866",
"0.5033243",
"0.5029816",
"0.5028713",
"0.5027443",
"0.501985",
"0.5014961",
"0.5011436",
"0.5003014",
"0.4999984",
"0.49961197"
]
| 0.6415113 | 0 |
Check for collisions on left | public void checkLeftCollision(FloatRect x){
if((int)rect1.left < x.left ) {
centerX -= 6;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean leftCollision(InteractiveObject obj){\n\t\treturn leftUpCollision(obj) || leftDownCollision(obj);\n\t}",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}",
"private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"private void checkCollisions() {\n int x1 = 0;\n int x2 = 0;\n for(CollisionBox e : cols) {\n for(CollisionBox f : cols) {\n if(\n x2 > x1 && // Skip checking collisions twice\n// (\n// e != f || // The entities are not the same entity\n// ( // One of the entities's parent object is not the bullet of the other's (aka ignore player bullets colliding with player)\n// // And also check they're not both from the same entity (two bullets colliding both going in the same direction from the same entity)\n// f.getParent() != null && // The first entity has a parent and\n// e.getParent() != null && // The second entity has a parent and\n// f.getParent().getParent() != null && // The first entity's parent has a parent and\n// e.getParent().getParent() != null && // The second entity's parent has a parent and\n// f.getParent().getParent() != e.getParent() && // The first entity's parent's parent is not the second entity's parent\n// e.getParent().getParent() != f.getParent() &&// The second entity's parent's parent is not the first entity's parent\n// f.getParent().getParent() != e.getParent().getParent() // The first and second entities' parents' parents are not the same\n// )\n// ) &&\n SAT.isColliding(e, f) // The entities are colliding\n ) { // Collide the Entities\n Entity ep = e.getParent();\n Entity fp = f.getParent();\n ep.collide(fp);\n fp.collide(ep);\n }\n x2++;\n }\n x1++;\n x2 = 0;\n }\n }",
"boolean isLeftCollision(Actor actor) {\n return this.getX() - 1 == actor.getX() && this.getY() == actor.getY();\n }",
"private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}",
"public void checkScreenCollisionLeftRight() {\n if (x <= radius || x >= GameView.width - radius) {\n speedX *= -1;\n if (x < radius) {\n x = (int) radius;\n }\n if (x > GameView.width - radius) {\n x = (int) (GameView.width - radius);\n }\n }\n }",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"public void checkCollision() {}",
"public void checkLeftAndRightXs() {\r\n this.leftX = (int) this.enemies.get(0).getCollisionRectangle().getBoundaries().getLeftX();\r\n this.rightX = (int) (this.enemies.get(0).getCollisionRectangle().getBoundaries().getRightX());\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getBoundaries().getLeftX() < this.leftX) {\r\n this.leftX = (int) e.getCollisionRectangle().getBoundaries().getLeftX();\r\n }\r\n if (e.getCollisionRectangle().getBoundaries().getRightX() > this.rightX) {\r\n this.rightX = (int) e.getCollisionRectangle().getBoundaries().getRightX();\r\n }\r\n }\r\n }",
"public int checkCollisions() {\r\n\t\tArrayList<Comet> comets = Comet.getCometList();\r\n\r\n\t\tfor (int i = 0; i < comets.size(); i++) {\r\n\t\t\tComet tempComet = comets.get(i);\r\n\r\n\t\t\tif (getBounds().intersects(tempComet.getBounds())) {\r\n\t\t\t\tComet.removeComet(tempComet);\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col;\r\n\t}",
"public void checkRightCollision(FloatRect x) {\r\n if((int)rect1.left+rect1.width > x.left+x.width ){\r\n centerX+=6;\r\n }\r\n }",
"public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void laserCollisions() {\r\n\t\tGObject topLeft = getElementAt(laser.getX() - 1, laser.getY());\r\n\t\tGObject topRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY());\r\n\t\tGObject bottomLeft = getElementAt(laser.getX() - 1, laser.getY() + laser.getHeight());\r\n\t\tGObject bottomRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY() + laser.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(laser);\r\n\t\t\tlaser = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void checkPlayerCollisions(int x, int y){\n\t\tint wHitBoxX = 100;\n\t\tint wHitBoxY = 150;\n\t\t\n\t\tfor(int i = 0; i<enemy_num; i++){\n\t\t\tfor(int j = 0; j<enemy_arrow_num[i]; j++){\n\t\t\t\tif(enemy_arrows[i][j][0] > x && enemy_arrows[i][j][0] < (x+wHitBoxX)){\n\t\t\t\tif(enemy_arrows[i][j][1] > y && enemy_arrows[i][j][1] < (y+wHitBoxY)){\n\t\t\t\t \tremove_arrow(i,j);\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t}",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }",
"private void checkCollision()\n {\n if(isTouching(Rocket.class))\n {\n removeTouching(Rocket.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Fire.class))\n {\n removeTouching(Fire.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Sword.class))\n { \n removeTouching(Sword.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n notifyObservers(-20);\n }\n \n else if(isTouching(Star.class))\n { \n removeTouching(Star.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n count++;\n boost();\n }\n }",
"private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"void collisionHappened(int position);",
"private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }",
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"@Override\n public void checkCollision( Sprite obj )\n {\n \n }",
"public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}",
"private void testCollisions () \n\t{\n\t r1.set(level.bird.position.x, level.bird.position.y,\n\t \t\t level.bird.bounds.width+.03f, level.bird.bounds.height);\n\t \n\t // Test collision: Pipes\n\t for (Pipe pipe : level.pipes) \n\t {\n\t \t r2.set(pipe.position.x, pipe.position.y, pipe.bounds.width,\n\t \t\t\t pipe.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t \n\t \t onCollisionBirdWithPipe(pipe);\n\t }\n\t \n\t // Test collision: GoldCoins\n\t for (GoldCoin goldcoin : level.goldcoins)\n\t {\n\t \t if (goldcoin.collected) continue;\n\t \t r2.set(goldcoin.position.x, goldcoin.position.y,\n\t \t\t\t goldcoin.bounds.width, goldcoin.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithGoldCoin(goldcoin);\n\t \t break;\n\t }\n\t \n\t // Test collision: Dp\n\t for (DoublePoint doublepoint : level.doublepoints) \n\t {\n\t \t if (doublepoint.collected) continue;\n\t \t r2.set(doublepoint.position.x, doublepoint.position.y,\n\t \t\t\t doublepoint.bounds.width, doublepoint.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithDoublePoint(doublepoint);\n\t \t break;\n\t }\n\t \n\t // Test collision: Goal\n\t for (Goal goal : level.goals)\n\t {\n\t \t r2.set(goal.position.x, goal.position.y,\n\t \t\t\t goal.bounds.width, goal.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithGoal(goal);\n\t \t break;\n\t }\n\t \n\t // Test collision: Brick\n\t for (Brick brick : level.bricks) \n\t {\n\t \t r2.set(brick.position.x, brick.position.y, brick.bounds.width,\n\t \t\t\t brick.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t \n\t \t onCollisionBirdWithBrick(brick);\n\t }\n\t }",
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\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}",
"private void checkWeaponCollisions(GObject element) {\r\n\t\tGObject topLeft = getElementAt(element.getX() - 1, element.getY());\r\n\t\tGObject topRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY());\r\n\t\tGObject bottomLeft = getElementAt(element.getX() - 1, element.getY() + element.getHeight());\r\n\t\tGObject bottomRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY() + element.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void checkEFlagCollisions() {\n\t\tint len = eflags.size();\n\t\t\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tEndingFlag eflag = eflags.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapRectangles(eflag.bounds, player.bounds)) {\n\t\t\t\tplayer.position.set(2,3);\n\t\t\t\tLevelScreen.nextLevel = 1;\n\t\t\t}\n\t\t}\n\t}",
"public abstract void processCollisions();",
"private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }",
"private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}",
"public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void checkCollision() {\n\t\tfor(SolidObject i : solidObjects) {\r\n\t\t\tif(getBounds().intersects(i.getBounds())) {\r\n\t\t\t\t//Increments the KillCount\r\n\t\t\t\tif(i.onAttack(damage, flipped)) {\r\n\t\t\t\t\tkillCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean rightCollision(InteractiveObject obj){\n\t\treturn rightUpCollision(obj) || rightDownCollision(obj);\n\t}",
"@Override\n public void checkCollision( Sprite obj )\n {\n\n }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"void checkCollision(Entity other);",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"private boolean checkLeftSpace(Position p, int len,\n int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n if (i < 0) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"public void checkTopCollision(FloatRect x){\r\n if((int)rect1.top<= (int)x.top-x.height ){\r\n collide=true;\r\n collidedTop=true;\r\n }\r\n }",
"private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }",
"@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }",
"public void checkCollision(Box box){\r\n if(collidingEntity2!=null && collidingEntity2!=box){\r\n return;\r\n }\r\n FloatRect x = box.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity2= box;\r\n collide=true;\r\n checkTopCollision (x);\r\n if(collidedTop==false) {\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n }\r\n } else {\r\n noCollision ();\r\n }\r\n }",
"public boolean isCollision(double x, double y) {\n return false;\n }",
"private boolean checkCollision(int x, int y){\n\t\t\n\t\tboolean b = false;\n\t\tif(Math.abs((this.particles.get(x).getPosition().distance(this.particles.get(y).getPosition()))) < 0.5*Renderer.SCALE*(this.particles.get(x).getRadius() + this.particles.get(y).getRadius()))\n\t\t{\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}",
"void hasLeft();",
"private synchronized void checkCollisions() {\n // I'm note sure whether this function is needed. \n // This code could go in do Collisions()\n // It was sort of painfull to make this work and I ended up making a mess\n // so this architecture may have good changes of improvement.\n //\n goCheckCollisions = true;\n isThreadLoopDone = false;\n notifyAll();\n while (!isThreadLoopDone) {\n try {\n wait();\n } catch (InterruptedException ex) {}\n }\n }",
"private void handleCollisions(Sprite sprite1, Sprite sprite2){\n\t\tif(!sprite1.isActive() || !sprite2.isActive()) return;\n\n\t\tif(sprite1.equals(sprite2)){\n\t\t\treturn;\n\t\t}\n\n\t\tBounds boundsSprite1 = renderSprite(sprite1).getChildren().get(0).getBoundsInParent();\n\t\tBounds boundsSprite2 = (renderSprite(sprite2).getChildren().get(0).getBoundsInParent());\n\n\t\tif(boundsSprite1.intersects(boundsSprite2)) {\n\t\t\tcollisionHandler.handleCollide(sprite1, sprite2);\n\t\t}\n\n\t}",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public boolean checkHorizontalCollisions( LibRect2D rect )\n {\n if ( iPlayer.iBlock.checkBlockCollision( rect ) )\n {\n return true;\n }\n\n //check collision on blocks\n for ( int i = 0; i < iWalls.length; ++i )\n {\n //only collide on non-passable blocks\n if ( iWalls[ i ].iBlock.iPassThrough == PassThrough.ENo )\n {\n if ( iWalls[ i ].iBlock.checkBlockCollision( rect ) )\n {\n return true;\n }\n }\n }\n\n //check collisions on enemies\n for ( int i = 0; i < iEnemies.length; ++i )\n {\n if ( iEnemies[ i ].isAlive() )\n {\n if ( iEnemies[ i ].iBlock.checkBlockCollision( rect ) )\n {\n return true;\n }\n }\n }\n\n return false;\n }",
"private void checkBulletWallCollision() {\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\tdouble x1Wall, y1Wall, x2Wall, y2Wall, x1Bullet, y1Bullet, x2Bullet, y2Bullet;\n\t\tboolean left, right, top, bottom;\n\n\t\t// tank 1 bullets and wall collision\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// tank 2 bullets and wall collision\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void checkCollisions(ArrayList<Collidable> other);",
"public boolean checkCollision(int x, int y){\n return x<=xEnd&&x>=xStart&&y<=yEnd&&y>=yStart;\n }",
"public void detectCollisions(){\n\t\tfor(int i = 0; i < pScene.getNumOf(); i++){\n\t\t\tEntity a = pScene.getObject(i);\n\t\t\tif (!a.isAlive())\n\t\t\t\tcontinue;\n\t\t\tfor(int j = i + 1; j < pScene.getNumOf(); j++){\n\t\t\t\tEntity b = pScene.getObject(j);\n\t\t\t\tif(a.intersects(b)&&(!(a.getStatic()&&b.getStatic()))){\n\t\t\t\t\tsManifolds.add(new Manifold(a,b)); // For regular objects\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void checkCollisions(int xH, int yH) {\n Rectangle r1 = new Rectangle(xH, yH, 50, 50);\n Rectangle r2 = new Rectangle(zombie.x, zombie.y, 50, 50);\n if (r1.intersects(r2)) {\n zombieWins = true; \n }\n }",
"public boolean checkCollisions(Tuple camera) {\n\n\t\t// already exploded\n\t\tif(disabled > 0) {\n\t\t\treturn false;\n\t\t} // if\n\t\t\n\t\t// collision detected\n\t\tif(location.distance(camera) - size < SHIP_SIZE) {\n\t\t\tdisabled = 1;\n\t\t\treturn true;\n\t\t} // if\n\t\treturn false;\n\t}",
"public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}",
"protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}",
"public void collide(){\n hp -= 10;\n resetPos();\n //canMove = false;\n }",
"@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}",
"private boolean rightDownCollision(InteractiveObject obj){\n\t\treturn ((obj.getX() - this.getX() < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t(obj.getY() - this.getY() < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"void onNoCollision();",
"void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void checkPlayerCollisions() {\n\t\t//Iterate over the players\n\t\tfor (PlayerFish player : getPlayers()) {\n\t\t\t//Get collidables parallel.\n\t\t\tcollidables.parallelStream()\n\t\t\t\n\t\t\t//We only want the collidables we actually collide with\n\t\t\t.filter(collidable -> player != collidable && player.doesCollides(collidable))\n\t\t\t\n\t\t\t//We want to do the for each sequentially, otherwise we get parallelism issues\n\t\t\t.sequential()\n\t\t\t\n\t\t\t//Iterate over the elements\n\t\t\t.forEach(collidable -> {\n\t\t\t\tplayer.onCollide(collidable);\n\t\t\t\tcollidable.onCollide(player);\n\t\t\t});\n\t\t}\n\t}",
"public void checkWorldCollisions(Bounds bounds) {\n final boolean atRightBorder = getShape().getLayoutX() >= (bounds.getMaxX() - RADIUS);\n final boolean atLeftBorder = getShape().getLayoutX() <= RADIUS;\n final boolean atBottomBorder = getShape().getLayoutY() >= (bounds.getMaxY() - RADIUS);\n final boolean atTopBorder = getShape().getLayoutY() <= RADIUS;\n final double padding = 1.00;\n\n if (atRightBorder) {\n getShape().setLayoutX(bounds.getMaxX() - (RADIUS * padding));\n velX *= frictionX;\n velX *= -1;\n }\n if (atLeftBorder) {\n getShape().setLayoutX(RADIUS * padding);\n velX *= frictionX;\n velX *= -1;\n }\n if (atBottomBorder) {\n velY *= -1;\n velY *= frictionY;\n getShape().setLayoutY(bounds.getMaxY() - (RADIUS * padding));\n }\n if (atTopBorder) {\n velY *= -1;\n velY *= frictionY;\n getShape().setLayoutY(RADIUS * padding);\n }\n }",
"public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }",
"int checkCollision(Tumbleweed tumbleweed) {\n int retVal = 0;\n if (collidesWith(tumbleweed, true)) {\n retVal = 1;\n // once the cowboy has collided with the tumbleweed,\n // that tumbleweed is done for now, so we call reset\n // which makes it invisible and ready to be reused.\n tumbleweed.reset();\n }\n return (retVal);\n }",
"public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}",
"public void detectCollisions() {\r\n\r\n for (int pos = 0; pos < this.numberOfBees; pos++) {\r\n if (!beesArray[pos].isInCollisionRisk()) {\r\n int i = beesArray[pos].getI();\r\n int j = beesArray[pos].getJ();\r\n int k = beesArray[pos].getK();\r\n for (int x = (i - offset); x <= (i + offset); x++) {\r\n for (int y = (j - offset); y <= (j + offset); y++) {\r\n for (int z = (k - offset); z <= (k + offset); z++) {\r\n if (x == i && y == j && z == k || (Math.abs(i - j) == 0) || Math.abs(i - j) == 2 * offset) {\r\n continue;\r\n } else if (BeesCollision[x][y][z] != null) {\r\n beesArray[pos].setCollision(true);\r\n if (BeesCollision[x][y][z].size() == 1) {\r\n BeesCollision[x][y][z].getFirst().setCollision(true);\r\n break;\r\n }\r\n }\r\n }\r\n if (beesArray[pos].isInCollisionRisk()) {\r\n break;\r\n }\r\n }\r\n if (beesArray[pos].isInCollisionRisk()) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void checkCollisions(Graphics g) {\r\n\t\tlevelManager.checkCollisions(g);\r\n\t}",
"public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }",
"@Override\n\tpublic void collide(Entity e) {\n\n\t}",
"private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\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//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}",
"public boolean isCollisionDisabled() { return mover.isCollisionDisabled(); }",
"public abstract boolean collisionWith(CollisionObject obj);",
"@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}",
"private void checkCollisions() {\n // First check collisions between bullets and other objects.\n this.game.getBullets().forEach(bullet -> {\n this.game.getAsteroids().forEach(asteroid -> { // Check collision with any of the asteroids.\n if (asteroid.collides(bullet)) {\n asteroid.destroy();\n bullet.destroy();\n }\n });\n for (Spaceship ship : game.getPlayers().values()) {\n\n if (ship.collides(bullet)) { // Check collision with ship.\n bullet.destroy();\n ship.destroy();\n }\n }\n });\n // Next check for collisions between asteroids and the spaceship.\n this.game.getAsteroids().forEach(asteroid -> {\n for (Spaceship ship : game.getPlayers().values()) {\n\n if (asteroid.collides(ship)) {\n ship.destroy();\n asteroid.destroy();\n }\n }\n if (KESSLER_SYNDROME) { // Only check for asteroid - asteroid collisions if we allow kessler syndrome.\n this.game.getAsteroids().forEach(secondAsteroid -> {\n if (!asteroid.equals(secondAsteroid) && asteroid.collides(secondAsteroid)) {\n asteroid.destroy();\n secondAsteroid.destroy();\n }\n });\n }\n });\n }",
"private void checkCollisions(float deltaTime) {\n\t\tcheckRegTileCollisions(deltaTime);\n\t\tcheckSpikeCollisions();\n\t\tcheckMineralCollisions();\n\t\tcheckCheckpointCollisions();\n\t\tcheckEFlagCollisions();\n\t}",
"CollisionRule getCollisionRule();",
"public int CollisionBetween2RedPlayers(Player player)\n {\n int total_collisions = 0;\n try\n {\n RedPlayer red_player = (RedPlayer) player;\n total_collisions += check4CollisionWithRed(player);\n player.setCollisions(total_collisions);\n }\n catch (Exception e)\n {\n return -1;\n }\n return total_collisions;\n }",
"private void checkCollisions(MovementEngine currentShip)\n\t{\t\t\n\t\tif (currentShip.getWeaponName() == Constants.PLAYER \n\t\t\t\t|| currentShip.getWeaponName() == Constants.ENEMY_FIGHTER\n\t\t\t\t|| currentShip.getWeaponName() == Constants.ENEMY_BOSS\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.MISSILE_PLAYER\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.MISSILE_ENEMY\n\t\t\t\t|| currentShip.getWeaponName() == Constants.GUN_ENEMY\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.GUN_PLAYER\n\t\t\t\t|| currentShip.getWeaponName() == Constants.PARACHUTE\n\t\t\t\t&& currentShip.getDestroyedFlag() == false)\n\t\t{\n\t\t\tfor(int i = 0; i < GameState._weapons.size(); i ++)\n\t\t\t{\t\t\t\t\t\n\t\t\t\tif (i < GameState._weapons.size())\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tMovementEngine ship = GameState._weapons.get(i);\t\t\t\t\t\n\t\t\t\t\t\tif (ship.getWeaponName() == Constants.PLAYER \n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.ENEMY_FIGHTER\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.ENEMY_BOSS\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.MISSILE_PLAYER\t\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.MISSILE_ENEMY\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.GUN_ENEMY\t\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.GUN_PLAYER\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.PARACHUTE\n\t\t\t\t\t\t\t\t&& ship.getDestroyedFlag() == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint diffX = Math.abs((int)(currentShip.getX() - ship.getX())); \n\t\t\t\t\t\t\tint diffY = Math.abs((int)(currentShip.getY() - ship.getY())); \n\t\t\t\t\t\t\tif (diffX <= (10 * GameState._density) && diffY <= (10 * GameState._density))\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcurrentShip.onCollision(ship);\n\t\t\t\t\t\t\t\tship.onCollision(currentShip);\n\t\t\t\t\t\t\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\tcatch(ArrayIndexOutOfBoundsException e)\n\t\t\t\t\t{\n\t\t\t\t\t\t// ignore and continue\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void tick() {\n\t\tif (mainRef.player().getPos()[1] <= lastEnd.getPos()[1] + 2000)\r\n\t\t\tloadNextMap();\r\n\r\n\t\tfor (GameObject go : gameObjects)\r\n\t\t\tgo.tick();\r\n\r\n\t\t// Check Player Collision\r\n\t\t// Top-Left\r\n\t\tPointColObj cTL = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Top-Right\r\n\t\tPointColObj cTR = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\t\t// Bottom-Left\r\n\t\tPointColObj cBL = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Bottom-Right\r\n\t\tPointColObj cBR = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\r\n\t\t// Inverse Collision, no part of the player's ColBox should be not\r\n\t\t// colliding...\r\n\t\tif (checkCollisionWith(cTL).size() == 0 || checkCollisionWith(cTR).size() == 0\r\n\t\t\t\t|| checkCollisionWith(cBL).size() == 0 || checkCollisionWith(cBR).size() == 0) {\r\n\t\t\t// If it would have left the bounding box of the floor, reverse the\r\n\t\t\t// player's posiiton\r\n\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t} else\r\n\t\t\tmainRef.player().setMoveBack(false);\r\n\r\n\t\t// Check General Collision\r\n\t\tArrayList<GameObject> allCol = checkCollisionWith(mainRef.player());\r\n\t\tfor (GameObject go : allCol) {\r\n\t\t\tif (go instanceof Tile) {\r\n\t\t\t\tTile gameTile = (Tile) go;\r\n\t\t\t\tif (gameTile.getType() == GameObjectRegistry.TILE_WALL\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_BASE\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_DOOR\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_SEWER\r\n\t\t\t\t\t\t|| (gameTile.getType() == GameObjectRegistry.TILE_WATERFALL && gameTile.getVar() == 0)) {\r\n\t\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} else if (go instanceof LineColObjHor || go instanceof LineColObjVert) {\r\n\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (go instanceof SkillDrop) {\r\n\t\t\t\tSkillDrop d = (SkillDrop) go;\r\n\t\t\t\tmainRef.player().getInv()[d.getVariation()]++;\r\n\t\t\t\tremoveGameObject(go);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public abstract void collided(Collision c);"
]
| [
"0.7612272",
"0.7584839",
"0.7356163",
"0.7352842",
"0.7183819",
"0.71261364",
"0.70469403",
"0.70425314",
"0.70358574",
"0.7002578",
"0.69974464",
"0.69849354",
"0.6980739",
"0.6972125",
"0.69584376",
"0.69493675",
"0.6947966",
"0.6943907",
"0.69317657",
"0.6910341",
"0.68789923",
"0.6842352",
"0.6842171",
"0.68239784",
"0.68211067",
"0.68042904",
"0.6787291",
"0.6780531",
"0.67564625",
"0.6746246",
"0.6684578",
"0.6662048",
"0.6638254",
"0.6624732",
"0.6613735",
"0.66125476",
"0.6598315",
"0.6587968",
"0.65866804",
"0.6584225",
"0.65818185",
"0.65756136",
"0.6565412",
"0.6549788",
"0.65323305",
"0.6528887",
"0.6519234",
"0.65009326",
"0.6498072",
"0.64920026",
"0.64667815",
"0.6465684",
"0.64636827",
"0.6461798",
"0.64537936",
"0.644481",
"0.64086646",
"0.6407585",
"0.6395365",
"0.63861907",
"0.6378932",
"0.6376039",
"0.6374439",
"0.6350255",
"0.6349457",
"0.6347197",
"0.63396704",
"0.6329727",
"0.6328104",
"0.63126785",
"0.6307731",
"0.6286213",
"0.6284563",
"0.6272176",
"0.6266591",
"0.6262485",
"0.62620425",
"0.6254549",
"0.6252445",
"0.6247921",
"0.6244861",
"0.6234385",
"0.62264895",
"0.62198204",
"0.62176055",
"0.6211191",
"0.6206373",
"0.62057203",
"0.62002945",
"0.61847657",
"0.6182918",
"0.617953",
"0.61791307",
"0.61744946",
"0.61681414",
"0.6158769",
"0.61458886",
"0.614586",
"0.6141554",
"0.6131486"
]
| 0.7263806 | 4 |
Check for collisions on right | public void checkRightCollision(FloatRect x) {
if((int)rect1.left+rect1.width > x.left+x.width ){
centerX+=6;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean rightCollision(InteractiveObject obj){\n\t\treturn rightUpCollision(obj) || rightDownCollision(obj);\n\t}",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"private boolean rightDownCollision(InteractiveObject obj){\n\t\treturn ((obj.getX() - this.getX() < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t(obj.getY() - this.getY() < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"public void checkScreenCollisionLeftRight() {\n if (x <= radius || x >= GameView.width - radius) {\n speedX *= -1;\n if (x < radius) {\n x = (int) radius;\n }\n if (x > GameView.width - radius) {\n x = (int) (GameView.width - radius);\n }\n }\n }",
"public void checkCollision() {}",
"private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"private void checkCollision()\n {\n if(isTouching(Rocket.class))\n {\n removeTouching(Rocket.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Fire.class))\n {\n removeTouching(Fire.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Sword.class))\n { \n removeTouching(Sword.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n notifyObservers(-20);\n }\n \n else if(isTouching(Star.class))\n { \n removeTouching(Star.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n count++;\n boost();\n }\n }",
"public int checkCollisions() {\r\n\t\tArrayList<Comet> comets = Comet.getCometList();\r\n\r\n\t\tfor (int i = 0; i < comets.size(); i++) {\r\n\t\t\tComet tempComet = comets.get(i);\r\n\r\n\t\t\tif (getBounds().intersects(tempComet.getBounds())) {\r\n\t\t\t\tComet.removeComet(tempComet);\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col;\r\n\t}",
"private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"private boolean rightUpCollision(InteractiveObject obj){\n\t\treturn (((obj.getX() - this.getX()) < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"boolean isRightCollision(Actor actor) {\n return this.getX() + 1 == actor.getX() && this.getY() == actor.getY();\n }",
"private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void testCollisions () \n\t{\n\t r1.set(level.bird.position.x, level.bird.position.y,\n\t \t\t level.bird.bounds.width+.03f, level.bird.bounds.height);\n\t \n\t // Test collision: Pipes\n\t for (Pipe pipe : level.pipes) \n\t {\n\t \t r2.set(pipe.position.x, pipe.position.y, pipe.bounds.width,\n\t \t\t\t pipe.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t \n\t \t onCollisionBirdWithPipe(pipe);\n\t }\n\t \n\t // Test collision: GoldCoins\n\t for (GoldCoin goldcoin : level.goldcoins)\n\t {\n\t \t if (goldcoin.collected) continue;\n\t \t r2.set(goldcoin.position.x, goldcoin.position.y,\n\t \t\t\t goldcoin.bounds.width, goldcoin.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithGoldCoin(goldcoin);\n\t \t break;\n\t }\n\t \n\t // Test collision: Dp\n\t for (DoublePoint doublepoint : level.doublepoints) \n\t {\n\t \t if (doublepoint.collected) continue;\n\t \t r2.set(doublepoint.position.x, doublepoint.position.y,\n\t \t\t\t doublepoint.bounds.width, doublepoint.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithDoublePoint(doublepoint);\n\t \t break;\n\t }\n\t \n\t // Test collision: Goal\n\t for (Goal goal : level.goals)\n\t {\n\t \t r2.set(goal.position.x, goal.position.y,\n\t \t\t\t goal.bounds.width, goal.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithGoal(goal);\n\t \t break;\n\t }\n\t \n\t // Test collision: Brick\n\t for (Brick brick : level.bricks) \n\t {\n\t \t r2.set(brick.position.x, brick.position.y, brick.bounds.width,\n\t \t\t\t brick.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t \n\t \t onCollisionBirdWithBrick(brick);\n\t }\n\t }",
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\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}",
"private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"private void checkCollisions() {\n int x1 = 0;\n int x2 = 0;\n for(CollisionBox e : cols) {\n for(CollisionBox f : cols) {\n if(\n x2 > x1 && // Skip checking collisions twice\n// (\n// e != f || // The entities are not the same entity\n// ( // One of the entities's parent object is not the bullet of the other's (aka ignore player bullets colliding with player)\n// // And also check they're not both from the same entity (two bullets colliding both going in the same direction from the same entity)\n// f.getParent() != null && // The first entity has a parent and\n// e.getParent() != null && // The second entity has a parent and\n// f.getParent().getParent() != null && // The first entity's parent has a parent and\n// e.getParent().getParent() != null && // The second entity's parent has a parent and\n// f.getParent().getParent() != e.getParent() && // The first entity's parent's parent is not the second entity's parent\n// e.getParent().getParent() != f.getParent() &&// The second entity's parent's parent is not the first entity's parent\n// f.getParent().getParent() != e.getParent().getParent() // The first and second entities' parents' parents are not the same\n// )\n// ) &&\n SAT.isColliding(e, f) // The entities are colliding\n ) { // Collide the Entities\n Entity ep = e.getParent();\n Entity fp = f.getParent();\n ep.collide(fp);\n fp.collide(ep);\n }\n x2++;\n }\n x1++;\n x2 = 0;\n }\n }",
"public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void checkWeaponCollisions(GObject element) {\r\n\t\tGObject topLeft = getElementAt(element.getX() - 1, element.getY());\r\n\t\tGObject topRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY());\r\n\t\tGObject bottomLeft = getElementAt(element.getX() - 1, element.getY() + element.getHeight());\r\n\t\tGObject bottomRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY() + element.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void checkPlayerCollisions(int x, int y){\n\t\tint wHitBoxX = 100;\n\t\tint wHitBoxY = 150;\n\t\t\n\t\tfor(int i = 0; i<enemy_num; i++){\n\t\t\tfor(int j = 0; j<enemy_arrow_num[i]; j++){\n\t\t\t\tif(enemy_arrows[i][j][0] > x && enemy_arrows[i][j][0] < (x+wHitBoxX)){\n\t\t\t\tif(enemy_arrows[i][j][1] > y && enemy_arrows[i][j][1] < (y+wHitBoxY)){\n\t\t\t\t \tremove_arrow(i,j);\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t}",
"public boolean checkHit(Rectangle r){\n\t\t\tif (exists){\n\t\t\t\tif(this.intersects(r) || this.contains(r)){\n\t\t\t\t\thealth -= 1; //reduces the curret health\n\t\t\t\t\tif (health == 0) {\n\t\t\t\t\t\texists = false;\n\t\t\t\t\t\tstartboomtimer = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tstartredtimer = true; //starts the red animation\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse return false;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}",
"private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isCollision(double x, double y) {\n return false;\n }",
"private boolean checkCollision(int x, int y){\n\t\t\n\t\tboolean b = false;\n\t\tif(Math.abs((this.particles.get(x).getPosition().distance(this.particles.get(y).getPosition()))) < 0.5*Renderer.SCALE*(this.particles.get(x).getRadius() + this.particles.get(y).getRadius()))\n\t\t{\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}",
"private boolean collision2() {\n return game.racket2.getBounds2().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }",
"private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }",
"private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}",
"public void checkCollisions(int xH, int yH) {\n Rectangle r1 = new Rectangle(xH, yH, 50, 50);\n Rectangle r2 = new Rectangle(zombie.x, zombie.y, 50, 50);\n if (r1.intersects(r2)) {\n zombieWins = true; \n }\n }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}",
"public boolean checkCollision(int x, int y){\n return x<=xEnd&&x>=xStart&&y<=yEnd&&y>=yStart;\n }",
"void checkCollision(Entity other);",
"private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }",
"@Override\n public void checkCollision( Sprite obj )\n {\n \n }",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }",
"int checkCollision(Tumbleweed tumbleweed) {\n int retVal = 0;\n if (collidesWith(tumbleweed, true)) {\n retVal = 1;\n // once the cowboy has collided with the tumbleweed,\n // that tumbleweed is done for now, so we call reset\n // which makes it invisible and ready to be reused.\n tumbleweed.reset();\n }\n return (retVal);\n }",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\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//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}",
"private void laserCollisions() {\r\n\t\tGObject topLeft = getElementAt(laser.getX() - 1, laser.getY());\r\n\t\tGObject topRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY());\r\n\t\tGObject bottomLeft = getElementAt(laser.getX() - 1, laser.getY() + laser.getHeight());\r\n\t\tGObject bottomRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY() + laser.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(laser);\r\n\t\t\tlaser = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void checkWorldCollisions(Bounds bounds) {\n final boolean atRightBorder = getShape().getLayoutX() >= (bounds.getMaxX() - RADIUS);\n final boolean atLeftBorder = getShape().getLayoutX() <= RADIUS;\n final boolean atBottomBorder = getShape().getLayoutY() >= (bounds.getMaxY() - RADIUS);\n final boolean atTopBorder = getShape().getLayoutY() <= RADIUS;\n final double padding = 1.00;\n\n if (atRightBorder) {\n getShape().setLayoutX(bounds.getMaxX() - (RADIUS * padding));\n velX *= frictionX;\n velX *= -1;\n }\n if (atLeftBorder) {\n getShape().setLayoutX(RADIUS * padding);\n velX *= frictionX;\n velX *= -1;\n }\n if (atBottomBorder) {\n velY *= -1;\n velY *= frictionY;\n getShape().setLayoutY(bounds.getMaxY() - (RADIUS * padding));\n }\n if (atTopBorder) {\n velY *= -1;\n velY *= frictionY;\n getShape().setLayoutY(RADIUS * padding);\n }\n }",
"public void checkLeftAndRightXs() {\r\n this.leftX = (int) this.enemies.get(0).getCollisionRectangle().getBoundaries().getLeftX();\r\n this.rightX = (int) (this.enemies.get(0).getCollisionRectangle().getBoundaries().getRightX());\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getBoundaries().getLeftX() < this.leftX) {\r\n this.leftX = (int) e.getCollisionRectangle().getBoundaries().getLeftX();\r\n }\r\n if (e.getCollisionRectangle().getBoundaries().getRightX() > this.rightX) {\r\n this.rightX = (int) e.getCollisionRectangle().getBoundaries().getRightX();\r\n }\r\n }\r\n }",
"void collisionHappened(int position);",
"@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"private void checkEFlagCollisions() {\n\t\tint len = eflags.size();\n\t\t\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tEndingFlag eflag = eflags.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapRectangles(eflag.bounds, player.bounds)) {\n\t\t\t\tplayer.position.set(2,3);\n\t\t\t\tLevelScreen.nextLevel = 1;\n\t\t\t}\n\t\t}\n\t}",
"private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void checkRockets() {\n for (Rocket rocket : rockets) {\n for (Ufo ufo : ufos) {\n if (ufo.intersects(rocket)) {\n ufo.die();\n rocket.die();\n }\n }\n\n if (rocket.getY() <= 0)\n rocket.die();\n }\n }",
"@Override\n public void checkCollision( Sprite obj )\n {\n\n }",
"public boolean checkCollisions(Tuple camera) {\n\n\t\t// already exploded\n\t\tif(disabled > 0) {\n\t\t\treturn false;\n\t\t} // if\n\t\t\n\t\t// collision detected\n\t\tif(location.distance(camera) - size < SHIP_SIZE) {\n\t\t\tdisabled = 1;\n\t\t\treturn true;\n\t\t} // if\n\t\treturn false;\n\t}",
"public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"private boolean collision1() {\n return game.racket1.getBounds1().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }",
"private boolean checkRightSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int i = x; i < x + len; i += 1) {\n for (int j = y - rightWid; j < y + leftWid + 1; j += 1) {\n if (i >= worldWidth) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"private void checkBulletWallCollision() {\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\tdouble x1Wall, y1Wall, x2Wall, y2Wall, x1Bullet, y1Bullet, x2Bullet, y2Bullet;\n\t\tboolean left, right, top, bottom;\n\n\t\t// tank 1 bullets and wall collision\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// tank 2 bullets and wall collision\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void checkCollision() {\n\t\tfor(SolidObject i : solidObjects) {\r\n\t\t\tif(getBounds().intersects(i.getBounds())) {\r\n\t\t\t\t//Increments the KillCount\r\n\t\t\t\tif(i.onAttack(damage, flipped)) {\r\n\t\t\t\t\tkillCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"CollisionRule getCollisionRule();",
"public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}",
"public abstract boolean collisionWith(CollisionObject obj);",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"private boolean leftCollision(InteractiveObject obj){\n\t\treturn leftUpCollision(obj) || leftDownCollision(obj);\n\t}",
"void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }",
"public int CollisionBetween2RedPlayers(Player player)\n {\n int total_collisions = 0;\n try\n {\n RedPlayer red_player = (RedPlayer) player;\n total_collisions += check4CollisionWithRed(player);\n player.setCollisions(total_collisions);\n }\n catch (Exception e)\n {\n return -1;\n }\n return total_collisions;\n }",
"public abstract void processCollisions();",
"public void collisionOrScore(){\n\t\t//Creates bound of all walls\n\t\tfor(int i = 0; i < walls.length; i++) {\n\t\t\tif (bird.detectCollision(walls[i]) || bird.getY() > 450 || bird.getY() <= 0) {\n\t\t\t\tbird.setX(-500);\n\t\t\t\tif (!gameOver) dieSound.playAudioFeedback();\n\t\t\t\tgameOver = true;\n\t\t\t\tbreak;\n\t\t\t} else if (bird.getX() == walls[i].getX()) {\n\t\t\t\t//if bird passes one wall then counts a point\n\t\t\t\tthis.points = incrementScore(this.points, 0.5);\n\t\t\t\tpointSound.playAudioFeedback();\n\t\t\t}\n\t\t}\n\t}",
"private void checkCollisions() {\n // First check collisions between bullets and other objects.\n this.game.getBullets().forEach(bullet -> {\n this.game.getAsteroids().forEach(asteroid -> { // Check collision with any of the asteroids.\n if (asteroid.collides(bullet)) {\n asteroid.destroy();\n bullet.destroy();\n }\n });\n for (Spaceship ship : game.getPlayers().values()) {\n\n if (ship.collides(bullet)) { // Check collision with ship.\n bullet.destroy();\n ship.destroy();\n }\n }\n });\n // Next check for collisions between asteroids and the spaceship.\n this.game.getAsteroids().forEach(asteroid -> {\n for (Spaceship ship : game.getPlayers().values()) {\n\n if (asteroid.collides(ship)) {\n ship.destroy();\n asteroid.destroy();\n }\n }\n if (KESSLER_SYNDROME) { // Only check for asteroid - asteroid collisions if we allow kessler syndrome.\n this.game.getAsteroids().forEach(secondAsteroid -> {\n if (!asteroid.equals(secondAsteroid) && asteroid.collides(secondAsteroid)) {\n asteroid.destroy();\n secondAsteroid.destroy();\n }\n });\n }\n });\n }",
"public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"@Override\n\tpublic boolean collidesWithRectangle(Rectangle rectangle) {\n\t\treturn false;\n\t}",
"boolean collidesEnemy() {\n for(int i = 0; i < barrage.size(); i++) {\n // establish a rectangle for the laser\n Rectangle blaster = new Rectangle((int)barrage.get(i).getX(), (int)barrage.get(i).getY(), WIDTH, HEIGHT);\n \n // determine if the laser intersects an enemy\n for (int q = 0; q < fleet.size(); q++) {\n Rectangle enemy = new Rectangle((int)fleet.get(q).getX(), (int)fleet.get(q).getY(), 40, 36); \n \n // if blaster hits a ship, remove it\n if (blaster.intersects(enemy) && fleet.get(q).getCount() == 0) {\n fleet.get(q).hit = true; // set the enemy hit\n barrage.remove(barrage.get(i));\n score += 100; // add to score\n return true; // hit\n }\n }\n }\n return false; // miss\n }",
"@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}",
"public boolean collides(int x, int y) {\n //Check For Collision\n // bottom left corner\n Tile tile = game.map.getTilePixel(x, y);\n // top right corner\n Tile tile2 = game.map.getTilePixel((int) (x + width), (int) (y + width));\n // top left corner\n Tile tile3 = game.map.getTilePixel(x, (int) (y + width));\n // bottom right corner\n Tile tile4 = game.map.getTilePixel((int) (x + width), y);\n try {\n boolean collisionWithMap = (tile == null) || (!tile.isPassable() || !tile3.isPassable() || !tile2.isPassable() || !tile4.isPassable());\n //React to Collision\n if (collisionWithMap) {\n if (speedX != 0 && speedY != 0) {\n if ((!tile.isPassable() && !tile3.isPassable()) || (!tile2.isPassable() && !tile4.isPassable()))\n speedX = 0;\n if ((!tile.isPassable() && !tile4.isPassable()) || (!tile2.isPassable() && !tile3.isPassable()))\n speedY = 0;\n }\n }\n return collisionWithMap;\n } catch (NullPointerException e) {\n //in case any of the tiles is outside of the map\n return true;\n }\n }",
"public boolean collides (){\n if(shipX<=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=40 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n else if(shipX<=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=60 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n return false;\n }",
"void collisions(){\n float tmp;\n \n if (dist(redX, redY, yelX, yelY) < 30 ){ // Red and Yellow\n tmp = yelDX; yelDX = redDX; redDX = tmp;\n tmp= yelDY; yelDY = redDY; redDY = tmp;\n }\n \n if (dist(redX, redY, bluX, bluY) < 30){ // Red and Blue\n tmp = bluDX; bluDX = redDX; redDX = tmp;\n tmp = bluDY; bluDY = redDY; redDY = tmp;\n }\n \n if (dist(bluX, bluY, yelX, yelY) < 30){ // Blue and Yellow\n tmp = yelDX; yelDX = bluDX; bluDX = tmp;\n tmp = yelDY; yelDY = bluDY; bluDY = tmp;\n }\n if (dist(cueX, cueY, redX, redY) < 30){ // Cue and Red\n tmp = redDX; redDX = cueDX; cueDX = tmp;\n tmp = redDY; redDY = cueDY; cueDY = tmp;\n }\n if (dist(cueX, cueY, bluX, bluY) < 30){ // Cue and Blue\n tmp = bluDX; bluDX = cueDX; cueDX = tmp;\n tmp = bluDY; bluDY = cueDY; cueDY = tmp;\n }\n if (dist(cueX, cueY, yelX, yelY) < 30){ // Cue and Yellow\n tmp = yelDX; yelDX = cueDX; cueDX = tmp;\n tmp = yelDY; yelDY = cueDY; cueDY = tmp;\n }\n}",
"public void controlla_collisioni() {\n\n for (int i = punti; i > 0; i--) {\n\n if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) {\n in_gioco = false;\n }\n }\n\n if (y[0] >= ALTEZZA+85) { //devo aggungere +85 perche' l'area di gioco comincia dal punto 100,100\n in_gioco = false;\n }\n\n if (y[0] <= 100) {\n in_gioco = false;\n }\n\n if (x[0] >= LARGHEZZA+85) {\n in_gioco = false;\n }\n\n if (x[0] <= 100) {\n in_gioco = false;\n }\n }",
"public void collision() {\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).tick();\n\n if (friendlyBullets.get(i).getImgY() <= 40) {\n friendlyBullets.get(i).bulletImage.delete();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < enemies.size(); j++) {\n\n if (friendlyBullets.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n friendlyBullets.get(i).hit();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n\n enemies.get(j).hit();\n\n if (enemies.get(j).getHp() <= 0) {\n enemies.remove(enemies.get(j));\n score.setScore(50);\n j--;\n }\n //end this loop\n j = enemies.size();\n }\n }\n\n }\n\n ///////////////////////////////////////////////////////////////////////////////////////\n\n\n // Enemy out of bounds\n for (int i = 0; i < enemies.size(); i++) {\n\n enemies.get(i).tick();\n\n // Out of bounds\n if (enemies.get(i).getEnemyImage().getY() >= 750) {\n enemies.get(i).getEnemyImage().delete();\n enemies.remove(enemies.get(i));\n\n if (enemies.size() > 1) {\n i--;\n }\n }\n }\n\n\n //////////////////////////////////////////////////////////////////////////\n\n //powerUps out of bounds and collision with spaceships\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).tick();\n\n if (powerUps.get(i).getImgY() >= 745) {\n\n powerUps.get(i).powerUpImage.delete();\n powerUps.remove(powerUps.get(i));\n\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(powerUps.get(i).getHitbox())) {\n\n\n spaceShips.get(j).powerUp(powerUps.get(i).getPowerUpType());\n powerUps.get(i).hit();\n powerUps.remove(powerUps.get(i));\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n\n }\n\n }",
"public void checkCollisions(ArrayList<Collidable> other);",
"boolean hasHingeOnRightSide() throws RuntimeException;",
"public boolean collidesWith(double x, double y) {\n\t\tdouble leftBound = owner.getX() + this.offsetX - (width/2);\n\t\tdouble upBound = owner.getY() + this.offsetY - (height/2);\n\t\treturn x <= leftBound + width && x >= leftBound && y <= upBound + height && y >= upBound;\n\t}",
"public static boolean getCollision()\r\n\t{\r\n\t\treturn collision;\r\n\t}",
"private boolean stop() {\n\t\tboolean collide = false;\n\n\t\tdist = (int) MathMachine.distance((xOrigin - this.x), (yOrigin - this.y)); // distance traveled\n\t\tif (dist >= move_range) collide = true;\n\n\t\tif (Math.abs(x - xD) <= 2 && Math.abs(y - yD) <= 2) { // adding 8 shifts the collision box from the top left corner to the bottom right.\n\t\t\tcollide = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn collide;\n\t}",
"@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}",
"public void unitCollision() {\n\t}",
"private boolean isBallCollideRightWall(GOval ball) {\n return ball.getX() + 2 * BALL_RADIUS >= getWidth();\n }",
"public int check4CollisionWithRed(Player player)\n {\n \n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.getX_cordinate());\n int y_cord = getMidPoint(player.getY_cordinate());\n int redx1 = getMidPoint(ludo.getRedPlayer1().x_cordinate);\n int redx2 = getMidPoint(ludo.getRedPlayer2().x_cordinate);\n int redx3 = getMidPoint(ludo.getRedPlayer3().x_cordinate);\n int redx4 = getMidPoint(ludo.getRedPlayer4().x_cordinate);\n int redy1 = getMidPoint(ludo.getRedPlayer1().y_cordinate);\n int redy2 = getMidPoint(ludo.getRedPlayer2().y_cordinate);\n int redy3 = getMidPoint(ludo.getRedPlayer3().y_cordinate);\n int redy4 = getMidPoint(ludo.getRedPlayer4().y_cordinate);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx1, redy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx2, redy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx3, redy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx4, redy4);\n return number_of_collisions;\n }",
"public boolean collidesWith(ICollider other);",
"public void checkCollision(Enemy enemy){\r\n if(collidingEntity!=null && collidingEntity!=enemy){\r\n return;\r\n }\r\n FloatRect x = enemy.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity= enemy;\r\n collide=true;\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n bounce(enemy);\r\n } else {\r\n noCollision ();\r\n }\r\n }",
"public void checkCollision(Box box){\r\n if(collidingEntity2!=null && collidingEntity2!=box){\r\n return;\r\n }\r\n FloatRect x = box.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity2= box;\r\n collide=true;\r\n checkTopCollision (x);\r\n if(collidedTop==false) {\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n }\r\n } else {\r\n noCollision ();\r\n }\r\n }"
]
| [
"0.7555024",
"0.73284924",
"0.7291725",
"0.7243725",
"0.7240195",
"0.7201603",
"0.7084172",
"0.7070649",
"0.70562404",
"0.6992952",
"0.6936809",
"0.69337845",
"0.6920551",
"0.6892439",
"0.68835866",
"0.68459415",
"0.67846054",
"0.67822516",
"0.67615134",
"0.67487746",
"0.6748191",
"0.6740403",
"0.6735386",
"0.67174673",
"0.67123926",
"0.6701717",
"0.66995436",
"0.6695599",
"0.6695134",
"0.6684705",
"0.66842103",
"0.66573733",
"0.6653919",
"0.6645739",
"0.6644174",
"0.6624062",
"0.6614818",
"0.6607984",
"0.66074747",
"0.659761",
"0.6580191",
"0.6562758",
"0.6548009",
"0.6544427",
"0.6541054",
"0.6535119",
"0.6525758",
"0.65216875",
"0.65178144",
"0.6515646",
"0.65140235",
"0.6488542",
"0.64821845",
"0.648064",
"0.6463703",
"0.64554906",
"0.645539",
"0.64426",
"0.643293",
"0.64305913",
"0.64266324",
"0.6426272",
"0.6416765",
"0.64138997",
"0.6406636",
"0.6404911",
"0.6402478",
"0.6372473",
"0.63700587",
"0.6349868",
"0.63453555",
"0.63402814",
"0.63294864",
"0.6314759",
"0.63078725",
"0.6306602",
"0.629833",
"0.62959397",
"0.6290453",
"0.62871176",
"0.62618303",
"0.62551475",
"0.62495345",
"0.624931",
"0.6237213",
"0.6233122",
"0.62328345",
"0.62310576",
"0.6227708",
"0.6219084",
"0.62163",
"0.6202012",
"0.6201272",
"0.61969256",
"0.6195819",
"0.619573",
"0.6188744",
"0.618023",
"0.617616",
"0.61664504"
]
| 0.7046138 | 9 |
Check for collisions on top | public void checkTopCollision(FloatRect x){
if((int)rect1.top<= (int)x.top-x.height ){
collide=true;
collidedTop=true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n bottomCollision(); \n }\n else if(ySpeed < 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n topCollision();\n }\n }\n }",
"public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void checkCollision() {}",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }",
"public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void checkCollision()\n {\n if(isTouching(Rocket.class))\n {\n removeTouching(Rocket.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Fire.class))\n {\n removeTouching(Fire.class);\n Level1 level1 = (Level1)getWorld(); \n isSwordscore = false;\n notifyObservers(-20);\n }\n else if(isTouching(Sword.class))\n { \n removeTouching(Sword.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n notifyObservers(-20);\n }\n \n else if(isTouching(Star.class))\n { \n removeTouching(Star.class);\n Level1 level1 = (Level1)getWorld();\n isSwordscore = false;\n count++;\n boost();\n }\n }",
"public void checkCollision() {\n\t\tfor(SolidObject i : solidObjects) {\r\n\t\t\tif(getBounds().intersects(i.getBounds())) {\r\n\t\t\t\t//Increments the KillCount\r\n\t\t\t\tif(i.onAttack(damage, flipped)) {\r\n\t\t\t\t\tkillCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void checkCollision( Sprite obj )\n {\n \n }",
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\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}",
"boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }",
"@Override\n public void checkCollision( Sprite obj )\n {\n\n }",
"private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }",
"private void laserCollisions() {\r\n\t\tGObject topLeft = getElementAt(laser.getX() - 1, laser.getY());\r\n\t\tGObject topRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY());\r\n\t\tGObject bottomLeft = getElementAt(laser.getX() - 1, laser.getY() + laser.getHeight());\r\n\t\tGObject bottomRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY() + laser.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(laser);\r\n\t\t\tlaser = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void checkCollisions() {\n int x1 = 0;\n int x2 = 0;\n for(CollisionBox e : cols) {\n for(CollisionBox f : cols) {\n if(\n x2 > x1 && // Skip checking collisions twice\n// (\n// e != f || // The entities are not the same entity\n// ( // One of the entities's parent object is not the bullet of the other's (aka ignore player bullets colliding with player)\n// // And also check they're not both from the same entity (two bullets colliding both going in the same direction from the same entity)\n// f.getParent() != null && // The first entity has a parent and\n// e.getParent() != null && // The second entity has a parent and\n// f.getParent().getParent() != null && // The first entity's parent has a parent and\n// e.getParent().getParent() != null && // The second entity's parent has a parent and\n// f.getParent().getParent() != e.getParent() && // The first entity's parent's parent is not the second entity's parent\n// e.getParent().getParent() != f.getParent() &&// The second entity's parent's parent is not the first entity's parent\n// f.getParent().getParent() != e.getParent().getParent() // The first and second entities' parents' parents are not the same\n// )\n// ) &&\n SAT.isColliding(e, f) // The entities are colliding\n ) { // Collide the Entities\n Entity ep = e.getParent();\n Entity fp = f.getParent();\n ep.collide(fp);\n fp.collide(ep);\n }\n x2++;\n }\n x1++;\n x2 = 0;\n }\n }",
"public int checkCollisions() {\r\n\t\tArrayList<Comet> comets = Comet.getCometList();\r\n\r\n\t\tfor (int i = 0; i < comets.size(); i++) {\r\n\t\t\tComet tempComet = comets.get(i);\r\n\r\n\t\t\tif (getBounds().intersects(tempComet.getBounds())) {\r\n\t\t\t\tComet.removeComet(tempComet);\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col;\r\n\t}",
"private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void collisionHappened(int position);",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"public void detectCollisions(){\n\t\tfor(int i = 0; i < pScene.getNumOf(); i++){\n\t\t\tEntity a = pScene.getObject(i);\n\t\t\tif (!a.isAlive())\n\t\t\t\tcontinue;\n\t\t\tfor(int j = i + 1; j < pScene.getNumOf(); j++){\n\t\t\t\tEntity b = pScene.getObject(j);\n\t\t\t\tif(a.intersects(b)&&(!(a.getStatic()&&b.getStatic()))){\n\t\t\t\t\tsManifolds.add(new Manifold(a,b)); // For regular objects\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean checkCollisions(Tuple camera) {\n\n\t\t// already exploded\n\t\tif(disabled > 0) {\n\t\t\treturn false;\n\t\t} // if\n\t\t\n\t\t// collision detected\n\t\tif(location.distance(camera) - size < SHIP_SIZE) {\n\t\t\tdisabled = 1;\n\t\t\treturn true;\n\t\t} // if\n\t\treturn false;\n\t}",
"private void checkWeaponCollisions(GObject element) {\r\n\t\tGObject topLeft = getElementAt(element.getX() - 1, element.getY());\r\n\t\tGObject topRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY());\r\n\t\tGObject bottomLeft = getElementAt(element.getX() - 1, element.getY() + element.getHeight());\r\n\t\tGObject bottomRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY() + element.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}",
"private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }",
"private void checkEFlagCollisions() {\n\t\tint len = eflags.size();\n\t\t\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tEndingFlag eflag = eflags.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapRectangles(eflag.bounds, player.bounds)) {\n\t\t\t\tplayer.position.set(2,3);\n\t\t\t\tLevelScreen.nextLevel = 1;\n\t\t\t}\n\t\t}\n\t}",
"public abstract void processCollisions();",
"public void checkCollisions(int xH, int yH) {\n Rectangle r1 = new Rectangle(xH, yH, 50, 50);\n Rectangle r2 = new Rectangle(zombie.x, zombie.y, 50, 50);\n if (r1.intersects(r2)) {\n zombieWins = true; \n }\n }",
"public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}",
"@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }",
"public void detectCollisions() {\r\n\r\n for (int pos = 0; pos < this.numberOfBees; pos++) {\r\n if (!beesArray[pos].isInCollisionRisk()) {\r\n int i = beesArray[pos].getI();\r\n int j = beesArray[pos].getJ();\r\n int k = beesArray[pos].getK();\r\n for (int x = (i - offset); x <= (i + offset); x++) {\r\n for (int y = (j - offset); y <= (j + offset); y++) {\r\n for (int z = (k - offset); z <= (k + offset); z++) {\r\n if (x == i && y == j && z == k || (Math.abs(i - j) == 0) || Math.abs(i - j) == 2 * offset) {\r\n continue;\r\n } else if (BeesCollision[x][y][z] != null) {\r\n beesArray[pos].setCollision(true);\r\n if (BeesCollision[x][y][z].size() == 1) {\r\n BeesCollision[x][y][z].getFirst().setCollision(true);\r\n break;\r\n }\r\n }\r\n }\r\n if (beesArray[pos].isInCollisionRisk()) {\r\n break;\r\n }\r\n }\r\n if (beesArray[pos].isInCollisionRisk()) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }",
"protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"void onNoCollision();",
"private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"public void checkCollision(Box box){\r\n if(collidingEntity2!=null && collidingEntity2!=box){\r\n return;\r\n }\r\n FloatRect x = box.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity2= box;\r\n collide=true;\r\n checkTopCollision (x);\r\n if(collidedTop==false) {\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n }\r\n } else {\r\n noCollision ();\r\n }\r\n }",
"public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}",
"private void testCollisions () \n\t{\n\t r1.set(level.bird.position.x, level.bird.position.y,\n\t \t\t level.bird.bounds.width+.03f, level.bird.bounds.height);\n\t \n\t // Test collision: Pipes\n\t for (Pipe pipe : level.pipes) \n\t {\n\t \t r2.set(pipe.position.x, pipe.position.y, pipe.bounds.width,\n\t \t\t\t pipe.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t \n\t \t onCollisionBirdWithPipe(pipe);\n\t }\n\t \n\t // Test collision: GoldCoins\n\t for (GoldCoin goldcoin : level.goldcoins)\n\t {\n\t \t if (goldcoin.collected) continue;\n\t \t r2.set(goldcoin.position.x, goldcoin.position.y,\n\t \t\t\t goldcoin.bounds.width, goldcoin.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithGoldCoin(goldcoin);\n\t \t break;\n\t }\n\t \n\t // Test collision: Dp\n\t for (DoublePoint doublepoint : level.doublepoints) \n\t {\n\t \t if (doublepoint.collected) continue;\n\t \t r2.set(doublepoint.position.x, doublepoint.position.y,\n\t \t\t\t doublepoint.bounds.width, doublepoint.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithDoublePoint(doublepoint);\n\t \t break;\n\t }\n\t \n\t // Test collision: Goal\n\t for (Goal goal : level.goals)\n\t {\n\t \t r2.set(goal.position.x, goal.position.y,\n\t \t\t\t goal.bounds.width, goal.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t onCollisionBirdWithGoal(goal);\n\t \t break;\n\t }\n\t \n\t // Test collision: Brick\n\t for (Brick brick : level.bricks) \n\t {\n\t \t r2.set(brick.position.x, brick.position.y, brick.bounds.width,\n\t \t\t\t brick.bounds.height);\n\t \t if (!r1.overlaps(r2)) continue;\n\t \t \n\t \t onCollisionBirdWithBrick(brick);\n\t }\n\t }",
"void checkPositions() {\n //check if any bullets have hit any asteroids\n for (int i = 0; i < bullets.size(); i++) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHit(bullets.get(i).pos)) {\n shotsHit++;\n bullets.remove(i);//remove bullet\n score +=1;\n break;\n }\n }\n }\n //check if player has been hit\n if (immortalityTimer <=0) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHitPlayer(position)) {\n playerHit();\n }\n }\n }\n }",
"void collisionDetection() {\n\t\tfor (int a = 0; a < botsList.size(); a++) {\r\n\t\t\tfor (int b = 0; b < botsList.size(); b++) {\r\n\r\n\t\t\t\tif (a == b) // Avoid checking if bot hits itself.\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\ttime = System.currentTimeMillis();\r\n\t\t\t\tif (time - botsList.get(a).enemy_last_detected > botsList.get(a).enemy_detect_timeout) {\r\n\t\t\t\t\tfor (int i = 0; i > botsList.get(b).bullets.size(); i++) {\r\n\t\t\t\t\t\tif (colides(botsList.get(a), botsList.get(b).bullets.get(i)))\r\n\t\t\t\t\t\t\tbotsList.get(a).loseLife();\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\r\n\t\tif (botsList.get(0).detect.intersects(botsList.get(1).body.getFrame())) {\r\n\t\t\tbotsList.get(0).enemyDetected(botsList.get(1).body);\r\n\t\t\tbot_1_detect = false;\r\n\t\t\tbot_1_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_1_detected > bot_1_detect_timeout)\r\n\t\t\tbot_1_detect = true;\r\n\t\t// and now same for bot 2\r\n\t\tif (botsList.get(1).detect.intersects(botsList.get(0).body.getFrame())) {\r\n\t\t\tbotsList.get(1).enemyDetected(botsList.get(0).body);\r\n\t\t\tbot_2_detect = false;\r\n\t\t\tbot_2_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_2_detected > bot_2_detect_timeout)\r\n\t\t\tbot_2_detect = true;\r\n\r\n\t\t// Bullets collision\r\n\t\t// See if bot_n hits the other bot with a bullet\r\n\t\tfor (int mainB = 0; mainB < botsList.size(); mainB++) {\r\n\t\t\tfor (int secB = 0; secB < botsList.size(); secB++) {\r\n\r\n\t\t\t\tif (secB == mainB)\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// if player_2 collides with player 1's bullets\r\n\t\t\t\tfor (int i = 0; i < botsList.get(mainB).bullets.size(); i++) {\r\n\t\t\t\t\tif (colides(botsList.get(secB), botsList.get(mainB).bullets.get(i))) {\r\n\t\t\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\t\t\tbotsList.get(mainB).bullets.remove(i);\r\n\t\t\t\t\t\tbotsList.get(secB).loseLife();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if player_1 collides with player 2's bullets\r\n\t\tfor (int i = 0; i < botsList.get(1).bullets.size(); i++) {\r\n\t\t\tif (colides(botsList.get(0), botsList.get(1).bullets.get(i))) {\r\n\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\tbotsList.get(1).bullets.remove(i);\r\n\t\t\t\tbotsList.get(0).loseLife();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"void checkCollision(Entity other);",
"public void checkForHits ()\n\t\t{\n\t\t\tif (ball.getRectangle().x < 0) {\n\t\t\t\t//computerAI.getCharacter().gotHit(player.getCharacter().getDamage());\n\t\t\t\tplayer1.character.gotHit(player2.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player1.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//WinWindow.lose_window(0);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t} else if (ball.getRectangle().x > WIDTH - ball.getRectangle().width) {\n\t\t\t\tplayer2.character.gotHit(player1.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player2.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//dispose(); TODO - this might be necessary for resetting, but it's currently a breaking change\n\t\t\t\t\t//WinWindow.lose_window(1);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }",
"private void collision(){\n\t\tboolean touched = false;\n\t\tboolean hit;\n\t\tint j =0;\n\t\twhile ( j< this.game_.getSaveBaby().size() && !touched){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n\t\t\ttouched = this.game_.getBunnyHood().getPosition().dst(b.getPosition())<=80;\n\t\t\thit = this.game_.getWolf().getPosition().dst(b.getPosition())<=80;\n\t\t\tif (touched){\n\t\t\t\tthis.game_.setBabySaved(b);\n\t\t\t}\n\t\t\tif (hit){\n\t\t\t\tthis.game_.wolfCatchBunnies(b);\n\t\t\t\t/**\n\t\t\t\t * Test de callback, retour vers l app android\n\t\t\t\t */\n\t\t\t\tif(this.game_.getScoreWolf()==3){\n\t\t\t\t\tif (this.gameCallBack != null) {\n\n this.gameCallBack.gameOverActivity(this.game_.getScoreBunny());\n\t\t\t\t\t\tthis.isGameOver=true;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tGdx.app.log(\"MyGame\", \"To use this class you must implement MyGameCallback!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t}",
"public boolean isCollisionDisabled() { return mover.isCollisionDisabled(); }",
"private void collision() {\n\t\tfor(int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(brownMeteors[i]);\n\t\t\t\t\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, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(greyMeteors[i]);\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\n\t\t\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())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\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}\t\n\t\t\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())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\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\t\n\t\t}\t\t\n\t}",
"public abstract void onCollision();",
"private void checkPlayerCollisions(int x, int y){\n\t\tint wHitBoxX = 100;\n\t\tint wHitBoxY = 150;\n\t\t\n\t\tfor(int i = 0; i<enemy_num; i++){\n\t\t\tfor(int j = 0; j<enemy_arrow_num[i]; j++){\n\t\t\t\tif(enemy_arrows[i][j][0] > x && enemy_arrows[i][j][0] < (x+wHitBoxX)){\n\t\t\t\tif(enemy_arrows[i][j][1] > y && enemy_arrows[i][j][1] < (y+wHitBoxY)){\n\t\t\t\t \tremove_arrow(i,j);\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t}",
"private void checkCollisions() {\n // First check collisions between bullets and other objects.\n this.game.getBullets().forEach(bullet -> {\n this.game.getAsteroids().forEach(asteroid -> { // Check collision with any of the asteroids.\n if (asteroid.collides(bullet)) {\n asteroid.destroy();\n bullet.destroy();\n }\n });\n for (Spaceship ship : game.getPlayers().values()) {\n\n if (ship.collides(bullet)) { // Check collision with ship.\n bullet.destroy();\n ship.destroy();\n }\n }\n });\n // Next check for collisions between asteroids and the spaceship.\n this.game.getAsteroids().forEach(asteroid -> {\n for (Spaceship ship : game.getPlayers().values()) {\n\n if (asteroid.collides(ship)) {\n ship.destroy();\n asteroid.destroy();\n }\n }\n if (KESSLER_SYNDROME) { // Only check for asteroid - asteroid collisions if we allow kessler syndrome.\n this.game.getAsteroids().forEach(secondAsteroid -> {\n if (!asteroid.equals(secondAsteroid) && asteroid.collides(secondAsteroid)) {\n asteroid.destroy();\n secondAsteroid.destroy();\n }\n });\n }\n });\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"public abstract boolean collisionWith(CollisionObject obj);",
"public void checkPlayerCollisions() {\n\t\t//Iterate over the players\n\t\tfor (PlayerFish player : getPlayers()) {\n\t\t\t//Get collidables parallel.\n\t\t\tcollidables.parallelStream()\n\t\t\t\n\t\t\t//We only want the collidables we actually collide with\n\t\t\t.filter(collidable -> player != collidable && player.doesCollides(collidable))\n\t\t\t\n\t\t\t//We want to do the for each sequentially, otherwise we get parallelism issues\n\t\t\t.sequential()\n\t\t\t\n\t\t\t//Iterate over the elements\n\t\t\t.forEach(collidable -> {\n\t\t\t\tplayer.onCollide(collidable);\n\t\t\t\tcollidable.onCollide(player);\n\t\t\t});\n\t\t}\n\t}",
"private void handleCollisions(Sprite sprite1, Sprite sprite2){\n\t\tif(!sprite1.isActive() || !sprite2.isActive()) return;\n\n\t\tif(sprite1.equals(sprite2)){\n\t\t\treturn;\n\t\t}\n\n\t\tBounds boundsSprite1 = renderSprite(sprite1).getChildren().get(0).getBoundsInParent();\n\t\tBounds boundsSprite2 = (renderSprite(sprite2).getChildren().get(0).getBoundsInParent());\n\n\t\tif(boundsSprite1.intersects(boundsSprite2)) {\n\t\t\tcollisionHandler.handleCollide(sprite1, sprite2);\n\t\t}\n\n\t}",
"public boolean collides(Ball ball) //collision detection\n {\n if( ( position.y+height ) > ball.getPosY()-8 )\n {\n if( position.y+10 < ( ball.getPosY()-8 ) )\n {\n if(\n !((\n (ball.getPosX()-12 < ( position.x)+width ) &&\n (ball.getPosX()+12 < (position.x+width) ) &&\n (ball.getPosX()-12 < position.x ) &&\n (ball.getPosX()+12 < position.x )\n )||\n (\n (ball.getPosX()-12 > ( position.x+width )) &&\n (ball.getPosX()+12 > (position.x+width) ) &&\n (ball.getPosX()-12 > ( position.x )) &&\n (ball.getPosX()+12 > position.x )\n ))\n ){return true;}\n }\n\n }\n\n return false;\n\n /*\n if(position.y > (ball.getPosY() - 77 ) ) //should be ball.getheight\n {\n\n return Intersector.overlaps(ball.getCircle(), rect);\n }\n */\n\n }",
"protected void onCollision(Actor other) {\r\n\r\n\t}",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}",
"public void checkCollision(Actor a) {\r\n\t\tif (a.equals(this))\r\n\t\t\treturn;\r\n\r\n\t\tPolygon otherPoly = a.basePoly;\r\n\t\tint distance = 1;\r\n\r\n\t\tif (otherPoly != null && basePoly != null) {\r\n\t\t\t// Calculate distance using the formula x^2 + y^2 = z^2\r\n\t\t\tint x = otherPoly.getBounds().x - basePoly.getBounds().x;\r\n\t\t\tint y = otherPoly.getBounds().y - basePoly.getBounds().y;\r\n\t\t\tdistance = (int) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\r\n\t\t}\r\n\t\tif (distance > 150 || a instanceof Particle)\r\n\t\t\treturn;\r\n\r\n\t\tfor (int i = 0; i < basePoly.npoints; i++) {\r\n\t\t\tif (otherPoly.contains(new Point(basePoly.xpoints[i],\r\n\t\t\t\t\tbasePoly.ypoints[i]))) {\r\n\t\t\t\tonCollision(a);\r\n\t\t\t\ta.onCollision(a);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void collision(float x_a,float y_a,float x_b,float y_b){\n float dy = y_a - y_b;\r\n float dx = x_a - x_b;\r\n float distance12 = dy * dy + dx * dx;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ((GameActivity)mActivity).mTimer.cancel();\r\n ((GameActivity)mActivity).layout.removeAllViews();\r\n new AlartMessage(mActivity);\r\n }\r\n\r\n }",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"public void checkEntityOverlap(){\n for(Entity entity:entityList){\n if(entity.getEntityType().equals(\"Sandwich\")) {\n if (player.getPlayerCoordinates() == entity.getEntityCoordinates()) {\n player.eatSandwich();\n entityList.remove(entity);\n }\n }\n }\n }",
"private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }",
"public boolean isCollision(Ball ob) { // Kollisionsabfrage\r\n\t\t\r\n\t\tdX = posX - ob.getPosX();\r\n\t\tdY = posY - ob.getPosY();\r\n\t\tfloat vector = dX * dX + dY * dY;\r\n\t\tfloat hypo = radius * radius * 4;\r\n\t\tif (hypo >= vector) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void checkSpikeCollisions() {\n\t\t\n\t\t//check collisions with up spikes\n\t\tint len = upSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = upSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collisions with down spikes\n\t\tlen = downSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = downSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collisions with right spikes\n\t\tlen = rightSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = rightSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collisions with left spikes\n\t\tlen = leftSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = leftSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t}",
"public boolean overlapsWith()\r\n\t{\r\n\t\tboolean alive = false;\r\n\t\tfor (Platforms platform : platforms)\r\n\t\t{\r\n\t\t\tif (getAvatar().getX() == platform.getX() && getAvatar().getY() == platform.getY())\r\n\t\t\t{\r\n\t\t\t\talive = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn alive;\r\n\t}",
"public static boolean collide(CustomAABB us, CustomBlockBox block, Vector3f pos, Vector3f inertia, float width, float height, boolean onGround){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //double check to stop clipping if not enough space\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+2,block.getFront()))) {\n\n //floor detection\n if (block.getTop() > us.getBottom() && inertia.y < 0 && us.getBottom() - block.getTop() > -0.15f) {\n //this is the collision debug sphere for terrain\n float oldPos = pos.y;\n pos.y = block.getTop();\n //don't move up if too high\n if (pos.y - oldPos > 1) {\n pos.y = (int)oldPos;\n }\n inertia.y = 0;\n onGround = true;\n }\n }\n\n //stop getting shot across the map\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-2,block.getFront()))) {\n //head detection\n if (block.getBottom() < us.getTop() && inertia.y >= 0 && us.getTop() - block.getBottom() < 0.15f) {\n pos.y = block.getBottom() - height;\n inertia.y = 0;\n }\n }\n\n float averageX = Math.abs(((block.getLeft() + block.getRight())/2f) - pos.x);\n float averageY = Math.abs(((block.getBottom() + block.getTop())/2f) - pos.y);\n float averageZ = Math.abs(((block.getFront() + block.getBack())/2f) - pos.z);\n if (averageX > averageZ) {\n if (!detectBlock(new Vector3f(block.getLeft()+1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getRight() > us.getLeft() && inertia.x < 0) {\n pos.x = block.getRight() + width + 0.00001f;\n inertia.x = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft()-1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getLeft() < us.getRight() && inertia.x > 0) {\n pos.x = block.getLeft() - width - 0.00001f;\n inertia.x = 0;\n }\n }\n }\n } else {\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()+1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getBack() > us.getFront() && inertia.z < 0) {\n pos.z = block.getBack() + width + 0.00001f;\n inertia.z = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()-1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getFront() < us.getBack() && inertia.z > 0) {\n pos.z = block.getFront() - width - 0.00001f;\n inertia.z = 0;\n }\n }\n }\n }\n return onGround;\n }",
"@Override\n public void collide(ScreenObject other) {\n switch (other.getType()) {\n case ASTEROID:\n hp -= other.dealDamage();\n break;\n case ENEMY:\n hp -= other.dealDamage();\n break;\n case ENEMYBULLET:\n hp -= other.dealDamage();\n break;\n case MACGUFFIN:\n macguffinsCollected++;\n break;\n case PORT:\n if (macguffinsCollected >= level.getMacguffinCount()\n && boundingCircle.contains(other.getPosition())) {\n Gdx.app.log(\"Ship\", \"level over\");\n //ends level\n }\n break;\n }\n }",
"public void checkCollisions(List<Entity> listOfCloseObjects){\n\n for(Entity first : listOfCloseObjects){\n for(Entity second : listOfCloseObjects){\n if(first!=second) {\n\n String typeOfCollision = \"\";\n\n //check for a collision between the bounding boxes\n if (first.getBoundingBox().intersects(second.getBoundingBox())) {\n if(first.getEntityType().equals(EntityType.WALL) && second.getEntityType().equals(EntityType.PLAYER)) {\n typeOfCollision = \"playerWithWall\";\n }\n else if(first.getEntityType().equals(EntityType.FLOOR_HAZARD) && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"playerWithHazard\";\n }\n else if(first.getEntityType().equals(EntityType.MELEE_WEAPON) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"swordWithEnemy\";\n }\n else if(first instanceof Bullet && second.getEntityType().equals(EntityType.WALL)){\n typeOfCollision = \"bulletWithWall\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.WALL)){\n typeOfCollision = \"enemyWithWall\";\n }\n else if((first.getEntityType().equals(EntityType.DEFAULT_BULLET) || first.getEntityType().equals(EntityType.SHOTGUN_BULLET) || first.getEntityType().equals(EntityType.FAST_BULLET)) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"enemyWithBullet\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"enemyWithEnemy\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"enemyWithPlayer\";\n }\n else if((first.getEntityType().equals(EntityType.SWORD) || first.getEntityType().equals(EntityType.SHOTGUN) || first.getEntityType().equals(EntityType.PISTOL) || first.getEntityType().equals(EntityType.ASSAULT_RIFLE) ||\n first.getEntityType().equals(EntityType.SHIELD) || first.getEntityType().equals(EntityType.SPEEDBOOST) || first.getEntityType().equals(EntityType.HEART))\n && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"itemWithPlayer\";\n }\n\n if(!typeOfCollision.isEmpty())\n collide(typeOfCollision, first, second);\n }\n }\n }\n }\n\n }",
"public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }",
"public void collisionEvent(Keeper keeper) {\r\n if (getPossessionStatus() &&\r\n (keeper.getTeam().getColor() != this.getTeam().getColor()))\r\n {\r\n if(!keeper.isStunned() && //They do not tackle you if they are stunned!\r\n random.nextInt(MAX_CHANCE) <= KEEPER_CHANCE) // and a 40% chance.\r\n {\r\n dropQuaffle(); // Simulating the chaser of the opposing team tackling you.\r\n }\r\n }\r\n super.collisionEvent(keeper);\r\n }",
"public void checkScreenCollisionTopBottom() {\n if (y <= radius || y >= GameView.height - radius) {\n speedY *= -1;\n if (y < radius) {\n y = (int) radius;\n }\n if (y > GameView.height - radius) {\n y = (int) (GameView.height - radius);\n }\n }\n }",
"public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public boolean gameOverP2()\n\t{\n\t\tfor(Block b:blocks2)\n\t\t{\n\t\t\tif(b != p2.head)\n\t\t\t{\n\t\t\t\tif(b.posX == p2.head.posX && b.posY == p2.head.posY)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif(p2.head.posX == getW() - 2 || p2.head.posY == getH() - 2)\t//south walls \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif(p2.head.posX < 1 || p2.head.posY < 1)\n\t\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean canBeOnTop(Box b2) {\n\t\t\tif(b2 == null)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\tif(this.width < b2.width && this.height < b2.height && this.depth < b2.depth)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\treturn false;\n\t\t}",
"public void collisionVS() {\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).tick();\n\n if (enemyBullets.get(i).getImgY() >= 750 || enemyBullets.get(i).getImgY() <= 40) {\n\n enemyBullets.get(i).bulletImage.delete();\n enemyBullets.remove(enemyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(enemyBullets.get(i).getHitbox())) {\n\n spaceShips.get(j).hit();\n enemyBullets.get(i).hit();\n enemyBullets.remove(enemyBullets.get(i));\n\n if (spaceShips.get(j).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(j));\n }\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n }\n\n //////////////////////////////////////////////////////////////////////////////////////////////\n\n // SPACESHIPS WITH ENEMIES AND ENEMY BULLETS\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).tick();\n\n // WITH ENEMIES\n for (int j = 0; j < enemies.size(); j++) {\n if (spaceShips.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n spaceShips.get(i).hit();\n enemies.get(j).hit(20);\n enemies.remove(enemies.get(j));\n\n if (spaceShips.get(i).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(i));\n }\n\n //if it collides with one leave the for loop\n j = enemies.size();\n }\n }\n }\n }",
"private boolean collides(GameObject gameObject1) {\n return collides(gameObject1, 0.5);\n }",
"private synchronized void checkCollisions() {\n // I'm note sure whether this function is needed. \n // This code could go in do Collisions()\n // It was sort of painfull to make this work and I ended up making a mess\n // so this architecture may have good changes of improvement.\n //\n goCheckCollisions = true;\n isThreadLoopDone = false;\n notifyAll();\n while (!isThreadLoopDone) {\n try {\n wait();\n } catch (InterruptedException ex) {}\n }\n }",
"public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}",
"public int check4CollisionWithBlue(Player player)\n {\n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int blux1 = getMidPoint(getBlue_player1().x_cordinate);//blue_player1.x_cordinate;\n int blux2 = getMidPoint(getBlue_player2().x_cordinate);\n int blux3 = getMidPoint(getBlue_player3().x_cordinate);//blue_player3.x_cordinate;\n int blux4 = getMidPoint(getBlue_player4().x_cordinate);//blue_player4.x_cordinate;\n int bluy1 = getMidPoint(getBlue_player1().y_cordinate);//blue_player1.y_cordinate;\n int bluy2 = getMidPoint(getBlue_player2().y_cordinate);//blue_player2.y_cordinate;\n int bluy3 = getMidPoint(getBlue_player3().y_cordinate);//blue_player3.y_cordinate;\n int bluy4 = getMidPoint(getBlue_player4().y_cordinate);//blue_player4.y_cordinate;\n number_of_collisions += collisionDetection(x_cord, y_cord, blux1, bluy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux2, bluy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux3, bluy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux4, bluy4);\n return number_of_collisions;\n }",
"public boolean checkCollision(Rectangle hitBox) {\n for (Ghost ghost : ghostList) {\n if (ghost.checkCollision(hitBox)) {\n return true;\n }\n }\n return false;\n }",
"private boolean collision1() {\n return game.racket1.getBounds1().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }",
"private boolean collision2() {\n return game.racket2.getBounds2().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }",
"public void collision() {\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).tick();\n\n if (friendlyBullets.get(i).getImgY() <= 40) {\n friendlyBullets.get(i).bulletImage.delete();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < enemies.size(); j++) {\n\n if (friendlyBullets.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n friendlyBullets.get(i).hit();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n\n enemies.get(j).hit();\n\n if (enemies.get(j).getHp() <= 0) {\n enemies.remove(enemies.get(j));\n score.setScore(50);\n j--;\n }\n //end this loop\n j = enemies.size();\n }\n }\n\n }\n\n ///////////////////////////////////////////////////////////////////////////////////////\n\n\n // Enemy out of bounds\n for (int i = 0; i < enemies.size(); i++) {\n\n enemies.get(i).tick();\n\n // Out of bounds\n if (enemies.get(i).getEnemyImage().getY() >= 750) {\n enemies.get(i).getEnemyImage().delete();\n enemies.remove(enemies.get(i));\n\n if (enemies.size() > 1) {\n i--;\n }\n }\n }\n\n\n //////////////////////////////////////////////////////////////////////////\n\n //powerUps out of bounds and collision with spaceships\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).tick();\n\n if (powerUps.get(i).getImgY() >= 745) {\n\n powerUps.get(i).powerUpImage.delete();\n powerUps.remove(powerUps.get(i));\n\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(powerUps.get(i).getHitbox())) {\n\n\n spaceShips.get(j).powerUp(powerUps.get(i).getPowerUpType());\n powerUps.get(i).hit();\n powerUps.remove(powerUps.get(i));\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n\n }\n\n }",
"public void checkCollision(){\n if (ball.y <=0){\n ball.setYDirection(-ball.yVelocity);\n }\n if (ball.y >=GAME_HEIGHT-BALL_DIAMETER){\n ball.setYDirection(-ball.yVelocity);\n }\n if (ball.x <=0){\n ball.setXDirection(-ball.xVelocity);\n }\n if (ball.x >=GAME_WIDTH-BALL_DIAMETER){\n ball.setXDirection(-ball.xVelocity);\n }\n\n // this bounces balls to the paddles\n\n // this is for the paddle1\n if (ball.intersects(paddle1)) {\n ball.xVelocity = Math.abs(ball.xVelocity);\n ball.xVelocity++;\n if (ball.yVelocity > 0)\n ball.yVelocity++;\n else\n ball.yVelocity--;\n ball.setXDirection(ball.xVelocity);\n ball.setYDirection(ball.yVelocity);\n }\n // this is for the paddle2\n if (ball.intersects(paddle2)){\n ball.xVelocity = Math.abs(ball.xVelocity);\n ball.xVelocity++;\n if (ball.yVelocity >0)\n ball.yVelocity++;\n else\n ball.yVelocity--;\n ball.setXDirection(-ball.xVelocity);\n ball.setYDirection(ball.yVelocity);\n }\n\n //this method stops the paddles from passing the edges of the frame\n if(paddle1.y <= 0)\n paddle1.y = 0;\n if(paddle1.y >= (GAME_HEIGHT-PADDLE_HEIGTH))\n paddle1.y = GAME_HEIGHT-PADDLE_HEIGTH;\n if(paddle2.y <= 0)\n paddle2.y = 0;\n if(paddle2.y >= (GAME_HEIGHT-PADDLE_HEIGTH))\n paddle2.y = GAME_HEIGHT-PADDLE_HEIGTH;\n\n\n //this will give points to players and creates new paddles as well a new ball\n if (ball.x<=0){\n score.player2++;\n newPaddles();\n newBall();\n // System.out.println(\"Player 2: \"+ score.player2);\n }\n if (ball.x >= GAME_WIDTH-BALL_DIAMETER){\n score.player1++;\n newPaddles();\n newBall();\n //System.out.println(\"Player 1: \"+score.player1);\n }\n\n }",
"public abstract boolean overlap(Catcher catcher, FallingObject object);",
"private void updateTileCollisions(Mob mob) {\n\t\tif (mob instanceof Player) {\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().x, Display.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().y, Display.getHeight() - mob.getHeight() / 2)));\n\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().x, tilemap.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().y, tilemap.getHeight()) - mob.getHeight() / 2));\r\n\t\t}\r\n\r\n\t\tPoint center = mob.getScreenPosition().add(offset);\r\n\r\n\t\tboolean hitGround = false; // used to check for vertical collisions and determine \r\n\t\t// whether or not the mob is in the air\r\n\t\tboolean hitWater = false;\r\n\r\n\t\t//update mob collisions with tiles\r\n\t\tfor (int i = 0; i < tilemap.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < tilemap.grid[0].length; j++) {\r\n\r\n\t\t\t\tif (tilemap.grid[i][j] != null &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x > center.x - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x < center.x + (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y > center.y - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y < center.y + (250)) {\r\n\r\n\t\t\t\t\tRectangle mobRect = mob.getBounds();\r\n\t\t\t\t\tRectangle tileRect = tilemap.grid[i][j].getBounds();\r\n\r\n\t\t\t\t\t// if mob intersects a tile\r\n\t\t\t\t\tif (mobRect.intersects(tileRect)) {\r\n\r\n\t\t\t\t\t\t// get the intersection rectangle\r\n\t\t\t\t\t\tRectangle rect = mobRect.intersection(tileRect);\r\n\r\n\t\t\t\t\t\t// if the mob intersects a water tile, adjust its movement accordingly\r\n\t\t\t\t\t\tif (tilemap.grid[i][j].type == TileMap.WATER) { \r\n\r\n\t\t\t\t\t\t\tmob.gravity = mob.defaultGravity * 0.25f;\r\n\t\t\t\t\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed * 0.35f;\r\n\t\t\t\t\t\t\tmob.moveSpeed = mob.defaultMoveSpeed * 0.7f;\r\n\r\n\t\t\t\t\t\t\tif (!mob.inWater) { \r\n\t\t\t\t\t\t\t\tmob.velocity.x *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.velocity.y *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.inWater = true;\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thitWater = true;\r\n\t\t\t\t\t\t\tmob.jumping = false;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t// if intersection is vertical (and underneath player)\r\n\t\t\t\t\t\t\tif (rect.getHeight() < rect.getWidth()) {\r\n\r\n\t\t\t\t\t\t\t\t// make sure the intersection isn't really horizontal\r\n\t\t\t\t\t\t\t\tif (j + 1 < tilemap.grid[0].length && \r\n\t\t\t\t\t\t\t\t\t\t(tilemap.grid[i][j+1] == null || \r\n\t\t\t\t\t\t\t\t\t\t!mobRect.intersects(tilemap.grid[i][j+1].getBounds()))) {\r\n\r\n\t\t\t\t\t\t\t\t\t// only when the mob is falling\r\n\t\t\t\t\t\t\t\t\tif (mob.velocity.y <= 0) {\r\n\t\t\t\t\t\t\t\t\t\tmob.velocity.y = 0;\r\n\t\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.inAir = false;\t\r\n\t\t\t\t\t\t\t\t\t\tmob.jumping = false;\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}\r\n\t\t\t\t\t\t\t// if intersection is horizontal\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tmob.velocity.x = 0;\r\n\r\n\t\t\t\t\t\t\t\tif (mobRect.getCenterX() < tileRect.getCenterX()) {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\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\tfloat xToCenter = Math.abs((float)(mobRect.getCenterX() - tileRect.getCenterX()));\r\n\t\t\t\t\t\t\tfloat yToCenter = Math.abs((float)(mobRect.getCenterY() - tileRect.getCenterY())); \r\n\r\n\t\t\t\t\t\t\t// Check under the mob to see if it touches a tile. If so, hitGround = true\r\n\t\t\t\t\t\t\tif (yToCenter <= (mobRect.getHeight() / 2 + tileRect.getHeight() / 2) && \r\n\t\t\t\t\t\t\t\t\txToCenter <= (mobRect.getWidth() / 2 + tileRect.getWidth() / 2))\r\n\t\t\t\t\t\t\t\thitGround = true;\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if mob doesn't intersect a tile vertically, they are in the air\r\n\t\tif (!hitGround) {\r\n\t\t\tmob.inAir = true;\r\n\t\t}\r\n\t\t// if the mob is not in the water, restore its default movement parameters\r\n\t\tif (!hitWater) {\r\n\t\t\tmob.gravity = mob.defaultGravity;\r\n\t\t\tmob.moveSpeed = mob.defaultMoveSpeed;\r\n\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed;\r\n\t\t\tmob.inWater = false;\r\n\t\t}\r\n\t}",
"private boolean checkCollisions()\n {\n for (int i = 1; i < numFigs; i++)\n if (figures[0].collidedWith(figures[i]))\n return true;\n return false;\n }"
]
| [
"0.7159393",
"0.70982677",
"0.7077513",
"0.7064746",
"0.7047246",
"0.70374227",
"0.7032581",
"0.7014995",
"0.7007206",
"0.69760704",
"0.69579697",
"0.6957465",
"0.6934823",
"0.6912484",
"0.6876424",
"0.68694097",
"0.6853255",
"0.67792505",
"0.676895",
"0.6757691",
"0.6729061",
"0.6668581",
"0.66523683",
"0.6640157",
"0.6638799",
"0.66326857",
"0.6614047",
"0.6613799",
"0.65907174",
"0.65720725",
"0.65678483",
"0.6536211",
"0.6533002",
"0.6525281",
"0.65138185",
"0.6501913",
"0.64998794",
"0.64905715",
"0.6489338",
"0.6489199",
"0.6486321",
"0.6480852",
"0.64396435",
"0.6436306",
"0.643325",
"0.64303327",
"0.6413827",
"0.6404557",
"0.6396062",
"0.63774705",
"0.6360461",
"0.63463324",
"0.6344897",
"0.6339302",
"0.6337994",
"0.6317972",
"0.6317801",
"0.63148314",
"0.63093764",
"0.6305836",
"0.6297275",
"0.6294531",
"0.62871885",
"0.6281583",
"0.620198",
"0.6198489",
"0.6191924",
"0.61918825",
"0.61885744",
"0.6167798",
"0.6159492",
"0.6156491",
"0.6155376",
"0.6146174",
"0.61411524",
"0.6121161",
"0.611609",
"0.611278",
"0.61092955",
"0.61077785",
"0.6107672",
"0.6105497",
"0.6105086",
"0.6100638",
"0.609803",
"0.60912496",
"0.6089941",
"0.6088036",
"0.6084141",
"0.60821426",
"0.60789573",
"0.6075804",
"0.60699743",
"0.6067054",
"0.6065959",
"0.6043624",
"0.60329294",
"0.6022253",
"0.6015799",
"0.60140365"
]
| 0.7322261 | 0 |
Get the Center x of the quadrilateral | public int getCenterX(){
return centerX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}",
"private int get_x() {\n return center_x;\n }",
"public double getCenterX() { return centerX.get(); \t}",
"public final float exactCenterX() {\n return (left + right) * 0.5f;\n }",
"public final int centerX() {\n return (left + right) >> 1;\n }",
"public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }",
"public int getX() {\r\n return (int) center.getX();\r\n }",
"public int getX() {\n return (int) center.getX();\n }",
"public double getCenterX() {\n\t\treturn centerX;\n\t}",
"public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }",
"public int centerX() {\n return mRect.centerX();\n }",
"public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }",
"public float getCentreX() {\n return centreX;\n }",
"public int getX() {\n return (int) this.center.getX();\n }",
"public double getBorderCenterX()\n {\n return borderCenterX;\n }",
"private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }",
"public float getCenterX() {\n return cPosition.getX() + (float) cFishSizeX / 2;\n }",
"Point getCenter();",
"Point getCenter();",
"public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }",
"public double getCenter() {\n return 0.5 * (lo + hi);\n }",
"public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }",
"public DoubleProperty centerXProperty() { \n\t\t\treturn centerX; \t\n\t\t}",
"public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }",
"public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }",
"public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }",
"@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}",
"double getXPosition();",
"public static int getCenter() {\n\t\treturn Center;\n\t}",
"public int getCenter() {\n\t\t\treturn center;\n\t\t}",
"public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }",
"public double getX() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble x = bounds.getX() + (_xt * bounds.getWidth());\n\t\treturn x;\n\t}",
"public Point getCenter() {\r\n\t\treturn center;\r\n\t}",
"private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }",
"public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(points[0], points[i+1], points[i+2]);\n Vec2 triangleMidpoint = t.getCenter();\n float triangleArea = t.getArea();\n\n averageMidpoint.addX(triangleMidpoint.getX() * triangleArea);\n averageMidpoint.addY(triangleMidpoint.getY() * triangleArea);\n\n area += triangleArea;\n\n// Color color;\n// if (i==0) color = Color.GREEN;\n// else color = Color.ORANGE;\n// SumoGame.ADD_DEBUG_DOT(points[0].getX(), points[0].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+1].getX(), points[i+1].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+2].getX(), points[i+2].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(triangleMidpoint.getX(), triangleMidpoint.getY(), triangleArea/2000, color);\n }\n\n averageMidpoint.div(area);\n\n// SumoGame.ADD_DEBUG_DOT(averageMidpoint.getX(), averageMidpoint.getY(), 20, Color.RED);\n\n return averageMidpoint;\n }",
"public int getRootX() {\n return this.mX + this.mOffsetX;\n }",
"public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}",
"public Point getCenter() {\n return center;\n }",
"public Point getCenter() {\r\n return this.center;\r\n }",
"public Coordinate getCenter() {\n return center;\n }",
"public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}",
"public Coordinate getCenteredCoordinate() {\n return coordinate.add(getHalfSize());\n }",
"public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}",
"public int x() {\r\n\t\treturn xCoord;\r\n\t}",
"public Vector3D getCenter() {\n return center;\n }",
"public float getX() { return xCoordinate;}",
"public Point getCenterPx(){\n\t\tint centerX = images[0].getWidth()/2;\n\t\tint centerY = images[0].getHeight()/2;\n\t\tPoint centerPx = new Point(centerX,centerY);\n\t\treturn centerPx;\n\t}",
"public int getXCoordinate ()\n {\n return xCoordinate;\n }",
"private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }",
"public Vector3D getCentrePosition()\n\t{\n\t\treturn centrePosition;\n\t}",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}",
"public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}",
"public PointF getCenter() {\n return center;\n }",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public Vector3f getSphereCenter() {\n\t\tfloat[] arr = getMinMax();\n\t\t\n\t\treturn new Vector3f((arr[0]+arr[1])/2,(arr[2]+arr[3])/2,(arr[4]+arr[5])/2);\n\t}",
"public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }",
"public Vector3f getCenter() {\r\n return center;\r\n }",
"public int getX() {\n return xCoord;\n }",
"public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}",
"public Point2D getLeftCenterPoint()\n {\n double x = mainVBox.getTranslateX();\n double y = mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n return new Point2D(x, y);\n }",
"public int getxCoord() {\n\t\treturn xCoord;\n\t}",
"Coordinate getMinX();",
"public int getxCoordinate() {\n return xCoordinate;\n }",
"public int getxCoordinate() {\n return xCoordinate;\n }",
"protected int getxCoord() {\n\t\treturn xCoord;\n\t}",
"public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }",
"double getPositionX();",
"double getPositionX();",
"double getPositionX();",
"public int getX() {\n\treturn baseXCoord;\n}",
"public Point getCenter() {\n return location.center();\n }",
"public Point2D.Float getCenter() {\r\n\t\treturn center;\r\n\t}",
"public double getXCoordinates() { return xCoordinates; }",
"public double getxCoord() {\n\t\treturn xCoord;\n\t}",
"double getStartX();",
"public double getXCoordinate() {\n return xCoordinate;\n }",
"private Point getCentreCoordinate(Point t)\n {\n \treturn new Point (t.x + Constants.cell_length /2f, t.y, t.z+Constants.cell_length/2f );\n }",
"public Point2D getCentre() {\n return new Point2D.Float(centreX, centreY);\n }",
"public static int getEndXCoordinate(){\n\t\tint x = getThymioEndField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n\n\t\treturn x;\n\t}",
"public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}",
"public double getStartX()\n {\n return startxcoord; \n }",
"public double getX() {\r\n\t\t return this.xCoord;\r\n\t }",
"public Point2D.Double GetCentrePoint() {\n \t\treturn new Point2D.Double(centrePoint.getX(), centrePoint.getY());\n \t}",
"public Vec3d getCenter() {\n\t\treturn set;\n\t}",
"public int getX() {\n return (int) Math.round(x);\n }",
"public int getLocationX() {\r\n\t\treturn x;\r\n\t}",
"public double getxCoordinate() {\n return xCoordinate;\n }",
"public Vector2 getCenter() {\n return new Vector2(rectangle.centerX(), rectangle.centerY());\n }",
"public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }",
"public void setCenterX(double x) { centerX.set(clamp(x, X_MIN, X_MAX)); }",
"@Override\n\tpublic float getCenterOfRotationX() {\n\t\treturn 0.25f;\n\t}",
"int getBoundsX();",
"public int getX(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(0)/ AvesAblazeHardware.mmPerInch);\n\t}",
"public int getxCoordinate() {\n\t\treturn xCoordinate;\n\t}",
"public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }",
"public double getX() {\n return origin.getX();\n }",
"public int getX()\n {\n return xaxis;\n }",
"public double[] getCenter() {\n return this.center;\n }"
]
| [
"0.78719664",
"0.7739931",
"0.75937533",
"0.7531879",
"0.74971324",
"0.74386114",
"0.7409026",
"0.73961896",
"0.7364654",
"0.73581237",
"0.7338111",
"0.7287975",
"0.7260562",
"0.7224424",
"0.7113204",
"0.70835567",
"0.70777524",
"0.70647466",
"0.70647466",
"0.70216566",
"0.70044184",
"0.6935724",
"0.68792206",
"0.6819359",
"0.68184566",
"0.6803135",
"0.6764471",
"0.6745063",
"0.67396355",
"0.6717417",
"0.6708991",
"0.6686684",
"0.66354036",
"0.6628537",
"0.6612349",
"0.66118574",
"0.6608015",
"0.65655786",
"0.6550982",
"0.6524953",
"0.6506627",
"0.65016407",
"0.6495475",
"0.64853513",
"0.6478343",
"0.6465308",
"0.64641863",
"0.64561504",
"0.64529884",
"0.64242",
"0.64196587",
"0.64153916",
"0.64149785",
"0.64149785",
"0.64066887",
"0.6403603",
"0.64003354",
"0.6399636",
"0.63936555",
"0.6392455",
"0.6363052",
"0.6360872",
"0.63566005",
"0.6354982",
"0.6351191",
"0.6351191",
"0.6332957",
"0.6320468",
"0.6302079",
"0.6302079",
"0.6302079",
"0.63016224",
"0.63008654",
"0.62915564",
"0.62859607",
"0.6277788",
"0.6277479",
"0.6268732",
"0.6266708",
"0.62655115",
"0.62627447",
"0.6260721",
"0.6247485",
"0.6232622",
"0.62320304",
"0.62226474",
"0.62224764",
"0.6219572",
"0.62131405",
"0.6208318",
"0.6207223",
"0.6197449",
"0.6195248",
"0.6188948",
"0.6186649",
"0.618585",
"0.6184817",
"0.61836946",
"0.6177539",
"0.61747336"
]
| 0.7260257 | 13 |
Get the Center y of the quadrilateral | public int getCenterY(){
return centerY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCenterY() {\n\t\t\treturn (int) origin.y + halfHeight;\n\t\t}",
"public float getCenterY()\n\t{\n\t\treturn (this.sy / 2) + this.y;\n\t}",
"public double getCenterY() { return centerY.get(); }",
"public int getYCenter() {\n return getYOrigin() + panelHeight/2;\n }",
"public double getCenterY() {\n return this.getLayoutSlot().getY() + (int) (this.getLayoutSlot().getHeight() / 2);\n }",
"public int getY() {\n return (int) center.getY();\n }",
"public int getY() {\r\n return (int) center.getY();\r\n }",
"public final float exactCenterY() {\n return (top + bottom) * 0.5f;\n }",
"public int getY() {\n return (int) this.center.getY();\n }",
"public double getCenterY()\n {\n return mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n }",
"public float getCentreY() {\n return centreY;\n }",
"public double getCenter() {\n return 0.5 * (lo + hi);\n }",
"public float getCenterY() {\n return cPosition.getY() + (float) cFishSizeY / 2;\n }",
"public double getY() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble y = bounds.getY() + (_yt * bounds.getHeight());\n\t\treturn y;\n\t}",
"public double getY() {\n return origin.getY();\n }",
"double getYPosition();",
"public double getY();",
"double getEndY();",
"public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }",
"public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"double getY();",
"public double getMaxY() { return getY() + getHeight(); }",
"public int getY() {\n\treturn baseYCoord;\n}",
"public double getEndY()\n {\n return endycoord; \n }",
"public float getY()\n {\n return getBounds().top + positionAnchor.y;\n }",
"public final int centerY() {\n return (top + bottom) >> 1;\n }",
"public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}",
"public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}",
"@Override\n\tpublic int getY() {\n\t\treturn logicY;\n\t}",
"public static int getStartYCoordinate(){\n\t\tint y = getThymioStartField_Y();\n\t\tif(y == 0){\n \t\t\n \t}else{\n \t\ty *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}",
"public int getLocationY() {\r\n\t\treturn y;\r\n\t}",
"Coordinate getMinY();",
"public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }",
"public int y() {\r\n\t\treturn yCoord;\r\n\t}",
"public double getY() { return y; }",
"public int getY() {\r\n return ix / numCols;\r\n }",
"public int getYOrigin() {\n return ic.getYOrigin();\n }",
"public int getRootY() {\n return this.mY + this.mOffsetY;\n }",
"public double getY() {\n return position.getY();\n }",
"int getY();",
"int getY();",
"int getY();",
"int getY();",
"int getY();",
"public final int getMaxY() {\n return getMinY() + getHeight();\n }",
"public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }",
"double getStartY();",
"private int getY() {\n\t\treturn 0;\r\n\t}",
"public int getY() {\n\t\treturn this.y_indice * DIM_CASE;\n\t}",
"public double getEndY() {\n\treturn v2.getY();\n }",
"public double getY() { return _height<0? _y + _height : _y; }",
"public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}",
"public double getMaximumY () {\n return minimumY + height;\n }",
"public int getY()\n {\n return yaxis;\n }",
"public int getY() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}",
"public double getyCoord() {\n\t\treturn yCoord;\n\t}",
"public int getY()\r\n {\r\n return yCoord;\r\n }",
"public final int getY()\n\t{\n\t\treturn pos.y;\n\t}",
"public void setCenterY(double y) { centerY.set(clamp(y, Y_MIN, Y_MAX)); }",
"public double getY(){\r\n return y;\r\n }",
"public int getyCoord() {\n\t\treturn yCoord;\n\t}",
"public int getY() {\n return yCoord;\n }",
"public int getY() {\r\n\t\treturn ycoord;\r\n\t}",
"public int getY() {\n return (int) Math.round(y);\n }",
"public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}",
"protected double getReferenceY() {\n if (isYAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingY()) {\n if (Double.isNaN(referenceY)) {\n referenceY = getMinY(false);\n }\n return referenceY;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }",
"float getY();",
"float getY();",
"float getY();",
"float getY();",
"float getY();",
"float getY();",
"public int getBlockY()\n\t {\n\t\t if(y >= 0.0) return (int)y;\n\t\t return -1 + (int)(y);\n\t }",
"public double getY() {\r\n\t\t return this.yCoord;\r\n\t }",
"int getBoundsY();",
"public int getY() {return y;}",
"public float getY();",
"public float getY();",
"private double centerY() {\n return (piece.boundingBox().getHeight() % 2) / 2.0;\n }",
"public double getY() {\n\t\treturn bassY;\n\t}",
"public double getY(){\n\t\treturn y;\n\t}",
"public final double getY() { return location.getY(); }",
"Point getCenter();",
"Point getCenter();",
"long getY();",
"@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}",
"public double getY(){\n return y;\n }",
"public int getY0() {\n\t\treturn this.origin.getY0();\n\t}",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public int get_Y_Coordinate()\n {\n return currentBallY;\n }"
]
| [
"0.78437275",
"0.76752174",
"0.75867707",
"0.75862",
"0.7402642",
"0.73575926",
"0.7320919",
"0.7297533",
"0.7284587",
"0.7246122",
"0.7092712",
"0.701328",
"0.6951018",
"0.6930413",
"0.6829065",
"0.6802658",
"0.67872345",
"0.67769",
"0.67292506",
"0.67285556",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67121994",
"0.67116916",
"0.66993356",
"0.6663998",
"0.6643554",
"0.6626492",
"0.6624459",
"0.6614392",
"0.65917027",
"0.6589779",
"0.6582305",
"0.6566429",
"0.6565837",
"0.6564553",
"0.6526566",
"0.65246487",
"0.65158117",
"0.6508236",
"0.65050036",
"0.64812076",
"0.64812076",
"0.64812076",
"0.64812076",
"0.64812076",
"0.6477397",
"0.6473108",
"0.64684534",
"0.6467664",
"0.64576894",
"0.6455789",
"0.645416",
"0.64519167",
"0.64483255",
"0.6430447",
"0.6430229",
"0.6423606",
"0.64141136",
"0.64115655",
"0.6395383",
"0.63915306",
"0.6391215",
"0.63906753",
"0.63902557",
"0.6387246",
"0.6386956",
"0.6380487",
"0.6380433",
"0.63803834",
"0.63803834",
"0.63803834",
"0.63803834",
"0.63803834",
"0.63803834",
"0.6378813",
"0.63758683",
"0.6366586",
"0.6360726",
"0.63572985",
"0.63572985",
"0.635521",
"0.6354817",
"0.63525987",
"0.6350921",
"0.6350782",
"0.6350782",
"0.6349731",
"0.63408107",
"0.6338788",
"0.6337172",
"0.6333505",
"0.6333505",
"0.6332794"
]
| 0.7016094 | 11 |
Get the Health of Hero | public int getMaxHealth() {
return maxHealth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHealth();",
"int getHealth();",
"public Integer getHealth();",
"Float getHealth();",
"public int getHealth() {\n return getStat(health);\n }",
"public Hero getHero();",
"public float getHealth(){\n return health.getHealth();\n }",
"public int getHealth() {\n return this.health;\n }",
"public int getHealth()\r\n {\r\n return health;\r\n }",
"public int getHealth() { return this.health; }",
"public static int getHealth()\r\n\t{\r\n\t\treturn health;\r\n\t}",
"public int getHealth()\r\n {\r\n return this.health;\r\n }",
"public double getHealth() {\r\n\t\treturn health;\r\n\t}",
"int getHealth() {\n return health;\n }",
"float getPercentHealth();",
"public Health getHealthObj() {\n return health;\n }",
"public int getHealth() {\r\n\t\treturn health;\r\n\t}",
"public int getHealth() {\n \t\treturn health;\n \t}",
"public float getHealth() {\n\t\treturn _health;\n\t}",
"public float getHealth()\n {\n return health;\n }",
"public int getHealth() {\n\t\treturn this.Health;\n\t}",
"public Hero getHero() {\n\t\treturn hero;\n\t}",
"@Override\r\n\tpublic int getHealth() {\n\t\treturn health;\r\n\t}",
"public int getHealth() {\n\t\treturn health;\n\t}",
"public int getHealth() {\n\t\treturn health;\n\t}",
"@Override\r\n\tprotected double getHealth() \r\n\t{\r\n\t\treturn this._health;\r\n\t}",
"public double getHealth(){\r\n return health;\r\n }",
"public int getHeroPower() {\n\n return heroPower;\n }",
"public int getHealthGain();",
"public double getHealth() { return health; }",
"public int getHealth(){\n return health;\n }",
"public double getHealth() {\n return classData.getHealth(level);\n }",
"public int getHealthCost();",
"public Hero getHero()\n {\n return theHero;\n }",
"public Hero createHero() {\r\n\t\t// Creates hero with the defines statistics\r\n\t\tHero hero = new Hero(getTotalHealth(), getIllusion(), getHealing(), getHaggling());\r\n\t\t\r\n\t\treturn hero;\r\n\t\t\r\n\t}",
"public int getHealth() {\n\t\treturn currentHealth;\n\t}",
"@Override\r\n\tpublic void getHealth() {\n\t\t\r\n\t}",
"public int getBaseHealth()\r\n {\r\n return mBaseHealth;\r\n }",
"public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }",
"public String getHealthinfo() {\n return healthinfo;\n }",
"public int getCurrentHealth() {\r\n return currentHealth;\r\n }",
"public int getCurrentHealth() {\n return currentHealth;\n }",
"String getHealthString() {\n return Integer.toString(health);\n }",
"public static Player getHero() {\n return hero;\n }",
"public int healHero(int i) {\n int heal;\n switch (i) {\n case 1:\n heal = rand.nextInt(4) + 1;\n HP.replenish(heal);\n return heal;\n case 2:\n heal = rand.nextInt(5) + 2;\n HP.replenish(heal);\n return heal;\n case 3:\n heal = rand.nextInt(6) + 3;\n HP.replenish(heal);\n return heal;\n case 4:\n heal = rand.nextInt(9) + 5;\n HP.replenish(heal);\n return heal;\n case 5: // healing hero to full\n HP.replenish(100);\n default:\n return 0;\n }\n }",
"@Override\n\tpublic double getHealth() {\n\t\treturn 0;\n\t}",
"public int getHP()\n\t{\n\t\tUnit u = this;\n\t\tint hp = 0;\n\t\tfor(Command c : u.race.unitcommands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t\thp += Integer.parseInt(c.args.get(0));\n\t\t\n\t\tfor(Command c : u.getSlot(\"basesprite\").commands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t{\n\t\t\t\tString arg = c.args.get(0);\n\t\t\t\tif(c.args.get(0).startsWith(\"+\"))\n\t\t\t\t\targ = arg.substring(1);\n\t\t\t\t\n\t\t\t\thp += Integer.parseInt(arg);\n\t\t\t}\n\t\t\n\t\tif(hp > 0)\n\t\t\treturn hp;\n\t\telse\n\t\t\treturn 10;\n\t}",
"public double getHp() {\n return hp;\n }",
"public float getAddHealth()\n {\n return addHealth;\n }",
"public int getHp() {\n return hp;\n }",
"public interface Health\n{\n\tpublic boolean isAlive();\n\tpublic void normalDamage( double d );\n\tpublic void energyDamage( double d );\n\tpublic void radiationDamage( double d );\n\tpublic void kill();\n\tpublic void update( double dT );\n}",
"public void setHealth(double h){\n health = h;\n }",
"public int getHealthCount() {\n return healthCount;\n }",
"@Override\r\n\t/**\r\n\t * Each enemy has a unique health and scales as the game goes along\r\n\t */\r\n\tpublic int enemyHealth() {\n\t\treturn enemyHealth;\r\n\t}",
"public Animation<TextureRegion> getHeroHurt() {\n return heroHurt;\n }",
"public int getHp() {\r\n return hp;\r\n }",
"public int getHp() {\n return hp;\n }",
"public int getMaxHealth();",
"public double getCurrentHealth() {\n return ((Growable)delegate).currentHealth;\n }",
"public HeroManager getHeroManager() {\n return map.getHeroManager();\n }",
"public boolean health(){\n return health;\n }",
"public double getPlayerFullHP();",
"private Hero createHeroObject(){\n return new Hero(\"ImageName\",\"SpiderMan\",\"Andrew Garfield\",\"6 feet 30 inches\",\"70 kg\",\n \"Webs & Strings\",\"Fast thinker\",\"Webs & Flexible\",\n \"200 km/hour\",\"Very fast\",\"Spiderman - Super Hero saves the world\",\n \"SuperHero saves the city from all the villians\");\n }",
"public int getHp(){\r\n return hp;\r\n }",
"int getHPValue();",
"long getHeroId();",
"public int getHp() \n\t{\n\t\treturn hp;\n\t}",
"public int getHP() {\n\t\treturn HP;\n\t}",
"public int getCurHealth() {\n return this.curHealth;\n }",
"public List<Troop> getHeroes()\n\t{\n\t\treturn heroes;\n\t}",
"public byte getHp(){\n return hp;\n }",
"int getBonusHP();",
"float getBonusPercentHP();",
"int getCurrentHP();",
"public HeroBody getHeroBody() {\n return heroBody;\n }",
"public int getCurHealth() {\n\t\treturn curHealth;\n\t}",
"protected float getHealthPoint() {\n\t\treturn healthPoint;\n\t}",
"public int getHP()\n\t{\n\t\treturn iHP;\n\t\t\n\t}",
"Hero createHero();",
"@Test\n\tpublic void testGetHealth() {\n\t\tassertEquals(alive.getHealth(), PeaShooter.INITIAL_HEALTH);\n\t\t\n\t\t// Test for broken code\n\t\tassertNotEquals(alive.getHealth(), -1);\n\t}",
"public void gainHealth()\n\t{\n\t\tSystem.out.println(\"1 heart gained\");\n\t}",
"public int getShipHealth()\r\n\t{\r\n\t\treturn ShipHealth;\r\n\t}",
"private String heal(Human human) {\n human.healthLvl += this.healLvl;\n return \"Doctor \" + this.getName() + \" heals \" + human.getName() + \" to \" + human.getHealthLvl() + \" health lvl\";\n }",
"private int calculateHeroDamageDone(Hero h, GenericMonster m){\n\t\t// Take into account armor, magic resist, thoughness, that kind of thing..\n\t\thDmg = h.getWeapon().calculateDamageDelt();\n\t\tcalcDef = new CalculateDefence(h.getWeapon(), m);\n\t\tint def = calcDef.getMonsterDefense();\n\t\t// Getting the defense value and type\n\t\tmResistance = calcDef.getMonsterDefType();\n\t\tmResistanceValue = calcDef.getMonsterDefValue();\n\t\treturn (hDmg - def);\n\t}",
"public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }",
"void heal(Heros h);",
"public boolean getHasCustomHealth() {\n return this.hasCustomHealth;\n }",
"private int getHP(Unit u)\n\t{\n\t\tint hp = 0;\n\t\tfor(Command c : u.race.unitcommands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t\thp += Integer.parseInt(c.args.get(0));\n\t\t\n\t\tfor(Command c : u.getSlot(\"basesprite\").commands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t{\n\t\t\t\tString arg = c.args.get(0);\n\t\t\t\tif(c.args.get(0).startsWith(\"+\"))\n\t\t\t\t\targ = arg.substring(1);\n\t\t\t\t\n\t\t\t\thp += Integer.parseInt(arg);\n\t\t\t}\n\t\t\n\t\tif(hp > 0)\n\t\t\treturn hp;\n\t\telse\n\t\t\treturn 10;\n\t}",
"public int getHumanPlayerHits() {\n return humanPlayerHits;\n }",
"public int getHp() {\n\t\treturn this.hp;\n\t}",
"public double calculateHpPercent();",
"public String getPokemonHP() {\n\t\treturn pokemon.getCurHP() + \"/\" + pokemon.getMaxHP();\n\t}",
"public String getDentalhealth() {\n\t\treturn dentalhealth;\n\t}",
"public int getHPValue() {\n return hPValue_;\n }",
"public void setHealth(double Health){\r\n health = Health;\r\n }",
"@Override\n public int getEffectiveDamage(Hero hero){\n return (hero.getDex() + hero.getBonusDex()) * 2 + this.damage;\n }",
"public float getHungerDamage();",
"public int getHealthCredits() {\r\n\t\treturn super.getHealthCredits();\r\n\t}",
"public int getMaxHealth() {\n return maxHealth;\n }",
"public String showHealthBar(String target) {\n if (target == \"player\") {\n return \"(\" + playerShipHealth + \"/\" + playerShipHealthMax + \")\";\n } else if (target == \"enemy\") {\n return \"(\" + enemyShipHealth + \"/\" + enemyShipHealthMax + \")\";\n } else{ return null; }\n }"
]
| [
"0.76385695",
"0.7619274",
"0.7568435",
"0.74596107",
"0.74347645",
"0.74223304",
"0.7373372",
"0.7359433",
"0.7304946",
"0.7304544",
"0.7296475",
"0.7281872",
"0.7260421",
"0.7255296",
"0.724878",
"0.7224892",
"0.7217426",
"0.7196919",
"0.7196137",
"0.71667165",
"0.7150959",
"0.71433854",
"0.711844",
"0.7087586",
"0.7087586",
"0.70365566",
"0.7015315",
"0.7014974",
"0.6991365",
"0.6989904",
"0.6982372",
"0.6960007",
"0.69298995",
"0.6929319",
"0.69267213",
"0.6776228",
"0.6741166",
"0.67349243",
"0.6704757",
"0.66961074",
"0.66757596",
"0.66367394",
"0.6632021",
"0.6537787",
"0.6518113",
"0.6489386",
"0.6474753",
"0.64656496",
"0.645833",
"0.6446478",
"0.639692",
"0.638893",
"0.63785505",
"0.63572884",
"0.63531095",
"0.63528955",
"0.6352454",
"0.63317835",
"0.6254805",
"0.62492",
"0.6230161",
"0.62296265",
"0.62282807",
"0.6201005",
"0.62001324",
"0.6187189",
"0.6178745",
"0.6166528",
"0.6141535",
"0.61221343",
"0.61126333",
"0.6087345",
"0.6058996",
"0.60529554",
"0.6052114",
"0.6050985",
"0.6036072",
"0.6034868",
"0.60058784",
"0.5989272",
"0.5983793",
"0.5983566",
"0.59755665",
"0.5960711",
"0.59571695",
"0.59520483",
"0.59372526",
"0.5935544",
"0.5924306",
"0.59174854",
"0.5899824",
"0.5899293",
"0.58960867",
"0.5894185",
"0.5893326",
"0.588888",
"0.5877656",
"0.58636004",
"0.58595634",
"0.58588207"
]
| 0.5862326 | 98 |
Get the current health of the Hero | public int getCurrentHealth() {
return currentHealth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHealth() {\n return getStat(health);\n }",
"public int getHealth() {\n return this.health;\n }",
"public float getHealth(){\n return health.getHealth();\n }",
"public double getHealth() {\r\n\t\treturn health;\r\n\t}",
"public float getHealth() {\n\t\treturn _health;\n\t}",
"public int getHealth() {\r\n\t\treturn health;\r\n\t}",
"public int getHealth()\r\n {\r\n return this.health;\r\n }",
"public static int getHealth()\r\n\t{\r\n\t\treturn health;\r\n\t}",
"public int getHealth()\r\n {\r\n return health;\r\n }",
"int getHealth();",
"public int getHealth();",
"public int getHealth() { return this.health; }",
"Float getHealth();",
"public Integer getHealth();",
"public int getHealth() {\n \t\treturn health;\n \t}",
"public float getHealth()\n {\n return health;\n }",
"public int getHealth() {\n\t\treturn this.Health;\n\t}",
"int getHealth() {\n return health;\n }",
"public int getHealth() {\n\t\treturn health;\n\t}",
"public int getHealth() {\n\t\treturn health;\n\t}",
"@Override\r\n\tpublic int getHealth() {\n\t\treturn health;\r\n\t}",
"public int getCurrentHealth() {\n return currentHealth;\n }",
"public int getHealth() {\n\t\treturn currentHealth;\n\t}",
"public Health getHealthObj() {\n return health;\n }",
"public double getHealth() {\n return classData.getHealth(level);\n }",
"@Override\r\n\tprotected double getHealth() \r\n\t{\r\n\t\treturn this._health;\r\n\t}",
"public double getHealth(){\r\n return health;\r\n }",
"public int getHealth(){\n return health;\n }",
"public double getHealth() { return health; }",
"float getPercentHealth();",
"public int getBaseHealth()\r\n {\r\n return mBaseHealth;\r\n }",
"public double getCurrentHealth() {\n return ((Growable)delegate).currentHealth;\n }",
"public int getHeroPower() {\n\n return heroPower;\n }",
"public String getHealthinfo() {\n return healthinfo;\n }",
"public int getHealthGain();",
"public int getCurHealth() {\n return this.curHealth;\n }",
"public Hero getHero() {\n\t\treturn hero;\n\t}",
"public int getHealthCost();",
"public float getAddHealth()\n {\n return addHealth;\n }",
"public int getCurHealth() {\n\t\treturn curHealth;\n\t}",
"@Override\r\n\tpublic void getHealth() {\n\t\t\r\n\t}",
"String getHealthString() {\n return Integer.toString(health);\n }",
"public Hero getHero();",
"public boolean health(){\n return health;\n }",
"public int getHealthCount() {\n return healthCount;\n }",
"@Override\n\tpublic double getHealth() {\n\t\treturn 0;\n\t}",
"public int getCurHealth()\n\t{\n\t\treturn this.curHealth;\n\t}",
"public double getHp() {\n return hp;\n }",
"public Hero getHero()\n {\n return theHero;\n }",
"public int getHp() {\n return hp;\n }",
"@Override\r\n\t/**\r\n\t * Each enemy has a unique health and scales as the game goes along\r\n\t */\r\n\tpublic int enemyHealth() {\n\t\treturn enemyHealth;\r\n\t}",
"public int getMaxHealth();",
"public int getHp() {\n return hp;\n }",
"public int getHp() {\r\n return hp;\r\n }",
"public int getHP()\n\t{\n\t\tUnit u = this;\n\t\tint hp = 0;\n\t\tfor(Command c : u.race.unitcommands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t\thp += Integer.parseInt(c.args.get(0));\n\t\t\n\t\tfor(Command c : u.getSlot(\"basesprite\").commands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t{\n\t\t\t\tString arg = c.args.get(0);\n\t\t\t\tif(c.args.get(0).startsWith(\"+\"))\n\t\t\t\t\targ = arg.substring(1);\n\t\t\t\t\n\t\t\t\thp += Integer.parseInt(arg);\n\t\t\t}\n\t\t\n\t\tif(hp > 0)\n\t\t\treturn hp;\n\t\telse\n\t\t\treturn 10;\n\t}",
"protected float getHealthPoint() {\n\t\treturn healthPoint;\n\t}",
"public interface Health\n{\n\tpublic boolean isAlive();\n\tpublic void normalDamage( double d );\n\tpublic void energyDamage( double d );\n\tpublic void radiationDamage( double d );\n\tpublic void kill();\n\tpublic void update( double dT );\n}",
"public void setHealth(double h){\n health = h;\n }",
"public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }",
"public double getMaxHealth() {\n return maxHealth;\n }",
"public static Player getHero() {\n return hero;\n }",
"public int getShipHealth()\r\n\t{\r\n\t\treturn ShipHealth;\r\n\t}",
"public float getMaxHealth()\n {\n return maxHealth;\n }",
"public double bossHealth(ArrayList<Enemy> currentEnemies) {\n return -1;\n }",
"public int getHp() \n\t{\n\t\treturn hp;\n\t}",
"public int getMaxHealth() {\n return maxHealth;\n }",
"public Hero createHero() {\r\n\t\t// Creates hero with the defines statistics\r\n\t\tHero hero = new Hero(getTotalHealth(), getIllusion(), getHealing(), getHaggling());\r\n\t\t\r\n\t\treturn hero;\r\n\t\t\r\n\t}",
"public int getHp(){\r\n return hp;\r\n }",
"public int getMaxHealth() {\r\n return maxHealth;\r\n }",
"public float getInitialHealth() {\n\t\treturn _initialHealth;\n\t}",
"public double getPlayerFullHP();",
"int getCurrentHP();",
"public int getMaxHealth() {\n return this.maxHealth;\n }",
"public Animation<TextureRegion> getHeroHurt() {\n return heroHurt;\n }",
"public int getHP() {\n\t\treturn HP;\n\t}",
"@Override\n public int getEffectiveDamage(Hero hero){\n return (hero.getDex() + hero.getBonusDex()) * 2 + this.damage;\n }",
"public int healHero(int i) {\n int heal;\n switch (i) {\n case 1:\n heal = rand.nextInt(4) + 1;\n HP.replenish(heal);\n return heal;\n case 2:\n heal = rand.nextInt(5) + 2;\n HP.replenish(heal);\n return heal;\n case 3:\n heal = rand.nextInt(6) + 3;\n HP.replenish(heal);\n return heal;\n case 4:\n heal = rand.nextInt(9) + 5;\n HP.replenish(heal);\n return heal;\n case 5: // healing hero to full\n HP.replenish(100);\n default:\n return 0;\n }\n }",
"@Test\n\tpublic void testGetHealth() {\n\t\tassertEquals(alive.getHealth(), PeaShooter.INITIAL_HEALTH);\n\t\t\n\t\t// Test for broken code\n\t\tassertNotEquals(alive.getHealth(), -1);\n\t}",
"public String getDentalhealth() {\n\t\treturn dentalhealth;\n\t}",
"public double getHealthRelative() {\n\t\treturn getHealth() / (double) getMaxHealth();\n\t}",
"public int getHp() {\n\t\treturn this.hp;\n\t}",
"public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }",
"public int getHealthCredits() {\r\n\t\treturn super.getHealthCredits();\r\n\t}",
"int getHPValue();",
"public float getHungerDamage();",
"public int getBonusHP() {\n return bonusHP_;\n }",
"public int getHP()\n\t{\n\t\treturn iHP;\n\t\t\n\t}",
"public byte getHp(){\n return hp;\n }",
"public boolean getHasCustomHealth() {\n return this.hasCustomHealth;\n }",
"public void setHealth(double Health){\r\n health = Health;\r\n }",
"public int getBonusHP() {\n return bonusHP_;\n }",
"public int getMaxHealth()\r\n\t{\r\n\t\treturn MaxHealth;\r\n\t}",
"public int getCurrentHP() {\n return currentHP;\n }",
"float getBonusPercentHP();",
"public float getBonusPercentHP() {\n return bonusPercentHP_;\n }",
"int getBonusHP();",
"public Integer getHealthPoints() {\n return healthPoints;\n }",
"public int getBaseMaxHealth()\r\n\t{\treturn this.baseMaxHealth;\t}",
"private int calculateHeroDamageDone(Hero h, GenericMonster m){\n\t\t// Take into account armor, magic resist, thoughness, that kind of thing..\n\t\thDmg = h.getWeapon().calculateDamageDelt();\n\t\tcalcDef = new CalculateDefence(h.getWeapon(), m);\n\t\tint def = calcDef.getMonsterDefense();\n\t\t// Getting the defense value and type\n\t\tmResistance = calcDef.getMonsterDefType();\n\t\tmResistanceValue = calcDef.getMonsterDefValue();\n\t\treturn (hDmg - def);\n\t}",
"void displayHealth(int health){\n\t\r\n\t\thealth = health + this.health + super.health + a.health;\r\n\t\tSystem.out.println(health);\r\n\t}"
]
| [
"0.8004589",
"0.79396236",
"0.7931295",
"0.78943723",
"0.7839131",
"0.7823638",
"0.7813343",
"0.7807663",
"0.7800061",
"0.77974534",
"0.77973664",
"0.77670485",
"0.7763314",
"0.7759424",
"0.7754352",
"0.7754318",
"0.77453876",
"0.77379197",
"0.77311546",
"0.77311546",
"0.7692766",
"0.76220506",
"0.7619647",
"0.75884414",
"0.75504696",
"0.7495819",
"0.7466162",
"0.7440246",
"0.73936754",
"0.73717695",
"0.72618204",
"0.7198959",
"0.7137035",
"0.71307105",
"0.7062632",
"0.7051741",
"0.7026441",
"0.70246947",
"0.6973037",
"0.69426584",
"0.6935073",
"0.69160616",
"0.68879735",
"0.6879369",
"0.6858977",
"0.684261",
"0.6778583",
"0.6726281",
"0.671378",
"0.6703229",
"0.6683945",
"0.6654989",
"0.66350996",
"0.6619938",
"0.6608313",
"0.6584777",
"0.6538908",
"0.65362936",
"0.6535234",
"0.6501802",
"0.6488255",
"0.6458028",
"0.64552736",
"0.64502156",
"0.6448545",
"0.644577",
"0.6444823",
"0.6437596",
"0.64303166",
"0.6429797",
"0.6426769",
"0.64263797",
"0.64151317",
"0.640694",
"0.6396157",
"0.63931304",
"0.638144",
"0.6379708",
"0.63677734",
"0.6299268",
"0.6291413",
"0.6290394",
"0.62842095",
"0.6279992",
"0.6247771",
"0.62280965",
"0.6222794",
"0.6219307",
"0.6202994",
"0.6191607",
"0.6182381",
"0.61741734",
"0.61717004",
"0.6171386",
"0.61683506",
"0.61665726",
"0.61549324",
"0.6146313",
"0.6126297",
"0.6125754"
]
| 0.76274234 | 21 |
Initialize the contents of the frame. | private void initialize() {
frame = new JFrame();
frame.getContentPane().setBackground(new Color(64, 64, 64));
frame.getContentPane().setForeground(Color.WHITE);
frame.setBounds(100, 100, 450, 401);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
textField_1 = new JTextField();
textField_1.setBackground(Color.LIGHT_GRAY);
textField_1.setFont(new Font("Tahoma", Font.BOLD, 11));
textField_1.setBounds(42, 11, 352, 49);
frame.getContentPane().add(textField_1);
textField_1.setColumns(10);
JButton button = new JButton("1");
button.setBackground(Color.LIGHT_GRAY);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button.getText();
textField_1.setText(Number);
}
});
button.setFont(new Font("Tahoma", Font.BOLD, 13));
button.setBounds(40, 71, 52, 34);
frame.getContentPane().add(button);
JButton button_1 = new JButton("2");
button_1.setBackground(Color.LIGHT_GRAY);
button_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_1.getText();
textField_1.setText(Number);
}
});
button_1.setFont(new Font("Tahoma", Font.BOLD, 13));
button_1.setBounds(141, 71, 50, 34);
frame.getContentPane().add(button_1);
JButton button_2 = new JButton("3");
button_2.setBackground(Color.LIGHT_GRAY);
button_2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_2.getText();
textField_1.setText(Number);
}
});
button_2.setFont(new Font("Tahoma", Font.BOLD, 13));
button_2.setBounds(246, 71, 50, 34);
frame.getContentPane().add(button_2);
JButton button_3 = new JButton("+");
button_3.setBackground(Color.CYAN);
button_3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
num1=Double.parseDouble(textField_1.getText());
textField_1.setText("");
op="+";
}
});
button_3.setForeground(Color.BLUE);
button_3.setFont(new Font("Tahoma", Font.BOLD, 13));
button_3.setBounds(343, 71, 50, 34);
frame.getContentPane().add(button_3);
JButton button_4 = new JButton("4");
button_4.setBackground(Color.LIGHT_GRAY);
button_4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_4.getText();
textField_1.setText(Number);
}
});
button_4.setFont(new Font("Tahoma", Font.BOLD, 13));
button_4.setBounds(40, 129, 50, 34);
frame.getContentPane().add(button_4);
JButton button_5 = new JButton("5");
button_5.setBackground(Color.LIGHT_GRAY);
button_5.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_5.getText();
textField_1.setText(Number);
}
});
button_5.setFont(new Font("Tahoma", Font.BOLD, 13));
button_5.setBounds(141, 129, 50, 34);
frame.getContentPane().add(button_5);
JButton button_6 = new JButton("6");
button_6.setBackground(Color.LIGHT_GRAY);
button_6.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_6.getText();
textField_1.setText(Number);
}
});
button_6.setFont(new Font("Tahoma", Font.BOLD, 13));
button_6.setBounds(246, 129, 50, 34);
frame.getContentPane().add(button_6);
JButton button_7 = new JButton("-");
button_7.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
num1=Double.parseDouble(textField_1.getText());
textField_1.setText("");
op="-";
}
});
button_7.setBackground(Color.CYAN);
button_7.setForeground(Color.BLUE);
button_7.setFont(new Font("Tahoma", Font.BOLD, 13));
button_7.setBounds(343, 129, 51, 34);
frame.getContentPane().add(button_7);
JButton button_8 = new JButton("7");
button_8.setBackground(Color.LIGHT_GRAY);
button_8.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_8.getText();
textField_1.setText(Number);
}
});
button_8.setFont(new Font("Tahoma", Font.BOLD, 13));
button_8.setBounds(40, 185, 50, 32);
frame.getContentPane().add(button_8);
JButton button_9 = new JButton("8");
button_9.setBackground(Color.LIGHT_GRAY);
button_9.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_9.getText();
textField_1.setText(Number);
}
});
button_9.setFont(new Font("Tahoma", Font.BOLD, 13));
button_9.setBounds(141, 185, 50, 32);
frame.getContentPane().add(button_9);
JButton button_10 = new JButton("9");
button_10.setBackground(Color.LIGHT_GRAY);
button_10.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_10.getText();
textField_1.setText(Number);
}
});
button_10.setFont(new Font("Tahoma", Font.BOLD, 13));
button_10.setBounds(246, 185, 50, 32);
frame.getContentPane().add(button_10);
JButton button_11 = new JButton("*");
button_11.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
num1=Double.parseDouble(textField_1.getText());
textField_1.setText("");
op="*";
}
});
button_11.setBackground(Color.CYAN);
button_11.setForeground(Color.BLUE);
button_11.setFont(new Font("Tahoma", Font.BOLD, 13));
button_11.setBounds(343, 185, 51, 32);
frame.getContentPane().add(button_11);
JButton button_12 = new JButton("0");
button_12.setBackground(Color.LIGHT_GRAY);
button_12.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String Number=textField_1.getText()+button_12.getText();
textField_1.setText(Number);
}
});
button_12.setFont(new Font("Tahoma", Font.BOLD, 13));
button_12.setBounds(40, 239, 50, 34);
frame.getContentPane().add(button_12);
JButton button_13 = new JButton(".");
button_13.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
});
button_13.setBackground(Color.LIGHT_GRAY);
button_13.setFont(new Font("Tahoma", Font.BOLD, 13));
button_13.setBounds(141, 239, 50, 34);
frame.getContentPane().add(button_13);
JButton button_14 = new JButton("=");
button_14.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String ans;
num2=Double.parseDouble(textField_1.getText());
if(op=="+") {
result=num1 + num2;
ans=String.format("%.2f",result);
textField_1.setText(ans);
}
if(op=="-") {
result=num1 - num2;
ans=String.format("%.2f",result);
textField_1.setText(ans);
}
if(op=="*") {
result=num1 * num2;
ans=String.format("%.2f",result);
textField_1.setText(ans);
}
if(op=="/") {
result=num1 / num2;
ans=String.format("%.2f",result);
textField_1.setText(ans);
}
if(op=="%") {
result=num1 % num2;
ans=String.format("%.2f",result);
textField_1.setText(ans);
}
}
});
button_14.setBackground(Color.LIGHT_GRAY);
button_14.setForeground(Color.RED);
button_14.setFont(new Font("Tahoma", Font.BOLD, 13));
button_14.setBounds(246, 239, 50, 34);
frame.getContentPane().add(button_14);
JButton button_15 = new JButton("/");
button_15.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
num1=Double.parseDouble(textField_1.getText());
textField_1.setText("");
op="/";
}
});
button_15.setBackground(Color.CYAN);
button_15.setForeground(Color.BLUE);
button_15.setFont(new Font("Tahoma", Font.BOLD, 13));
button_15.setBounds(344, 240, 50, 33);
frame.getContentPane().add(button_15);
JButton btnC = new JButton("C");
btnC.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
textField_1.setText(null);
}
});
btnC.setBackground(new Color(192, 192, 192));
btnC.setForeground(new Color(0, 0, 255));
btnC.setFont(new Font("Tahoma", Font.BOLD, 13));
btnC.setBounds(40, 296, 50, 32);
frame.getContentPane().add(btnC);
JButton btnB = new JButton("B");
btnB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String b=null;
if(textField_1.getText().length()>0)
{
StringBuilder strB=new StringBuilder(textField_1.getText());
strB.deleteCharAt(textField_1.getText().length()-1);
b=strB.toString();
textField_1.setText(b);
}
}
});
btnB.setBackground(Color.LIGHT_GRAY);
btnB.setFont(new Font("Tahoma", Font.BOLD, 13));
btnB.setForeground(Color.BLUE);
btnB.setBounds(141, 296, 50, 32);
frame.getContentPane().add(btnB);
JButton button_16 = new JButton("%");
button_16.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
num1=Double.parseDouble(textField_1.getText());
textField_1.setText("");
op="%";
}
});
button_16.setBackground(Color.CYAN);
button_16.setForeground(Color.BLUE);
button_16.setFont(new Font("Tahoma", Font.BOLD, 13));
button_16.setBounds(344, 296, 50, 32);
frame.getContentPane().add(button_16);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"protected HFrame(){\n\t\tinit();\n\t}",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initFrame() {\n setLayout(new BorderLayout());\n }",
"private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}",
"public FrameControl() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"public MainFrame() {\n initComponents();\n \n }",
"private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}",
"public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"public Mainframe() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }",
"private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}",
"public mainframe() {\n initComponents();\n }",
"public FrameDesign() {\n initComponents();\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public JGSFrame() {\n\tsuper();\n\tinitialize();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }",
"private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}",
"private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"public PilaFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}",
"StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public SerialCommFrame()\n {\n super();\n initialize();\n }",
"public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public BaseFrame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"public MercadoFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}",
"public holdersframe() {\n initComponents();\n }",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"public addStFrame() {\n initComponents();\n }",
"public JFrame() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}",
"public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}",
"public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}"
]
| [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.7107974",
"0.7100368",
"0.7092515",
"0.708178",
"0.70652425",
"0.70630395",
"0.70621413",
"0.7060283",
"0.70517516",
"0.7043992",
"0.6996167",
"0.6978269",
"0.6971387",
"0.6956391",
"0.6938475",
"0.6929829",
"0.6929629",
"0.69251114",
"0.6921989",
"0.6920365",
"0.6914633",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.69020075",
"0.68911743",
"0.6886017",
"0.6873457",
"0.6870402",
"0.68686837",
"0.68669385",
"0.686311",
"0.68616706",
"0.68552315",
"0.68537515",
"0.681551",
"0.68141145",
"0.68094325",
"0.67992085",
"0.67930394",
"0.6782133",
"0.6765297",
"0.6748138",
"0.6731745",
"0.6716807",
"0.6711878",
"0.6706194",
"0.6697453",
"0.6692831",
"0.66927665",
"0.6689213",
"0.66724384",
"0.66606426",
"0.664954",
"0.6642464",
"0.6640775",
"0.6638488",
"0.663824",
"0.663545",
"0.66264987",
"0.6625419",
"0.6611392",
"0.6608291",
"0.6600817",
"0.66005784",
"0.6591052",
"0.65869486",
"0.65862876",
"0.65753394",
"0.6575285",
"0.6570335",
"0.655961"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> update(Trade obj) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> getById(Integer id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> delete(Integer id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> getTrades(Trade trade) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static int registerUser(Register reg) throws SQLException {
int i =0;
Connection con = connect();
System.out.println("Reached DAOMvc"+reg.getLastname());
String sql = "insert into registeruser"+
"(userid,firstname,lastname,age,address,username,password,role,emailid)"+
" values(userid_seq.nextval,?,?,?,?,?,?,?,?)";
PreparedStatement stmt = con.prepareStatement(sql);
stmt.setString(1,reg.getFirstname());
stmt.setString(2,reg.getLastname());
stmt.setInt(3,reg.getAge());
stmt.setString(4,reg.getAddress());
stmt.setString(5,reg.getUsername());
stmt.setString(6,reg.getPassword());
stmt.setInt(7,reg.getRole());
stmt.setString(8,reg.getEmail());
i=stmt.executeUpdate();
return i;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | private static Connection connect() throws SQLException {
Connection con = null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "1234");
return con;
}
catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return con;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
dupCount obtd from boolean summary xml file | Element() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@XmlElement(\"IsRepeated\")\n boolean isRepeated();",
"private static void populateValues(String name) throws Exception {\n\t\tDocument dom = null;\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\t// Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"populateValues: Boolean Summary XML location passed: \"\n\t\t\t\t\t\t\t+ name);\n\t\t\t// parse using builder to get DOM representation of the XML file\n\t\t\tdom = db.parse(name);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"populateValues: Error: \");\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\t// get a nodelist of 'rule' elements\n\t\tNodeList nl = dom.getElementsByTagName(RULE_TAG);\n\t\tSystem.out.println(\"populateValues:Rule Node Size: \" + nl.getLength());\n\t\t\n\t\tNode parnode;\n\n\t\tif (null != nl && nl.getLength() > 0) {\n\t\t\tfor (int rulecount = 0; rulecount < nl.getLength(); rulecount++) {\n\t\t\t\t// get each of these elements\n\t\t\t\tparnode = (Node) nl.item(rulecount);\n\n\t\t\t\tSystem.out.println(\"populateValues: Rule Node Name: \" + parnode.getNodeName());\n\t\t\t\t\n\t\t\t\tString expression = null;\n\t\t\t\tString docCount = null;\n\t\t\t\tString dupCount = null;\t\t\t\t\n\n\t\t\t\t//skip the node with <rule hash=\"0\">\n\t\t\t\t NamedNodeMap attributes = parnode.getAttributes();\n\t\t\t Node hashValue = attributes.getNamedItem(ATTRIBUTE);\n\t\t\t if(hashValue.getNodeValue().equals(\"0\")){\n\t\t\t \t continue;\n\t\t\t }\n\n\n\t\t\t\t//fetch the childnodes\n\t\t\t\tNodeList childlist = parnode.getChildNodes();\n\t\t\t\tNode child = null;\n\n\t\t\t\tfor(int childcnt = 0; childcnt < childlist.getLength(); childcnt++){\n\t\t\t\t\tchild = (Node) childlist.item(childcnt);\n\t\t\t\t\tif(child.getNodeName().equalsIgnoreCase(EXPRESSION_TAG)){\n\t\t\t\t\t\texpression = child.getTextContent();\n\t\t\t\t\t}\n\t\t\t\t\tif(child.getNodeName().equalsIgnoreCase(DOCCOUNT_TAG)){\n\t\t\t\t\t\tdocCount = child.getTextContent();\n\t\t\t\t\t}\n\t\t\t\t\tif(child.getNodeName().equalsIgnoreCase(DUPCOUNT_TAG)){\n\t\t\t\t\t\tdupCount = child.getTextContent();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\n\t\t\t\tSystem.out.println(\"populateValues: Expression: \" + expression + \" docCount: \" + docCount + \" dupCount: \" + dupCount);\n\n\t\t\t\t//populate in Map\n\t\t\t\thitterms.put(expression, new Element(Integer.parseInt(docCount), Integer.parseInt(dupCount)));\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"populateValues: Added \" + hitterms.size() + \" hit entries to hashmap\");\n\n\t}",
"@Test\n void shouldNotSkipDuplicates() {\n Report report = parse(\"pit-with-duplicates.xml\");\n\n assertThat(report).hasSize(22);\n }",
"public int countTrueCheckBox() {\r\n\t\tint ret = 0;\r\n\t\tif(attributs != null) {\r\n\t\t\tfor(AttributDescribe item : attributs) {\r\n\t\t\t\tif(item.getPk() == true) {\r\n\t\t\t\t\tret++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"int countByExample(XdSpxxExample example);",
"boolean hasCount();",
"int getStatMetadataCount();",
"void countTagStatistics(){\t\n\t\thtmlParsed.traverse(new NodeVisitor() {\n\t\t\tdouble count = 0.;\n\t\t\tString tagName = \"\";\n\t\t public void head(Node node, int depth) {\n\t\t \tif (node instanceof Element) {\n\t\t \t\ttagName = ((Element) node).tagName();\n\t\t \t\tif(countTags.containsKey(tagName)){\n\t\t \t\t\tcount = countTags.get(tagName) + 1.;\n\t\t \t\t\tcountTags.put(tagName, count);\n\t\t \t\t}\n\t\t \t\telse if(tagName.matches(\"^[a-zA-Z:]+\"))\n\t\t \t\t\t\tcountTags.put(tagName, 1.);\n\t\t \t}\n\t\t }\n\t\t public void tail(Node node, int depth) {\n\t\t }\n\t\t});\t\n\t\t\t\n\t}",
"@org.junit.Test\n public void constrCompelemAdjtext2() {\n final XQuery query = new XQuery(\n \"count((element elem {1, //text(), 'string'})/text())\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertEq(\"1\")\n );\n }",
"public boolean haveCount () ;",
"public int countByTodoBooleanStat(boolean todoBooleanStat);",
"public void addCount() {\n \t\tdupCount++;\n \t}",
"@Test\n\tpublic void testMultipleCountChanges() throws ParserConfigurationException, SAXException, IOException, DrillXMLException {\n\t\tFile testFile = new File(path + \"8-multiple-count-changes.pnd\");\n\t\t\n\t\t//create the xml parser\n\t\tXMLParser parser = new XMLParser();\n\t\t\n\t\t//parse the file\n\t\tDrillInfo drillInfo = parser.load(testFile);\n\t\t\n\t\t//test\n\t\tDrillInfo expectedDrillInfo = new DrillInfo();\n\t\texpectedDrillInfo.getCountsHashMap().put(10, 4);\n\t\texpectedDrillInfo.getCountsHashMap().put(20, 5);\n\t\texpectedDrillInfo.getCountsHashMap().put(30, 6);\n\t\tAssert.assertEquals(expectedDrillInfo, drillInfo);\n\t}",
"int getNumberOfDetectedDuplicates();",
"@Test\n\tpublic void testOneCountChange() throws ParserConfigurationException, SAXException, IOException, DrillXMLException {\n\t\tFile testFile = new File(path + \"7-one-count-change.pnd\");\n\t\t\n\t\t//create the xml parser\n\t\tXMLParser parser = new XMLParser();\n\t\t\n\t\t//parse the file\n\t\tDrillInfo drillInfo = parser.load(testFile);\n\t\t\n\t\t//test\n\t\tDrillInfo expectedDrillInfo = new DrillInfo();\n\t\texpectedDrillInfo.getCountsHashMap().put(10, 4);\n\t\tAssert.assertEquals(expectedDrillInfo, drillInfo);\n\t}",
"int getClassIdXyPairsMapCount();",
"public Integer trueCounter(List<Boolean> list) {\n\t\tint temp=0;\n\t\tfor (int i=0;i<list.size();i++){\n\t\t\tif (list.get(i)==true)\t{\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\treturn temp;\n\t}",
"org.apache.xmlbeans.XmlInt xgetNumberOfResults();",
"boolean hasTotalElements();",
"int getNodeStatusListCount();",
"org.apache.xmlbeans.XmlString xgetSummary();",
"IParser setSummaryMode(boolean theSummaryMode);",
"String aggrConfigInfoCount(int size, boolean isIn);",
"int getMetadataCount();",
"int getMetadataCount();",
"int getMetadataCount();",
"int getMetadataCount();",
"org.apache.xmlbeans.XmlBoolean xgetProbables();",
"@XmlAttribute\r\n public Integer getCount() {\r\n return count;\r\n }",
"int docValueCount() throws IOException;",
"int getSeenInfoCount();",
"boolean isCounting();",
"int countByExample(CfgPrintTemplateAttrExample example);",
"int getEventMetadataCount();",
"int countFeatures();",
"int countFeatures();",
"int countByExample(GrpTagExample example);",
"int getNodeCount();",
"int getNodeCount();",
"int getTagCount();",
"int countByExample(ConfigDataExample example);",
"public Long getElementCount();",
"int getAttributesCount();",
"int getAttributesCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int countTypedFeatures();",
"int countByExample(UploadStateRegDTOExample example);",
"Boolean getIsSummary();",
"int getSrcIdCount();",
"@SuppressWarnings({ \"unchecked\", \"static-access\" })\r\n\tpublic boolean checkArticleIsDuplicated(){\r\n\t\r\n\t\tnum_DupInDBLP = 0;\r\n\t\t\t\t\r\n\t\tCheckExist check = new CheckExist();\r\n\t\t\r\n\t\tnumberArray = (ArrayList<Integer>) check.CheckTitleSignaturePublications(dbsaPublicationCheckList).clone();\r\n\t\tduplicateNumber = numberArray.size();\r\n\t\t\r\n\t\tduplicationArtilce = false;\r\n\t\tif(numberArray.size() > 0){\r\n\t\t\tfor(int i = 0; i < numberArray.size(); i++)\r\n\t\t\t{\t\r\n\t\t\t\tmodel.setValueAt(true, numberArray.get(i), 8);\r\n\t\t\t\tresultsJTable.addRowToPaint(numberArray.get(i), Color.red);\r\n\t\t\t\tduplicationArtilce = true;\r\n\t\t\t\t\r\n\t\t\t\tnum_DupInDBLP ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgetFetcherInfo();\r\n\t\t//System.out.println(num_DupInDBLP);\r\n\t\tcheckDuplicateJButton.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tDBSAApplication.statisticPanel.updateStatistic(num_Total);\r\n\t\treturn duplicationArtilce;\r\n\t}",
"int countByExample(RepStuLearningExample example);",
"protected int getPostiveOnes() {\n Rating[] ratingArray = this.ratings;\n int posOneCount = 0;\n for(int i = 0; i < ratingArray.length; i++) {\n if (ratingArray[i] != null) {\n if(ratingArray[i].getScore() == 1) posOneCount++; \n }\n }\n return posOneCount;\n }",
"int getDataScansCount();",
"@Override\n\tpublic String toString() {\n\t\treturn this.element +\" \"+duplicateCount+\" \"+probeCount;\n\t}",
"public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}",
"public ElementDefinitionDt setIsSummary( boolean theBoolean) {\n\t\tmyIsSummary = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}",
"private void addAnalysisSummary()\r\n throws XMLStreamException\r\n {\r\n SimpleStartElement start;\r\n SimpleEndElement end;\r\n\r\n addNewline();\r\n\r\n start = new SimpleStartElement(\"analysis_summary\");\r\n start.addAttribute(\"analysis\", mimicXpress ? \"xpress\" : \"q3\");\r\n start.addAttribute(\"time\", now);\r\n// start.addAttribute(\"xmlns\",\"\");\r\n add(start);\r\n\r\n addNewline();\r\n\r\n String tagName = mimicXpress ? \"xpressratio_summary\" : \"q3ratio_summary\";\r\n start = new SimpleStartElement(tagName);\r\n start.addAttribute(\"version\", mimicXpress ? \"0.0\" : Q3.VERSION);\r\n start.addAttribute(\"author\", Q3.AUTHOR);\r\n\r\n // ???? Must ensure format of multiples is compatible with TPP\r\n StringBuilder residues = new StringBuilder();\r\n StringBuilder specs = new StringBuilder();\r\n boolean first = true;\r\n for (IsotopicLabel label : labels.values())\r\n {\r\n residues.append(label.getResidue());\r\n if (first)\r\n first = false;\r\n else\r\n specs.append(' ');\r\n specs.append(label.getResidue());\r\n specs.append(',');\r\n specs.append(String.format(\"%f\", label.getMassDiff()));\r\n }\r\n\r\n start.addAttribute(\"labeled_residues\", residues.toString());\r\n start.addAttribute(\"massdiff\", specs.toString());\r\n\r\n start.addAttribute(\"massTol\", mimicXpress ? \"0.75\" : \".1\");\r\n\r\n if (mimicXpress)\r\n {\r\n start.addAttribute(\"same_scan_range\", \"Y\");\r\n start.addAttribute(\"xpress_light\", \"0\");\r\n }\r\n\r\n add(start);\r\n\r\n end = new SimpleEndElement(tagName);\r\n add(end);\r\n\r\n addNewline();\r\n\r\n end = new SimpleEndElement(\"analysis_summary\");\r\n add(end);\r\n }",
"int getStateValuesCount();",
"public Boolean getIsSummary() { \n\t\treturn getIsSummaryElement().getValue();\n\t}",
"@Override\n\tpublic Map<Label, Integer> getDocumentsCountPerLabel(List<Instance> trainData) {\n\t\t// TODO : Implement\n\t\tint pSize = 0;\n\t\tint nSize = 0;\n\t\tfor(Instance data: trainData) {\n\t\t\tif(data.label.equals(Label.POSITIVE))\n\t\t\t\tpSize++;\n\t\t\telse\n\t\t\t\tnSize++;\n\t\t}\n\t\t\n\t\tdocCount.put(Label.POSITIVE, pSize);\n\t\tdocCount.put(Label.NEGATIVE, nSize);\n\t\treturn docCount;\n\t}",
"int cardinality();",
"@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(18)\r\n int count();",
"int countByExample(BasicInfoPrecursorProcessTypeExample example);",
"int countByExample(CfgSearchRecommendExample example);",
"void updateShowCounts() {\n /*\n * once we have passed the threshold, we don't need to keep checking the\n * number of rows in tsk_files\n */\n if (showCounts) {\n try {\n if (skCase.countFilesWhere(\"1=1\") > NODE_COUNT_FILE_TABLE_THRESHOLD) { //NON-NLS\n showCounts = false;\n }\n } catch (TskCoreException tskCoreException) {\n showCounts = false;\n logger.log(Level.SEVERE, \"Error counting files.\", tskCoreException); //NON-NLS\n }\n }\n }",
"public Map<String, Integer> valueCounts(ArrayList<ArrayList<String>> datas, int attrIndex) { \n Map<String, Integer> valueCount = new HashMap<String, Integer>(); \n String c = \"\"; \n ArrayList<String> tuple = null; \n for (int i = 0; i < datas.size(); i++) { \n tuple = datas.get(i); \n c = tuple.get(attrIndex); \n if (valueCount.containsKey(c)) { \n valueCount.put(c, valueCount.get(c) + 1); \n } else { \n valueCount.put(c, 1); \n } \n } \n return valueCount; \n }",
"int countObjectFlowStates();",
"int nodeCount();",
"int getAoisCount();",
"int getNewsindentifydetailCount();",
"public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}",
"int countByExample(AvwFileprocessExample example);",
"List<String> getEntityDupListFromXMLDoc(Document xmlDoc, boolean includeDupTaxID);",
"public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }",
"public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}",
"int countByExample(TagDataExample example);",
"public int distinctCount(){\r\n int distinct = 0;\r\n //Loop through each key in words\r\n for(String key: words.keySet()){\r\n //If they appear in the file\r\n if(words.get(key) != 0){\r\n //count it\r\n distinct++;\r\n }\r\n }\r\n return distinct;\r\n\t}",
"public int countOfOnes() {\r\n\t\tbyte one = (byte) 1;\r\n\t\tint count = 0;\r\n\r\n\t\tfor (byte b : values) {\r\n\t\t\tif (b == one) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}",
"long countByExample(NjProductTaticsRelationExample example);",
"public boolean LoadBooleanStatusCount(String Query) {\n try {\n int havcount = 0;\n\n\n SQLiteDatabase database = BaseConfig.GetDb();\n Cursor c = database.rawQuery(Query, null);\n\n if (c != null) {\n if (c.moveToFirst()) {\n do {\n String Status = c.getString(c.getColumnIndex(\"dstatus\"));\n\n if (Status.split(\":\")[1].trim().equalsIgnoreCase(BaseConfig.template_name)) {\n havcount++;\n }\n\n } while (c.moveToNext());\n }\n }\n\n c.close();\n database.close();\n\n return havcount > 0;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n }",
"int getLabelAnnotationsCount();",
"int getLabelAnnotationsCount();",
"public BooleanDt getIsSummaryElement() { \n\t\tif (myIsSummary == null) {\n\t\t\tmyIsSummary = new BooleanDt();\n\t\t}\n\t\treturn myIsSummary;\n\t}",
"public XPath getCount()\n {\n return m_countMatchPattern;\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp\", line = 116,\n FQN=\"llvm::ProfileSummaryInfo::isHotCount\", NM=\"_ZN4llvm18ProfileSummaryInfo10isHotCountEy\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp -nm=_ZN4llvm18ProfileSummaryInfo10isHotCountEy\")\n //</editor-fold>\n public boolean isHotCount(long/*uint64_t*/ C) {\n if (!HotCountThreshold.$bool()) {\n computeThresholds();\n }\n return HotCountThreshold.$bool() && $greatereq_ulong_ullong(C, HotCountThreshold.getValue());\n }",
"org.apache.xmlbeans.XmlInteger xgetNumberOfInstallments();",
"int getShotAnnotationsCount();",
"int getShotAnnotationsCount();",
"int countSelective(MemberAdvisoryComment record);",
"int getInterestsCount();",
"boolean hasCounter();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getMetaInformationCount();",
"int getMetaInformationCount();",
"int getMetaInformationCount();"
]
| [
"0.5778947",
"0.54497087",
"0.5359916",
"0.5346691",
"0.53322756",
"0.52927846",
"0.5280182",
"0.527333",
"0.5256673",
"0.5233314",
"0.51289374",
"0.51264066",
"0.51041514",
"0.5081641",
"0.5069292",
"0.5047421",
"0.5045646",
"0.49846935",
"0.49794987",
"0.49448538",
"0.49336556",
"0.4915996",
"0.49102914",
"0.48623633",
"0.48623633",
"0.48623633",
"0.48623633",
"0.48598558",
"0.48575142",
"0.4847096",
"0.48186922",
"0.48069507",
"0.48049235",
"0.4798812",
"0.47981194",
"0.47981194",
"0.47951895",
"0.47774607",
"0.47774607",
"0.47769934",
"0.47638896",
"0.47584498",
"0.47572124",
"0.47572124",
"0.47486445",
"0.47486445",
"0.47486445",
"0.47429463",
"0.47354293",
"0.47315535",
"0.47276133",
"0.47268215",
"0.47124186",
"0.46923935",
"0.4680634",
"0.4677418",
"0.46697035",
"0.46692398",
"0.46594125",
"0.4658123",
"0.4656961",
"0.46549785",
"0.46533912",
"0.4637128",
"0.46358988",
"0.46341735",
"0.46331903",
"0.46331376",
"0.46318388",
"0.4626586",
"0.4611235",
"0.4602448",
"0.45996377",
"0.4596246",
"0.45911556",
"0.45874646",
"0.45835295",
"0.45715535",
"0.45706862",
"0.45690477",
"0.4567797",
"0.45666367",
"0.45554936",
"0.45554936",
"0.45523256",
"0.45432293",
"0.45399255",
"0.4536026",
"0.45279405",
"0.45279405",
"0.4521626",
"0.4521412",
"0.45194843",
"0.45172703",
"0.45172703",
"0.45172703",
"0.45172703",
"0.45172703",
"0.4514937",
"0.4514937",
"0.4514937"
]
| 0.0 | -1 |
function to populate hit entries into map | private static void populateValues(String name) throws Exception {
Document dom = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
// Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
System.out
.println("populateValues: Boolean Summary XML location passed: "
+ name);
// parse using builder to get DOM representation of the XML file
dom = db.parse(name);
} catch (Exception ex) {
System.out.println("populateValues: Error: ");
ex.printStackTrace();
}
// get a nodelist of 'rule' elements
NodeList nl = dom.getElementsByTagName(RULE_TAG);
System.out.println("populateValues:Rule Node Size: " + nl.getLength());
Node parnode;
if (null != nl && nl.getLength() > 0) {
for (int rulecount = 0; rulecount < nl.getLength(); rulecount++) {
// get each of these elements
parnode = (Node) nl.item(rulecount);
System.out.println("populateValues: Rule Node Name: " + parnode.getNodeName());
String expression = null;
String docCount = null;
String dupCount = null;
//skip the node with <rule hash="0">
NamedNodeMap attributes = parnode.getAttributes();
Node hashValue = attributes.getNamedItem(ATTRIBUTE);
if(hashValue.getNodeValue().equals("0")){
continue;
}
//fetch the childnodes
NodeList childlist = parnode.getChildNodes();
Node child = null;
for(int childcnt = 0; childcnt < childlist.getLength(); childcnt++){
child = (Node) childlist.item(childcnt);
if(child.getNodeName().equalsIgnoreCase(EXPRESSION_TAG)){
expression = child.getTextContent();
}
if(child.getNodeName().equalsIgnoreCase(DOCCOUNT_TAG)){
docCount = child.getTextContent();
}
if(child.getNodeName().equalsIgnoreCase(DUPCOUNT_TAG)){
dupCount = child.getTextContent();
}
}
System.out.println("populateValues: Expression: " + expression + " docCount: " + docCount + " dupCount: " + dupCount);
//populate in Map
hitterms.put(expression, new Element(Integer.parseInt(docCount), Integer.parseInt(dupCount)));
}
}
System.out.println("populateValues: Added " + hitterms.size() + " hit entries to hashmap");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Long> hits();",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }",
"private static void addEntriesToMap(\n\t\tMap<Character,Integer> map,String toSort, String poolOfOccurances\n\t\t){\n\n\t\t//Loop the toStort\n\t\tfor(int i=0;i<toSort.length();i++){\n\t\t\tmap.put(toSort.charAt(i),new Integer(getCharacterFrequence(toSort.charAt(i),poolOfOccurances)));\n\t\t}\n\n\t}",
"private static HashMap<HitCategory, ArrayList<HitsPerClub>> readHitsFromFile(String fileName, boolean fillActiveHitMap) {\n String filePath = fileDirectory + \"/\" + fileName ;\n HashMap<HitCategory, ArrayList<HitsPerClub>> tempHitMap;\n\n tempHitMap = new HashMap<>();\n List<ArrayList<String>> csvLines = CsvFile.readFile(filePath, CSV_SEPARATOR);\n if (null != csvLines) {\n Iterator<ArrayList<String>> it = csvLines.iterator();\n while (it.hasNext()) {\n ArrayList<String> nextItem = it.next();\n HitCategory category = HitCategory.valueOf(nextItem.get(CATEGORY_POS));\n String clubName = nextItem.get(CLUB_NAME_POS);\n Integer qualityGood = Integer.valueOf(nextItem.get(QUALITY_GOOD_COUNTER_POS));\n Integer qualityNeutral = Integer.valueOf(nextItem.get(QUALITY_NEUTRAL_COUNTER_POS));\n Integer qualityBad = Integer.valueOf(nextItem.get(QUALITY_BAD_COUNTER_POS));\n\n ArrayList<HitsPerClub> hits = tempHitMap.get(category);\n if (null == hits) {\n hits = new ArrayList<>();\n }\n Club club = BagController.getClubByName(clubName);\n hits.add(new HitsPerClub(club, qualityGood, qualityNeutral, qualityBad));\n tempHitMap.put(category, hits);\n }\n }\n\n if (fillActiveHitMap) {\n hitMap = tempHitMap;\n }\n return tempHitMap;\n }",
"private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }",
"private static void remakeMap(HashMap<String, ArrayList<Critter>> population)\r\n {\r\n \t//get a copy of the hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \t//clear the original hash map\r\n \tpopulation.clear();\r\n \t\r\n \t//iterates through all of the critters in the copy of the hash map\r\n \tIterator<String> populationIter = copy.keySet().iterator();\r\n \t\r\n \twhile (populationIter.hasNext()) { \r\n \t\t\r\n \t\t//get the String position\r\n String pos = populationIter.next();\r\n \r\n //get the critter list in that position\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n \r\n //Iterate through the critters ArrayList \r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \t//get the new coordinates of the critter\r\n \tString critterKey = thisCritter.getCritterPosition();\r\n \t\r\n \t//if the position is already a key in the hash map\r\n \tif(population.containsKey(critterKey)) {\r\n \t\t//add the critter to the ArrayList at key of coordinates\r\n \t\tArrayList<Critter> list = population.get(critterKey);\r\n \t\tlist.add(thisCritter);\r\n \t\tpopulation.replace(critterKey, list);\r\n \t}\r\n \r\n \t//if position is not already a key in the hash map\r\n \telse {\r\n \t\tArrayList<Critter> newCritters = new ArrayList<Critter>();\r\n \t\tnewCritters.add(thisCritter);\r\n \t\tpopulation.put(critterKey, newCritters);\r\n \t}\r\n }\r\n \t}\r\n }",
"void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tString2Int.put(\"Location1\", new Integer(0));\n\t\tString2Int.put(\"Location2\", new Integer(1));\n\t\tString2Int.put(\"Location3\", new Integer(2));\n\t\tString2Int.put(\"Location4\", new Integer(3));\n\t\t\n\t\t\n\t\t// populate it\n\t\tInt2String.put(new Integer(0), \"Location1\");\n\t\tInt2String.put(new Integer(1), \"Location2\");\n\t\tInt2String.put(new Integer(2), \"Location3\");\n\t\tInt2String.put(new Integer(3), \"Location4\");\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> NHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> NHMap = new ArrayList<Integer[]>();\n\t\tInteger[] NHMapedge1 ={String2Int.get(\"Location1\"),100,30};\n\t\tInteger[] NHMapedge2 ={String2Int.get(\"Location2\"),20,40};\n\t\tInteger[] NHMapedge3 ={String2Int.get(\"Location4\"),30,15};\n\t\tInteger[] NHMapedge4 ={String2Int.get(\"Location3\"),140,60};\n\t\t//edges.add(edge);\n\t\tNHMap.add(NHMapedge1);\n\t\tNHMap.add(NHMapedge2);\n\t\tNHMap.add(NHMapedge3);\n\t\tNHMap.add(NHMapedge4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> EHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> EHMap = new ArrayList<Integer[]>();\n\t\tInteger[] EHMapedge1 ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10,30};\n\t\tInteger[] EHMapedge2 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20,40};\n\t\tInteger[] EHMapedge3 ={String2Int.get(\"Location4\"),String2Int.get(\"Location4\"),30,50};\n\t\tInteger[] EHMapedge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location2\"),40,60};\n\t\t//edges.add(edge);\n\t\tEHMap.add(EHMapedge1);\n\t\tEHMap.add(EHMapedge2);\n\t\tEHMap.add(EHMapedge3);\n\t\tEHMap.add(EHMapedge4);\n\t\t\n\t\tArrayList<Integer[]> edges = new ArrayList<Integer[]>();\n\t\tInteger[] edge ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10};\n\t\tInteger[] edge1 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20};\n\t\tInteger[] edge2 ={String2Int.get(\"Location1\"),String2Int.get(\"Location3\"),30};\n\t\tInteger[] edge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location4\"),40};\n\t\tInteger[] edge5 ={String2Int.get(\"Location4\"),String2Int.get(\"Location3\"),40};\n\t\t\n\t\t\n\t\tedges.add(edge);\n\t\tedges.add(edge1);\n\t\tedges.add(edge2);\n\t\tedges.add(edge4);\n\t\tedges.add(edge5);\n\t\t\n\t\t\n \n\t //int[][] adj_matrix = MapArrayList(edges1);\n int[][] adj_matrix = MapArrayList(edges);\n\t\tfor(int i=0;i<5;i++){\n\t\t\t//System.out.println(\"\");\n\t\t\tfor(int j=0;j<5;j++){\n\t\t\t\t\n\t\t\t\t//System.out.print(adj_matrix[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//dijkstra(edges1);\n\t\t//System.out.print(edges2);\n\t\t//System.out.println(\"Ehtesham\");\n\t\tArrayList<ArrayList<Integer>> finalpaths = dijkstra(adj_matrix);\n\t\t for (ArrayList<Integer> item : finalpaths) { \n\t\t\t System.out.println(\"\");\n\t\t\t \tfor(Integer node: item)\n\t\t\t \t{\t\n\t\t\t \t\tSystem.out.print(Int2String.get(node)+\"->\");\n\t\t\t \t}\n\t\t\n\t\t }\n\t\t int cost = 210;\n\t\t int time = 190;\n\t\t //ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(finalp1aths1);\n\t\t ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(NHMap,EHMap,finalpaths,cost,time);\n\t\t System.out.println(\"\");\n\t\t System.out.println(\"-----------------------------Final answer-------------------------------\");\n\t\t for (ArrayList<Integer> item : finalp1aths1) { \n\t\t\t\tSystem.out.println(item);\n\t\t\t\t\n\t\t }\n\t\t\t\t \n\t}",
"public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }",
"public HitCounter() {\n map = new TreeMap<>();\n }",
"private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }",
"public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}",
"void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }",
"private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}",
"private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}",
"private void constructHMap() {\n\t\tfor (int i = 0; i < hMap.length; i++) {\n\t\t\tfor (int j = 0; j < hMap[0].length; j++) {\n\t\t\t\tif (hMap[i][j] == 0) {\n\t\t\t\t\tSkiNode head = new SkiNode(map[i][j], i, j, null);\n\t\t\t\t\tbuildSkiTree(head);\n\t\t\t\t\tupdateSkiTreeLevel(head);\n\t\t\t\t\tif (goodHeads.isEmpty()) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level == head.level) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level < head.level) {\n\t\t\t\t\t\tgoodHeads.clear();\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void elementHit(K key) {\n\t\tint i = hitMap.get(key);\n\t\ti++;\n\t\thitMap.put(key, i);\n\t}",
"public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }",
"private static void fillListFromMap(List<Integer> bucketContents, Map<Double, List<Integer>> m) {\r\n\t\tIterator<Double> iter = m.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tDouble key = iter.next();\r\n\t\t\tbucketContents.addAll(m.get(key));\r\n\t\t}\r\n\t}",
"private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}",
"Map<String, List<List<Attribution>>> getAttributionMap();",
"private void expand() {\n int capacity = newCapacity();\n IntIntMap h = new IntIntMap(capacity);\n for (int i = 0; i < entries.length; i += 2) {\n if (entries[i] != EMPTY) {\n h.put(entries[i], entries[i + 1]);\n }\n }\n this.entries = h.entries;\n this.threshold = h.threshold;\n this.modulo = h.modulo;\n this.modulo2 = h.modulo2;\n }",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"private HashMap<String, HashSet<String>> convertIndexToMap(IndexReader reader) throws IOException{\n\t\t HashMap<String, HashSet<String>> hmap = new HashMap<String, HashSet<String>>();\n\t\t HashSet<String> docIdSet;\n\t\t \n\t\t for(int i=0; i<reader.numDocs(); i++){\n\t\t\t Fields termVect = reader.getTermVectors(i);\n\n\t\t\t if(termVect == null)\n\t\t\t\t continue;\n\t\t\t \n\t for (String field : termVect) {\n\t \t \n\t Terms terms = termVect.terms(field);\n\t TermsEnum termsEnum = terms.iterator();\n\t Document doc = reader.document(i);\n\t \n\t while(termsEnum.next() != null){\n\t \t BytesRef term = termsEnum.term();\n\t \t String strTerm = term.utf8ToString();\n\t \t \n\t \t if (hmap.containsKey(strTerm)){\n\t \t\t docIdSet = hmap.get(strTerm);\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t } else{\n\t \t\t docIdSet = new HashSet<String>();\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t\t hmap.put(strTerm, docIdSet);\n\t \t }\n\t }\n\t }\n\t\t }\n\t\t \n\t\t return hmap;\n\t}",
"private List<EventInfo> map(List<EventLog> entries) {\n List<EventInfo> events = new ArrayList<>();\n for (EventLog entry : entries) {\n events.add(map(entry));\n }\n return events;\n }",
"Object visitMapOfReferences(MapOfReferencesNode node, Object state);",
"protected void prepareEntityToNodeMap()\r\n\t{\n\t}",
"protected void createLookupCache() {\n }",
"@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }",
"@Test\n public void entrySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.entrySet());\n }",
"private void fillMap(String[] querys) {\r\n\r\n\t\tLOG.info(\"fillMap\");\r\n\r\n\t\tquerysMap = new HashMap<String, String>();\r\n\t\t\r\n\t\tfor (String query : querys) {\r\n\t\t\t\r\n\t\t\tString[] temp = getStringArray(query, START_QUERY_PATTERN);\r\n\t\t\t\r\n\t\t\tif (temp != null && temp.length == 2) {\r\n\t\t\t\t\r\n\t\t\t\ttemp[0] = temp[0].replaceAll(\"\\\\P{Alnum}\", \"\");\r\n\t\t\t\tquerysMap.put(temp[0], temp[1].trim());\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOG.error(\"El array es nulo o la longitud no es la esperada\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tLOG.info(\"END fillMap\");\r\n\r\n\t}",
"private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }",
"private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }",
"protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}",
"private void rebuild(Object[] entries) {\n for (Object o : entries) {\n if (o != null) {\n Entry<K, V> entry = (Entry<K, V>) o;\n put(entry.getKey(), entry.getValue());\n }\n }\n }",
"private void addHistogram2map(HashMap<String, double[][]> map, double[] histValues, String key, int iteration) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new double[nRandomisations][]);\r\n }\r\n double[][] values = map.get(key);\r\n values[iteration] = histValues;\r\n }",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"private static Map getMapPotionIds() {\n/* 350 */ if (mapPotionIds == null) {\n/* */ \n/* 352 */ mapPotionIds = new LinkedHashMap<>();\n/* 353 */ mapPotionIds.put(\"water\", new int[1]);\n/* 354 */ mapPotionIds.put(\"awkward\", new int[] { 16 });\n/* 355 */ mapPotionIds.put(\"thick\", new int[] { 32 });\n/* 356 */ mapPotionIds.put(\"potent\", new int[] { 48 });\n/* 357 */ mapPotionIds.put(\"regeneration\", getPotionIds(1));\n/* 358 */ mapPotionIds.put(\"moveSpeed\", getPotionIds(2));\n/* 359 */ mapPotionIds.put(\"fireResistance\", getPotionIds(3));\n/* 360 */ mapPotionIds.put(\"poison\", getPotionIds(4));\n/* 361 */ mapPotionIds.put(\"heal\", getPotionIds(5));\n/* 362 */ mapPotionIds.put(\"nightVision\", getPotionIds(6));\n/* 363 */ mapPotionIds.put(\"clear\", getPotionIds(7));\n/* 364 */ mapPotionIds.put(\"bungling\", getPotionIds(23));\n/* 365 */ mapPotionIds.put(\"charming\", getPotionIds(39));\n/* 366 */ mapPotionIds.put(\"rank\", getPotionIds(55));\n/* 367 */ mapPotionIds.put(\"weakness\", getPotionIds(8));\n/* 368 */ mapPotionIds.put(\"damageBoost\", getPotionIds(9));\n/* 369 */ mapPotionIds.put(\"moveSlowdown\", getPotionIds(10));\n/* 370 */ mapPotionIds.put(\"diffuse\", getPotionIds(11));\n/* 371 */ mapPotionIds.put(\"smooth\", getPotionIds(27));\n/* 372 */ mapPotionIds.put(\"refined\", getPotionIds(43));\n/* 373 */ mapPotionIds.put(\"acrid\", getPotionIds(59));\n/* 374 */ mapPotionIds.put(\"harm\", getPotionIds(12));\n/* 375 */ mapPotionIds.put(\"waterBreathing\", getPotionIds(13));\n/* 376 */ mapPotionIds.put(\"invisibility\", getPotionIds(14));\n/* 377 */ mapPotionIds.put(\"thin\", getPotionIds(15));\n/* 378 */ mapPotionIds.put(\"debonair\", getPotionIds(31));\n/* 379 */ mapPotionIds.put(\"sparkling\", getPotionIds(47));\n/* 380 */ mapPotionIds.put(\"stinky\", getPotionIds(63));\n/* */ } \n/* */ \n/* 383 */ return mapPotionIds;\n/* */ }",
"public static void fill_map(){\n\t\tcategory_links_map.put(\"Categories\", \"Movies\");\n\t\tcategory_links_map.put(\"Actors\", \"Movies\");\n\t\tcategory_links_map.put(\"Movies\", \"Actors\");\n\t\tcategory_links_map.put(\"Artists\", \"Creations\");\n\t\tcategory_links_map.put(\"Creations\", \"Artists\");\n\t\tcategory_links_map.put(\"Countries\", \"Locations\");\n\t\tcategory_links_map.put(\"Locations\", \"Countries\");\n\t\tcategory_links_map.put(\"NBA players\", \"NBA teams\");\n\t\tcategory_links_map.put(\"NBA teams\", \"NBA players\");\n\t\tcategory_links_map.put(\"Israeli soccer players\", \"Israeli soccer teams\");\n\t\tcategory_links_map.put(\"Israeli soccer teams\", \"Israeli soccer players\");\n\t\tcategory_links_map.put(\"World soccer players\", \"World soccer teams\");\n\t\tcategory_links_map.put(\"World soccer teams\", \"World soccer players\");\n\t}",
"private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}",
"public void testMap() throws Exception {\n String key1 = 1 + randomAlphaOfLength(3);\n String key2 = 2 + randomAlphaOfLength(3);\n String key3 = 3 + randomAlphaOfLength(3);\n updateAndCheckSource(\n 0,\n 1,\n XContentFactory.jsonBuilder().startObject().startObject(\"test\").field(key1, \"foo\").field(key2, \"baz\").endObject().endObject()\n );\n updateAndCheckSource(\n 0,\n 1,\n XContentFactory.jsonBuilder().startObject().startObject(\"test\").field(key1, \"foo\").field(key2, \"baz\").endObject().endObject()\n );\n updateAndCheckSource(\n 1,\n 2,\n XContentFactory.jsonBuilder().startObject().startObject(\"test\").field(key1, \"foo\").field(key2, \"bir\").endObject().endObject()\n );\n updateAndCheckSource(\n 1,\n 2,\n XContentFactory.jsonBuilder().startObject().startObject(\"test\").field(key1, \"foo\").field(key2, \"bir\").endObject().endObject()\n );\n updateAndCheckSource(\n 2,\n 3,\n XContentFactory.jsonBuilder().startObject().startObject(\"test\").field(key1, \"foo\").field(key2, \"foo\").endObject().endObject()\n );\n updateAndCheckSource(\n 3,\n 4,\n XContentFactory.jsonBuilder()\n .startObject()\n .startObject(\"test\")\n .field(key1, \"foo\")\n .field(key2, (Object) null)\n .endObject()\n .endObject()\n );\n updateAndCheckSource(\n 3,\n 4,\n XContentFactory.jsonBuilder()\n .startObject()\n .startObject(\"test\")\n .field(key1, \"foo\")\n .field(key2, (Object) null)\n .endObject()\n .endObject()\n );\n updateAndCheckSource(\n 4,\n 5,\n XContentFactory.jsonBuilder()\n .startObject()\n .startObject(\"test\")\n .field(key1, \"foo\")\n .field(key2, (Object) null)\n .field(key3, (Object) null)\n .endObject()\n .endObject()\n );\n\n assertEquals(3, totalNoopUpdates());\n }",
"protected Map<String,List<Address>> extract(View view) {\n Map<String,List<Address>> map=new HashMap<>(view.size());\n for(Address mbr: view) {\n SiteAddress member=(SiteAddress)mbr;\n String key=member.getSite();\n List<Address> list=map.computeIfAbsent(key, k -> new ArrayList<>());\n if(!list.contains(member))\n list.add(member);\n }\n return map;\n }",
"public void setHits(Hits hits) {\n this.hits = hits;\n }",
"void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }",
"void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}",
"public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}",
"Collection<KeywordHit> getOneHitPerObject(QueryResults queryResults) {\n HashMap<Long, KeywordHit> hits = new HashMap<>();\n for (Keyword keyWord : queryResults.getKeywords()) {\n for (KeywordHit hit : queryResults.getResults(keyWord)) {\n // add hit with lowest SolrObjectID-Chunk-ID combination.\n if (!hits.containsKey(hit.getSolrObjectId())) {\n hits.put(hit.getSolrObjectId(), hit);\n } else {\n if (hit.getChunkId() < hits.get(hit.getSolrObjectId()).getChunkId()) {\n hits.put(hit.getSolrObjectId(), hit);\n }\n }\n }\n }\n return hits.values();\n }",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);",
"protected ForwardingMapEntry() {}",
"public static Map<Integer, List> prepareHotelsListToView(List<Hotel> filteredHotelsToView) {\r\n\t\tMap<Integer, List> map = new HashMap<Integer, List>();\r\n\r\n\t\tfor (Hotel hotel : filteredHotelsToView) {\r\n\t\t\tList hotelData = new ArrayList();\r\n\t\t\t\r\n\t\t\thotelData.add(hotel.getDestination().getCountry());\r\n\t\t\thotelData.add(hotel.getDestination().getCity());\r\n\t\t\thotelData.add(hotel.getDestination().getRegionID());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelName());\r\n\t\t\thotelData.add(convertDateListToString(hotel.getOfferDateRange().getTravelStartDate()));\r\n\t\t\thotelData.add(convertDateListToString(hotel.getOfferDateRange().getTravelEndDate()));\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelStarRating());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelGuestReviewRating());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelReviewTotal());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelImageUrl());\r\n\t\t\t\r\n\t\t\tmap.put(map.size() + 1, hotelData);\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}",
"@Test\n public void mapKeys() {\n check(MAPKEYS);\n query(\"for $i in \" + MAPKEYS.args(\n MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i+1\"))) + \" order by $i return $i\", \"1 2 3\");\n query(\"let $map := \" + MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i + 1\")) +\n \"for $k in \" + MAPKEYS.args(\"$map\") + \" order by $k return \" +\n MAPGET.args(\"$map\", \"$k\"), \"2 3 4\");\n }",
"public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}",
"void setHashMap();",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}",
"private void populateEntitiesLists() {\n\t\tfor (StaticEntity entity : ((ClientTiledMap) map).staticEntities) {\n\t\t\tregisterStaticEntity(entity);\n\t\t}\n\t}",
"private Map mergeResults(Map first, Map second) {\n/* 216 */ Iterator verb_enum = second.keySet().iterator();\n/* 217 */ Map clonedHash = new HashMap(first);\n/* */ \n/* */ \n/* 220 */ while (verb_enum.hasNext()) {\n/* 221 */ String verb = verb_enum.next();\n/* 222 */ List cmdVector = (List)clonedHash.get(verb);\n/* 223 */ if (cmdVector == null) {\n/* 224 */ clonedHash.put(verb, second.get(verb));\n/* */ continue;\n/* */ } \n/* 227 */ List oldV = (List)second.get(verb);\n/* 228 */ cmdVector = new ArrayList(cmdVector);\n/* 229 */ cmdVector.addAll(oldV);\n/* 230 */ clonedHash.put(verb, cmdVector);\n/* */ } \n/* */ \n/* 233 */ return clonedHash;\n/* */ }",
"public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}",
"private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"private void populate(List<Entry> entries) {\n List<Long> entryIds = entries.stream().map(Entry::getId).collect(Collectors.toList());\n Map<Entry, List<Category>> entryToCategories = entryDAO.findCategoriesByEntryIds(entryIds);\n\n // Set the Categories property of each Entry, accordingly.\n entries.forEach(entry -> entry.setCategories(entryToCategories.getOrDefault(entry, Collections.emptyList())));\n }",
"public Map<Integer, List<CellEntry>> buildShipMap() {\n Map<Integer, List<CellEntry>> shipCellMap = new HashMap<>();\n for (int i = 0; i < BOARD_CELL_NUM_PER_SIDE; i++) {\n for (int j = 0; j < BOARD_CELL_NUM_PER_SIDE; j++) {\n Cell cell = getCell(i, j);\n if (cell.getShipIndex() != -1) {\n int shipIndex = cell.getShipIndex();\n if (!shipCellMap.containsKey(shipIndex)) {\n shipCellMap.put(shipIndex, new ArrayList<>());\n }\n\n CellEntry cellEntry = new CellEntry(cell.getIndex(), cell.getShipIndex());\n shipCellMap.get(shipIndex).add(cellEntry);\n }\n }\n }\n return shipCellMap;\n }",
"public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}",
"public void increseHitCount() {\n\r\n\t}",
"private void addToMap(Word from, Word to) {\n Set<Word> s = wordMap.get(from);\n if(s == null) {\n s = new HashSet<>();\n wordMap.put(from, s);\n }\n s.add(to);\n }",
"LinkedHashMap<Long, City> getAllCitiesMap();",
"public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }",
"private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }",
"private List<Map<Number160, PeerStatistic>> initMap(final int[] bagSizes, final boolean caching) {\n List<Map<Number160, PeerStatistic>> tmp = new ArrayList<Map<Number160, PeerStatistic>>();\n for (int i = 0; i < Number160.BITS; i++) {\n // I made some experiments here and concurrent sets are not\n // necessary, as we divide similar to segments aNonBlockingHashSets\n // in a concurrent map. In a full network, we have 160 segments, for\n // smaller we see around 3-4 segments, growing with the number of\n // peers. bags closer to 0 will see more read than write, and bags\n // closer to 160 will see more writes than reads.\n //\n // We also only allocate memory for the bags far away, as they are likely to be filled first.\n if (caching) {\n tmp.add(new CacheMap<Number160, PeerStatistic>(bagSizes[i], true));\n } else {\n final int memAlloc = bagSizes[i] / 8;\n tmp.add(new HashMap<Number160, PeerStatistic>(memAlloc));\n }\n }\n return Collections.unmodifiableList(tmp);\n }",
"private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}",
"Map<String, String> findAllInMap();",
"public void initMap()\r\n/* */ {\r\n///* 36 */ putHandler(\"vwkgcode\", PDWkHeadTailVWkgcodeHandler.class);\r\n///* 37 */ putHandler(\"fcapacitycalc\", PDWkHeadTailFcapacitycalcHandler.class);\r\n///* 38 */ putHandler(\"bprodline\", PDWkHeadTailBprodlineHandler.class);\r\n/* */ }",
"private Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> aggregateDemandMap(\n ImmutableMap<ServiceIdentifier<?>, ImmutableMap<RegionIdentifier, ImmutableMap<NodeAttribute, Double>>> inferredServerDemand) {\n \n final Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> demandMap = new HashMap<>();\n \n for (Entry<ServiceIdentifier<?>, ImmutableMap<RegionIdentifier, ImmutableMap<NodeAttribute, Double>>> serviceEntry : inferredServerDemand.entrySet()) {\n ServiceIdentifier<?> service = serviceEntry.getKey();\n \n for (Entry<RegionIdentifier, ImmutableMap<NodeAttribute, Double>> regionEntry : serviceEntry.getValue().entrySet()) {\n updateKeyKeyLoadMap(demandMap, service, regionEntry.getKey(), sumValues(regionEntry.getValue()), true);\n }\n }\n \n return demandMap;\n }",
"private void fillEntryLangMap(String p_termbaseId) throws Exception\n {\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try\n {\n c = ConnectionPool.getConnection();\n ps = c.prepareStatement(TERM_ENTRY_LANG_QUERY);\n ps.setLong(1, Long.valueOf(p_termbaseId).longValue());\n rs = ps.executeQuery();\n m_map = new TreeMap();\n while (rs.next())\n {\n Long cid = new Long(rs.getLong(1));\n String name = rs.getString(2);\n HashSet set = (HashSet) m_map.get(cid);\n if (set == null)\n {\n set = new HashSet();\n m_map.put(cid, set);\n }\n set.add(name);\n }\n }\n finally\n {\n ConnectionPool.silentClose(rs);\n ConnectionPool.silentClose(ps);\n ConnectionPool.silentReturnConnection(c);\n }\n }",
"@Override\n public final void onHit(final K key) {\n if (!freqHitMap.containsKey(key)) {\n freqHitMap.put(key, 1);\n return;\n }\n\n // Add 1 to times used in map\n freqHitMap.put(key, freqHitMap.get(key) + 1);\n }",
"private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}",
"@Override\n\t\t\tpublic void putAll(Map<? extends PathwayImpl, ? extends AnalysisResult> m) {\n\t\t\t\t\n\t\t\t}",
"private static Map<VOTableVersion,VersionDetail>\n createMap( VersionDetail[] vds ) {\n Map<VOTableVersion,VersionDetail> map =\n new LinkedHashMap<VOTableVersion,VersionDetail>();\n for ( int i = 0; i < vds.length; i++ ) {\n map.put( vds[ i ].version_, vds[ i ] );\n }\n return map;\n }",
"@Override\n public void buildInformEntries(Hashtable<InetAddress, Vector<String>> dest) {}",
"private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }",
"private void processEntitesMap(LinkedHashMap obj, String currKey, List<Entity> entities, String rELATIONAL_KEY2) {\n\t\t\n\t}",
"private void populateDateEntityMap(TradeEntity entity) {\r\n\t\tList<TradeEntity> entities = dateEntityMap.get(entity.getEffectiveSettlementDate());\r\n\r\n\t\tif (entities == null) {\r\n\t\t\tentities = new ArrayList<>();\r\n\t\t\tentities.add(entity);\r\n\t\t} else {\r\n\t\t\tentities.add(entity);\r\n\t\t}\r\n\t\tdateEntityMap.put(entity.getEffectiveSettlementDate(), entities);\r\n\t}",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"private void initMaps(Context cxt, ObaResponse response) {\n if (response.getCode() == ObaApi.OBA_OK) {\n final ObaData data = response.getData();\n final ObaArray<ObaStop> stops = data.getStops();\n final Map<String,ObaStop> stopMap = getStopMap(stops);\n final ObaArray<ObaStopGrouping> groupings = data.getStopGroupings();\n final int groupingsLen = groupings.length();\n \n for (int groupingIndex = 0; groupingIndex < groupingsLen; ++groupingIndex) {\n final ObaStopGrouping grouping = groupings.get(groupingIndex);\n final ObaArray<ObaStopGroup> groups = grouping.getStopGroups();\n final int groupsLen = groups.length();\n \n for (int i=0; i < groupsLen; ++i) {\n final HashMap<String,String> groupMap = new HashMap<String,String>(1);\n final ObaStopGroup group = groups.get(i);\n // We can initialize the stop grouping values.\n groupMap.put(\"name\", group.getName());\n // Add this to the groupings map\n \n // Create the sub list (the list of stops in the group)\n final List<String> stopIds = group.getStopIds();\n final int stopIdLen = stopIds.size();\n \n final ArrayList<HashMap<String,String>> childList =\n new ArrayList<HashMap<String,String>>(stopIdLen);\n \n for (int j=0; j < stopIdLen; ++j) {\n final String stopId = stopIds.get(j);\n final ObaStop stop = stopMap.get(stopId);\n HashMap<String,String> groupStopMap = \n new HashMap<String,String>(2);\n if (stop != null) {\n groupStopMap.put(\"name\", stop.getName());\n String dir = cxt.getString(\n UIHelp.getStopDirectionText(\n stop.getDirection()));\n groupStopMap.put(\"direction\", dir);\n groupStopMap.put(\"id\", stopId);\n mStopMap.put(stopId, stop);\n }\n else {\n groupStopMap.put(\"name\", \"\");\n groupStopMap.put(\"direction\", \"\"); \n groupStopMap.put(\"id\", stopId);\n }\n childList.add(groupStopMap);\n } \n \n mStopGroups.add(groupMap);\n mStops.add(childList);\n }\n }\n }\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"public Map<String, Match> getReferenceMatches();",
"private static Map<Long, Set<XliffAlt>> getXliffAltMap(List<XliffAlt> alts)\n {\n // tuvId : Set<XliffAlt>\n Map<Long, Set<XliffAlt>> xlfAltMap = new HashMap<Long, Set<XliffAlt>>();\n\n for (XliffAlt alt : alts)\n {\n Set<XliffAlt> myAlts = xlfAltMap.get(alt.getTuvId());\n if (myAlts == null)\n {\n myAlts = new HashSet<XliffAlt>();\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n else\n {\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n }\n\n return xlfAltMap;\n }",
"private Map<Integer, Mdr5Record> makeCityMap(MapReader mr) {\n \t\tList<City> cities = mr.getCities();\n \n \t\tMap<Integer, Mdr5Record> cityMap = new LinkedHashMap<Integer, Mdr5Record>();\n \t\tfor (City c : cities) {\n \t\t\tint key = (c.getSubdivNumber() << 8) + (c.getPointIndex() & 0xff);\n \t\t\tassert key < 0xffffff;\n \t\t\tcityMap.put(key, new Mdr5Record(c));\n \t\t}\n \n \t\treturn cityMap;\n \t}",
"protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }",
"private static HashMap<String, String[]> buildUpdateMap(File remainderFile)\n throws ParserConfigurationException, IOException, SAXException {\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document document = documentBuilder.parse(remainderFile);\n Node head = document.getDocumentElement();\n NodeList updatedOffers = head.getChildNodes();\n HashMap<String, String[]> result = new HashMap<>();\n // Build update map\n for (int i = 0; i < updatedOffers.getLength(); i++) {\n Node rfOffer = updatedOffers.item(i);\n if (rfOffer.getNodeName().equals(\"offer\")) {\n NodeList rfOfferChilds = rfOffer.getChildNodes();\n String[] values = new String[5];\n String id = null;\n for (int j = 0; j < rfOfferChilds.getLength(); j++) {\n Node rfOfferChild = rfOfferChilds.item(j);\n switch (rfOfferChild.getNodeName()) {\n case \"id\":\n id = rfOfferChild.getTextContent();\n break;\n case \"price\":\n values[0] = rfOfferChild.getTextContent();\n break;\n case \"quantity\":\n values[1] = rfOfferChild.getTextContent();\n break;\n case \"status\":\n values[2] = rfOfferChild.getTextContent();\n break;\n case \"novelty\":\n values[3] = rfOfferChild.getTextContent();\n break;\n case \"priority\":\n values[4] = rfOfferChild.getTextContent();\n break;\n default:\n break;\n }\n }\n if (id != null) result.put(id, values);\n }\n }\n return result;\n }",
"@Override\n public void buildTrapEntries(Hashtable<InetAddress, Vector<String>> dest) {}",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void populateMap(Map map, Node node) {\n Map.Entry entry = getMapEntry(node);\n if (entry != null) {\n map.put(entry.getKey(), entry.getValue());\n }\n }",
"private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}",
"private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void rehash()\r\n\t{\r\n\t\tint M = table.length;\r\n\t\tMapEntry<K, V>[] origTable = table; // save original\r\n\t\t\r\n\t\t//new table\r\n\t\ttable = new MapEntry[2*M + 1];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\t\r\n\t\tfor (MapEntry<K, V> oe : origTable)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = oe;\r\n\t\t\tif (e != null && e != DUMMY) // No need to rehash dummy\r\n\t\t\t{\r\n\t\t\t\tint slot = findSlot(e.getKey(), true);\r\n\t\t\t\ttable[slot] = e;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private HashMap<String,String> createQueryMap() {\n\t\t\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\t// Only include Pages with the CenterNet Event template\n\t\tmap.put(\"type\",\"cq:Page\");\n\t\tmap.put(\"path\", Constants.EVENTS);\n\t\tmap.put(\"property\",\"jcr:content/cq:template\");\n\t map.put(\"property.value\", Constants.EVENT_TEMPLATE);\n\n\t if (tags != null) {\n\t \tmap = addTagFilter(map);\n\t }\n\n\t // Only include Events whose start time is in the future\n\t map.put(\"relativedaterange.property\", PN_QUERY_START_TIME);\n\t map.put(\"relativedaterange.lowerBound\", \"-0d\");\n\t \n\t // Include all hits\n\t //map.put(\"p.limit\", maxNum.toString());\n\t map.put(\"p.limit\", maxNum);\n\t map.put(\"p.guessTotal\", \"true\");\n\t \n\t // Order by Start Time\n\t map.put(\"orderby\", PN_QUERY_START_TIME);\n\t map.put(\"orderby.sort\", \"asc\");\n\t \n\t\treturn map;\n\t\t\n\t}",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"void putAll(HMap m) throws NullPointerException;",
"private Map<String, Integer> getForumTagsEnrichment(PersonActivity in) {\n\t\tList<String> forums = in.getCategoryKeys(CategoryType.FORUM);\n\t\tMap<String, Integer> forumTags = forums.stream()\n\t\t\t\t.map(forumId -> forumTagRelation.get(forumId))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.flatMap(List::stream)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn forumTags;\n\t}",
"public void updateFinalMaps() {\r\n\t\t//prints out probMap for each tag ID and makes new map with ln(frequency/denominator) for each\r\n\t\t//wordType in transMapTemp\r\n\t\tTreeMap<String, TreeMap<String, Float>> tagIDsFinal = new TreeMap<String, TreeMap<String, Float>>();\r\n\t\tfor (String key: this.transMapTemp.keySet()) {\r\n\t\t\tProbMap probMap = this.transMapTemp.get(key);\r\n\t\t\ttagIDsFinal.put(key, this.transMapTemp.get(key).map);\r\n\r\n\t\t\tfor (String key2: probMap.map.keySet()) {\r\n\t\t\t\ttagIDsFinal.get(key).put(key2, (float) Math.log(probMap.map.get(key2) / probMap.getDenominator()));\r\n\t\t\t\tSystem.out.println(key + \": \" + key2 + \" \" + tagIDsFinal.get(key).get(key2));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//makes new map with ln(frequency/denominator) for each word in emissionMapTemp\r\n\t\tTreeMap<String, TreeMap<String, Float>> emissionMapFinal = new TreeMap<String, TreeMap<String, Float>>();\r\n\t\tfor (String key: this.emissionMapTemp.keySet()) {\r\n\t\t\tProbMap probMap = this.emissionMapTemp.get(key);\r\n\t\t\temissionMapFinal.put(key, this.emissionMapTemp.get(key).map);\r\n\t\t\tfor (String key2: probMap.map.keySet()) {\r\n\r\n\t\t\t\temissionMapFinal.get(key).put(key2, (float) Math.log(probMap.map.get(key2) / probMap.getDenominator()));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.transMap = tagIDsFinal;\r\n\t\tthis.emissionMap = emissionMapFinal;\t\t\r\n\t}"
]
| [
"0.6214726",
"0.5916277",
"0.5895899",
"0.5784231",
"0.5778795",
"0.57313335",
"0.5725773",
"0.5708052",
"0.56503874",
"0.5598054",
"0.556301",
"0.5541389",
"0.5491125",
"0.54864067",
"0.54820174",
"0.5464279",
"0.5456173",
"0.5426927",
"0.5412674",
"0.54034966",
"0.53983444",
"0.5380831",
"0.5362179",
"0.53615016",
"0.53451496",
"0.5337774",
"0.53004783",
"0.53001237",
"0.52864677",
"0.52829456",
"0.5268986",
"0.5267147",
"0.52572167",
"0.52232146",
"0.51690626",
"0.5166686",
"0.51627576",
"0.51605535",
"0.5156042",
"0.5155337",
"0.51503503",
"0.51486784",
"0.51422524",
"0.5136956",
"0.5123966",
"0.5123966",
"0.51181227",
"0.5117308",
"0.51168686",
"0.5105891",
"0.51000106",
"0.5095307",
"0.5095277",
"0.5091782",
"0.5089233",
"0.5088971",
"0.5082407",
"0.50807446",
"0.50788367",
"0.50738686",
"0.50724447",
"0.50721186",
"0.5068598",
"0.5064438",
"0.5064163",
"0.5061742",
"0.50589335",
"0.50544393",
"0.50510293",
"0.50474924",
"0.5038152",
"0.5019701",
"0.50196135",
"0.5007068",
"0.50043035",
"0.5002753",
"0.500163",
"0.5000666",
"0.49958727",
"0.49952537",
"0.4988865",
"0.49873033",
"0.49817368",
"0.49756736",
"0.49754724",
"0.49726215",
"0.4961215",
"0.49594823",
"0.4957244",
"0.49548185",
"0.4946477",
"0.4945726",
"0.4932323",
"0.49321663",
"0.49308246",
"0.49304032",
"0.49285966",
"0.49258828",
"0.49235812",
"0.49196807",
"0.49142414"
]
| 0.0 | -1 |
gather all the search terms(hits + non hits) into ArrayList | private static void populateList(String name) throws Exception {
Document dom = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
// Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
System.out
.println("populateList: Boolean Model XML location passed: "
+ name);
// parse using builder to get DOM representation of the XML file
dom = db.parse(name);
} catch (Exception ex) {
System.out.println("populateList: Error");
ex.printStackTrace();
}
// get a nodelist of 'expression' elements
NodeList nl = dom.getElementsByTagName(EXPRESSION_TAG);
System.out.println("populateList: Node Size: " + nl.getLength());
String expression;
Node node;
if (null != nl && nl.getLength() > 0) {
for (int expCount = 0; expCount < nl.getLength(); expCount++) {
expression = null;
// get the expression element
node = (Node) nl.item(expCount);
try {
expression = node.getTextContent();
System.out.println("populateList: EXPRESSION: " + expression);
} catch (Exception ex) {
System.out.println("populateList: Error: ");
ex.printStackTrace();
}
allterms.add(expression);
}
}
System.out.println("populateList: Added " + allterms.size()
+ " entries to expressions Arraylist.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (double) 1 + Math.log((double) matches.getPositionList().size()) *\n Math.log((double) N / (double) postingLists.size());\n resultsCollector.add(new DocCollector(matches.getDocId(), score));\n }\n }\n }\n }",
"private List<SearchWord> getSearchWords(Long lastUpdateTime) {\n return new ArrayList<>();\n }",
"public abstract Set<String> getTerms(Document doc);",
"List<DataTerm> search(String searchTerm);",
"@Override\n\tpublic List<Literature> searchKeywords() {\n\t\treturn null;\n\t}",
"public ArrayList<String> getResults(String query) {\r\n\t\t// TODO: Add code here\r\n\t\tHashMap<String,Double> map=new HashMap<>();\r\n\t\tArrayList<String> urls=wordIndex.get(query);\r\n\t\tif(urls==null){\r\n\t\t\treturn new ArrayList<>();\r\n\t\t}\r\n\t\tfor(String url:urls){\r\n\t\t\tmap.put(url,internet.getPageRank(url));\r\n\t\t}\r\n\t\treturn Sorting.fastSort(map);\r\n\t}",
"private static ArrayList<Result> bagOfWords(Query query, DataManager myVocab) {\n\t\tString queryname = query.getQuery();\n\t\t// split on space and punctuation\n\t\tString[] termList = queryname.split(\" \");\n\t\tArrayList<Result> bagResults = new ArrayList<Result>();\n\t\tfor (int i=0; i<termList.length; i++){\n\t\t\tQuery newQuery = new Query(termList[i], query.getLimit(), query.getType(), query.getTypeStrict(), query.properties()) ;\n\t\t\tArrayList<Result> tempResults = new ArrayList<Result>(findMatches(newQuery, myVocab));\n\t\t\tfor(int j=0; j<tempResults.size(); j++){\n\n\t\t\t\ttempResults.get(j).setMatch(false);\n\t\t\t\ttempResults.get(j).decreaseScore(termList.length);\n\t\t\t\tif(tempResults.get(j).getScore()>100){\n\t\t\t\t\ttempResults.get(j).setScore(99.0);\n\t\t\t\t}else if (tempResults.get(j).getScore()<1){\n\t\t\t\t\ttempResults.get(j).setScore(tempResults.get(j).getScore()*10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbagResults.addAll(tempResults);\n\t\t}\n\t\treturn bagResults;\n\t}",
"public ArrayList<ArrayList> simpleQuery(String word)\n {\n ArrayList<ArrayList> data = new ArrayList();\n\n IndexObject obj = myIndex.get(word.hashCode());\n if(obj == null)\n {\n errorMsg();\n return null;\n }\n data.add(new ArrayList<Document>(obj.getDocuments()));\n data.add(new ArrayList<Double>(obj.getRelevance()));\n data.add(new ArrayList<Integer>(obj.getOccurrence()));\n data.add(new ArrayList<Integer>(obj.getPopularity()));\n return data;\n }",
"public void makeQueryTermList() {\n for (int i = 0; i < this.stemmed_query.size(); i++) {\n boolean added = false;\n String curTerm = this.stemmed_query.get(i);\n for (int j = 0; j < this.query_terms_list.size(); j++) {\n if (this.query_terms_list.get(j).strTerm.compareTo(curTerm) == 0) {\n this.query_terms_list.get(j).timeOccur++;\n added = true;\n break;\n }\n }\n if (added == false) {\n this.query_terms_list.add(new QueryTerm(curTerm));\n }\n }\n }",
"private static List<SearchData> booleanSearchWord(Query query, Indexer si) {\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query.getStr(), \"[a-zA-Z]{3,}\", true, true);\n List<SearchData> searchList = new ArrayList<>();\n LinkedList<Token> wordsList = tkn.getTokens();\n Iterator<Token> wordsIt = wordsList.iterator();\n HashMap<String, LinkedList<Posting>> indexer = si.getIndexer();\n int idx;\n SearchData searched_doc;\n\n while (wordsIt.hasNext()) {\n String word = wordsIt.next().getSequence();\n if (indexer.containsKey(word)) {\n\n LinkedList<Posting> posting = indexer.get(word);\n\n for (Posting pst : posting) {\n\n SearchData sd = new SearchData(query, pst.getDocId());\n\n if (!searchList.contains(sd)) {\n sd.setScore(1);\n searchList.add(sd);\n } else {\n idx = searchList.indexOf(sd);\n searched_doc = searchList.get(idx);\n searched_doc.setScore(searched_doc.getScore() + 1);\n }\n }\n\n }\n\n\n }\n\n Collections.sort(searchList);\n\n return searchList;\n }",
"public static ArrayList<Result> findMatches(Query query, DataManager myVocab){\n\n\t\t//Uncomment this for logging in this class\t\n//\t\tmyLogger.setLevel(Level.INFO); \n\n\t\t// get the term we're going to search for and\n\t\t// take out any leading or trailing whitespaces\n\t\tString querystr = query.getQuery();\n\t\tquerystr = querystr.trim();\n\t\tString uncleaned = querystr;\n\t\t\n\t\t// This is in case of numeric entries. Google Refine doesn't seem\n\t\t// to have int cell types, instead it adds an invisible .0 to all\n\t\t// numbers. This fixes that issue, as it sometimes causes false negatives.\n\t\tif (querystr.endsWith(\".0\")){\n\t\t Pattern p = Pattern.compile(\"[^0-9\\\\.]+\");\n\t\t Matcher m = p.matcher(querystr);\n\t\t boolean result = m.find();\n\t\t if (!result){\n\t\t \t querystr = querystr.substring(0, querystr.length()-2);\n\t\t }\n\t\t}\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\n\t\tif (myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\t\t\n\t\t// Clean up the query string if it isn't case/punctuation sensitive\n\t\tif (!myVocab.capsSensitive()){\t\t\n\t\t\tquerystr = querystr.toLowerCase();\n\t\t}\n\t\tif (! myVocab.punctSensitive()){\t\t\n\t\t\tquerystr = querystr.replaceAll(\"[\\\\W_]\", \"\");\n\t\t}\n\t\t\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\t\tif(myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\n\t\tString type = query.getType();\n\n\t\t// This ArrayList is the results that are going to be returned. \n\t\tArrayList<Result> results = getDirectMatches(myVocab, querystr, uncleaned, type);\n\t\t\n\t\t// If there's a perfect match return it.\n\t\tif (results.size() == 1 && results.get(0).match){\n\t\t\treturn results;\n\t\t}else{\n\t\t\t// Otherwise, add the initial ones and try matching\n\t\t\t// based on distance to vocabulary terms.\n\t\t\tresults.addAll(distanceMatching(query, myVocab));\n\t\t\t\n\t\t\t// Split the original query term by space and non-alphanumeric characters \n\t\t\t// to find how many words there are.\n\t\t\t//querystr = query.getQuery().replaceAll(\"[\\\\W_]\", \" \");\n\t\t\tString [] termList = querystr.split(\" \");\n\t\t\t\n\t\t\t// if there's more than one, run bagOfWords\n\t\t\t// which tries to find a match for each of the words.\n\t\t\tif (termList.length > 1){\n\t\t\t\tresults.addAll(bagOfWords(query, myVocab));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Clean the results: no duplicates\n\t\t// no extra results to return, and sorted\n\t\t// them by score before returning them\n\t\tresults = removeDuplicates(results);\n\t\t\n\t\t// They do not need to be reduced in \n\t\t// number if there are fewer than \n\t\t// the max results.\n\t\t// The pruneResults sorts them\n\t\t// by score already.\n\t\tif(query.getLimit()!=null){\n\t\t\tresults = pruneResults(results,Integer.parseInt(query.getLimit()));\n\t\t}else{\n\t\t\tresults = pruneResults(results,MAX_RESULTS);\n\t\t}\n\t\t\t\n\t\tresults = sortByScore(results);\n\t\tfor (int i = 0; i< results.size(); i++){\n//\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+ \" is bigger than 100?\");\n\t\t\tif(results.get(i).getScore() > (double)100){\n\t\t\t\tresults.get(i).setScore((double)100 - (results.get(i).getScore()-(double)100));\n//\t\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+\" is bigger than 100! and was set to \"+\n//\t\t\t\t\t\t((double)100 - (results.get(i).getScore()-(double)100)));\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}",
"public List<CorpusSearchHit> getResult() {\n return result;\n }",
"private static List<SearchData> booleanSearchFrequency(Query query, Indexer si) {\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query.getStr(), \"[a-zA-Z]{3,}\", true, true);\n List<SearchData> searchList = new ArrayList<>();\n LinkedList<Token> wordsList = tkn.getTokens();\n Iterator<Token> wordsIt = wordsList.iterator();\n HashMap<String, LinkedList<Posting>> indexer = si.getIndexer();\n int idx;\n SearchData searched_doc;\n\n while (wordsIt.hasNext()) {\n String word = wordsIt.next().getSequence();\n if (indexer.containsKey(word)) {\n\n LinkedList<Posting> posting = indexer.get(word);\n\n for (Posting pst : posting) {\n\n SearchData sd = new SearchData(query, pst.getDocId());\n\n if (!searchList.contains(sd)) {\n sd.setScore(pst.getTermFreq());\n searchList.add(sd);\n } else {\n idx = searchList.indexOf(sd);\n searched_doc = searchList.get(idx);\n searched_doc.setScore(searched_doc.getScore() + pst.getTermFreq());\n }\n }\n }\n }\n\n Collections.sort(searchList);\n\n return searchList;\n }",
"public ArrayList<SearchResult> exactSearch(String[] searchWords) {\n\t\tArrayList<SearchResult> words = new ArrayList<>();\n\t\tHashMap<String, SearchResult> resultMap = new HashMap<>();\n\t\t\n\t\tfor (String word : searchWords) {\n\t\t\tif (containsWord(word)) {\n\t\t\t\twordSearch(word, resultMap, words);\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.sort(words);\n\t\treturn words;\n\t}",
"public ArrayList<Id> search(String searchTerm){\n\t\treturn tagMap.findTag(searchTerm);\n\t}",
"@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n String[] tmp = API.it().getKeywords(arg0.toString());\n FilterResults results = new FilterResults();\n results.values = tmp;\n results.count = tmp.length;\n return results;\n }",
"public ArrayList<SearchResult> partialSearch(String[] searchWords) {\n\t\tArrayList<SearchResult> words = new ArrayList<>();\n\t\tHashMap<String, SearchResult> resultMap = new HashMap<>();\n\t\tfor (String word : searchWords) {\n\t\t\tfor (String key : index.tailMap(word, true).navigableKeySet()) {\n\t\t\t\tif (key.startsWith(word)) {\n\t\t\t\t\twordSearch(key, resultMap, words);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.sort(words);\n\t\treturn words;\n\t}",
"private List<QueryResponse<T>> getQueryResponses(SearchHits<T> searchHits) {\n if (searchHits.isEmpty()) {\n return new ArrayList<>();\n }\n return searchHits.stream()\n .map(QueryResponse::new)\n .collect(Collectors.toList());\n }",
"private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }",
"public ArrayList<String> top5search(String kw1, String kw2) {\n // COMPLETE THIS METHOD\n ArrayList<Occurrence> Res1 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<Occurrence> res2 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<String> arrayList = new ArrayList<String>();\n\n while (arrayList.size() < 6) {\n Occurrence aa = null;\n Occurrence b = null;\n {\n if (Res1 != null) {\n for (Occurrence occr : Res1) {\n if (!arrayList.contains(occr.document)) {\n aa = occr;\n }\n }\n } if(Res1 == null){\n aa = new Occurrence(null, 0);\n }\n else aa = new Occurrence(null,0);\n }\n {\n if(res2 != null){\n for(Occurrence occr : res2){\n if(!arrayList.contains(occr.document)){\n b = occr;\n }\n }\n }\n if(res2 == null){\n b = new Occurrence(null,0);\n }\n else b = new Occurrence(null,0);\n }\n Occurrence[] a = {aa,b};//{search(arrayList, Res1), search(arrayList, res2)};\n Occurrence m = null;\n if (a[0].frequency < a[1].frequency) {\n m = a[1];\n } else m = a[0];\n if (m.document != null) {\n arrayList.add(m.document);\n } else break;\n }\n return arrayList;\n }",
"private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }",
"public Set<String> queryTermsConsidered(Query query, double idf_threshold){\n double idf, nDocs = this.docIDs.size();\n String term;\n\n Set<String> termsToConsider = new HashSet<String>();\n\n Iterator<String> it = query.terms.iterator();\n while(it.hasNext()){\n term = it.next();\n idf = -1;\n if(this.idfMap.containsKey(term))\n idf = Math.log(nDocs/new Double(this.idfMap.get(term)));\n if (idf >= idf_threshold){\n termsToConsider.add(term);\n }\n /*else{\n System.err.println(term + \" not considered since idf = \" + idf);\n }*/\n }\n\n return termsToConsider;\n\n }",
"public void onSearchResults(String term, List<WikiPage> results);",
"List<SearchResult> search(SearchQuery searchQuery);",
"@Override\r\n\t\t\tpublic String[] getTerms(Document doc) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public ArrayList<String> top5search(String kw1, String kw2) {\n\t\t/** COMPLETE THIS METHOD **/\n\t\tArrayList<String> results = new ArrayList<String>();\n\t\tArrayList<Occurrence> ocArr1 = new ArrayList<Occurrence>();\n\t\tArrayList<Occurrence> ocArr2 = new ArrayList<Occurrence>();\n\t\tArrayList<Occurrence> combined = new ArrayList<Occurrence>();\n\t\t\n\t\tif (keywordsIndex.containsKey(kw1))\n\t\t\tocArr1 = keywordsIndex.get(kw1);\n\t\t\n\t\tif (keywordsIndex.containsKey(kw2))\n\t\t\tocArr2 = keywordsIndex.get(kw2);\n\t\t\n\t\tcombined.addAll(ocArr1);\n\t\tcombined.addAll(ocArr2);\n\t\t\n\t\tif (!(ocArr1.isEmpty()) && !(ocArr2.isEmpty()))\n\t\t{\n\t\t\t// Sort with preference for ocArr1\n\t\t\tfor (int x = 0; x < combined.size()-1; x++)\n\t\t\t{\n\t\t\t\tfor (int y = 1; y < combined.size()-x; y++)\n\t\t\t\t{\n\t\t\t\t\tif (combined.get(y-1).frequency < combined.get(y).frequency)\n\t\t\t\t\t{\n\t\t\t\t\t\tOccurrence temp = combined.get(y-1);\n\t\t\t\t\t\tcombined.set(y-1, combined.get(y));\n\t\t\t\t\t\tcombined.set(y, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove duplicates\n\t\t\tfor (int x = 0; x < combined.size()-1; x++)\n\t\t\t{\n\t\t\t\tfor (int y = x + 1; y < combined.size(); y++)\n\t\t\t\t{\n\t\t\t\t\tif (combined.get(x).document == combined.get(y).document)\n\t\t\t\t\t\tcombined.remove(y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Top 5\n\t\twhile (combined.size() > 5)\n\t\t\tcombined.remove(combined.size()-1);\n\t\t\n\t\t//System.out.println(combined);\n\t\t\n\t\tfor (Occurrence oc : combined)\n\t\t\tresults.add(oc.document);\n\n\t\treturn results;\n\t\n\t\t\n\t\t// following line is a placeholder to make the program compile\n\t\t// you should modify it as needed when you write your code\n\t\n\t}",
"SearchResultCompany search(String keywords);",
"public Collection<EfoTermCount> searchTerms(Collection<String> values) {\n List<EfoTermCount> result = new ArrayList<EfoTermCount>();\n Set<String> ids = new HashSet<String>();\n for (String val : values) {\n for (EfoTerm term : efo.searchTerm(val)) {\n Long count = getCount(term.getId());\n if (count != null && !ids.contains(term.getId())) {\n result.add(new EfoTermCount(term, count));\n ids.add(term.getId());\n }\n }\n }\n return result;\n }",
"public List<SearchResultDocument> getSearchResults(String query) throws IOException, ParseException {\n return luceneIndexer.getSearchResults(query);\n }",
"public Term[] getTerms() { return terms; }",
"private List<Integer> processRelatedDocsQuery(String query) {\r\n List<Integer> result = new ArrayList<>();\r\n\r\n for(String term : this.preprocessor.processQuery(query).keySet()) {\r\n\r\n // skip unknown terms\r\n if (!this.index.getDict().containsKey(term)) continue;\r\n\r\n // for each occurrence\r\n for(TermFrequency tf : this.index.getDict().get(term)){\r\n int id = tf.getDocId();\r\n if(!result.contains(id))\r\n result.add(id);\r\n }\r\n }\r\n\r\n return result;\r\n }",
"Set<Keyword> listKeywords();",
"private void searchHelper(ArrayList<SearchResult> results, String word, Map<String, SearchResult> track) {\n\t\tfor (String location : this.invertedIndex.get(word).keySet()) {\n\t\t\tif (track.containsKey(location)) {\n\t\t\t\ttrack.get(location).updateCount(word);\n\t\t\t} else {\n\t\t\t\tSearchResult result = new SearchResult(location);\n\t\t\t\tresult.updateCount(word);\n\t\t\t\ttrack.put(location, result);\n\t\t\t\tresults.add(result);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic List<ServiceInfo> search(String keywords) {\n\t\treturn null;\n\t}",
"private void printingSearchResults() {\n HashMap<Integer, Double> resultsMap = new HashMap<>();\n for (DocCollector collector : resultsCollector) {\n if (resultsMap.containsKey(collector.getDocId())) {\n double score = resultsMap.get(collector.getDocId()) + collector.getTermScore();\n resultsMap.put(collector.getDocId(), score);\n } else {\n resultsMap.put(collector.getDocId(), collector.getTermScore());\n }\n }\n List<Map.Entry<Integer, Double>> list = new LinkedList<>(resultsMap.entrySet());\n Collections.sort(list, new Comparator<Map.Entry<Integer, Double>>() {\n public int compare(Map.Entry<Integer, Double> o1,\n Map.Entry<Integer, Double> o2) {\n return (o2.getValue()).compareTo(o1.getValue());\n }\n });\n if (list.isEmpty())\n System.out.println(\"no match\");\n else {\n DecimalFormat df = new DecimalFormat(\".##\");\n for (Map.Entry<Integer, Double> each : list)\n System.out.println(\"docId: \" + each.getKey() + \" score: \" + df.format(each.getValue()));\n }\n\n }",
"public List<Query> similarTerms() {\n return this.similarTerms;\n }",
"List<String> getDocumentTitles(String query) throws SearcherException;",
"public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}",
"public HashMap<String, Double> search(String query) {\n // ===================================================\n // 1. Fetch all inverted lists corresponding to terms\n // in the query.\n // ===================================================\n String[] terms = query.split(\" \");\n HashMap<String, Integer> qf = new HashMap<String, Integer>();\n // Calculate term frequencies in the query\n for (String term : terms) {\n if (qf.containsKey(term))\n qf.put(term, qf.get(term) + 1);\n else\n qf.put(term, 1);\n }\n HashMap<String, Double> docScore = new HashMap<String, Double>();\n for (Entry<String, Integer> termEntry : qf.entrySet()) {\n String term = termEntry.getKey();\n int qfi = termEntry.getValue();\n\n // ===================================================\n // 2. Compute BM25 scores for documents in the lists.\n // Make a score list for documents in the inverted\n // lists. Assume that no relevance information is \n // available. For parameters, use k1=1.2, b=0.75, \n // k2=100.\n // ===================================================\n double k1 = 1.2;\n double b = 0.75;\n double k2 = 100;\n int ni = invIndex.get(term).size();\n\n\n for (Entry<String, IndexEntry> invListEntry : invIndex.get(term).entrySet()) {\n String docID = invListEntry.getKey();\n double bm25Score;\n if (docScore.containsKey(docID))\n bm25Score = docScore.get(docID);\n else\n bm25Score = 0;\n\n // length of the document\n int dl = docStat.get(docID);\n // frequency of the term in the document\n int fi = invListEntry.getValue().getTf();\n double K = k1 * ((1 - b) + b * ((double) dl / avdl));\n\n // ===================================================\n // 3. Accumulate scores for each term in a query\n // on the score list.\n // ===================================================\n bm25Score += Math.log((N - ni + 0.5) / (ni + 0.5))\n * (((k1 + 1) * fi * (k2 + 1) * qfi) / ((K + fi) * (k2 + qfi)));\n docScore.put(docID, bm25Score);\n }\n }\n\n return docScore;\n }",
"private final List<Object> searchForResults(@Nullable String query)\n {\n ArrayList<Object> results = new ArrayList<>();\n try {\n results.addAll(crDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the cr dao for results.\", e);\n }\n\n try {\n results.addAll(customMonsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the custom monster dao for results.\", e);\n }\n\n try {\n results.addAll(monsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the standard monster dao for results.\", e);\n }\n\n return results;\n }",
"@Override\n public List<SearchResult> search(String queryString, int k) {\n // TODO: YOUR CODE HERE\n\n // Tokenize the query and put it into a Set\n HashSet<String> tokenSet = new HashSet<>(Searcher.tokenize(queryString));\n\n /*\n * Section 1: FETCHING termId, termFreq and relevant docId from the Query\n */\n\n // Init a set to store Relevant Document Id\n HashSet<Integer> relevantDocIdSet = new HashSet<>();\n for (String token : tokenSet) { // Iterates thru all query tokens\n int termId;\n try {\n termId = indexer.getTermDict().get(token);\n } catch (NullPointerException e) { // In case current token is not in the termDict\n continue; // Skip this one\n }\n // Get the Posting associate to the termId\n HashSet<Integer> posting = indexer.getPostingLists().get(termId);\n relevantDocIdSet.addAll(posting); // Add them all to the Relevant Document Id set\n }\n\n /*\n * Section 2: Calculate Jaccard Coefficient between the Query and all POTENTIAL DOCUMENTS\n */\n\n // ArrayList for the Final Result\n ArrayList<SearchResult> searchResults = new ArrayList<>();\n for (Document doc : documents) { // Iterates thru all documents\n if (!relevantDocIdSet.contains(doc.getId())) { // If the document is relevant\n searchResults.add(new SearchResult(doc, 0)); // Add the document as a SearchResult with zero score\n } else {\n HashSet<String> termIdSet = new HashSet<>(doc.getTokens()); // Get the token set from the document\n\n // Calculate Jaccard Coefficient of the document\n double jaccardScore = JaccardMathHelper.calculateJaccardSimilarity(tokenSet, termIdSet);\n\n // Add the SearchResult with the computed Jaccard Score\n searchResults.add(new SearchResult(doc, jaccardScore));\n }\n }\n\n return TFIDFSearcher.finalizeSearchResult(searchResults, k);\n }",
"List<PilotContainer> Search(String cas, String word);",
"@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public void setSearchTerms(String searchTerms) {\r\n this.searchTerms = searchTerms;\r\n }",
"public List<String> getSearchResults() {\n List<String> searchResultsStringList = new ArrayList<>();\n for (WebElement searchResult : searchResultsList){\n String searchResultText = searchResult.getText();\n searchResultsStringList.add(searchResultText);\n }\n return searchResultsStringList;\n }",
"private void wordSearch(String word, HashMap<String, SearchResult> resultMap, ArrayList<SearchResult> words) {\n\t\tfor (String path : index.get(word).keySet()) {\n\t\t\tint frequency = index.get(word).get(path).size();\n\t\t\tint initialPosition = index.get(word).get(path).first();\n\t\t\t\n\t\t\tif (!resultMap.containsKey(path)) {\n\t\t\t\tresultMap.put(path, new SearchResult(frequency, initialPosition, path));\n\t\t\t\twords.add(resultMap.get(path));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSearchResult searchResult = resultMap.get(path);\n\t\t\t\tsearchResult.addToFrequency(frequency);\n\t\t\t\tsearchResult.updateInitialPosition(initialPosition);\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<SearchResult> partialSearch(Collection<String> queries) {\n\t\tArrayList<SearchResult> results = new ArrayList<>();\n\t\tHashMap<String, SearchResult> track = new HashMap<>();\n\n\t\tfor (String query : queries) {\n\t\t\tfor (String word : this.invertedIndex.tailMap(query).keySet()) {\n\t\t\t\tif (word.startsWith(query)) {\n\t\t\t\t\tsearchHelper(results, word, track);\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\tCollections.sort(results);\n\t\treturn results;\n\t}",
"public List<Recipe> search(String[] keywords, boolean searchLocally, boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}",
"public static ArrayList<Word> search(String inputString){\n Node current = root;\n \n // remove doubles and make aphameticals\n Word tempWord = new Word(inputString);\n \n String s = tempWord.getTrieWord();\n \n ArrayList<Word> results = new ArrayList<Word>();\n ArrayList<Word> fuzzyResults = new ArrayList<Word>();\n\n while(current != null){\n \n for(int i=0;i<s.length();i++){ \n if(current.subNode(s.charAt(i)) == null){\n System.out.println(\"WE Have an extra letter ------ !!!!\");\n Collections.sort(results, new CustomComparator()); \n return results;\n }\n else\n current = current.subNode(s.charAt(i));\n \n if(i==inputString.length()-2){\n fuzzyResults.addAll(current.possibleWords);\n }\n \n }\n \n if (current.marker == true)\n results.addAll(current.possibleWords);\n \n // return results; // place here for no problems\n \n }\n \n \n \n //remove fuzzyResults from normal results\n for(int r=0; r<results.size(); r++){\n \n if(results.get(r).isFuzzy){\n results.remove(r);\n r--;\n }\n }\n \n \n // Go through fuzzy results and only accept ones that are less than 1 char of search string\n for(int r=0; r<fuzzyResults.size(); r++){\n \n if(((fuzzyResults.get(r).getWord().length()-1)==inputString.length()) && fuzzyResults.get(r).isFuzzy ){\n results.add(fuzzyResults.get(r)); \n }\n }\n \n Collections.sort(results, new CustomComparator()); \n\n return results;\n \n }",
"Map<String, Long> hits();",
"public List<String> getSortedResults() {\r\n\t\tList<String> subset;\r\n\t\tif (filter == null) {\r\n\t\t\tsubset = allWords;\r\n\t\t} else {\r\n\t\t\tsubset = getFilteredWords();\r\n\t\t}\r\n\t\tsortResults(subset);\r\n\t\tint wordCount = Math.min(subset.size(), wordLimit);\r\n\t\tArrayList<String> result = new ArrayList<String>(wordCount);\t\r\n\t\tresult.addAll(subset.subList(0, wordCount));\r\n\t\treturn result;\r\n\t}",
"private String[] computeSearchTerms(Control c) {\n \t\tComposite parent = c.getParent();\n \t\tList searchTerms = new ArrayList();\n \t\twhile (parent != null) {\n \t\t\tObject data = parent.getData();\n \t\t\tif (data instanceof IWizardContainer) {\n \t\t\t\tIWizardContainer wc = (IWizardContainer) data;\n \t\t\t\tsearchTerms.add(wc.getCurrentPage().getTitle());\n \t\t\t\tsearchTerms.add(wc.getCurrentPage().getWizard().getWindowTitle());\n \t\t\t\tbreak;\n \t\t\t} else if (data instanceof IWorkbenchWindow) {\n \t\t\t\tIWorkbenchWindow window = (IWorkbenchWindow) data;\n \t\t\t\tIWorkbenchPage page = window.getActivePage();\n \t\t\t\tif (page != null) {\n \t\t\t\t\tIWorkbenchPart part = lastPart;\n \t\t\t\t\tif (part != null) {\n\t\t\t\t\t\tif (part instanceof IViewPart)\n \t\t\t\t\t\t\tsearchTerms.add(NLS.bind(\n \t\t\t\t\t\t\t\t\tMessages.ContextHelpPart_query_view, part\n \t\t\t\t\t\t\t\t\t\t\t.getSite().getRegisteredName()));\n \t\t\t\t\t}\n \t\t\t\t\t/*\n // Searching by perspective seems counterproductive - CG\n \t\t\t\t\tIPerspectiveDescriptor persp = page.getPerspective();\n \t\t\t\t\tif (persp != null) {\n \t\t\t\t\t\tsearchTerms.add(NLS.bind(\n \t\t\t\t\t\t\t\tMessages.ContextHelpPart_query_perspective,\n \t\t\t\t\t\t\t\tpersp.getLabel()));\n \t\t\t\t\t}\n \t\t\t\t\t*/\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\t} else if (data instanceof Window) {\n \t\t\t\tWindow w = (Window) data;\n \t\t\t\tif (w instanceof IPageChangeProvider) {\n \t\t\t\t\tObject page = ((IPageChangeProvider) w).getSelectedPage();\n \t\t\t\t\tString pageName = getPageName(c, page);\n \t\t\t\t\tif (pageName != null) {\n \t\t\t\t\t\tsearchTerms.add(pageName);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tsearchTerms.add(w.getShell().getText());\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tparent = parent.getParent();\n \t\t}\n \t\treturn (String[]) searchTerms.toArray(new String[searchTerms.size()]);\n \t}",
"public List<Recipe> searchWithIngredients(String[] keywords, boolean searchLocally, \r\n \t\t\t\t\t\t\t\t\t boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}",
"public ArrayList<String> top5search(String kw1, String kw2) {\n\t\tkw1 = kw1.toLowerCase();\n kw2 = kw2.toLowerCase();\n ArrayList <String> outArr = new ArrayList <String> ();\n ArrayList <Occurrence> kw1Arr = null;\n ArrayList <Occurrence> kw2Arr = null;\n for(String e: keywordsIndex.keySet()) {\n if(e.equals(kw1) == true) {\n kw1Arr = keywordsIndex.get(e);}\n if(e.equals(kw2) == true) {\n kw2Arr = keywordsIndex.get(e);}}\n int kw1Point = 0;\n int kw2Point = 0;\n for(int inc = 0; inc < 5; inc++) {\n int kw1Value = 0;\n Occurrence kw1Occ = null;\n int kw2Value = 0;\n Occurrence kw2Occ = null;\n if(kw1Arr != null && kw1Point < kw1Arr.size()) {\n kw1Occ = kw1Arr.get(kw1Point);\n kw1Value = kw1Occ.frequency;}\n if(kw2Arr != null && kw2Point < kw2Arr.size()) {\n kw2Occ = kw2Arr.get(kw2Point);\n kw2Value = kw2Occ.frequency;}\n if(kw1Value == 0 && kw2Value == 0) {\n \t//will only occur if the if-statements for 212 and 215 are false\n \t//which means that the array doesn't exist or the pointer has iterated through the whole array\n break;}\n if(kw1Value >= kw2Value) {\n outArr.add(kw1Occ.document);\n kw1Point = kw1Point + 1;}\n else {outArr.add(kw2Occ.document);\n kw2Point = kw2Point + 1;}}\n if(outArr.size() == 0) {//no found matches\n return null;}\n else {return outArr;}//found matches\n\t}",
"public String [] getTerm (String [] query) {\r\n String [] unique = query;\r\n //find duplicate for get unique\r\n return unique;\r\n }",
"public Set<SearchedItem> getAllItems(StaplerRequest req, String tokenList){\n List<Ancestor> ancestors = req.getAncestors(); \n Set<SearchedItem> searchedItems = new TreeSet<SearchedItem>();\n if(tokenList==null){\n return searchedItems;\n }\n for (int i = 0; i < ancestors.size(); i++) {\n Ancestor a = ancestors.get(i);\n if (a.getObject() instanceof SearchableModelObject) {\n SearchIndex index = ((SearchableModelObject) a.getObject()).getSearchIndex();\n //unfortunatelly the token list is protected\n String tokens[] = tokenList.split(\"(?<=\\\\s)(?=\\\\S)\");\n List<SearchItem> items = new ArrayList<SearchItem>();\n for (String token : tokens) {\n index.suggest(token, items); \n searchedItems.addAll(createSearchItems(items, a));\n }\n }\n }\n return searchedItems;\n }",
"ArrayList<Term> getTerms() {\n ArrayList<Term> terms = new ArrayList<>();\n String[] columns = {\"id\", \"name\", \"start_date\", \"end_date\"};\n Cursor cursor = db.query(\"term\", columns, null, null, null, null, null);\n while (cursor.moveToNext()) {\n Term term = new Term();\n term.setId(cursor.getInt(0));\n term.setName(cursor.getString(1));\n term.setStartDate(cursor.getString(2));\n term.setEndDate(cursor.getString(3));\n terms.add(term);\n }\n return terms;\n }",
"@Test\n public void term_tag() throws AtlasBaseException {\n SearchParameters params = new SearchParameters();\n params.setTermName(SALES_TERM+\"@\"+SALES_GLOSSARY);\n params.setClassification(METRIC_CLASSIFICATION);\n\n List<AtlasEntityHeader> entityHeaders = discoveryService.searchWithParameters(params).getEntities();\n\n Assert.assertTrue(CollectionUtils.isNotEmpty(entityHeaders));\n for(AtlasEntityHeader e : entityHeaders){\n System.out.println(e.toString());\n }\n assertEquals(entityHeaders.size(), 4);\n }",
"public Collection<Term> getAll() {\n\t\treturn terms.values();\n\t}",
"public KeyWordList extractKeyWords(String input);",
"private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }",
"public List<Article> searchArticlesBy(String searchString) {\n QueryBuilder queryBuilder;\n if (searchString == null || searchString.isEmpty()) {\n queryBuilder = matchAllQuery();\n } else {\n queryBuilder = multiMatchQuery(searchString, \"description\", \"title\");\n }\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE).setQuery(queryBuilder).get();\n SearchHit[] hits = searchResponse.getHits().hits();\n\n return Arrays.stream(hits)\n .map(this::parseHitIntoArticle)\n .collect(Collectors.toCollection(ArrayList::new));\n }",
"public static ArrayList<String> getTerms(String comment){\n\n\t\tString[] terms = comment.split(\"[^a-zA-Z]+\");\n\t\t//if(terms.length == 0) System.out.println(\"error: \" + comment);\n\t\tArrayList<String> termsarray = new ArrayList<String>();\n\t\tfor(int i=0;i<terms.length;i++){\n\t\t\t\n\t\t\tString iterm = terms[i].toLowerCase();\n\t\t\tboolean isStopWord = false;\n\t\t\tfor(String s : stopWord){\n\t\t\t\tif(iterm.equals(s)){\n\t\t\t\t\tisStopWord = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isStopWord == true)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tStemmer stemmer = new Stemmer();\n\t\t\tstemmer.add(iterm.toCharArray(), iterm.length());\n\t\t\tstemmer.stem();\n\t\t\titerm = stemmer.toString();\n\t\t\t\n\t\t\t//System.out.println(iterm);\n\t\t\tif(iterm.length() >=2 && !termsarray.contains(iterm))termsarray.add(iterm);\n\t\t}\n\t\n\t\treturn termsarray;\n\t}",
"public ArrayList<String[]> getArticlesBySearchTerm(String term, int topN) {\n ArrayList<String[]> articles = new ArrayList<String[]>();\n\n String queryString = \"SELECT [ePrintID], [Title], [Abstract]\\n\"\n + \"FROM [capstone].[dbo].[tblArticleInfo]\\n\"\n + \"WHERE [Abstract] LIKE ?\\n\"\n + \"AND [ePrintID] <> 13623\\n\" //TODO ugly override, cat 687 and art 13623 cause problems\n + \"ORDER BY [ePrintID]\\n\"\n + \"OFFSET 0 ROWS\\n\"\n + \"FETCH NEXT ? ROWS ONLY;\";\n try {\n PreparedStatement statement = connection.prepareStatement(queryString);\n statement.setString(1, \"%\" + term + \"%\");\n statement.setInt(2, topN);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n String[] row = {\n String.valueOf(rs.getInt(1)),\n rs.getString(2),\n new String(rs.getString(3).getBytes())\n };\n articles.add(row);\n }\n rs.close();\n } catch (SQLException e) {\n System.out.print(e.getMessage());\n } catch (NullPointerException e) {\n System.out.print(e.getMessage());\n }\n return articles;\n }",
"public ArrayList<Book> search(String part){ \n this.searchBooks = new ArrayList<Book>();\n this.numberedListOfSearch = new HashMap<Integer, Book>();\n if (part.length()>=4){\n //Adding all the searching books into an ArrayList<Book>\n //No duplicating for books having the same title\n boolean bookExist = false;\n for (Book book : this.libraryBooks){\n if ((book.getTitle().toLowerCase().contains(part.toLowerCase())) || (book.getAuthor().toLowerCase().contains(part.toLowerCase()))){\n //Check whether any books having the same title in the list\n for (Book bookSearch : this.searchBooks){\n if (bookSearch.getTitle().equals(book.getTitle())){\n bookExist = true;\n break;\n }\n }\n //If none!\n if(!bookExist){\n this.searchBooks.add(book);\n }\n }\n bookExist = false;\n }\n //To put into a numbered list for printing\n //No duplicating for books having the same title\n for (int i =0; i < (this.searchBooks.size());i++){\n // put the book in the HashMap for printing \n this.numberedListOfSearch.put(i+1, this.searchBooks.get(i));\n }\n\n //To print out\n this.println(\"The searching process has finished!\");\n String researchBooks=\"\";\n //check whether the numbered list is empty or not\n if(this.numberedListOfSearch.size() >0){\n researchBooks += \"{\";\n for (int i = 0; i < this.numberedListOfSearch.size();i++){\n researchBooks += (i+1);\n researchBooks += \": \";\n researchBooks += this.numberedListOfSearch.get(i+1).toString();\n researchBooks += \"; \";\n }\n researchBooks = researchBooks.substring(0, researchBooks.length()-2);\n researchBooks += \"}\"; \n }\n //if the numbered list is empty\n else if ( this.numberedListOfSearch.size() == 0){\n researchBooks += \"Nothing found!\";\n }\n this.println(researchBooks);\n }\n\n //If not enough input key words!\n else{\n this.println(\"Please enter more key words! At least four!!\");\n }\n return this.searchBooks;\n }",
"public List<String> exhaustedSearchSynonyms(String gene){\n\t\tfor(String term:this.termSet){\n\t\t\tif (term.contains(gene)){\n\t\t\t\treturn findAllSynonyms(term);\n\t\t\t}\n\t\t}\n\t\treturn new ArrayList<String> ();\n\t}",
"static void allDocumentAnalyzer() throws IOException {\n\t\tFile allFiles = new File(\".\"); // current directory\n\t\tFile[] files = allFiles.listFiles(); // file array\n\n\t\t// recurse through all documents\n\t\tfor (File doc : files) {\n\t\t\t// other files we don't need\n\t\t\tif (doc.getName().contains(\".java\") || doc.getName().contains(\"words\") || doc.getName().contains(\"names\")\n\t\t\t\t\t|| doc.getName().contains(\"phrases\") || doc.getName().contains(\".class\")\n\t\t\t\t\t|| doc.getName().contains(\"Data\") || doc.getName().contains(\".sh\") || doc.isDirectory()\n\t\t\t\t\t|| !doc.getName().contains(\".txt\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString name = doc.getName();\n\t\t\tSystem.out.println(name);\n\t\t\tname = name.substring(0, name.length() - 11);\n\t\t\tSystem.out.println(name);\n\n\t\t\tif (!names.contains(name)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// make readers\n\t\t\tFileReader fr = new FileReader(doc);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\n\t\t\t// phrase list\n\t\t\tArrayList<String> words = new ArrayList<String>();\n\n\t\t\t// retrieve all text, trim, refine and add to phrase list\n\t\t\tString nextLine = br.readLine();\n\t\t\twhile (nextLine != null) {\n\t\t\t\tnextLine = nextLine.replace(\"\\n\", \" \");\n\t\t\t\tnextLine = nextLine.trim();\n\n\t\t\t\tif (nextLine.contains(\"no experience listed\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString[] lineArray = nextLine.split(\"\\\\s+\");\n\n\t\t\t\t// recurse through every word to find phrases\n\t\t\t\tfor (int i = 0; i < lineArray.length - 1; i++) {\n\t\t\t\t\t// get the current word and refine\n\t\t\t\t\tString currentWord = lineArray[i];\n\n\t\t\t\t\tcurrentWord = currentWord.trim();\n\t\t\t\t\tcurrentWord = refineWord(currentWord);\n\n\t\t\t\t\tif (currentWord.equals(\"\") || currentWord.isEmpty()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\twords.add(currentWord);\n\t\t\t\t}\n\t\t\t\tnextLine = br.readLine();\n\t\t\t}\n\n\t\t\tbr.close();\n\n\t\t\t// continue if empty\n\t\t\tif (words.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// otherwise, increment number of files in corpus\n\t\t\tsize++;\n\n\t\t\t// updating the phrase count map for tf\n\t\t\tString fileName = doc.getName();\n\t\t\tphraseCountMap.put(fileName, words.size());\n\n\t\t\t// recurse through every word\n\t\t\tfor (String word : words) {\n\t\t\t\t// get map from string to freq\n\t\t\t\tHashMap<String, Integer> textFreqMap = wordFreqMap.get(fileName);\n\n\t\t\t\t// if it's null, make one\n\t\t\t\tif (textFreqMap == null) {\n\t\t\t\t\ttextFreqMap = new HashMap<String, Integer>();\n\t\t\t\t\t// make freq as 1\n\t\t\t\t\ttextFreqMap.put(word, 1);\n\t\t\t\t\t// put that in wordFreq\n\t\t\t\t\twordFreqMap.put(fileName, textFreqMap);\n\t\t\t\t} else {\n\t\t\t\t\t// otherwise, get the current num\n\t\t\t\t\tInteger currentFreq = textFreqMap.get(word);\n\n\t\t\t\t\t// if it's null,\n\t\t\t\t\tif (currentFreq == null) {\n\t\t\t\t\t\t// the frequency is just 0\n\t\t\t\t\t\tcurrentFreq = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t// increment the frequency\n\t\t\t\t\tcurrentFreq++;\n\n\t\t\t\t\t// put it in the textFreqMap\n\t\t\t\t\ttextFreqMap.put(word, currentFreq);\n\n\t\t\t\t\t// put that in the wordFreqMap\n\t\t\t\t\twordFreqMap.put(fileName, textFreqMap);\n\t\t\t\t}\n\n\t\t\t\t// add this to record (map from phrases to docs with that\n\t\t\t\t// phrase)\n\t\t\t\tinvertedMap.addValue(word, doc);\n\t\t\t}\n\t\t}\n\t}",
"public static TopDocs outputCombinedBooleanQueryResults(\n Directory dir, IndexSearcher searcher, String queryTerms) throws ParseException, IOException {\n BooleanQuery combinedBoolean = new BooleanQuery();\n for (String term : queryTerms.split(\" \")) {\n TermQuery queryTerm = new TermQuery(new Term(\"content\", term));\n // combinedBoolean.add(queryTerm, BooleanClause.Occur.MUST);\n combinedBoolean.add(queryTerm, BooleanClause.Occur.SHOULD);\n }\n TopDocs docs = searcher.search(combinedBoolean, 2000);\n\n return docs;\n }",
"public String[] getKeywords() {\n\t\tString t = doc.get(\"keyword\");\n\n\t\tif (t == null || t.trim().length() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn t.trim().split(\"\\\\+\");\n\t\t}\n\t}",
"public Set<String> Search(String search, boolean expandSearch){\n\t\tSet<String> result = new HashSet<>();\n\t\tresult.addAll(dm.searchForTag(search));\n\t\t\n\t\tif(expandSearch) {\n\t\t\tfor(String extraSearch : getSubClasses(search, false)) {\n\t\t\t\tSystem.out.println(\"Extra tag added to search: \" + extraSearch);\n\t\t\t\tresult.addAll(dm.searchForTag(extraSearch));\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic List<Post> searchInfResult(String word) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectPosts(word);\r\n\t}",
"private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}",
"List<String> searchTweets(String keywords) throws TwitterException;",
"public org.apache.xmlbeans.XmlAnySimpleType getSearchTerms()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(SEARCHTERMS$6);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"private List<TravelData> searchLocations(String keywords,\n String[] fieldsToSearch,\n String[] fieldsToGet,\n int resultSize) throws Exception {\n SearchResult result = searchingExecutor.search(\n fieldsToGet,\n fieldsToSearch,\n keywords,\n resultSize\n );\n\n // 2. build travel-data list ...\n List<TravelData> travelDataList = new ArrayList<>();\n for(Map<String, String> docMap : result.getDocMapList()) {\n String tmpLocationId = docMap.get(TravelDataIndexField.CONTENT_ID.label());\n if(tmpLocationId == null) continue;\n\n // 2-1. increment impress count !!\n locationStorage.impress(tmpLocationId);\n travelDataList.add(new TravelData(locationStorage.getSnapshot(tmpLocationId), docMap));\n }\n\n // 3. sort by score\n Collections.sort(travelDataList);\n return travelDataList;\n }",
"@Override\n public List<Document> search(String string)\n { \n ArrayList<ArrayList> data = new ArrayList<ArrayList>();\n data.add(new ArrayList<Document>()); //documents\n data.add(new ArrayList<Double>()); //relevance\n data.add(new ArrayList<Integer>()); //occurrence\n data.add(new ArrayList<Integer>()); //popularity\n \n ParseTree tree = new ParseTree(this);\n \n String inputarray[]= StringUtils.split(string); //Splits the query on \" \" \n if(inputarray.length == 0)\n {\n errorMsg();\n return null;\n }\n \n for(int i = 0; i<inputarray.length; i++) //Inserts the operators/operands in the parsetree.\n {\n tree.insert(inputarray[i]);\n }\n data = tree.execute(); //executes the parsetree (the difference operations\n //are executed and data is returned.\n this.infix = tree.getInfix(); //gets the infix-notation.\n\n if(data != null)\n {\n return data.get(0);\n }\n return null;\n }",
"public PostingsList phrase_query(Query query){\n\n LinkedList<PostingsList> listQueriedPostings = new LinkedList<PostingsList>();\n // List with postings corresponding to the queries\n for (int i = 0; i<query.size(); i++){\n // If any query has zero matches, return 0 results\n //if(!(new File(\"postings/t\"+hash(query.terms.get(i))+\".json\")).exists()){\n if (!this.index.containsKey(query.terms.get(i))){\n return null;\n }\n // Otherwise store postings in the list\n listQueriedPostings.add(this.getPostings(query.terms.get(i)));\n }\n\n PostingsList result = new PostingsList();\n result = listQueriedPostings.get(0);\n\n // In case only one word is queried\n if (listQueriedPostings.size() == 1){\n return result;\n }\n\n // Apply algorithm as many times as words in the query\n for(int i = 1; i < listQueriedPostings.size(); i++){\n result = phrase_query(result, listQueriedPostings.get(i));\n if (result.isEmpty()){\n return null;\n }\n }\n return result;\n }",
"public static List<String> query_intersect(List<String> queryWords) throws IOException {\n\t\tif (!initialized) initialize();\n\t\tList<PostingList> pls = new ArrayList<PostingList> ();\n\t\tfor (String queryWord : queryWords) {\n\t\t\tqueryWord = queryWord.toLowerCase();\n\t\t\tif (!termDict.containsKey(queryWord)) {\n\t\t\t\tpls.clear();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tPostingList pl = readPosting(fc, termDict.get(queryWord));\n\t\t\tif (pl == null) {\n\t\t\t\tpls.clear();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpls.add(readPosting(fc, termDict.get(queryWord)));\n\t\t}\n\t\tCollections.sort(pls, new Comparator<PostingList>(){\n\t\t public int compare(PostingList p1, PostingList p2) {\n\t\t return p1.size() - p2.size(); // assumes you want biggest to smallest\n\t\t }\n\t\t});\n\t\tif (pls.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tList<Integer> current = pls.get(0).getList();\n\t\t\tfor (int i = 1; i < pls.size(); i++) {\n\t\t\t\tList<Integer> toBeAdd = pls.get(i).getList();\n\t\t\t\tcurrent = intersect(current, toBeAdd);\n\t\t\t}\n\t\t\tif (current.size() == 0) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tList<String> result = new ArrayList<String>();\n\t\t\t\tfor (int docId : current) {\n\t\t\t\t\tresult.add(docDict.get(docId));\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t}",
"private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }",
"public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}",
"private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }",
"java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();",
"public ListSearchResults()\n {\n logEnter(LOG_TAG, \"<init>\");\n\n entryMap = new HashMap<String,SearchResultEntry>(0);\n entries = new LinkedList<SearchResultEntry>();\n instance = null;\n }",
"private static void statsForQuery(String query) {\n\t\tHashMap<String,Integer> oldTerms=newTerms; // record the terms to analyze modified queries\n\t\tnewTerms=new HashMap<String,Integer>();\n\t\t\t\t\n\t\tString terms[]=query.split(\"\\\\s\");\t\t\t\t\n\t\tint matchingTerms=0;\n\t\tint matchingTermsStopwords=0;\n\t\tint matchingTermsOrder=0;\n\t\tfor (int j=0;j<terms.length;j++) {\n\t\t\tif (!terms[j].equals(\"\")) {\n\t\t\t \tif (oldTerms.containsKey(terms[j])) {\n\t\t\t \t\tmatchingTerms++;\t\t\t\t\t \n\t\t\t \t\tif (stopwordsMap.containsKey(terms[j])) { // match if it is stopword\n\t\t\t \t\t\tmatchingTermsStopwords++;\n\t\t\t \t\t}\n\t\t\t \t\tif (oldTerms.get(terms[j])==j) { // match if it has the same order\n\t\t\t \t\t\tmatchingTermsOrder++;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tnewTerms.put(terms[j],j);\n\t\t\t}\n\t\t}\t\n\n\t\tif (newTerms.size()==oldTerms.size() && matchingTerms==oldTerms.size() && matchingTerms>0) { // the queries have the same terms\n\t\t totalEqualTermsQueries++;\n\t\t\t\t \t\t\t\t \t\t\t\t\t\t \t\t\t\t \t\t\t\t \n\t\t if (matchingTermsStopwords==oldTerms.size()) {\n\t\t \ttotalEqualTermsStopwordsQueries++;\n\t\t }\n\t\t if (matchingTermsOrder==oldTerms.size()) {\n\t\t \ttotalEqualTermsOrderQueries++;\n\t\t }\n\t\t if (query.equals(oldQuery)) {\n\t\t \ttotalIdenticalQueries++;\n\t\t }\n\t\t if (sessionQueries.contains(query)) {\n\t\t \ttotalIdenticalSessionQueries++;\n\t\t }\n\t\t}\n\t\telse if (matchingTerms-matchingTermsStopwords>0) { // the queries have at least one term equal and diferent from a stopword\n\t\t totalModifiedQueries++;\n\t\t int index=newTerms.size()-oldTerms.size()+N_MODIFIED_TERMS_RANGE/2;\n\t\t if (index<0) {\n\t\t \tindex=0;\n\t\t }\n\t\t else if (index>N_MODIFIED_TERMS_RANGE-1) {\n\t\t \tindex=N_MODIFIED_TERMS_RANGE-1;\n\t\t }\n\t\t nModifiedTerms[index]++;\n\t\t}\n\t\toldQuery=query; \n\t\t\t\t\t\t\n\t\t// store session query\n\t\tsessionQueries.add(query);\n\t}",
"public List<IResult> getResults(List<Integer> relatedDocs, String query) {\r\n\r\n // results\r\n List<IResult> rs = new ArrayList<>();\r\n List<Double> documentVector, queryVector = new ArrayList<>();\r\n\r\n Map<String, Integer> termFreqs = this.preprocessor.processQuery(query);\r\n\r\n for(String op : new String[]{\"and\", \"or\", \"not\"}) {\r\n termFreqs.remove(op);\r\n }\r\n\r\n\r\n double highestVal = 0;\r\n\r\n // query TF-IDF vector\r\n for(String term : termFreqs.keySet()) {\r\n\r\n // unknown term == contained in no doc\r\n if(!this.index.getDict().containsKey(term)) {\r\n continue;\r\n }\r\n\r\n // # docs where term occurs in\r\n int termTotalFreq = this.index.getTermInDocCount(term);\r\n\r\n // query tf-idf vector\r\n double qTfIdf = this.tfidf.tfidfQuery(termFreqs.get(term), termTotalFreq);\r\n queryVector.add(qTfIdf);\r\n\r\n if(qTfIdf > highestVal) highestVal = qTfIdf;\r\n }\r\n\r\n // query vector normalization\r\n for(int i = 0; i < queryVector.size(); i++) {\r\n queryVector.set(i, queryVector.get(i)/highestVal);\r\n }\r\n\r\n\r\n for(int docId : relatedDocs) {\r\n documentVector = new ArrayList<>();\r\n highestVal = 0;\r\n\r\n for(String term : termFreqs.keySet()) {\r\n\r\n // unknown term == contained in no doc\r\n if(!this.index.getDict().containsKey(term)) {\r\n continue;\r\n }\r\n\r\n // document tf-idf vector\r\n double dTfIdf = this.tfidf.getTfIdf(term, docId);\r\n documentVector.add(dTfIdf);\r\n\r\n if(dTfIdf > highestVal) highestVal = dTfIdf;\r\n }\r\n\r\n // document vector normalization\r\n for(int i = 0; i < documentVector.size(); i++) {\r\n documentVector.set(i, documentVector.get(i)/highestVal);\r\n }\r\n\r\n Result result = new Result();\r\n result.setDocumentId(this.docs.get(docId).getUrl());\r\n result.setDocument(this.docs.get(docId));\r\n result.setScore((float) CosineSimilarity.process(documentVector, queryVector));\r\n rs.add(result);\r\n }\r\n\r\n Collections.sort(rs, new ResultComparator());\r\n\r\n // limit number of results\r\n if(rs.size() > IndexerConfig.MAX_RESULT_COUNT)\r\n rs = rs.subList(0, IndexerConfig.MAX_RESULT_COUNT);\r\n\r\n // rank it\r\n for(int i = 0; i < rs.size(); i++) {\r\n ((Result) rs.get(i)).setRank (i + 1);\r\n }\r\n\r\n return rs;\r\n }",
"private HashMap<String,HashMap<String,Integer>> computeTFForQueryWords(ArrayList<String> queryPostingLines) {\n HashMap<String,HashMap<String,Integer>> queryWordsTF = new HashMap<>();\n HashMap<String,HashMap<String,Integer>> queryWordsTFPerDoc = new HashMap<>();\n String docID,term;\n Integer tf;\n HashSet<String> docIDs = new HashSet<>();\n for(String postingLine : queryPostingLines){\n HashMap<String,Integer> frequenciesInDocuments = new HashMap<>();\n term = postingLine.substring(0,postingLine.indexOf(\"|\"));\n postingLine = postingLine.substring(postingLine.indexOf(\"|\")+1);\n while(!postingLine.equals(\"\")) {\n docID = postingLine.substring(0, postingLine.indexOf(\":\"));\n docIDs.add(docID);\n postingLine = postingLine.substring(postingLine.indexOf(\"_\") + 1);\n tf = Integer.valueOf(postingLine.substring(0, postingLine.indexOf(\"_\")));\n postingLine = postingLine.substring(postingLine.indexOf(\"_\") + 1);\n frequenciesInDocuments.put(docID,tf);\n }\n queryWordsTF.put(term,frequenciesInDocuments);\n }\n\n ArrayList<String> allTermsInQuery = new ArrayList<>(queryWordsTF.keySet());\n for(String doc : docIDs){\n HashMap<String,Integer> tfsInDoc = new HashMap<>();\n for(String termInQuery : allTermsInQuery){\n HashMap<String,Integer> termsTFInDoc = queryWordsTF.get(termInQuery);\n if(termsTFInDoc.containsKey(doc)){\n tfsInDoc.put(termInQuery,termsTFInDoc.get(doc));\n }\n }\n queryWordsTFPerDoc.put(doc,tfsInDoc);\n }\n return queryWordsTFPerDoc;\n }",
"private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public TermToVertexCount[] getSubTermVertexMappings(String term)\n {\n /* String is not valid as-is.\n * \n * Replace and split words into parts.\n */\n term = term.replace('-', ' ');\n String [] arr = term.split(\" \");\n\n /* Remove common words */\n for(int i = 0; i < arr.length; i++)\n {\n if(arr[i].equals(\"and\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"or\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"to\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"be\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"the\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"a\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"of\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"on\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"in\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"for\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"with\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"by\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"into\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"an\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"is\"))\n {\n arr[i] = \"\";\n }\n else if(arr[i].equals(\"no\"))\n {\n arr[i] = \"\";\n }\n }//end: for(i)\n\n /* Create String array without common terms */\n int size = 0;\n for(int i = 0; i < arr.length; i++)\n {\n if(!arr[i].equals(\"\") && stem)\n { // Stem if required\n arr[i] = PorterStemmerTokenizerFactory.stem(arr[i]);\n }\n \n // Check for valid term\n if(!arr[i].equals(\"\") && getVertexMappings(arr[i]) != null)\n {\n size++;\n }\n }//end: for(i)\n \n if(size == 0)\n { /* No valid terms found */\n return null;\n }\n \n /* At least one valid term was found */\n TermToVertexCount[] words = new TermToVertexCount[size];\n int pos = 0;\n \n for(int i = 0; i < arr.length; i++)\n {\n // Check for valid term\n if(!arr[i].equals(\"\"))\n {\n // Get mappings for sub-term\n TermToVertexCount[] temp = getVertexMappings(arr[i]);\n \n if(temp != null)\n {\n words[pos] = temp[0];\n pos++;\n }//end: if(temp)\n \n }//end: if(!arr[i])\n }//end: for(i)\n \n return words; \n }",
"@Override\n\tpublic List<ScoredTextDocument> search(String query) {\n\t\tList<ScoredTextDocument> scored = new ArrayList<>();\n\t\tDirectory dir = null;\n\n\t\tStandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_35);\n\n\t\tQuery q;\n\t\ttry {\n\t\t\tq = new QueryParser(Version.LUCENE_35, Utils.STR_CONTENT, analyzer).parse(query);\n\t\t} catch (ParseException ex) {\n\t\t\tLogger.getLogger(LuceneSearcher.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\tSystem.out.println(\"Error en LuceneSearcher\");\n\t\t\treturn null;\n\t\t}\n\t\tTopDocs top;\n\t\ttry {\n\t\t\t//Finds the top n hits for query.\n\t\t\ttop = this.indexSearcher.search(q, null, this.indexSearcher.maxDoc());\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(LuceneSearcher.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\tSystem.out.println(\"Error en LuceneSearcher\");\n\t\t\treturn null;\n\t\t}\n\n\t\tfor (ScoreDoc d : top.scoreDocs) {\n\t\t\tDocument aux = null;\n\t\t\ttry {\n\t\t\t\t//aux=reader.document(top.scoreDocs[j].doc);\n\t\t\t\taux = this.indexSearcher.doc(d.doc);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(LuceneSearcher.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t\tif (aux == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString docPath = aux.getFieldable(Utils.DOC_STR_NAME).stringValue();\n\t\t\tScoredTextDocument textdoc = new ScoredTextDocument(docPath, d.score);\n\t\t\tscored.add(textdoc);\n\t\t}\n\t\tCollections.sort(scored);\n\n\t\treturn scored;\n\t}",
"private Map<String,Map<String,List<String>>> buildDictionary(Document doc){\n\t\t\n\t\tElement root = doc.getDocumentElement();\n\t\t\n\t\t\n\t\tMap<String,Map<String,List<String>>> dictionary = new HashMap<String,Map<String,List<String>>>();\n\t\tthis.termSet = new TreeSet<String>();\n\t\t\n\t\tNodeList termList = doc.getElementsByTagName(\"term\");\n\t\tfor(int i = 0; i < termList.getLength(); i++){\n\t\t\tElement termElement = (Element) termList.item(i);\n\t\t\tElement nameElement = (Element) termElement.getElementsByTagName(\"name\").item(0);\n\t\t\tString name = nameElement.getTextContent();\n\t\t\tthis.termSet.add(name);\n\n\t\t\tMap<String,List<String>> synonymGroup = new HashMap<String,List<String>>();\n\t\t\tsynonymGroup.put(\"exact\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"related\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"broad\", new ArrayList<String>());\n\t\t\tsynonymGroup.put(\"narrow\", new ArrayList<String>());\n\t\t\t\n\t\t\tNodeList synonyms = termElement.getElementsByTagName(\"synonym\");\n\t\t\tfor(int j=0; j<synonyms.getLength(); j++){\n\t\t\t\tElement synonymElement = (Element) synonyms.item(j);\n\t\t\t\tString synonym = synonymElement.getTextContent();\n\t\t\t\tString scope = synonymElement.getAttribute(\"scope\");\n\t\t\t\t//System.out.println(scope);\n\t\t\t\tList<String> synonymList = (List<String>) synonymGroup.get(scope);\n\t\t\t\t\n\t\t\t\t//System.out.println(synonym);\n\t\t\t\t\n\t\t\t\tsynonymList.add(synonym);\n\t\t\t}\n\t\t\t\n\t\t\tdictionary.put(name,synonymGroup);\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn dictionary;\n\t}",
"public ArrayList<Movie> getSearchResult(String search) {\n\t\tArrayList<Movie> res = new ArrayList<>();\n\t\tfor (int i=0; i<getDataLength(); ++i) {\n\t\t\tboolean check = false;\n\t\t\tcheck = this.dataList.get(i).getTitle().toLowerCase().contains(search.toLowerCase());\n\t\t\tboolean checkEndShowing = this.dataList.get(i).isEndShowing();\n\t\t\tif (check&&!checkEndShowing)\n\t\t\t\tres.add((Movie)this.dataList.get(i));\n\t\t}\n\t\t\n\t\treturn res;\n\t}",
"public interface DocumentRelatedTermsSearcher {\n List<ScoredTerm> getDocumentRelatedTerms(int docId, String term) throws SearchException;\n}",
"private String[] termsArray(Scanner scan){\r\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\twhile (scan.hasNext()) {\r\n\t\t\tlist.add(scan.next());\r\n\t\t}\r\n\t\treturn (String[]) list.toArray(new String[0]);\r\n\t}",
"public ArrayList<String> getTerms () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase() part so it prints correctly \r\n definitions.add(scanner.nextLine());\r\n }\r\n return terms;\r\n }",
"private static ArrayList<String> getAllKeyWord(String [] lignes){\n ArrayList<String> res= new ArrayList<>();\n\n // La recherche dans le pdf\n for(String ligne : lignes){\n for(String mot : ligne.split(\" |/|-|\\\\(|\\\\)|,\")){\n\n try{\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c#\".toLowerCase(Locale.ENGLISH)))\n res.add(\"csharp\");\n else\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c++\".toLowerCase(Locale.ENGLISH)))\n res.add(\"cpp\");\n else\n if(!mot.toLowerCase(Locale.ENGLISH).matches(\"| |à|de|je|un|et|une|en|d'un|d'une|le|la|avec|:|\\\\|\"))\n res.add(mot.toLowerCase(Locale.ENGLISH));\n }catch (IllegalArgumentException e){\n //System.out.println(e.getMessage());\n continue;\n }\n }\n //System.out.println(\"line: \"+s);\n }\n return (ArrayList) res.stream().distinct().collect(Collectors.toList());\n }",
"public List<SpellSuggestQueryInfo.Suggestion> suggestSpelling(String field,\n String token) throws ServiceException {\n LinkedList<SpellSuggestQueryInfo.Suggestion> toRet = null;\n\n token = token.toLowerCase();\n\n try {\n IndexSearcherRef searcher = this.getIndexSearcherRef();\n try {\n IndexReader iReader = searcher.getReader();\n\n Term term = new Term(field, token);\n int freq = iReader.docFreq(term);\n int numDocs = iReader.numDocs();\n\n if (freq == 0 && numDocs > 0) {\n toRet = new LinkedList<SpellSuggestQueryInfo.Suggestion>();\n FuzzyTermEnum fuzzyEnum = new FuzzyTermEnum(iReader, term, 0.5f, 1);\n do {\n Term cur = fuzzyEnum.term();\n if (cur != null) {\n String curText = cur.text();\n int curDiff = editDistance(curText, token, curText.length(), token.length());\n\n SpellSuggestQueryInfo.Suggestion sug = new SpellSuggestQueryInfo.Suggestion();\n sug.mStr = curText;\n sug.mEditDist = curDiff;\n sug.mDocs = fuzzyEnum.docFreq();\n toRet.add(sug);\n }\n } while (fuzzyEnum.next());\n }\n } finally {\n searcher.dec();\n }\n } catch (IOException e) {\n throw ServiceException.FAILURE(\"Caught IOException opening index\", e);\n }\n\n return toRet;\n }",
"public ArrayList<String> processText(String text)\r\n\t{\r\n\t\tArrayList<String> terms = new ArrayList<>();\r\n\r\n\t\t// P2\r\n\t\t// Tokenizing, normalizing, stopwords, stemming, etc.\r\n\t\tArrayList<String> tokens = tokenize(text);\r\n\t\tfor(String term: tokens){\r\n\t\t\tString norm = normalize(term);\r\n\t\t\tif(!isStopWord(norm)){\r\n\t\t\t\tString stem = stem(norm);\r\n\t\t\t\tterms.add(stem);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn terms;\r\n\t}",
"List<Corretor> search(String query);",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"@XmlAttribute\r\n public String getSearchTerms() {\r\n return searchTerms;\r\n }",
"public static void searchJobs(String searchTerm) {\n\n for (int i = 0; i > PostJob.allJobs.size(); i++) {\n\n\n if (PostJob.allJobs.contains(searchTerm)) {\n int itemIndx = PostJob.allJobs.indexOf(searchTerm);\n String output = PostJob.allJobs.get(itemIndx);\n System.out.print(\"Available jobs within your search terms\" + output);\n\n }\n }\n }"
]
| [
"0.6615037",
"0.6436446",
"0.6285646",
"0.6272961",
"0.62414926",
"0.6237826",
"0.6181063",
"0.61750317",
"0.60754174",
"0.6058598",
"0.60439813",
"0.60263276",
"0.599569",
"0.59740806",
"0.5912787",
"0.5880757",
"0.5873789",
"0.5869223",
"0.58632594",
"0.5831356",
"0.582519",
"0.5817196",
"0.5810955",
"0.58017063",
"0.5768781",
"0.5759895",
"0.57002795",
"0.56835604",
"0.56813574",
"0.56803226",
"0.5648982",
"0.56416017",
"0.56027585",
"0.560247",
"0.55974424",
"0.559207",
"0.55839413",
"0.55805165",
"0.557335",
"0.5527622",
"0.552562",
"0.5525286",
"0.5519425",
"0.5508461",
"0.55041677",
"0.5503843",
"0.55001587",
"0.54994273",
"0.5496312",
"0.54877234",
"0.5482121",
"0.54820675",
"0.548034",
"0.54794884",
"0.5478782",
"0.5478049",
"0.547587",
"0.5475272",
"0.5470146",
"0.54579616",
"0.54569703",
"0.5451222",
"0.54502237",
"0.5443928",
"0.54415214",
"0.5441205",
"0.5426685",
"0.54248494",
"0.54242915",
"0.54220814",
"0.54084533",
"0.5407585",
"0.54016685",
"0.5399466",
"0.53974146",
"0.53632456",
"0.5358028",
"0.5347873",
"0.53458494",
"0.53458434",
"0.53441095",
"0.53418714",
"0.53405946",
"0.5335432",
"0.5331552",
"0.5330347",
"0.53273064",
"0.53223455",
"0.5315864",
"0.53124523",
"0.5311483",
"0.5308171",
"0.5303018",
"0.5302797",
"0.52969694",
"0.5288832",
"0.52868676",
"0.5285652",
"0.52795607",
"0.527566",
"0.52741385"
]
| 0.0 | -1 |
Obtain the transaction hash . | public Optional<String> getTransactionHash() {
return transactionHash;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Sha256Hash getTxHash() {\n return txHash;\n }",
"public byte[] hashTransaction() {\n byte[][] txIdArrays = new byte[this.getTransactions().length][];\n for (int i = 0;i < this.getTransactions().length;i++) {\n txIdArrays[i] = this.getTransactions()[i].getTxId();\n }\n return new MerkleTree(txIdArrays).getRoot().getHash();\n }",
"String getHash();",
"String getHash();",
"private String calculateHash() {\n\n // Increments the sequence to prevent two transactions from having identical keys.\n sequence++;\n return StringUtil.applySha256(\n StringUtil.getStringFromKey(sender) +\n StringUtil.getStringFromKey(recipient) +\n Float.toString(value) +\n sequence\n );\n }",
"private String calulateHash() {\n\t\tsequence++; // increase the sequence to avoid 2 identical transactions having the same hash\n\t\treturn StringUtil.applySha256(StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value) + sequence);\n\t}",
"public String calculateHash () {\n StringBuilder hashInput = new StringBuilder(previousHash)\n .append(timeStamp)\n .append(magicNumber)\n .append(timeSpentMining);\n for (Transfer transfer : this.transfers) {\n String transferDesc = transfer.getDescription();\n hashInput.append(transferDesc);\n }\n return CryptoUtil.applySha256(hashInput.toString());\n }",
"public String calculateHash() throws JsonProcessingException {\n ObjectMapper mapper = new ObjectMapper();\n String data = \"\";\n data += previousHash +\n Long.toString(timeStamp) +\n Integer.toString(nonce) +\n merkleRoot;\n\n data += \"\\\"transactions\\\":\";\n data += mapper.writeValueAsString(transactions);\n return Hashing.applySha256(data);\n }",
"public String getHash() {\n byte[] bArr = new byte[21];\n bArr[0] = (byte) getCTxDestinationType().getValue();\n System.arraycopy(this.mData, 0, bArr, 1, 20);\n return StringToolkit.bytesToString(bArr);\n }",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"@Override\n public Transaction getTransaction(NulsDigestData txHash) {\n return null;\n }",
"public String getHash()\n {\n return hash;\n }",
"public String getHash() {\n return hash;\n }",
"int getHash();",
"public String getHash() {\n return hash;\n }",
"public String getHash() {\n return hash;\n }",
"public String getHash() {\n return hash;\n }",
"public byte[] getHash() {\n\t\treturn _hash.getDataID();\n\t}",
"public String getHash() {\n\t\treturn _hash;\n\t}",
"public String getHash() {\n\t\treturn hash;\n\t}",
"private String calulateHash() {\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(creator) +\r\n\t\t\t\t\tname+description+begin+end+end_subscription+\r\n\t\t\t\t\tmin_capacity+max_capacity+ date_creation_transaction.getTime()\r\n\t\t\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(subscriber) + id_event);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public byte[] getHash() {\n\t\treturn generatedHash;\n\t}",
"public java.lang.String getPaymentHash() {\n java.lang.Object ref = paymentHash_;\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 paymentHash_ = s;\n return s;\n }\n }",
"public int getHash() {\n return hash_;\n }",
"String getTransactionId();",
"String getTransactionId();",
"public int getHash() {\n return hash_;\n }",
"public java.lang.String getPaymentHash() {\n java.lang.Object ref = paymentHash_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n paymentHash_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }",
"public abstract int getHash();",
"java.lang.String getHashData();",
"org.apache.xmlbeans.XmlString xgetHashData();",
"String getSaltedHash();",
"public String getHash()\n\t{\n\t\tif(isModified) generateHash();\n\t\treturn hash;\n\t}",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"UUID getTransactionId();",
"public long getTransactionId();",
"long getTxid();",
"java.lang.String getTxId();",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"public String getHashValue() {\n\t\tif(hash == null || hash.equals(\"\")){\n\t\t\tthis.calculateHashValue();\n\t\t}\n\t\treturn hash;\n\t}",
"public String getHash(String password) {\n return DigestUtils.sha256Hex(password);\n }",
"String getUserPasswordHash();",
"String getTransactionID();",
"public com.google.protobuf.ByteString\n getPaymentHashBytes() {\n java.lang.Object ref = paymentHash_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n paymentHash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public HASH256 getHash1(){return hash1;}",
"static int getHash(int par0)\n {\n return computeHash(par0);\n }",
"public com.google.protobuf.ByteString\n getPaymentHashBytes() {\n java.lang.Object ref = paymentHash_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n paymentHash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"public String getCurrentCommitHash() throws IOException {\n String baseCommit = git.launchCommand(\"rev-parse\", \"--verify\", \"HEAD\").trim();\n debuggingLogger.fine(String.format(\"Base commit hash%s\", baseCommit));\n return baseCommit;\n }",
"private static String CalHash(byte[] passSalt) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n //get the instance value corresponding to Algorithm selected\n MessageDigest key = MessageDigest.getInstance(\"SHA-256\");\n //Reference:https://stackoverflow.com/questions/415953/how-can-i-generate-an-md5-hash\n //update the digest using specified array of bytes\n key.update(passSalt);\n String PassSaltHash = javax.xml.bind.DatatypeConverter.printHexBinary(key.digest());\n return PassSaltHash;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"private static String getHashForUser(String username) {\n\t\tString hash = null;\n\t\tConnection db = DatabaseConnector.getDB();\n\t\ttry {\n\t\t\tStatement stm = db.createStatement();\n\t\t\tString query = String.format(\"SELECT password_hash FROM User WHERE username = '%s'\", username);\n\t\t\tResultSet result = stm.executeQuery(query);\n\t\t\twhile(result.next()) {\n\t\t\t\thash = result.getString(\"password_hash\");\n\t\t\t}\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn hash;\n\t}",
"public Object getTransactionId() throws StandardException;",
"public String getTxid() {\n return txid;\n }",
"public long getSha2();",
"public byte[] getHashData(){\r\n byte[] hashData = Serializer.createParcel(\r\n new Object[]{\r\n getParentHash(),\r\n getNonce(),\r\n getTimeStamp(),\r\n BigInteger.valueOf(getIndex()), //Parcel encoding doesnt support longs\r\n BigInteger.valueOf(getDifficulty()), //Parcel encoding doesnt support longs\r\n getMinerAddress(),\r\n getReward(),\r\n getMerkleRoot(),\r\n getAxiomData(),\r\n getBlockData()\r\n });\r\n return hashData;\r\n }",
"com.google.protobuf.ByteString\n getSaltedHashBytes();",
"private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}",
"private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }",
"java.lang.String getChecksum();",
"@Override\n public String getSaltedHash() {\n Object ref = saltedHash_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n saltedHash_ = s;\n return s;\n }\n }",
"public String getSaltedHash() {\n Object ref = saltedHash_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n saltedHash_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"com.google.protobuf.ByteString\n getTxIdBytes();",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTransactionIdBytes() {\n java.lang.Object ref = transactionId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n transactionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getHashValue() {\n return hashValue;\n }",
"public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }",
"private String getTxAsString()\n {\n if (tx == null)\n return null;\n\n return tx.getClass().getName() + \"@\" + System.identityHashCode(tx);\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"int getClientHashLength();",
"byte[] getDigest();",
"public String getMD5() {\n return hash;\n }",
"public static String GetHash(String input)\n {\n String hash = DigestUtils.sha1Hex(input);\n System.out.println(hash);\n return hash;\n }",
"String getHashAlgorithm();",
"public String getRandomSHA256Hash(int quantity) throws Exception { \n\t\tRandom randomno = new Random();\n\n byte[] nbyte = new byte[quantity];\n\n byte[] encodedhash = null;\n StringBuffer hexString = new StringBuffer();\n\n randomno.nextBytes(nbyte);\n\n try {\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n encodedhash = digest.digest(nbyte);\n\n for (int i = 0; i < encodedhash.length; i++) {\n String hex = Integer.toHexString(0xff & encodedhash[i]);\n if(hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n } catch (Exception e) {\n \t e.printStackTrace();\n }\n\n return hexString.toString();\n\t}",
"byte[] digest();",
"public com.google.protobuf.ByteString\n getTransactionIdBytes() {\n java.lang.Object ref = transactionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n transactionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", bversion=\").append(bversion);\n sb.append(\", blockHeight=\").append(blockHeight);\n sb.append(\", propKey=\").append(propKey);\n sb.append(\", propValue=\").append(propValue);\n sb.append(\", mptType=\").append(mptType);\n sb.append(\", hashValue=\").append(hashValue);\n sb.append(\", txid=\").append(txid);\n sb.append(\", prevHashValue=\").append(prevHashValue);\n sb.append(\", prevBlockHeight=\").append(prevBlockHeight);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"public long getBaseTransId() {\n return commitList.getBaseTransId();\n }",
"@java.lang.Override\n public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\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 txid_ = s;\n return s;\n }\n }",
"long hash(Block block, int position);",
"public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }",
"@Override\n public com.google.protobuf.ByteString\n getSaltedHashBytes() {\n Object ref = saltedHash_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n saltedHash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String sha256Checksum() {\n return this.sha256Checksum;\n }",
"public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private void getHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(getString(R.string.app_package_name), PackageManager.GET_SIGNATURES);\n\n for (Signature signature : info.signatures)\n {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n } catch (NoSuchAlgorithmException nsa)\n {\n Log.d(\"exception\" , \"No algorithmn\");\n Assert.assertTrue(false);\n }\n }\n } catch (PackageManager.NameNotFoundException nnfe)\n {\n Log.d(\"exception\" , \"Name not found\");\n Assert.assertNull(\"Name not found\", nnfe);\n }\n }",
"protected String getTransactionId() {\n return transactionId;\n }",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"@Override\n\tpublic String getBestBlockHash() throws WalletException {\n\t\treturn null;\n\t}",
"public int getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"@java.lang.Override\n public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n }\n }",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"public String getTransaction() {\n return transaction;\n }"
]
| [
"0.7380898",
"0.7334517",
"0.713696",
"0.713696",
"0.713297",
"0.70540154",
"0.7037909",
"0.70093274",
"0.7001901",
"0.69231164",
"0.69231164",
"0.6821035",
"0.6792608",
"0.6768299",
"0.67540133",
"0.6743056",
"0.6743056",
"0.6743056",
"0.67400295",
"0.6721219",
"0.6686711",
"0.66472423",
"0.6618833",
"0.6599936",
"0.6555114",
"0.65461105",
"0.65461105",
"0.65177125",
"0.65050507",
"0.65048945",
"0.64916265",
"0.64622676",
"0.6456647",
"0.64459276",
"0.6411327",
"0.64065796",
"0.6380391",
"0.6368169",
"0.63678896",
"0.636575",
"0.63352054",
"0.6324427",
"0.6309332",
"0.6308434",
"0.6279084",
"0.6258",
"0.6253365",
"0.624862",
"0.62155455",
"0.6172552",
"0.6172552",
"0.6153383",
"0.6153383",
"0.61204296",
"0.6093516",
"0.60919213",
"0.60919213",
"0.60688674",
"0.60433453",
"0.60351974",
"0.60341847",
"0.6033529",
"0.60335207",
"0.60252374",
"0.6000725",
"0.59789157",
"0.59760916",
"0.59667045",
"0.59546816",
"0.5944648",
"0.5936892",
"0.5932935",
"0.5920967",
"0.5909216",
"0.5908687",
"0.5907005",
"0.5899045",
"0.5874667",
"0.58640486",
"0.5852301",
"0.5845256",
"0.5844152",
"0.5841588",
"0.5822616",
"0.5822306",
"0.58191055",
"0.5812431",
"0.57951486",
"0.5791788",
"0.578926",
"0.5774182",
"0.57633",
"0.5762726",
"0.57616174",
"0.5759824",
"0.5752553",
"0.5752553",
"0.5749123",
"0.5748996",
"0.57481784"
]
| 0.7275889 | 2 |
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. | public boolean a(MotionEvent motionEvent, float f, float f2, float f3, float f4) {
try {
if (!this.f.an.h()) {
return true;
}
if (this.f.bg || this.f.bl) {
return true;
}
if (this.b == null) {
this.b = Float.valueOf(f4);
}
if (this.a == null) {
this.a = Float.valueOf(f2);
}
float f5 = this.i - f2;
float f6 = this.j - f4;
float f7 = this.g - f;
float f8 = this.h - f3;
if (((double) Math.abs(this.k - ((f4 - f2) / (f3 - f)))) < 0.2d) {
if (f5 > 0.0f) {
}
if (f5 < 0.0f) {
}
}
return false;
} catch (RemoteException e) {
e.printStackTrace();
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void m13383b() {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }",
"static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m14210a(java.io.IOException r4, java.io.IOException r5) {\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 r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }",
"public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public long mo915b() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }",
"private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }",
"public void mo2485a() {\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/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }",
"private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo3613a() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }",
"private static void m13385d() {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }",
"private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\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 r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }",
"public static boolean m19464a(java.lang.String r3, int[] r4) {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }",
"public boolean mo3969a() {\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/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }",
"protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\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/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }",
"private void m50366E() {\n }",
"public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\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/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }",
"void m5768b() throws C0841b;",
"void m1864a() {\r\n }",
"public boolean method_2088(class_689 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"void m5770d() throws C0841b;",
"public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\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/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"public final void mo91715d() {\n }",
"public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String 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/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"public void method_4270() {}",
"private static void m13381a(long r3, float r5) {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }",
"static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private static class_1205 method_6442(String param0, int param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2112(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }",
"void m5769c() throws C0841b;",
"void m5771e() throws C0841b;",
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }",
"public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\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/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }",
"public void method_2111(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }",
"@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }",
"public boolean method_2243() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\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/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }",
"private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }",
"public void method_2116(class_689 param1, boolean param2) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }",
"static void m7753b() {\n f8029a = false;\n }",
"public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\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/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }",
"public static int m22557b(java.lang.String r1) {\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/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }",
"public void method_7080(String param1, class_1293 param2) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void m9741j() throws cf {\r\n }",
"private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }",
"public boolean method_2153(boolean param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m50367F() {\n }",
"public void mo21779D() {\n }",
"public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }",
"private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }",
"public void method_2249(boolean param1, class_81 param2) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo115190b() {\n }",
"public final void mo1285b() {\n }",
"public void mo23813b() {\n }",
"public boolean method_208() {\r\n return false;\r\n }",
"public final void mo11687c() {\n }",
"public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\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 r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }",
"public final void mo51373a() {\n }",
"void mo72113b();",
"public boolean method_2434() {\r\n return false;\r\n }",
"public void mo21787L() {\n }",
"boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }",
"private void kk12() {\n\n\t}",
"void mo80457c();",
"@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }",
"public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }",
"private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }",
"public void m23075a() {\n }",
"void mo80452a();",
"public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }",
"public void mo12628c() {\n }",
"public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\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/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }",
"void mo41086b();",
"private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public void mo21785J() {\n }",
"public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }",
"protected boolean func_70041_e_() { return false; }",
"static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }"
]
| [
"0.7616782",
"0.75728166",
"0.7525724",
"0.74507046",
"0.74505866",
"0.74373597",
"0.7381616",
"0.7381616",
"0.7366568",
"0.735341",
"0.73420185",
"0.73150736",
"0.7308675",
"0.73055106",
"0.7274724",
"0.72523946",
"0.72216254",
"0.71979403",
"0.7177258",
"0.7136552",
"0.7106082",
"0.70418596",
"0.7024962",
"0.70197546",
"0.69911283",
"0.69613564",
"0.69409144",
"0.6908151",
"0.6890134",
"0.68525946",
"0.68281573",
"0.67949134",
"0.6784313",
"0.6777685",
"0.67725635",
"0.677158",
"0.6769469",
"0.6767704",
"0.67430586",
"0.67081237",
"0.6701509",
"0.66999537",
"0.6698843",
"0.6698377",
"0.6670063",
"0.6668109",
"0.66555125",
"0.6613381",
"0.661335",
"0.6609933",
"0.6594555",
"0.65691173",
"0.65659195",
"0.6539569",
"0.6514096",
"0.65095544",
"0.65094143",
"0.6490445",
"0.64368844",
"0.6432842",
"0.6430799",
"0.6404235",
"0.6401294",
"0.6372685",
"0.6369568",
"0.6368447",
"0.63579416",
"0.6329343",
"0.6326999",
"0.63252985",
"0.6317552",
"0.6305244",
"0.630364",
"0.62988764",
"0.6281612",
"0.6281284",
"0.6241846",
"0.6228182",
"0.622796",
"0.62267816",
"0.62259656",
"0.62186515",
"0.62184393",
"0.6204782",
"0.6197622",
"0.61945254",
"0.6180569",
"0.61717045",
"0.61680174",
"0.6164003",
"0.61634594",
"0.6161363",
"0.615725",
"0.61552316",
"0.61522835",
"0.61414874",
"0.61262673",
"0.6115875",
"0.6111993",
"0.6102305",
"0.6096556"
]
| 0.0 | -1 |
Returns is queue is empty | public boolean isEmpty() {
return qSize == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isEmpty() {\n return queue.isEmpty();\n }",
"@Override\n public boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean queueEmpty() {\r\n\t\tif (vehiclesInQueue.size() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean isEmpty() \n {\n\treturn queue.size() == 0;\n }",
"public boolean isEmpty()\n {\n return queue.isEmpty();\n }",
"public boolean empty() {\r\n return this.queueMain.isEmpty();\r\n }",
"public boolean isEmpty() {\n return this.queue.size() == 0;\n }",
"public boolean isEmpty(){\n\t\tif(queue.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean queueFull() {\r\n\t\tif (vehiclesInQueue.size() > maxQueueSize) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean empty() {\n\t\treturn queue.isEmpty();\n\t}",
"public boolean isQueueEmpty(Queue objQueue){\r\n\t\treturn objQueue.getRare()==-1;\r\n\t}",
"public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}",
"public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}",
"public boolean empty() {\r\n return queue1.size() == 0;\r\n }",
"public boolean empty() {\r\n return queue1.size() == 0;\r\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}",
"public boolean isQueueFull(Queue objQueue){\r\n\t\treturn objQueue.getRare()==objQueue.getArrOueue().length;\r\n\t}",
"public boolean isFull(){\n return size == arrayQueue.length;\n }",
"public boolean isEmpty() {\n return holdingQueue.isEmpty();\n }",
"public static boolean isEmpty() {\n System.out.println();\t \n if(queue.isEmpty()) {\t \n System.out.println(\"The queue is currently empty and has no elements.\");\t \t \t \n }\n else {\n System.out.println(\"The queue is currently not empty.\");\t \t\t \n }\n return queue.isEmpty();\n }",
"private boolean queueFullError() {\n\t\tSystem.out.println(\"Queue Full!!!\");\n\t\treturn false;\n\t}",
"public boolean empty() {\n return queue1.isEmpty();\n }",
"public boolean isEmpty()\r\n\t{\n\t\tif(backIndex<0)\r\n\t\t{\r\n\t\t\tbackIndex=-1;\r\n\t\t\tSystem.out.println(\"Queue is Empty\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isMessageQueueEmpty() {\r\n\t\treturn this.messages.size() == 0;\r\n\t}",
"public static boolean isEmpty() {\n\t\treturn resultQueue.isEmpty();\n\t}",
"public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }",
"public boolean isEmpty() {\r\n boolean z = false;\r\n if (!isUnconfinedQueueEmpty()) {\r\n return false;\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null && !delayedTaskQueue.isEmpty()) {\r\n return false;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n z = ((LockFreeTaskQueueCore) obj).isEmpty();\r\n }\r\n return z;\r\n }\r\n z = true;\r\n return z;\r\n }",
"public boolean isFull() {\n int nexttail = (tail + 1 == queue.length) ? 0 : tail + 1;\n return (nexttail == head) && (queue[tail] != null);\n }",
"public boolean empty() {\n return queueA.isEmpty() && queueB.isEmpty();\n }",
"public boolean isEmpty() {\n // Write your code here\n return queue1.isEmpty() && queue2.isEmpty();\n }",
"public boolean isSetQueue() {\n return this.queue != null;\n }",
"public boolean empty() {\n return queue.isEmpty() && forReverse.isEmpty();\n }",
"public boolean empty() {\n return normalQueue.isEmpty() && reverseQueue.isEmpty();\n }",
"public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}",
"public boolean isQueueClosed();",
"public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }",
"public boolean isEmpty()\r\n {\r\n if(measurementQueue==null) return true;\r\n \r\n return measurementQueue.isEmpty();\r\n }",
"public boolean isEmpty(){\n\t\treturn ( startQueue.isEmpty() && finishQueue.isEmpty() && completedRuns.isEmpty() );\n\t}",
"@Override\n public boolean hasNext() {\n return !queue.isEmpty();\n }",
"public boolean empty() {\n if (queue1.isEmpty() && queue2.isEmpty()){\n return true;\n }\n return false;\n }",
"public boolean isEmpty() { return (dequeSize == 0); }",
"public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }",
"boolean isEmpty() {\n\t\t\n\t\t// array is empty if no elements can be polled from it\n\t\t// \"canPoll\" flag shows if any elements can be polled from queue\n\t\t// NOT \"canPoll\" means - empty\n\t\t\n\t\treturn !canPoll;\n\t}",
"public boolean empty() {\n return q.isEmpty();\n }",
"public boolean isEmpty() {\n return (head == tail) && (queue[head] == null);\n }",
"@Override\n public boolean hasMessageAvailable() {\n return !priorityQueue.isEmpty() && priorityQueue.peekN1() <= clock.millis();\n }",
"public boolean empty() {\n return q.isEmpty();\n }",
"private boolean isEmpty() {\n int ro = reserveOffset;\n if (ro >= reserve) {\n if (queue[reserve].isCommitted()) {\n ro = reserve + 1;\n } else {\n ro = reserve;\n }\n }\n\n LOG.debug(\"Effective flush/reserve offset {}/{}\", flushOffset, ro);\n return ro <= flushOffset;\n }",
"public boolean isEmpty() {\n\t\tboolean empty = true;\n\n\t\tfor(LinkedList<Passenger> queue : queues) { // loop through each queue to see if its empty.\n\t\t\tif(!queue.isEmpty()){\n\t\t\t\tempty = false;\n\t\t\t}\n \t}\n\t\treturn empty;\n }",
"public boolean clear() {\n return queue.clear();\n }",
"public boolean empty() {\n\t if(q.size()==0) return true;\n\t return false;\n\t }",
"@Test\n public void emptyFalseTest() {\n SimpleQueue<String> queue = new SimpleQueue<>();\n final String result = queue.push(this.work1);\n assertThat(false, is(queue.empty()));\n assertThat(\"work1\", is(result));\n }",
"public boolean isQueue() {\n return this == QUEUE;\n }",
"public boolean isEmpty() {\n lock.lock();\n try {\n return active == null && tasks.isEmpty();\n } finally {\n lock.unlock();\n }\n }",
"public boolean wasQueued() {\r\n\t\tif (wasQueued == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}",
"public boolean empty() {\n return push.isEmpty();\n }",
"private boolean needToGrow() {\n if(QUEUE[WRITE_PTR] != null) {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean isIdle() {\n return queue.isEmpty();\n }",
"private synchronized boolean taskIsEmpty() {\n\t\treturn taskList.isEmpty();\n\t}",
"public boolean hasInstInQueue() {\n\t\treturn CurrentInstTomasulo <= lstInstructionsTomasulo.size();\n\t}",
"@Test\n public void emptyTrueTest() {\n SimpleQueue<String> queue = new SimpleQueue<>();\n assertThat(true, is(queue.empty()));\n }",
"public boolean hasBytesToSend() {\n\t\treturn !byteBufferQueue.isEmpty();\n\t}",
"public void testEmptyFull() {\n SynchronousQueue q = new SynchronousQueue();\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }",
"public boolean isSetQueues() {\n return this.queues != null;\n }",
"public boolean isEmpty() {\r\n return tasks.isEmpty();\r\n }",
"@Test\n public void testIsEmpty() {\n this.queue = new HeapPriorityQueue<Person>(5); \n boolean actualResult = this.queue.isEmpty();\n \n boolean expectedResult = true;\n \n assertEquals(expectedResult, actualResult);\n }",
"public boolean isEmpty() {\n return (fifoEmpty.getBoolean());\n }",
"public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"boolean isFinished() {\n if (completeCount < reserve) {\n return false;\n }\n\n // We need to check if the last entry was used\n final OutboundQueueEntry last = queue[reserve];\n return !last.isCommitted() || last.isCompleted();\n }",
"public boolean isEmpty() {\n\t\treturn callbacks.isEmpty();\n\t}",
"public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}",
"public boolean empty() { \t \n\t\t return size <= 0;\t \n }",
"public boolean isEmpty(){\r\n return currentSize == 0;\r\n }",
"public final boolean isQueued() {\n\t\treturn (m_flags & RequestQueued) != 0 ? true : false;\n\t}",
"private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public int size(){\r\n\t\treturn queue.size();\r\n\t}",
"public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }",
"private boolean ifFull() {\n return items.length == size;\n }",
"public boolean isEmpty() {\n return downStack.isEmpty();\n }",
"public boolean empty() {\r\n return size == 0;\r\n }",
"@Override\n public boolean isEmpty() {\n return _size == 0;\n }",
"private boolean isEmpty() {\n return (size == 0);\n }",
"public boolean empty() {\n return size <= 0;\n }"
]
| [
"0.84881765",
"0.83010674",
"0.82376415",
"0.81731725",
"0.813095",
"0.8129829",
"0.80961716",
"0.80937386",
"0.80844706",
"0.8061263",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80423063",
"0.80350435",
"0.80350435",
"0.80350435",
"0.80350435",
"0.80350435",
"0.8029186",
"0.8027456",
"0.80162364",
"0.799831",
"0.799831",
"0.7979529",
"0.7979529",
"0.7937786",
"0.78419334",
"0.78325146",
"0.77933264",
"0.7754864",
"0.77329606",
"0.77239245",
"0.770544",
"0.7693774",
"0.76916194",
"0.76651794",
"0.76237464",
"0.75413835",
"0.7537268",
"0.75115466",
"0.7478727",
"0.74196565",
"0.74189454",
"0.73738843",
"0.73694515",
"0.7363785",
"0.73222756",
"0.7289589",
"0.724407",
"0.72185",
"0.71746194",
"0.71316403",
"0.7131314",
"0.71100354",
"0.7108218",
"0.7105481",
"0.7105335",
"0.7091669",
"0.70688164",
"0.70615953",
"0.7019138",
"0.7007842",
"0.6979364",
"0.6948062",
"0.69415563",
"0.69307613",
"0.6929806",
"0.69289595",
"0.68941915",
"0.6871101",
"0.68619204",
"0.68579215",
"0.6849805",
"0.6830129",
"0.68190056",
"0.67764646",
"0.67460114",
"0.6735941",
"0.67283636",
"0.67011416",
"0.6698939",
"0.6694667",
"0.66878575",
"0.6674595",
"0.667351",
"0.6658566",
"0.6652089",
"0.66514516",
"0.664095",
"0.6633878",
"0.66238904",
"0.6617988",
"0.6608872",
"0.6594712",
"0.65942955"
]
| 0.70267856 | 65 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.