query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Add the DTO and check the ticker symbol to ensure a company exists or create one if not.
@Override protected void preAddDTO( final D dto ) { final String methodName = "preAddDTO"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto argument cannot be null" ); checkTickerSymbol( dto ); super.preAddDTO( dto ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void checkTickerSymbol( final D dto )\n {\n final String methodName = \"checkTickerSymbol\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockCompanyEntityService\n .checkStockCompanyTableEntry( dto.getTickerSymbol() );\n logMethodEnd( methodName );\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "Company getOrCreateCompanyId(String companyID) throws Exception;", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewAuditingCompany();", "@PostMapping(\"/company-types\")\n @Timed\n public ResponseEntity<CompanyType> createCompanyType(@Valid @RequestBody CompanyType companyType) throws URISyntaxException {\n log.debug(\"REST request to save CompanyType : {}\", companyType);\n if (companyType.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"companyType\", \"idexists\", \"A new companyType cannot already have an ID\")).body(null);\n }\n CompanyType result = companyTypeRepository.save(companyType);\n companyTypeSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/company-types/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"companyType\", result.getId().toString()))\n .body(result);\n }", "@PostMapping(\"/buy-types\")\n @Timed\n @Secured({AuthoritiesConstants.ROLE_ADMIN, AuthoritiesConstants.CREATE_BUY_TYPE})\n public ResponseEntity<BuyTypeDTO> createBuyType(@Valid @RequestBody BuyTypeDTO buyTypeDTO, BindingResult validation) throws URISyntaxException {\n if (validation.hasErrors())\n return ValidationResponseEntityGenerator.getBadRequest(validation);\n log.debug(\"REST request to save BuyType : {}\", buyTypeDTO);\n if (buyTypeDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new buyType cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n BuyTypeDTO result = buyTypeService.save(buyTypeDTO);\n return ResponseEntity.created(new URI(\"/api/buy-types/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\n protected void preSaveDTO( final D dto )\n {\n final String methodName = \"preSaveDTO\";\n logMethodBegin( methodName, dto );\n checkTickerSymbol( dto );\n super.preSaveDTO( dto );\n logMethodEnd( methodName );\n }", "RocketDTO addRocket(CreateRocketDTO rocket);", "@Test\n public void getCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.QUOTE_SYMBOL);\n assertFalse(comps.isEmpty());\n boolean pass = false;\n for (Stock info : comps) {\n if (info.getSymbol().equals(TestConfiguration.QUOTE_SYMBOL)) {\n pass = true;\n }\n }\n assertTrue(pass);\n }", "public boolean addOrUpdateCapitalMarkets(CapitalMarketsModel companyDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSuccessful = false;\n\n //As usual Wrap it in a transaction\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_COMPANY_OBJECT_ID, companyDetails.getCompanyObjectId());\n values.put(KEY_COMPANY_NAME, companyDetails.getCompanyName());\n values.put(KEY_COMPANY_IMAGE, companyDetails.getCompanyImage());\n values.put(KEY_COMPANY_ADDRESS, companyDetails.getCompanyAddress());\n values.put(KEY_COMPANY_STOCK_CODE, companyDetails.getCompanyStockCode());\n values.put(KEY_COMPANY_DESCRIPTION, companyDetails.getCompanyDescription());\n values.put(KEY_COMPANY_ESTABLISHED, companyDetails.getCompanyEstablished());\n values.put(KEY_COMPANY_CONTACTS, companyDetails.getCompanyContacts());\n values.put(KEY_COMPANY_INDUSTRY, companyDetails.getCompanyType());\n values.put(KEY_COMPANY_WEBSITE, companyDetails.getCompanyWebsite());\n values.put(KEY_COMPANY_STATUS, companyDetails.getCompanyStatus());\n values.put(KEY_COMPANY_SUMMARY, companyDetails.getCompanySummary());\n //Let's try to update the Saved Product if it exists.\n int rows = db.update(TABLE_BANKS, values, KEY_COMPANY_OBJECT_ID + \"= ?\", new String[]{companyDetails.getCompanyObjectId()});\n\n //Let's check if the update worked\n if (rows == 1) {\n //Ok, we have updated a Saved COMPANY, we could probably get the COMPANY updated at this point if we needed to\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n\n } else {\n //No Such Bank Here, insert it\n db.insertOrThrow(TABLE_CAPITAL_MARKETS, null, values);\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error trying to Update company table\");\n transactionSuccessful = false;\n } finally {\n db.endTransaction();\n }\n return transactionSuccessful;\n\n }", "@PostMapping(\"/tlb-trade/createTlbTrade\")\n @Timed\n public ResponseEntity<ResponseResult> createTlbTrade(@RequestBody TlbTradeDTO tlbTradeDTO) throws URISyntaxException {\n log.debug(\"REST request to save TlbTrade : {}\", tlbTradeDTO);\n if (tlbTradeDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new sysComponent cannot already have an ID\")).body(null);\n }\n ResponseResult json = new ResponseResult();\n HashMap<String, Object> checkMap = tlbTradeService.checkLotsTrade(tlbTradeDTO);\n if(!ResponseResult.SUCCESS_CODE.equals(checkMap.get(\"statusCode\"))){\n json.setMsgCode(checkMap.get(\"msg\").toString());\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }\n TlbTradeDTO tradeDTO = tlbTradeService.save(tlbTradeDTO);\n //ResponseResult json = new ResponseResult();\n json.setStatusCode(ResponseResult.SUCCESS_CODE);\n json.setData(tradeDTO);\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }", "@Override\r\n\tpublic int createMarket(MarketDto dto) {\n\t\treturn session.insert(\"kdc.market.createMarket\", dto);\r\n\t}", "@PostMapping(path = \"\")\n public ResponseEntity<ContractorDTO> saveContractor(@RequestBody @Valid ContractorDTO contractor) throws Exception{\n logger.debug(\"Request to save Contractor\");\n Contractor existingContractor = new Contractor();\n if(contractor.getId() != null && contractor.getId() > 0) {\n //Updating existing contractor - Check item with matching ID present\n Optional<Contractor> savedContractor = contractorService.getByID(contractor.getId());\n if(savedContractor != null && savedContractor.isPresent()) existingContractor = savedContractor.get();\n else throw new ResourceNotFoundException(\"In order to update Contractor \" + contractor.getId() + \", existing Contractor must be available with same ID\");\n }\n\n //In case not all persistent attributes not present in update DTO\n Contractor saveContractor = copyToContractor(contractor, existingContractor);\n Contractor savedContractor = contractorService.saveContractor(saveContractor);\n if(savedContractor.getId() != null && savedContractor.getId() > 0){\n logger.info(\"Saved Contractor with id \" + saveContractor.getId());\n ContractorDTO savedContractorDTo = convertToDTO(savedContractor);\n return ResponseEntity.created (new URI(\"/contractors/\" + savedContractor.getId())).body(savedContractorDTo);\n }\n else{\n throw new PersistenceException(\"Contractor not persisted: \" + new Gson().toJson(savedContractor));\n }\n }", "@Override\n\tpublic void addCompany(BeanCompany Company) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.save(Company);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n\t}", "OrderDTO create(OrderDTO orderDTO);", "@Override\n public final Buyer createBuyr(final Map<String, Object> pRvs,\n final IReqDt pRqDt) throws Exception {\n Map<String, Object> vs = new HashMap<String, Object>();\n Buyer buyer = null;\n vs.put(\"DbCrdpLv\", 1);\n vs.put(\"TxDstdpLv\", 1);\n List<Buyer> brs = getOrm().retLstCnd(pRvs, vs, Buyer.class,\n \"where FRE=1 and PWD is null\");\n vs.clear();\n if (brs.size() > 0) {\n double rd = Math.random();\n if (rd > 0.5) {\n buyer = brs.get(brs.size() - 1);\n } else {\n buyer = brs.get(0);\n }\n buyer.setPwd(null);\n buyer.setEml(null);\n buyer.setFre(false);\n }\n if (buyer == null) {\n buyer = new Buyer();\n buyer.setIsNew(true);\n buyer.setNme(\"newbe\" + new Date().getTime());\n }\n return buyer;\n }", "@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}", "@PostMapping(\"/prix-tickets\")\n @Timed\n public ResponseEntity<PrixTicketDTO> createPrixTicket(@RequestBody PrixTicketDTO prixTicketDTO) throws URISyntaxException {\n log.debug(\"REST request to save PrixTicket : {}\", prixTicketDTO);\n if (prixTicketDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new prixTicket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PrixTicketDTO result = prixTicketService.save(prixTicketDTO);\n return ResponseEntity.created(new URI(\"/api/prix-tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@PostMapping(\"/company-departments\")\n @Timed\n public ResponseEntity<CompanyDepartment> createCompanyDepartment(@RequestBody CompanyDepartment companyDepartment) throws URISyntaxException {\n log.debug(\"REST request to save CompanyDepartment : {}\", companyDepartment);\n if (companyDepartment.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"companyDepartment\", \"idexists\", \"A new companyDepartment cannot already have an ID\")).body(null);\n }\n CompanyDepartment result = companyDepartmentRepository.save(companyDepartment);\n return ResponseEntity.created(new URI(\"/api/company-departments/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"companyDepartment\", result.getId().toString()))\n .body(result);\n }", "@PostMapping(\"/costo-servicios\")\n @Timed\n public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {\n log.debug(\"REST request to save CostoServicio : {}\", costoServicioDTO);\n if (costoServicioDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new costoServicio cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CostoServicioDTO result = costoServicioService.save(costoServicioDTO);\n return ResponseEntity.created(new URI(\"/api/costo-servicios/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\n protected void postAddDTO( final D dto )\n {\n final String methodName = \"postAddDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postAddDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "public Company saveCompany(Company company);", "public Account create(CheckingAccDto checkingAccDto) {\n CheckingAcc checkingAcc;\n Optional<AccountHolder> accountHolder = accountHolderRepository.findById(checkingAccDto.getPrimaryOwnerId());\n if (accountHolder.isPresent()){\n if(Utils.calculateYears(accountHolder.get().getDateOfBirth())<24){\n StudentCheckingAcc studentCheckingAcc = new StudentCheckingAcc(\n accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n studentCheckingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return studentCheckingAccRepository.save(studentCheckingAcc);\n } else {\n checkingAcc = new CheckingAcc (accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n checkingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return checkingAccRepository.save(checkingAcc);\n }\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Primary owner not found\");\n }\n }", "CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);", "@Override\r\n\tpublic void addCompany(Company company) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"insert into companies values(0, ?, ?, ?)\";\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tif (company != null) {\r\n\t\t\t\tpstmt.setString(1, company.getCompName());\r\n\t\t\t\tpstmt.setString(2, company.getCompEmail());\r\n\t\t\t\tpstmt.setString(3, company.getCompPass());\r\n\t\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t\tSystem.out.println(\"New company was added\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"addCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void save(Company company) {\n\t\t\n\t}", "public boolean addCompanyData (CompanyData companyData) //ADD\n\t{\n\t\tContentValues contentValues = new ContentValues();\n\t\tcontentValues.put(COLUMN_COMPANY_NAME, companyData.getCompanyName());\n\n\n\t\tlong result = db.insert(TABLE_COMPANY, null, contentValues);\n\t\tdb.close();\n\n\t\t//Notifying if transaction was successful \n\t\tif(result == -1)return false;\n\t\telse return true;\n\n\t}", "T createOrUpdate(final T domain) throws RequiredValueException, NoEntityFoundException;", "protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice map and return true;\r\n stocksSymbolToPrice.put(tickerSymbol, sharePrice);\r\n return true;\r\n }", "public CustomerCompany addOrUpdateCustomerCompany(CustomerCompany company) \n\t{\n\t\tif (company.getId() == null) \n\t\t{\n\t\t\tthis.entityManager.persist(company);\t\t\t\n\t\t} \n\t\telse \n\t\t{\n\t\t\tcompany = this.entityManager.merge(company);\n\t\t}\n\t\treturn company;\n\t}", "@Override\r\n\tpublic Company insertCompany(Company company) throws SQLException {\n\t\treturn companyRepository.save(company);\r\n\t}", "@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "public CompanyData() {\r\n }", "@PostMapping(\"/addNewTrader\")\r\n\tpublic int createNewPortfolio(@Valid @RequestBody List<Stock> stockPortfolioList){\r\n return stockPortfolioService.addNewTrader(stockPortfolioList);\r\n\t }", "@Override\n\tpublic OrderResponseDto createOrder(OrderRequestDto orderRequestDto) {\n\t\tLOGGER.info(\"Enter into order service impl\");\n\n\t\tOptional<Stocks> stock = stockRepository.findById(orderRequestDto.getStockId());\n\t\tOptional<User> user = userRepository.findById(orderRequestDto.getUserId());\n\n\t\tif (!stock.isPresent())\n\t\t\tthrow new CommonException(TradingConstants.ERROR_STOCK_NOT_FOUND);\n\t\tif (!user.isPresent())\n\t\t\tthrow new CommonException(TradingConstants.ERROR_USER_NOT_FOUND);\n\t\tif (orderRequestDto.getStockQuantity() >= 100)\n\t\t\tthrow new CommonException(TradingConstants.ERROR_QUANTITY);\n\t\tDouble brokeragePercent = Double.valueOf(stock.get().getBrokerageAmount() / 100d);\n\t\tDouble brokerageAmount = stock.get().getStockPrice() * orderRequestDto.getStockQuantity() + brokeragePercent;\n\t\tDouble totalPrice = stock.get().getStockPrice() * orderRequestDto.getStockQuantity() + brokerageAmount;\n\n\t\tOrders orders = Orders.builder().stockId(stock.get().getStockId())\n\t\t\t\t.stockQuantity(orderRequestDto.getStockQuantity()).totalPrice(totalPrice)\n\t\t\t\t.stockStatus(StockStatus.P.toString()).userId(orderRequestDto.getUserId()).build();\n\t\torderRepository.save(orders);\n\t\tResponseEntity<GlobalQuoteDto> latest = latestStockPrice(stock.get().getStockName());\n\t\treturn new OrderResponseDto(orders.getOrderId(), stock.get().getStockPrice(),\n\t\t\t\tlatest.getBody().getGlobalQuote().getPrice());\n\t}", "@PostMapping(\"/operational-heads\")\n @Timed\n public ResponseEntity<OperationalHeadDTO> createOperationalHead(@Valid @RequestBody OperationalHeadDTO operationalHeadDTO) throws URISyntaxException {\n log.debug(\"REST request to save OperationalHead : {}\", operationalHeadDTO);\n if (operationalHeadDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new operationalHead cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OperationalHeadDTO result = operationalHeadService.save(operationalHeadDTO);\n return ResponseEntity.created(new URI(\"/api/operational-heads/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "net.webservicex.www.WeatherForecasts addNewWeatherForecasts();", "@Override\n public boolean insertShare(CompanyShare companyShare) {\n CompanyShare existingShare = getShare(\n Filters.eq(\"companySymbol\", companyShare.getCompanySymbol())\n );\n\n if (existingShare != null) {\n return false;\n }\n\n Document newShare = ObjectMapperHelper.MapToDocument(companyShare);\n getSharesCollection().insertOne(newShare);\n\n return true;\n }", "public boolean addBudget() {\n\t\tConnection con = null;\n\t\tboolean valid = false;\n\n\t\ttry {\n\t\t\tcon = Jdbc.createThreadConnection();\n\t\t\tcon.setAutoCommit(false);\n\t\t\tGateway budgetGateway = PersistenceFactory.createBudgetGateway();\n\t\t\tbudgetGateway.add(dto);\n\t\t\tcon.commit();\n\t\t\tvalid = true;\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tcon.rollback();\n\t\t\t\treturn valid;\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t} finally {\n\t\t\tJdbc.close(con);\n\t\t}\n\n\t\treturn valid;\n\t}", "@PostMapping(\"/opportunities\")\n @Timed\n public ResponseEntity<OpportunityDTO> createOpportunity(@Valid @RequestBody OpportunityDTO opportunityDTO) throws URISyntaxException {\n log.debug(\"REST request to save Opportunity : {}\", opportunityDTO);\n if (opportunityDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new opportunity cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OpportunityDTO result = opportunityService.save(opportunityDTO);\n return ResponseEntity.created(new URI(\"/api/opportunities/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\r\n\tpublic Company updateCompany(Company company) {\n\t\treturn null;\r\n\t}", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "public void insertNew(Company company,\n\t\t\tDataImportParametersDTO dataImportParametersDTO, Long companyId) {\n\n\t\tList<DataImportLogDTO> insertOnlyLogs = new ArrayList<DataImportLogDTO>();\n\t\tList<DataImportKeyValueDTO> companyColName = dataImportParametersDTO\n\t\t\t\t.getEmpColName();\n\t\tString rowNumber = dataImportParametersDTO.getRowNumber();\n\t\tboolean isDynamic = dataImportParametersDTO.isDynamic();\n\t\tList<Long> formIds = dataImportParametersDTO.getFormIds();\n\t\tlong entityId = dataImportParametersDTO.getEntityId();\n\t\tList<String> tableNames = dataImportParametersDTO.getTableNames();\n\t\tList<HashMap<String, String>> colFormMapList = dataImportParametersDTO\n\t\t\t\t.getColFormMapList();\n\t\tList<String> dynRecordsName = dataImportParametersDTO\n\t\t\t\t.getDynRecordsName();\n\n\t\ttry {\n\n\t\t\tCompanyConditionDTO companyDTO = new CompanyConditionDTO();\n\t\t\tcompanyDTO.setCompanyCode(company.getCompanyCode());\n\t\t\tCompany existingCompanyRecord = companyDAO\n\t\t\t\t\t.findByCondition(companyDTO);\n\n\t\t\tif (companyColName.size() == 1\n\t\t\t\t\t&& companyColName\n\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t.getMethodName()\n\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tPayAsiaConstants.CAMEL_CASE_COMPANY_CODE)) {\n\t\t\t\tif (existingCompanyRecord != null) {\n\t\t\t\t\tcompany.setCompanyId(existingCompanyRecord.getCompanyId());\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif (existingCompanyRecord == null) {\n\t\t\t\t\tcompany = companyDAO.saveReturn(company);\n\t\t\t\t} else {\n\t\t\t\t\tcompany.setCompanyId(existingCompanyRecord.getCompanyId());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isDynamic) {\n\t\t\t\tfor (Long formId : formIds) {\n\t\t\t\t\tDynamicFormRecord dynamicFormRecord = new DynamicFormRecord();\n\n\t\t\t\t\tdynamicFormRecord.setForm_ID(formId);\n\t\t\t\t\tdynamicFormRecord.setCompany_ID(companyId);\n\t\t\t\t\tdynamicFormRecord.setEntity_ID(entityId);\n\t\t\t\t\tdynamicFormRecord.setEntityKey(company.getCompanyId());\n\t\t\t\t\tDynamicFormRecord existingFormRecord = dynamicFormRecordDAO\n\t\t\t\t\t\t\t.getEmpRecords(company.getCompanyId(), null,\n\t\t\t\t\t\t\t\t\tformId, entityId, companyId);\n\n\t\t\t\t\tsuper.setDynamicValues(dataImportParametersDTO, tableNames,\n\t\t\t\t\t\t\tcolFormMapList, dynRecordsName, formId,\n\t\t\t\t\t\t\tdynamicFormRecord, existingFormRecord, companyId,\n\t\t\t\t\t\t\t\"update\");\n\n\t\t\t\t\tif (existingFormRecord == null) {\n\n\t\t\t\t\t\tdynamicFormRecordDAO.save(dynamicFormRecord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (PayAsiaSystemException ex) {\n\t\t\tsuper.handleException(rowNumber, insertOnlyLogs, ex);\n\t\t}\n\n\t\tif (insertOnlyLogs != null && !insertOnlyLogs.isEmpty()) {\n\t\t\tthrow new PayAsiaDataException(insertOnlyLogs);\n\t\t}\n\t}", "@PostMapping(\"/buckets\")\n @Timed\n public ResponseEntity<BucketDTO> createBucket(@RequestBody BucketDTO bucketDTO) throws URISyntaxException {\n log.debug(\"REST request to save Bucket : {}\", bucketDTO);\n if (bucketDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new bucket cannot already have an ID\")).body(null);\n }\n BucketDTO result = bucketService.save(bucketDTO);\n return ResponseEntity.created(new URI(\"/api/buckets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "private static PortfolioKey createSingleFuturePortfolio(final ToolContext toolContext, final ExternalId futureTicker, final ExternalId tradeId) {\n final List<SimplePosition> positions = new ArrayList<>();\n final ExternalId marketDataId = futureTicker;\n final long tradeQuantity = 1;\n final long positionQuantity = 1;\n final FutureSecurity security = new EnergyFutureSecurity(new Expiry(ZonedDateTime.now().plusMonths(3)), \"EXCH\", \"EXCH\", Currency.USD, 1000, \"Energy\");\n security.addExternalId(marketDataId);\n security.addExternalId(tradeId);\n final SimpleTrade trade = new SimpleTrade(security, BigDecimal.valueOf(tradeQuantity), new SimpleCounterparty(ExternalId.of(\"Test\", \"Ctpty\")), \n LocalDate.now().minusDays(7), OffsetTime.now());\n trade.addAttribute(ManageableTrade.meta().providerId().name(), tradeId.toString());\n final SimplePosition position = new SimplePosition();\n position.addAttribute(ManageableTrade.meta().providerId().name(), tradeId.toString());\n position.setSecurityLink(SimpleSecurityLink.of(security));\n position.setQuantity(BigDecimal.valueOf(positionQuantity));\n position.addTrade(trade);\n positions.add(position);\n final SimplePortfolio portfolio = new SimplePortfolio(\"Test\");\n final SimplePortfolioNode node = new SimplePortfolioNode(\"Test\");\n portfolio.getRootNode().addChildNode(node);\n node.addPositions(positions);\n return new PortfolioManager(toolContext).savePortfolio(portfolio);\n }", "@Test\n public void getNullCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.NULL_QUOTE_SYMBOL);\n assertTrue(comps.isEmpty());\n }", "@Kpi(\"ID_KPI_AGENCY_EXPORT_STOCK_CREATE_UNDER_LYING\")\n @Secured(\"@\")\n public void doCreateUnderlyingStock() {\n try {\n //validate ngay nhap phai la dinh dang so, va phai la so nguyen duong\n List<StockTransDetailDTO> lsDetailDTOs = Lists.newArrayList();\n List<StockTransFullDTO> lsStockTransFull = listProductTag.getLsStockTransFull();\n Long totalDepositPrice = 0L;\n for (StockTransFullDTO stockTransFullDTO : lsStockTransFull) {\n StockTransDetailDTO stockTransDetailDTO = new StockTransDetailDTO();\n stockTransDetailDTO.setStockTransDetailId(stockTransFullDTO.getStockTransDetailId());\n stockTransDetailDTO.setProdOfferId(stockTransFullDTO.getProdOfferId());\n stockTransDetailDTO.setStateId(stockTransFullDTO.getStateId());\n stockTransDetailDTO.setQuantity(stockTransFullDTO.getQuantity());\n stockTransDetailDTO.setLstStockTransSerial(stockTransFullDTO.getLstSerial());\n stockTransDetailDTO.setTableName(stockTransFullDTO.getTableName());\n stockTransDetailDTO.setProdOfferTypeId(stockTransFullDTO.getProductOfferTypeId());\n stockTransDetailDTO.setDepositPrice(stockTransFullDTO.getDepositPrice());\n lsDetailDTOs.add(stockTransDetailDTO);\n if (!DataUtil.isNullObject(stockTransFullDTO.getDepositPrice())) {\n totalDepositPrice += stockTransFullDTO.getDepositPrice() * stockTransFullDTO.getQuantity();\n }\n }\n StockTransActionDTO stockTransActionDTO = orderStockTag.getStockTransActionDTO();\n StockTransDTO stockTransDTO = orderStockTag.getStockTransDTO();\n stockTransDTO.setStockTransActionId(getStockTransActionId());\n stockTransDTO.setCreateUserIpAdress(BccsLoginSuccessHandler.getIpAddress());\n stockTransDTO.setDepositPrice(totalDepositPrice);\n stockTransDTO.setProcessOffline(checkOffline ? Const.PROCESS_OFFLINE : \"\");\n stockTransDTO.setShopId(staffDTO.getShopId());\n BaseMessage message = executeStockTransService.executeStockTrans(Const.STOCK_TRANS.EXPORT_AGENT, Const.STOCK_TRANS_TYPE.EXPORT, stockTransDTO, stockTransActionDTO, lsDetailDTOs, requiredRoleMap);\n if (!DataUtil.isNullOrEmpty(message.getErrorCode())) {\n throw new LogicException(message.getErrorCode(), message.getKeyMsg(), message.getParamsMsg());\n }\n doSearchStockTrans();\n canPrint = true;\n reportSuccess(\"frmExportNote:msgExport\", \"export.stock.success\");\n } catch (LogicException ex) {\n logger.error(ex.getMessage(), ex);\n reportError(\"frmExportNote:msgExport\", ex);\n topPage();\n } catch (Exception ex) {\n logger.error(ex.getMessage(), ex);\n reportError(\"frmExportNote:msgExport\", \"common.error.happened\", ex);\n topPage();\n }\n\n }", "@Override\n @Transactional\n public String create(Company company, BindingResult result) {\n\n\t// Security check.\n\tif (!this.authHelper.isSuperAdmin()) {\n\t this.messageHelper.unauthorizedID(Company.OBJECT_NAME, company.getId());\n\t return AlertBoxFactory.ERROR;\n\t}\n\n\t// Service layer form validation.\n\tthis.companyValidator.validate(company, result);\n\tif (result.hasErrors()) {\n\t return this.validationHelper.errorMessageHTML(result);\n\t}\n\n\tthis.companyDAO.create(company);\n\n\t// Log.\n\tthis.messageHelper.auditableID(AuditAction.ACTION_CREATE, Company.OBJECT_NAME, company.getId(),\n\t\tcompany.getName());\n\n\t// Do actual service and construct response.\n\treturn AlertBoxFactory.SUCCESS.generateCreate(Company.OBJECT_NAME, company.getName());\n }", "public BookingInfoEntity createBooking(BookingInfoEntity bookingInfoEntity) {\n System.out.println(bookingInfoEntity.getFromDate() + \"\\t\" + bookingInfoEntity.getToDate());\n long noOfDays = ChronoUnit.DAYS.between(bookingInfoEntity.getFromDate(), bookingInfoEntity.getToDate());\n bookingInfoEntity.setRoomPrice( 1000 * bookingInfoEntity.getNumOfRooms() * ((int)noOfDays) );\n bookingInfoEntity.setRoomNumbers(getRandomNumber(bookingInfoEntity.getNumOfRooms()));\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity); \n return bookingInfoEntity;\n }", "@Test\n public void save_Positive() throws LocationSchemeAlreadyExists {\n LocationSchemeDTO locationScheme = new LocationSchemeDTO(false, \"Scheme\", \"Address\");\n SectorDTO sector = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector2 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector3 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 0, 0, SectorType.PARTER);\n List<SectorDTO> sectors = Arrays.asList(sector, sector2, sector3);\n\n LocationSchemeSectorsDTO locationSchemeSectorsDTO = new LocationSchemeSectorsDTO(sectors, locationScheme);\n testRestTemplate.withBasicAuth(\"admin\", \"password\").postForEntity(URL_PREFIX, locationSchemeSectorsDTO, LocationSchemeSectorsDTO.class);\n\n verify(sectorService, times(1)).saveAll(anyList(), any(LocationScheme.class));\n verify(locationSchemeService, times(1)).save(any(LocationScheme.class));\n }", "public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();", "@Test\n\tpublic void testSuppCompany() {\n\n\t\tSuppCompany suppCompany =new SuppCompany();\n\t\tsuppCompany.setName(\"www\");\n\t\tsuppCompanyService.update(suppCompany,new EntityWrapper<SuppCompany>().eq(false,\"name\",\"yyy\"));\n\t}", "@Override\r\n\tpublic StockResponseModel stockAdded(StockRequestModel stockRequestModel) {\n\t\tStockResponseModel response = new StockResponseModel();\r\n\r\n\t\tboolean isIDExits = CommonUtills.idExistOrNot(stockRequestModel);\r\n\t\tif(!isIDExits)\r\n\t\t{\r\n\t\t\tStockEntities stockEntity = new StockEntities();\r\n\t\t\tstockEntity = CommonUtills.mapConvert(stockRequestModel, stockEntity);\r\n\t\t\t\r\n\t\t\tstockRepository.save(stockEntity);\r\n\t\t\t\tresponse.setResponseCode(HttpStatus.CREATED.toString());\r\n\t\t\t\tresponse.setResponseMsg(HttpStatus.CREATED.getReasonPhrase());\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tresponse.setResponseCode(HttpStatus.CONFLICT.toString());\r\n\t\t\tresponse.setResponseMsg(\"Stock ID Already Exists\");\r\n\t\t}\r\n\t\t\r\n\t\treturn response;\r\n\t}", "static void addNewCompany(SQLiteDatabase db, Company company) {\n ContentValues values = new ContentValues();\n values.put(COMPANY_ID, company.companyId);\n values.put(COMPANY_NAME, company.name);\n values.put(COMPANY_LOGO, company.companyLogo);\n values.put(COMPANY_DESCRIPTION, company.companyDescription);\n values.put(COMPANY_LAST_UPDATED, company.lastUpdatedDate);\n if (company.wasDeleted)\n values.put(COMPANY_WAS_DELETED, 1);\n else\n values.put(COMPANY_WAS_DELETED, 0);\n\n db.insert(COMPANY_TABLE, COMPANY_ID, values);\n }", "public TradingDayInfo(String ticker, String date, double openingPrice, double highPrice, double lowPrice, double closingPrice) {\n this.ticker = ticker;\n this.date = date;\n this.openingPrice = openingPrice;\n this.highPrice = highPrice;\n this.lowPrice = lowPrice;\n this.closingPrice = closingPrice;\n \n \n return;\n }", "Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;", "public AirlineCompany() {\n\t}", "void addTrade(Trade trade);", "@Test(expected = InvalidSymbolException.class)\r\n\tpublic void getCompanyNameInvalidSymbolExceptionTest() throws Exception {\r\n\t\tString comapanyName = \"ABC\";\r\n\t\tString uriString = \"http://localhost:8080/sample/url\";\r\n\t\tURI uri = new URI(uriString);\r\n\t\tString json = \"{\\\"query\\\":{\\\"count\\\":1,\\\"created\\\":\\\"2016-11-23T09:55:57Z\\\",\\\"lang\\\":\\\"en-US\\\",\\\"results\\\":{\\\"quote\\\":{\\\"Name\\\":null}}}}\";\r\n\r\n\t\tPowerMockito.whenNew(RestTemplate.class).withNoArguments().thenReturn(restTemplate);\r\n\t\tPowerMockito.doReturn(json).when(restTemplate).getForObject(uri, String.class);\r\n\t\tMockito.when(uriGeneratorService.getStockRestURI(comapanyName)).thenReturn(uri);\r\n\t\tcompanyDetailsServiceImpl.getCompanyName(comapanyName);\r\n\t}", "@PostMapping(\"/data-set-operations\")\n @Timed\n public ResponseEntity<DataSetOperationDTO> createDataSetOperation(@Valid @RequestBody DataSetOperationDTO dataSetOperationDTO) throws URISyntaxException {\n log.debug(\"REST request to save DataSetOperation : {}\", dataSetOperationDTO);\n if (dataSetOperationDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new dataSetOperation cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DataSetOperation dataSetOperation = dataSetOperationMapper.toEntity(dataSetOperationDTO);\n dataSetOperation = dataSetOperationRepository.save(dataSetOperation);\n DataSetOperationDTO result = dataSetOperationMapper.toDto(dataSetOperation);\n dataSetOperationSearchRepository.save(dataSetOperation);\n return ResponseEntity.created(new URI(\"/api/data-set-operations/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public static Company createCompany() {\r\n\t\treturn createCompany(1, \"Pepcus\", \"Software\", \"PEP\", new Date(), \"Special\", \"This is search help\");\r\n\t}", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "@Test\n public void NewDataAvailableTest() {\n String vatNumber = \"vatNumber\";\n Date birthDate = new Date(000000000);\n String fiscalCode = \"fiscalCodeTest00\";\n String password = \"password\";\n Individual individual = new Individual(fiscalCode, \"name\", \"surname\", password, birthDate, 40.5f, 10.0f);\n userController.addIndividual(individual);\n ThirdParty thirdParty = new ThirdParty(vatNumber,\"thirdParty\", password);\n userController.addThirdParty(thirdParty);\n thirdPartyService.addIndividualRequest(thirdParty, individual, true);\n IndividualData individualData = new IndividualData(new Date(00000000), 60f ,120f ,150f ,50f );\n List individualDataList= new ArrayList();\n individualDataList.add(individualData);\n individualData.setIndividual(individual);\n individualService.saveData(individualDataList);\n\n assertEquals(thirdPartyService.getNewDataNotificationList(thirdParty,individual).size(),1);\n }", "public static CompanyDto buildExpectedCompanyDto(CompanyCreateDto companyCreateDto, UUID parentCompanyId) {\n\t\tCompanyDto companyDto = new CompanyDto();\n\t\tBeanUtils.copyProperties(companyCreateDto, companyDto);\n\t\tcompanyDto.setParentCompanyId(parentCompanyId);\n\t\treturn companyDto;\n\t}", "@Override\n public ResponseEntity<Void> addDoctors(@ApiParam(value = \"Doctors object that needs to be added in our application \", required = true) @Valid @RequestBody DoctorsTO doctorsTO) {\n\n doctorService.createDoctor(doctorsTO);\n return new ResponseEntity<Void>(HttpStatus.CREATED);\n }", "public CompanyFacade(int companyID) {\n this.companyID = companyID;\n }", "@PostMapping(value = \"/add\")\r\n\tpublic ResponseEntity<Void> addDealer(@Valid @RequestBody DealerDto dto) throws Exception {\r\n\t\t\r\n\t\t\tLatLng geocode = geocodeService.getGeocode(dto);\r\n\t\t\tif (null != geocode) {\r\n\t\t\t\tdto.setLatitude(geocode.lat);\r\n\t\t\t\tdto.setLongitude(geocode.lng);\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\tdealerMgmtservice.registerDealer(dto);\r\n\t\t\r\n\t\treturn new ResponseEntity<Void>(HttpStatus.OK);\r\n\t}", "@Test\n public void enterOrderWithMatchedActiveOrderToCreateTrade() throws Exception {\n List<LimitOrderRequest> orderRequests = new ArrayList<>();\n orderRequests.add(getLimitOrderRequest(Direction.BUY));\n orderRequests.add(getLimitOrderRequest(Direction.SELL));\n\n Trade tradeReference = Trade.builder()\n .matchPrice(orderRequests.get(0).getLimit())\n .matchQuantity(orderRequests.get(0).getQuantity())\n .ticker(orderRequests.get(0).getTicker())\n .buyOrder(1)\n .sellOrder(2)\n .build();\n\n //When: the orders are posted to the service\n for (LimitOrderRequest orderRequest : orderRequests) {\n String orderRequestJsonString = jsonMapper.writeValueAsString(orderRequest);\n performEnterOrderPostRequest(orderRequestJsonString);\n }\n\n MvcResult getResponse = mvc.perform(get(\"/status\")\n .contentType(MediaType.APPLICATION_JSON))\n .andReturn();\n\n PublicMarketStatus status = jsonMapper\n .readValue(getResponse.getResponse().getContentAsString(), PublicMarketStatus.class);\n\n //Then: the trade is shown correctly in the market and the orders disappear\n List<Ticker> tickers = status.getOrders();\n Assert.assertEquals(\"There is no ticker\", 0, tickers.size());\n\n List<Trade> trades = status.getTrades();\n Assert.assertEquals(\"There is a trade\", 1, trades.size());\n Trade trade = trades.get(0);\n Assert.assertEquals(\"Trade is correct one\", tradeReference, trade);\n\n }", "@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}", "void addBankAccountDetails(BankAccountDTO bankAccountDTO,String name)throws EOTException;", "@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}", "@PostMapping(\"/price-definitions\")\n void addPriceDefinition(@NonNull @RequestBody NewPriceDefinitionDto dto) {\n facade.addPriceDefinition(dto);\n }", "public EmployeeDTO createEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;", "public void createNewStock(Stock stock) throws DuplicateEntry, InvalidDateEntry {\n\t\tif (!validateDate(stock.getDate())) {\n\t\t\tlog.error(\"Date entered is a future date for:\" + stock.getStock() + \"date given : \" + stock.getDate());\n\t\t\tthrow new InvalidDateEntry(\n\t\t\t\t\t\"Date entered is a future date for: \" + stock.getStock() + \" date given : \" + stock.getDate());\n\t\t}\n\n\t\tif (checkForDuplicates(new StockId(stock.getStock(), stock.getDate()))) {\n\t\t\tlog.error(\"Duplcate Record for :\" + stock.getStock() + \"on \" + stock.getDate());\n\t\t\tthrow new DuplicateEntry(\"Duplcate Record for : \" + stock.getStock() + \" on \" + stock.getDate());\n\t\t}\n\n\t\tstockRepo.save(stock);\n\n\t}", "@RequestMapping(value = \"/free-cfdis\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n //public ResponseEntity<Free_cfdi> createFree_cfdi(@Valid @RequestBody Free_cfdi free_cfdi) throws URISyntaxException {\n public ResponseEntity<Free_cfdi> createFree_cfdi(@Valid @RequestBody Free_cfdiDTO free_cfdi_dto) throws URISyntaxException {\n\n Free_cfdi free_cfdi = free_cfdi_dto.getFreeCFDI();\n\n log.debug(\"REST request to save Free_cfdi : {}\", free_cfdi);\n if (free_cfdi.getId() != null) {\n Long idauditevent = new Long(\"4\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type,c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"idexists\", \"A new free_cfdi cannot already have an ID\")).body(null);\n }\n\n free_cfdi.setVersion(\"3.2\");\n free_cfdi.setDate_expedition(ZonedDateTime.now());\n\n String place_expedition = free_cfdi.getFree_emitter().getC_country().getName();\n\n if(free_cfdi.getFree_emitter().getC_state() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_state().getName();\n\n if(free_cfdi.getFree_emitter().getC_municipality() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_municipality().getName();\n\n if(free_cfdi.getFree_emitter().getC_colony() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_colony().getCode();\n\n if(free_cfdi.getFree_emitter().getC_zip_code() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_zip_code().getCode();\n\n free_cfdi.setPlace_expedition(place_expedition);\n free_cfdi.setStamp(\"stamp\");\n free_cfdi.setNo_certificate(\"no_cetificate\");\n free_cfdi.setCertificate(\"cetificate\");\n\n free_cfdi_dto.setFreeCFDI(free_cfdi);\n Free_cfdi result = free_cfdiService.save(free_cfdi_dto);\n\n Long idauditevent = new Long(\"4\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n //Sending emails\n List<String> attachments = new ArrayList<>();\n attachments.add(result.getPath_cfdi()+\".xml\");\n attachments.add(result.getPath_cfdi()+\".pdf\");\n\n mailService.sendNewFreeCFDICreatedToEmitterEmail(result, attachments);\n mailService.sendNewFreeCFDICreatedToReceiverEmail(result, attachments);\n\n return ResponseEntity.created(new URI(\"/api/free-cfdis/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"free_cfdi\", result.getId().toString()))\n .body(result);\n }", "public long addCompany(CompanyEntity companyEntity) throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n //CompanyID is defined as a primary key and auto incremented\n String sqlStatement = \"INSERT INTO companies (company_name, company_email, company_phone, company_address) VALUES(?,?,?,?)\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement, Statement.RETURN_GENERATED_KEYS);\n\n //Replacing the question marks in the statement above with the relevant data\n preparedStatement.setString(1, companyEntity.getCompanyName());\n preparedStatement.setString(2, companyEntity.getCompanyEmail());\n preparedStatement.setString(3, companyEntity.getCompanyPhone());\n preparedStatement.setString(4, companyEntity.getCompanyAddress());\n\n //Executing the update\n preparedStatement.executeUpdate();\n\n ResultSet resultSet = preparedStatement.getGeneratedKeys();\n if (!resultSet.next()) {\n throw new ApplicationException(ErrorType.FAILED_CREATE_COMPANY, \"Invalid company key during creation\");\n }\n System.out.println(\"Company has been successfully added to DB\");\n return resultSet.getLong(1);\n\n } catch (Exception e) {\n //\t\t\te.printStackTrace();\n //If there was an exception in the \"try\" block above, it is caught here and notifies a level above.\n //\t\t\tthrow new ApplicationException(e, ErrorType.GENERAL_ERROR, DateUtils.getCurrentDateAndTime()\n //\t\t\t\t\t+\" Create company failed\");\n throw new Exception(\"Failed to create company \" + companyEntity.toString(), e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "public String findCompany(String symbol)\n {\n for (int i = 0; i < symbolPairs.size(); i++)\n {\n SymbolPair pair = symbolPairs.get(i);\n if (pair.getTickerSymbol().equals(symbol))\n {\n return pair.getCompanyName();\n }\n }\n return \"Ticker symbol not recognized!\";\n }", "public void insert(TmCompany tmCompany) {\n\t\ttmCompanyDao.insert(tmCompany);\r\n\t}", "@PostMapping(\"/offers\")\n @Timed\n public ResponseEntity<OfferDTO> createOffer(@RequestBody OfferDTO offerDTO) throws URISyntaxException {\n log.debug(\"REST request to save Offer : {}\", offerDTO);\n if (offerDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new offer cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OfferDTO result = offerService.save(offerDTO);\n return ResponseEntity.created(new URI(\"/api/offers/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\r\n\tpublic void insertCompany(Company company) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\r\n\t\tString sql = \"insert into Company(ID, COMP_NAME, PASSWORD, EMAIL) values (?,?,?,?)\";\r\n\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\r\n\t\t\tpreparedStatement.setLong(1, company.getCompanyId());\r\n\t\t\tpreparedStatement.setString(2, company.getCompanyName());\r\n\t\t\tpreparedStatement.setString(3, company.getCompanyPassword());\r\n\t\t\tpreparedStatement.setString(4, company.getCompanyEmail());\r\n\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\r\n\t\t\tSystem.out.println(\"Company created: \" + company.toString());\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - Company creation failed. companyId: \"+ company.getCompanyId());\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"Company creation failed. companyId: \"+ company.getCompanyId());\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\r\n\t}", "@Valid\n\tvoid create(Price Price);", "@PostMapping\n public Season_Period addPeriod(@RequestBody Season_Period season_period){\n return periodService.addPeriod(season_period);\n }", "@Override\r\n\tpublic void saveYuyueOrder(YuyueOrderDTO yuyueOrderDTO) throws Exception {\n\t\tYuyueOrder yuyueOrder = new YuyueOrder();\r\n\t\tSysYuyue sy = sysYuyueRespository.findOne(yuyueOrderDTO.getSysYuyue());\r\n\t\t\r\n\t\tPropertyUtils.copyProperties(yuyueOrder,yuyueOrderDTO);\r\n\t\tif(sy.getYyCzUser()!=null){\r\n\t\t\tyuyueOrder.setYyCzId(sy.getYyCzUser().getId());\r\n\t\t}\r\n\t\tif(sy.getYyQyUser()!=null){\r\n\t\t\tyuyueOrder.setYyQxId(sy.getYyQyUser().getId());\r\n\t\t}\r\n\t\tyuyueOrder.setYl5(OrderUtil.getOrderIdByUUId());\r\n yuyueOrderRepository.save(yuyueOrder);\r\n if(yuyueOrderDTO.getServerProject()!=null){\r\n \tfor(int i=0;i<yuyueOrderDTO.getServerProject().size();i++){\r\n \t\tyuyueOrderDTO.getServerProject().get(i).setOrderId(yuyueOrder.getId());\r\n \t}\r\n }\r\n\t\t\r\n\t\tserverProjectRespository.saveInBatch(yuyueOrderDTO.getServerProject());\r\n\t\t\r\n\t\t\r\n PropertyUtils.copyProperties(yuyueOrder,yuyueOrderDTO);\r\n yuyueOrderRepository.save(yuyueOrder);\r\n\t}", "void getCompanyInfoFromText() {\r\n\r\n String first = texts.get(0).getText();\r\n String cID = first;\r\n String second = texts.get(1).getText();\r\n String cNAME = second;\r\n String third = texts.get(2).getText();\r\n String password = third;\r\n String forth = texts.get(3).getText();\r\n String GUR = forth;\r\n double d = Double.parseDouble(GUR);\r\n String fifth = texts.get(4).getText();\r\n String EUR = fifth;\r\n double dd = Double.parseDouble(EUR);\r\n String sixth = texts.get(5).getText();\r\n String TSB = sixth ;\r\n String TT = \"2018-04-/08:04:26\";\r\n StringBuffer sb = new StringBuffer();\r\n sb.append(TT).insert(8,TSB);\r\n String ts = sb.toString();\r\n\r\n companyInfo.add(new CompanyInfo(cID,cNAME,password,d,dd,ts));\r\n\r\n new CompanyInfo().WriteFiles_append(companyInfo);\r\n }", "public void save() {\r\n\t\ttry {\r\n\t\t\tthis.iniObjects();\r\n\t\t\tGxyService currentService = getGxyService();\r\n\t\t\tCompassSession session = new CobooCompass().getCompass().openSession();\r\n\t\t\tCompassTransaction tx = session.beginLocalTransaction();\r\n\t\t\tPerson person = null;\r\n\t\t\tCompassHits hits = session.find(\"ResidentpersonId:\" + this.personId.getHValue());\r\n\t\t\tif (hits.length() > 0) {\r\n\t\t\t\tCompassHit hit = hits.hit(0);\r\n\t\t\t\tperson = (Person) hit.getData();\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tcal.setTime(this.visitTime[visitNo]);\r\n\t\t\tString StrYear = String.valueOf(cal.get(Calendar.YEAR));\r\n\r\n\t\t\tInfo gxyInfo = person.getGxyInfo();\r\n\t\t\tList<YearService> servicesOfYear = new ArrayList<YearService>();\r\n\t\t\tif (gxyInfo == null) {\r\n\t\t\t\tInfo Info = new GxyInfo();\r\n\t\t\t\tInfo.setIf_gxy(true);\r\n\t\t\t\tInfo.setDiagTime(new Date());\r\n\t\t\t\tperson.setGxyInfo(Info);\r\n\t\t\t\tgxyInfo = Info;\r\n\t\t\t} // else {\r\n\t\t\t\r\n\t\t\tservicesOfYear = gxyInfo.getYearServices();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (YearService ys : servicesOfYear) {\r\n\t\t\t\tif (ys.getYear().equals(StrYear)) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tGxyService[] gxyServices = ys.getServicesOfYear();\r\n\t\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tYearService newYs = new YearService();\r\n\t\t\t\tnewYs.setYear(StrYear);\r\n\t\t\t\tGxyService[] gxyServices = newYs.getServicesOfYear();\r\n\t\t\t\tfor (int i = 0; i < gxyServices.length; i++) {\r\n\t\t\t\t\tgxyServices[i] = new GxyService();\r\n\t\t\t\t\tgxyServices[i].setId(System.nanoTime());\r\n\t\t\t\t}\r\n\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\tservicesOfYear.add(newYs);\r\n\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t\tgxyInfo.setYearServices(servicesOfYear);\r\n\t\t\tperson.setGxyInfo(gxyInfo);\r\n\r\n\t\t\t// session.save(this.doctors[this.visitNo]);\r\n\t\t\t// gxyInfo.setId(System.nanoTime());\r\n\r\n\t\t\tsession.save(currentService);\r\n\t\t\tsession.save(person);\r\n\t\t\ttx.commit();\r\n\t\t\tsession.close();\r\n\t\t\tsuper.saveFile(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}", "VendorNotificationResponseDTO save(VendorNotificationRequestDTO VendorDataNotificationRequestDTO)throws Exception;", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "@Test\n public void save_Negative() throws LocationSchemeAlreadyExists {\n LocationSchemeDTO locationScheme = new LocationSchemeDTO(false, EXISTING_SCHEME_NAME, \"Address 2\");\n locationScheme.setId(EXISTING_SCHEME2_ID);\n SectorDTO sector = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector2 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector3 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 0, 0, SectorType.PARTER);\n List<SectorDTO> sectors = Arrays.asList(sector, sector2, sector3);\n\n LocationSchemeSectorsDTO locationSchemeSectorsDTO = new LocationSchemeSectorsDTO(sectors, locationScheme);\n when(locationSchemeService.save(any(LocationScheme.class)))\n .thenThrow(LocationSchemeAlreadyExists.class);\n testRestTemplate.withBasicAuth(\"admin\", \"password\").postForEntity(URL_PREFIX, locationSchemeSectorsDTO, LocationSchemeSectorsDTO.class);\n\n verify(locationSchemeService, times(1)).save(any(LocationScheme.class));\n }", "@Test\n\tpublic void insertTradeRequest() {\n\t\t\n\t\tDBI dbi = TEST_ENVIRONMENT.getDbi();\n\t\tTradeDao tradeDao = dbi.onDemand(TradeDao.class);\n\t\t\n\t\tString collectionId = \"1\";\n\t\tString itemId = \"1\";\n\t\tString itemAmount = \"1\";\n\t\tTrade insertedTrade = new Trade(collectionId, itemId, itemAmount);\n\t\t\n\t\ttradeDao.insert(insertedTrade);\n\t\t\n\t\tint expectedSize = 1;\n\t\t\n\t\tList<Trade> allTrades = tradeDao.getAll();\n\t\t\n\t\tint actualSize = allTrades.size();\n\t\t\n\t\tAssert.assertEquals(\"Trade table should have 1 trade\", expectedSize, actualSize);\n\t\t\n\t\tSet<String> insertedTradeRequest = new HashSet<String>();\n\t\tDBI dbi1 = TEST_ENVIRONMENT.getDbi();\n\t\tTradeRequestDao tradeRequestDao = dbi1.onDemand(TradeRequestDao.class);\n\t\t\n\t\tString offeredCollectionId = \"1\";\n\t\tString userId = \"1\";\n\t\tString requestId = \"1\";\n\t\tTradeRequest insertedRequest = new TradeRequest(offeredCollectionId, \n\t\t\t\tuserId);\n\t\t\n\t\tinsertedRequest = insertedRequest.setRequestId(requestId);\n\t\t\n\t\ttradeRequestDao.insert(insertedRequest);\n\t\t\n\t\tint expectedSize1 = 1;\n\t\t\n\t\tList<TradeRequest> allTrades1 = tradeRequestDao.getAll();\n\t\t\n\t\tint actualSize1 = allTrades1.size();\n\t\t\n\t\tAssert.assertEquals(\"Trade Request table should have 1 Request made\", expectedSize1, actualSize1);\n\t\t\n\t}", "@Override\n public final Buyer getBuyr(final Map<String, Object> pRvs,\n final IReqDt pRqDt) throws Exception {\n Long buyerId = null;\n String buyerIdStr = pRqDt.getCookVl(\"cBuyerId\");\n if (buyerIdStr != null && buyerIdStr.length() > 0) {\n buyerId = Long.valueOf(buyerIdStr);\n }\n Buyer buyer = null;\n if (buyerId != null) {\n Map<String, Object> vs = new HashMap<String, Object>();\n buyer = new Buyer();\n buyer.setIid(buyerId);\n getOrm().refrEnt(pRvs, vs, buyer);\n if (buyer.getIid() == null) {\n buyer = null;\n }\n }\n if (buyer != null && buyer.getEml() != null && buyer.getBuSeId() != null) {\n String buSeId = pRqDt.getCookVl(\"buSeId\");\n if (!buyer.getBuSeId().equals(buSeId)) {\n this.spamHnd.handle(pRvs, pRqDt, 100,\n \"Buyer. Authorized invasion? cBuyerId: \" + buyerIdStr);\n //buyer also might clears cookie, so it's need new authorization\n //new/free buyer will be used till authorization:\n buyer = null;\n }\n }\n return buyer;\n }", "public void createCompany(Company company) throws ApplicationException {\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\n\t\ttry {\n\t\t\t// Establish a connection from the connection manager\n\t\t\tconnection = JdbcUtils.getConnection();\n\n\t\t\t// Creating the SQL query\n\t\t\t// CompanyID is defined as a primary key and auto incremented\n\t\t\tString sqlStatement = \"INSERT INTO companies (company_Name) VALUES (?)\";\n\n\t\t\t// Combining between the syntax and our connection\n\t\t\tpreparedStatement = connection.prepareStatement(sqlStatement);\n\n\t\t\t// Replacing the question marks in the statement above with the relevant data\n\t\t\tpreparedStatement.setString(1, company.getName());\n\n\t\t\t// Executing the update\n\t\t\tpreparedStatement.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\t// **If there was an exception in the \"try\" block above, it is caught here and\n\t\t\t// notifies a level above.\n\t\t\te.printStackTrace();\n\t\t\tthrow new ApplicationException(e,ErrorType.GENERAL_ERROR,\n\t\t\t\t\tDateUtils.getCurrentDateAndTime() + \"FAILED to create a company\");\n\t\t} finally {\n\t\t\t// Closing the resources\n\t\t\tJdbcUtils.closeResources(connection, preparedStatement);\n\t\t}\n\t}", "protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * The stock price needs to be set the first time as it records the stock price when the record was created.\n */\n entity.setStockPriceWhenCreated( this.stockPriceQuoteService\n .getLastPrice( tickerSymbol ));\n }", "@Override\n\tpublic IAdhocTicket createTicket(String carparkId) {\n\t\tcurrentTicketNo++; // when a ticket is issued, ticketNo increments by 1\n\t\tIAdhocTicket adhocTicket = factory.make(carparkId, currentTicketNo); \n\t\t// make ticket in factory with the new ticketNo\n\t\tadhocTicketList.add(adhocTicket);\n\t\treturn adhocTicket;\n\t}", "public synchronized void addToBook(Quote q) throws InvalidDataException, DataValidationException {\n\t\tvalidateData(q);\n\t\tif (getUserQuotes().contains(q.getUserName())) {\n\t\t\tgetBuySide().removeQuote(q.getUserName());\n\t\t\tgetSellSide().removeQuote(q.getUserName());\n\t\t\tupdateCurrentMarket();\n\t\t}\n\t\taddToBook(BookSide.BUY, q.getQuoteSide(BookSide.BUY));\n\t\taddToBook(BookSide.SELL, q.getQuoteSide(BookSide.SELL));\n\t\tgetUserQuotes().add(q.getUserName());\n\t\tupdateCurrentMarket();\n\t}", "public SellerDTO() {\n\t\t\n\t}", "@Test\n void testFindBySymbol() {\n String symbol = service.findAll().stream().findAny().get().getSymbol();\n Currency currency = service.findBySymbol(symbol);\n assertNotNull(currency);\n assertEquals(symbol, currency.getSymbol());\n }" ]
[ "0.59609324", "0.57898587", "0.5751667", "0.57377106", "0.55926085", "0.55280244", "0.53857034", "0.53798467", "0.5368413", "0.5355439", "0.53312206", "0.52275234", "0.52154297", "0.5212603", "0.51658744", "0.51576054", "0.5123269", "0.50975007", "0.5081922", "0.5053979", "0.4994755", "0.49886858", "0.49873188", "0.49853685", "0.49745363", "0.49553025", "0.49517053", "0.49477574", "0.49449202", "0.4944424", "0.49352643", "0.49248272", "0.4905687", "0.48986584", "0.4896754", "0.48955673", "0.4877699", "0.48740536", "0.48527443", "0.48490942", "0.484553", "0.48374775", "0.48246193", "0.48197725", "0.48099512", "0.47987574", "0.4798628", "0.47813457", "0.47811422", "0.47774002", "0.47672963", "0.4764616", "0.47607377", "0.47486287", "0.47381008", "0.47380468", "0.47335693", "0.4731472", "0.47295696", "0.47271436", "0.4723766", "0.47209603", "0.4711675", "0.47060308", "0.47010642", "0.47004375", "0.4700178", "0.46990326", "0.4697445", "0.46926433", "0.46917695", "0.46861896", "0.46816984", "0.46771455", "0.46765667", "0.4673945", "0.4672253", "0.4658582", "0.465037", "0.46415165", "0.46339408", "0.46337536", "0.46320114", "0.46215212", "0.4620088", "0.46144834", "0.46132648", "0.46096462", "0.46082315", "0.46078828", "0.46045434", "0.46045238", "0.46019584", "0.45961952", "0.45944807", "0.45915148", "0.45898598", "0.4584569", "0.4583701", "0.4577198" ]
0.5703257
4
Before the entity is added, need to set the stock price when created field if the entity contains one.
@Override protected void preAddEntity( final E entity ) throws VersionedEntityNotFoundException { final String methodName = "preAddEntity"; logMethodBegin( methodName, entity ); Objects.requireNonNull( entity, "entity argument cannot be null" ); super.preAddEntity( entity ); if ( entity instanceof StockPriceWhenCreatedContainer ) { setStockPriceWhenCreated( entity.getTickerSymbol(), (StockPriceWhenCreatedContainer)entity ); } logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * The stock price needs to be set the first time as it records the stock price when the record was created.\n */\n entity.setStockPriceWhenCreated( this.stockPriceQuoteService\n .getLastPrice( tickerSymbol ));\n }", "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\r\n\tpublic int createPrice(ProductRaw_Price price) {\n\t\tprice.setStatus(0);\r\n\t\treturn productRaw_PriceDao.insert(price);\r\n\t}", "stockFilePT102.StockDocument.Stock addNewStock();", "public com.unitedtote.schema.totelink._2008._06.result.PriceEntity addNewPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().add_element_user(PRICEENTITY$0);\n return target;\n }\n }", "public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}", "@PostConstruct\r\n\tpublic void init() {\n\t\tstockService.create(new Stock(\"PROD 1\", BigDecimal.ONE));\r\n\t\tstockService.create(new Stock(\"PROD 2\", BigDecimal.TEN));\r\n\t\tstockService.create(new Stock(\"PROD 3\", new BigDecimal(12.123)));\r\n\t}", "@Override\n\tpublic void addInStock(Stock s) {\n\t\n\t}", "@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}", "public void setStockPriceDate(Date stockPriceDate) {\n this.stockPriceDate = stockPriceDate;\n }", "@Override\n protected boolean beforeSave(boolean newRecord) {\n if (!newRecord){\n if ((is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_PriceEntered)) || (is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_QtyEntered))){\n this.setLineTotalAmt(this.getQtyEntered().multiply(this.getPriceEntered()).setScale(2, RoundingMode.HALF_UP));\n\n MInvoiceLine invoiceLine = (MInvoiceLine) this.getC_InvoiceLine();\n if ((invoiceLine != null) && (invoiceLine.get_ID() > 0)){\n invoiceLine.setQtyInvoiced(this.getQtyEntered());\n invoiceLine.setQtyEntered(this.getQtyEntered());\n invoiceLine.setPriceActual(this.getPriceEntered());\n invoiceLine.setPriceEntered(this.getPriceEntered());\n\n MProduct prod = (MProduct) invoiceLine.getM_Product();\n\n // Impuesto del producto (primero impuesto especial de compra, y si no tiene, entonces el impuesto normal\n if (prod.get_ValueAsInt(\"C_TaxCategory_ID_2\") > 0) {\n MTaxCategory taxCat = new MTaxCategory(getCtx(), prod.get_ValueAsInt(\"C_TaxCategory_ID_2\"), null);\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n } else {\n if (prod.getC_TaxCategory_ID() > 0) {\n MTaxCategory taxCat = (MTaxCategory) prod.getC_TaxCategory();\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n }\n }\n\n invoiceLine.setLineNetAmt();\n invoiceLine.setTaxAmt();\n invoiceLine.saveEx();\n }\n\n }\n }\n\n return true;\n }", "public TbStock() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void saveOrUpdate(Contract entity) {\n\t\tif(UtilFuns.isEmpty(entity.getId())){ // 判断修改或者新增\n\t\t\t//设置默认值\n\t\t\tentity.setState(0); //0:草稿 1:已上报 2:已报运\n\t\t\tentity.setTotalAmount(0.0); //务必设置默认值否则新增货物,分散计算的时候会出先null + xxxx\n\t\t}else{\n\t\t\t\n\t\t}\n\t\t\n\t\tcontractDao.save(entity);\n\t}", "public void setPriceEntered (BigDecimal PriceEntered);", "@Test\n\tpublic void testUpdateStock() {\n\t\tStock stock = null;\n\t\tString productId = \"HY-1004\";\n\t\tTestFactory tf = new TestFactory();\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tif (!tf.createStock(em, productId)) {\n\t\t\t\tfail(\"Unable to create \"); // doubt\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tem.getTransaction().begin();\n\t\t\t// Find Stock for update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\t// Update Business Partner\n\t\t\tstock.setQuantity(BigDecimal.valueOf(10));\n\t\t\tem.persist(stock);\n\t\t\tem.getTransaction().commit();\n\t\t\t// Find Business Partner after update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\tassertEquals(\n\t\t\t\t\t\"Update Stock: Stock attribute quantity not updated in the database\",\n\t\t\t\t\tBigDecimal.valueOf(10), stock.getQuantity());\n\t\t\ttf.deleteStock(em, productId);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\n\t}", "@Test\n public void addPrice() throws Exception {\n final PriceDraft expectedPrice = PriceDraft.of(MoneyImpl.of(123, EUR));\n withUpdateableProduct(client(), product -> {\n final Product updatedProduct = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddPrice.of(1, expectedPrice)));\n\n\n final List<Price> prices = updatedProduct.getMasterData().getStaged().getMasterVariant().getPrices();\n assertThat(prices).hasSize(1);\n final Price actualPrice = prices.get(0);\n\n assertThat(expectedPrice).isEqualTo(PriceDraft.of(actualPrice));\n\n return updatedProduct;\n });\n }", "@Test\n\tpublic void testPersistNewSupplierOrder() throws Exception {\n\t\tLong id = saveEntity();\n\t\tSupplierOrder order = dao.findById(id);\n\t\tassertNull(order.getUpdateDate());\n\t}", "public BigDecimal getStock_price() {\n return stock_price;\n }", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "Stock()\n {\n super();\n }", "public static SupplyStock createEntity(EntityManager em) {\n SupplyStock supplyStock = new SupplyStock()\n .name(DEFAULT_NAME)\n .amount(DEFAULT_AMOUNT);\n return supplyStock;\n }", "public void onStockpriceChanged();", "public Date getStockPriceDate() {\n return stockPriceDate;\n }", "public void setOriginalPrice(Float OriginalPrice) {\n this.OriginalPrice = OriginalPrice;\n }", "@Override\r\n\tpublic void stockInsert(adminStockVO vo) {\n\t\tadminDAO.stockInsert(vo);\r\n\t}", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "public void setListOfStock( List<StockEntity> listOfStock ) {\n this.listOfStock = listOfStock;\n }", "public void setPriceListOld (BigDecimal PriceListOld);", "public EventCartItemPriceChange() {\n\t\tsuper(); // No parameters\n\t}", "public void addToStock(Item i, double price)\n\t{\n\t\tthis.items.add(new Preis(i,price));\n\t}", "@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}", "public void initStockData() {\n\t\t\tStockBrokerImpl.this.stockData = new ArrayList<StockCompany>();\n\t\t\tthis.updateStockData();\n\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\tSystem.out.println(company.getStockPrice());\n\n\t\t}", "SimpleStock(String newsymbol, String newname, double newpreviousClosingPrice, double newcurrentPrice ) {\n\t\tSymbol = newsymbol;\n\t\tName = newname;\n\t\tpreviousClosingPrice = newpreviousClosingPrice;\n\t\tcurrentPrice = newcurrentPrice;\n\t \t }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "public void setPrice(double price){this.price=price;}", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}", "@Override\n\tpublic int getStock() {\n\t\treturn 2;\n\t}", "stockFilePT102.StockFileDocument.StockFile addNewStockFile();", "public void putNewPrice(String symbol, double price);", "public void createNewStock(Stock stock) throws DuplicateEntry, InvalidDateEntry {\n\t\tif (!validateDate(stock.getDate())) {\n\t\t\tlog.error(\"Date entered is a future date for:\" + stock.getStock() + \"date given : \" + stock.getDate());\n\t\t\tthrow new InvalidDateEntry(\n\t\t\t\t\t\"Date entered is a future date for: \" + stock.getStock() + \" date given : \" + stock.getDate());\n\t\t}\n\n\t\tif (checkForDuplicates(new StockId(stock.getStock(), stock.getDate()))) {\n\t\t\tlog.error(\"Duplcate Record for :\" + stock.getStock() + \"on \" + stock.getDate());\n\t\t\tthrow new DuplicateEntry(\"Duplcate Record for : \" + stock.getStock() + \" on \" + stock.getDate());\n\t\t}\n\n\t\tstockRepo.save(stock);\n\n\t}", "public void setPriceStdOld (BigDecimal PriceStdOld);", "SimpleStock() {\n\t\tSymbol = \"symbol\";\n\t\tName = \"name\";\n\t\t\t }", "public void setPriceListEntered (BigDecimal PriceListEntered);", "public void setPrice(Date price) {\n this.price = price;\n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void addProduct(Product p){\n stock.add(p);\n }", "public void setPriceStdEntered (BigDecimal PriceStdEntered);", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void addStoreStock(String name, int amount);", "@Override\n\tpublic void doSave(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t model.setPrice(\"0\");\n\t\t }\n\t\t double dprice =Double.parseDouble(model.getPrice());\n\t BigDecimal bg = new BigDecimal(dprice/10000);\n\t double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n\t model.setPrice(f1+\"\");\n\t model.setSource(\"001\");\n\t\t\n\t\tsuper.doSave(model, request, response);\n\t}", "public static Stocks createUpdatedEntity(EntityManager em) {\n Stocks stocks = new Stocks()\n .name(UPDATED_NAME)\n .open(UPDATED_OPEN)\n .high(UPDATED_HIGH)\n .close(UPDATED_CLOSE)\n .low(UPDATED_LOW)\n .volume(UPDATED_VOLUME);\n return stocks;\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public void setPrice(double price)\n {\n this.price = price;\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "@Modifying(clearAutomatically = true)\n\t@Lock(value = LockModeType.OPTIMISTIC_FORCE_INCREMENT)\n @Query(\"UPDATE Item i SET i.quantity = i.quantity + ?1 WHERE i =?2\")\n int addToStock(double qty, Item item);", "public Stock createStock(Stock stock){\n this.open();\n ContentValues stockEntry = new ContentValues();\n stockEntry.put(SQLiteHelper.COL_ITEM_NAME, stock.getItemName());\n stockEntry.put(SQLiteHelper.COL_ITEM_QUANTITY, stock.getItemQuantity());\n stockEntry.put(SQLiteHelper.COL_ITEM_PRICE, stock.getItemPrice());\n stockEntry.put(SQLiteHelper.COL_CREATED_ON, stock.getCreatedOn());\n stockEntry.put(SQLiteHelper.COL_CREATED_BY, stock.getCreatedBy());\n stockEntry.put(SQLiteHelper.COL_MODIFIED_ON, stock.getModifiedOn());\n stockEntry.put(SQLiteHelper.COL_MODIFIED_BY, stock.getModifiedBy());\n stockEntry.put(SQLiteHelper.COL_OBJECT_ID, stock.getObjectId());\n Log.e(\"Stock object Id\", stock.getObjectId());\n\n long insertId = database.insert(SQLiteHelper.TABLE_STOCK,null, stockEntry);\n\n Cursor cursor = database.query(SQLiteHelper.TABLE_STOCK, allColumns\n , SQLiteHelper.COL_ID + \" =? \"\n , new String[]{String.valueOf(insertId)}\n , null, null, null\n );\n \n cursor.moveToFirst();\n Stock newStock = cursorToStock(cursor); \n cursor.close();\n this.close();\n \n return newStock;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setStock(Integer stock) {\n this.stock = stock;\n }", "@Override\n\t@Transactional\n\tpublic Product createProduct(String name, Float price, Float weight, Supplier supplier, Date sdf) {\n\t\tProduct newProduct = new Product(name, price, supplier, weight, sdf);\n\t\treturn repository.persist(newProduct);\n\n\t}", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "stockFilePT102.StockHeaderDocument.StockHeader addNewStockHeader();", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void addWarehouseStock(String name, int amount);", "@PrePersist\n\tvoid erstelltam() {\n\t\tthis.erstelltam = new GregorianCalendar();\n\t}", "stockFilePT102.StockDocument.Stock insertNewStock(int i);", "public void save(PosPrice posPrice) throws DataAccessException {\n super.save(posPrice);\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "private void insertItemPrice(final Price price) {\n try {\n boolean isItemExisting = false;\n ItemEntity knownItem = mDatabaseAccess.itemsDAO().selectItem(price.getId());\n // item is not known yet. Load the item via the REST API\n if (knownItem == null) {\n Item newItem = mItemAccess.getItemWithWifi(price.getId());\n if (newItem != null) {\n mDatabaseAccess.itemsDAO().insertItems(new ItemEntity(newItem));\n isItemExisting = true;\n }\n } else {\n isItemExisting = true;\n }\n\n // add the price only if the item reference is known and exists\n if (isItemExisting) {\n ItemPriceEntity newPrice = new ItemPriceEntity(\n price.getId(),\n price.getBuys().getUnitPrice(),\n price.getSells().getUnitPrice(),\n System.currentTimeMillis());\n mDatabaseAccess.itemsDAO().insertItemPrice(newPrice);\n } else {\n Log.w(TAG, String.format(\n \"The Item to the price id '%d' doesn't exist. the price will be skipped\",\n price.getId()));\n }\n } catch (Exception ex) {\n Log.e(TAG, \"Failed to process the item price with the ID: \" + price.getId(), ex);\n }\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }", "@Override\n\tpublic void AddOrUpdate(Stock model) {\n\t\tif (model.getId() == 0){\n\t\t\t_stockDao.insert(model);\n\t\t}\n\t\telse {\n\t\t\t_stockDao.updateByPrimaryKey(model);\n\t\t}\n\t}", "public void createOrUpdateItem(Stockitem stockitem) {\n\t\tstockitemDAO.save(stockitem);\n\t}", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public abstract void setstockNumber();" ]
[ "0.72780657", "0.6311634", "0.629966", "0.6174013", "0.61292243", "0.60380304", "0.6007194", "0.60065013", "0.5988919", "0.5971972", "0.5971715", "0.5970678", "0.59647053", "0.59218746", "0.5905554", "0.58956057", "0.5853101", "0.5832984", "0.58208424", "0.58192635", "0.58100724", "0.5797465", "0.5777109", "0.5763682", "0.576173", "0.5709793", "0.56953216", "0.5691097", "0.56837654", "0.5682458", "0.56681365", "0.566207", "0.5661924", "0.5661454", "0.5660254", "0.56588084", "0.5656978", "0.5648242", "0.5643689", "0.5643689", "0.5627527", "0.56241095", "0.5623268", "0.56150466", "0.5614304", "0.5595391", "0.5592846", "0.55729854", "0.5563858", "0.5560472", "0.5556893", "0.5555753", "0.55533653", "0.55533653", "0.5550995", "0.55431455", "0.55382025", "0.5537344", "0.5529027", "0.5522072", "0.5517272", "0.55131054", "0.5512129", "0.55115443", "0.5511289", "0.5511289", "0.55062205", "0.5505906", "0.5505325", "0.55038065", "0.5485773", "0.5479793", "0.5479793", "0.5478909", "0.5477126", "0.5477126", "0.54670113", "0.54659986", "0.5459565", "0.545722", "0.5446099", "0.54442614", "0.5443763", "0.54417646", "0.54417646", "0.54417646", "0.5432401", "0.54318607", "0.54318607", "0.54318607", "0.54318607", "0.54318607", "0.54318607", "0.54318607", "0.5428363", "0.5427064", "0.5418957", "0.54151976", "0.54151976", "0.54151803" ]
0.7881836
0
Sets the stock price when created field with the current stock price value this is a synchronous call to get the stockprice.
protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity ) { Objects.requireNonNull( tickerSymbol, "tickerSymbol argument cannot be null" ); Objects.requireNonNull( entity, "entity argument cannot be null" ); /* * The stock price needs to be set the first time as it records the stock price when the record was created. */ entity.setStockPriceWhenCreated( this.stockPriceQuoteService .getLastPrice( tickerSymbol )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}", "public BigDecimal getStock_price() {\n return stock_price;\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "public void setStockPriceDate(Date stockPriceDate) {\n this.stockPriceDate = stockPriceDate;\n }", "public void setStockMarketPrice(double stockMarketPrice) {\n\t\tthis.stockMarketPrice = stockMarketPrice;\n\t}", "public void onStockpriceChanged();", "public double getStockMarketPrice() {\n\t\treturn stockMarketPrice;\n\t}", "public Date getStockPriceDate() {\n return stockPriceDate;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setSharePrice(double stockPrice) {\n\t\tthis.sharePrice = stockPrice;\n\t}", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setStock(Integer stock) {\n this.stock = stock;\n }", "public void setPrice(Double price);", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price){this.price=price;}", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "public void setStock(int stock) {\n\t\tthis.stock = stock;\n\t}", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public void putNewPrice(String symbol, double price);", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}", "public abstract void setstockNumber();", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "public void setStockSymbol(StockSymbol stockSymbol) {\n\t\tthis.stockSymbol = stockSymbol;\n\t}", "public float getPrice() {\n return _price;\n }", "public Float getPrice() {\r\n return price;\r\n }", "protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}", "public double getPrice() {\n return price_;\n }", "public void setPriceEntered (BigDecimal PriceEntered);", "public void setPrice(Date price) {\n this.price = price;\n }", "public void updateStockPrice(String ticker, double currentUnitValue) {\n\t\tStock stock = this.findStockByTicker(ticker);\n\t\tstock.setCurrentUnitValue(currentUnitValue);\n\t\tstockRepo.save(stock);\t\n\t}", "protected float getPrice() {\n\t\t\treturn price;\n\t\t}", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public Double getPrice() {\r\n\t\treturn price;\r\n\t}", "public Float getPrice() {\n return price;\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "SimpleStock(String newsymbol, String newname, double newpreviousClosingPrice, double newcurrentPrice ) {\n\t\tSymbol = newsymbol;\n\t\tName = newname;\n\t\tpreviousClosingPrice = newpreviousClosingPrice;\n\t\tcurrentPrice = newcurrentPrice;\n\t \t }", "public long getPrice() {\n return price;\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public Double getPrice() {\r\n return price;\r\n }", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "public double getPrice() {\n return price_;\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public Date getPrice() {\n return price;\n }", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setPrice(final BigDecimal price) {\n this.price = price;\n }" ]
[ "0.76926905", "0.76066864", "0.7348743", "0.7209661", "0.66441303", "0.6621732", "0.65959734", "0.6517946", "0.65164745", "0.6502749", "0.6500441", "0.6500441", "0.6489309", "0.6462509", "0.64013654", "0.6358144", "0.6354834", "0.634475", "0.6342002", "0.6342002", "0.63332474", "0.63327813", "0.63283765", "0.63283765", "0.63283765", "0.632411", "0.632408", "0.63221157", "0.63131016", "0.63053155", "0.63016164", "0.62829834", "0.62829834", "0.62829834", "0.62829834", "0.62829834", "0.62829834", "0.62829834", "0.6282408", "0.62690675", "0.62690675", "0.62558746", "0.6255075", "0.623551", "0.623551", "0.62050426", "0.6190934", "0.6190934", "0.6190665", "0.6190665", "0.6173159", "0.6173159", "0.6173159", "0.6173159", "0.6173159", "0.61723924", "0.61723924", "0.617222", "0.61613387", "0.6142163", "0.6142163", "0.6141746", "0.61390036", "0.6134878", "0.6134878", "0.6130783", "0.61069775", "0.61068434", "0.6099336", "0.6096844", "0.6092584", "0.608795", "0.60851854", "0.608393", "0.6080246", "0.60752314", "0.60712016", "0.60712016", "0.60712016", "0.6068338", "0.6065109", "0.60637414", "0.60601145", "0.60582864", "0.6058166", "0.6058166", "0.6058166", "0.6058166", "0.604549", "0.60432684", "0.6041832", "0.60406417", "0.6039036", "0.60270834", "0.6022782", "0.6020486", "0.6020486", "0.6020486", "0.6019096", "0.6016814" ]
0.7026803
4
Save the DTO and check the ticker symbol to ensure a company exists or create one if not.
@Override protected void preSaveDTO( final D dto ) { final String methodName = "preSaveDTO"; logMethodBegin( methodName, dto ); checkTickerSymbol( dto ); super.preSaveDTO( dto ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Company saveCompany(Company company);", "@Override\n\tpublic void save(Company company) {\n\t\t\n\t}", "public boolean addOrUpdateCapitalMarkets(CapitalMarketsModel companyDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSuccessful = false;\n\n //As usual Wrap it in a transaction\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_COMPANY_OBJECT_ID, companyDetails.getCompanyObjectId());\n values.put(KEY_COMPANY_NAME, companyDetails.getCompanyName());\n values.put(KEY_COMPANY_IMAGE, companyDetails.getCompanyImage());\n values.put(KEY_COMPANY_ADDRESS, companyDetails.getCompanyAddress());\n values.put(KEY_COMPANY_STOCK_CODE, companyDetails.getCompanyStockCode());\n values.put(KEY_COMPANY_DESCRIPTION, companyDetails.getCompanyDescription());\n values.put(KEY_COMPANY_ESTABLISHED, companyDetails.getCompanyEstablished());\n values.put(KEY_COMPANY_CONTACTS, companyDetails.getCompanyContacts());\n values.put(KEY_COMPANY_INDUSTRY, companyDetails.getCompanyType());\n values.put(KEY_COMPANY_WEBSITE, companyDetails.getCompanyWebsite());\n values.put(KEY_COMPANY_STATUS, companyDetails.getCompanyStatus());\n values.put(KEY_COMPANY_SUMMARY, companyDetails.getCompanySummary());\n //Let's try to update the Saved Product if it exists.\n int rows = db.update(TABLE_BANKS, values, KEY_COMPANY_OBJECT_ID + \"= ?\", new String[]{companyDetails.getCompanyObjectId()});\n\n //Let's check if the update worked\n if (rows == 1) {\n //Ok, we have updated a Saved COMPANY, we could probably get the COMPANY updated at this point if we needed to\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n\n } else {\n //No Such Bank Here, insert it\n db.insertOrThrow(TABLE_CAPITAL_MARKETS, null, values);\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error trying to Update company table\");\n transactionSuccessful = false;\n } finally {\n db.endTransaction();\n }\n return transactionSuccessful;\n\n }", "Company getOrCreateCompanyId(String companyID) throws Exception;", "@PostMapping(\"/company-types\")\n @Timed\n public ResponseEntity<CompanyType> createCompanyType(@Valid @RequestBody CompanyType companyType) throws URISyntaxException {\n log.debug(\"REST request to save CompanyType : {}\", companyType);\n if (companyType.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"companyType\", \"idexists\", \"A new companyType cannot already have an ID\")).body(null);\n }\n CompanyType result = companyTypeRepository.save(companyType);\n companyTypeSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/company-types/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"companyType\", result.getId().toString()))\n .body(result);\n }", "@PostMapping(path = \"\")\n public ResponseEntity<ContractorDTO> saveContractor(@RequestBody @Valid ContractorDTO contractor) throws Exception{\n logger.debug(\"Request to save Contractor\");\n Contractor existingContractor = new Contractor();\n if(contractor.getId() != null && contractor.getId() > 0) {\n //Updating existing contractor - Check item with matching ID present\n Optional<Contractor> savedContractor = contractorService.getByID(contractor.getId());\n if(savedContractor != null && savedContractor.isPresent()) existingContractor = savedContractor.get();\n else throw new ResourceNotFoundException(\"In order to update Contractor \" + contractor.getId() + \", existing Contractor must be available with same ID\");\n }\n\n //In case not all persistent attributes not present in update DTO\n Contractor saveContractor = copyToContractor(contractor, existingContractor);\n Contractor savedContractor = contractorService.saveContractor(saveContractor);\n if(savedContractor.getId() != null && savedContractor.getId() > 0){\n logger.info(\"Saved Contractor with id \" + saveContractor.getId());\n ContractorDTO savedContractorDTo = convertToDTO(savedContractor);\n return ResponseEntity.created (new URI(\"/contractors/\" + savedContractor.getId())).body(savedContractorDTo);\n }\n else{\n throw new PersistenceException(\"Contractor not persisted: \" + new Gson().toJson(savedContractor));\n }\n }", "protected void checkTickerSymbol( final D dto )\n {\n final String methodName = \"checkTickerSymbol\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockCompanyEntityService\n .checkStockCompanyTableEntry( dto.getTickerSymbol() );\n logMethodEnd( methodName );\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 boolean saveOrUpdateStockExchange(StockExchange stockExchange);", "@PostMapping(\"/buy-types\")\n @Timed\n @Secured({AuthoritiesConstants.ROLE_ADMIN, AuthoritiesConstants.CREATE_BUY_TYPE})\n public ResponseEntity<BuyTypeDTO> createBuyType(@Valid @RequestBody BuyTypeDTO buyTypeDTO, BindingResult validation) throws URISyntaxException {\n if (validation.hasErrors())\n return ValidationResponseEntityGenerator.getBadRequest(validation);\n log.debug(\"REST request to save BuyType : {}\", buyTypeDTO);\n if (buyTypeDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new buyType cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n BuyTypeDTO result = buyTypeService.save(buyTypeDTO);\n return ResponseEntity.created(new URI(\"/api/buy-types/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewAuditingCompany();", "public void save() {\r\n\t\ttry {\r\n\t\t\tthis.iniObjects();\r\n\t\t\tGxyService currentService = getGxyService();\r\n\t\t\tCompassSession session = new CobooCompass().getCompass().openSession();\r\n\t\t\tCompassTransaction tx = session.beginLocalTransaction();\r\n\t\t\tPerson person = null;\r\n\t\t\tCompassHits hits = session.find(\"ResidentpersonId:\" + this.personId.getHValue());\r\n\t\t\tif (hits.length() > 0) {\r\n\t\t\t\tCompassHit hit = hits.hit(0);\r\n\t\t\t\tperson = (Person) hit.getData();\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tcal.setTime(this.visitTime[visitNo]);\r\n\t\t\tString StrYear = String.valueOf(cal.get(Calendar.YEAR));\r\n\r\n\t\t\tInfo gxyInfo = person.getGxyInfo();\r\n\t\t\tList<YearService> servicesOfYear = new ArrayList<YearService>();\r\n\t\t\tif (gxyInfo == null) {\r\n\t\t\t\tInfo Info = new GxyInfo();\r\n\t\t\t\tInfo.setIf_gxy(true);\r\n\t\t\t\tInfo.setDiagTime(new Date());\r\n\t\t\t\tperson.setGxyInfo(Info);\r\n\t\t\t\tgxyInfo = Info;\r\n\t\t\t} // else {\r\n\t\t\t\r\n\t\t\tservicesOfYear = gxyInfo.getYearServices();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (YearService ys : servicesOfYear) {\r\n\t\t\t\tif (ys.getYear().equals(StrYear)) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tGxyService[] gxyServices = ys.getServicesOfYear();\r\n\t\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tYearService newYs = new YearService();\r\n\t\t\t\tnewYs.setYear(StrYear);\r\n\t\t\t\tGxyService[] gxyServices = newYs.getServicesOfYear();\r\n\t\t\t\tfor (int i = 0; i < gxyServices.length; i++) {\r\n\t\t\t\t\tgxyServices[i] = new GxyService();\r\n\t\t\t\t\tgxyServices[i].setId(System.nanoTime());\r\n\t\t\t\t}\r\n\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\tservicesOfYear.add(newYs);\r\n\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t\tgxyInfo.setYearServices(servicesOfYear);\r\n\t\t\tperson.setGxyInfo(gxyInfo);\r\n\r\n\t\t\t// session.save(this.doctors[this.visitNo]);\r\n\t\t\t// gxyInfo.setId(System.nanoTime());\r\n\r\n\t\t\tsession.save(currentService);\r\n\t\t\tsession.save(person);\r\n\t\t\ttx.commit();\r\n\t\t\tsession.close();\r\n\t\t\tsuper.saveFile(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void save_Positive() throws LocationSchemeAlreadyExists {\n LocationSchemeDTO locationScheme = new LocationSchemeDTO(false, \"Scheme\", \"Address\");\n SectorDTO sector = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector2 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector3 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 0, 0, SectorType.PARTER);\n List<SectorDTO> sectors = Arrays.asList(sector, sector2, sector3);\n\n LocationSchemeSectorsDTO locationSchemeSectorsDTO = new LocationSchemeSectorsDTO(sectors, locationScheme);\n testRestTemplate.withBasicAuth(\"admin\", \"password\").postForEntity(URL_PREFIX, locationSchemeSectorsDTO, LocationSchemeSectorsDTO.class);\n\n verify(sectorService, times(1)).saveAll(anyList(), any(LocationScheme.class));\n verify(locationSchemeService, times(1)).save(any(LocationScheme.class));\n }", "public void save(Company company) {\r\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(company);\r\n\t}", "@PostMapping(\"/tlb-trade/createTlbTrade\")\n @Timed\n public ResponseEntity<ResponseResult> createTlbTrade(@RequestBody TlbTradeDTO tlbTradeDTO) throws URISyntaxException {\n log.debug(\"REST request to save TlbTrade : {}\", tlbTradeDTO);\n if (tlbTradeDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new sysComponent cannot already have an ID\")).body(null);\n }\n ResponseResult json = new ResponseResult();\n HashMap<String, Object> checkMap = tlbTradeService.checkLotsTrade(tlbTradeDTO);\n if(!ResponseResult.SUCCESS_CODE.equals(checkMap.get(\"statusCode\"))){\n json.setMsgCode(checkMap.get(\"msg\").toString());\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }\n TlbTradeDTO tradeDTO = tlbTradeService.save(tlbTradeDTO);\n //ResponseResult json = new ResponseResult();\n json.setStatusCode(ResponseResult.SUCCESS_CODE);\n json.setData(tradeDTO);\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }", "@Override\r\n\tpublic Company insertCompany(Company company) throws SQLException {\n\t\treturn companyRepository.save(company);\r\n\t}", "@Override\r\n public void save(BuyTicketModel value) {\n String sql = \"insert into buyticket values(?,?,?,?,?,?,?,?,?,?,?,?) \";\r\n \r\n try {\r\n PreparedStatement pstm = database.getCon().prepareStatement(sql);\r\n pstm.setString(1, value.getSlno());\r\n pstm.setString(2, value.getCustomername());\r\n pstm.setString(10,value.getContact());\r\n pstm.setString(3, value.getDestination());\r\n pstm.setString(4, value.getTime());\r\n pstm.setString(5, value.getFare());\r\n pstm.setString(6, value.getComment());\r\n pstm.setString(7, value.getDate());\r\n pstm.setString(8, value.getPayment());\r\n pstm.setString(9, value.getSeat());\r\n pstm.setString(11, value.getType());\r\n pstm.setString(12, value.getBusname());\r\n \r\n \r\n pstm.executeUpdate();\r\n pstm.close();\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(BuyTicketImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }", "Bird save(BirdDTO birdDTO);", "@Override\r\n\tpublic void saveYuyueOrder(YuyueOrderDTO yuyueOrderDTO) throws Exception {\n\t\tYuyueOrder yuyueOrder = new YuyueOrder();\r\n\t\tSysYuyue sy = sysYuyueRespository.findOne(yuyueOrderDTO.getSysYuyue());\r\n\t\t\r\n\t\tPropertyUtils.copyProperties(yuyueOrder,yuyueOrderDTO);\r\n\t\tif(sy.getYyCzUser()!=null){\r\n\t\t\tyuyueOrder.setYyCzId(sy.getYyCzUser().getId());\r\n\t\t}\r\n\t\tif(sy.getYyQyUser()!=null){\r\n\t\t\tyuyueOrder.setYyQxId(sy.getYyQyUser().getId());\r\n\t\t}\r\n\t\tyuyueOrder.setYl5(OrderUtil.getOrderIdByUUId());\r\n yuyueOrderRepository.save(yuyueOrder);\r\n if(yuyueOrderDTO.getServerProject()!=null){\r\n \tfor(int i=0;i<yuyueOrderDTO.getServerProject().size();i++){\r\n \t\tyuyueOrderDTO.getServerProject().get(i).setOrderId(yuyueOrder.getId());\r\n \t}\r\n }\r\n\t\t\r\n\t\tserverProjectRespository.saveInBatch(yuyueOrderDTO.getServerProject());\r\n\t\t\r\n\t\t\r\n PropertyUtils.copyProperties(yuyueOrder,yuyueOrderDTO);\r\n yuyueOrderRepository.save(yuyueOrder);\r\n\t}", "public Encounter save(EncounterDTO encounterDTO) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalTime time = LocalTime.parse(formatter.format(LocalTime.now()), formatter);\n\n encounterDTO.setTimeCreated(time);\n log.info(\"Getting Consultation from front end...\" + encounterDTO);\n\n Optional<Encounter> encounter = this.encounterRepository.findByPatientIdAndProgramCodeAndFormCodeAndDateEncounter(encounterDTO.getPatientId(), encounterDTO.getFormCode(),\n encounterDTO.getProgramCode(), encounterDTO.getDateEncounter());\n\n if (encounter.isPresent()) {\n throw new RecordExistException(Encounter.class, \"Patient Id \", encounterDTO.getPatientId() + \", \" +\n \"Program Code = \" + encounterDTO.getProgramCode() + \", Form Code =\" + encounterDTO.getFormCode() + \", Date =\" + encounterDTO.getDateEncounter());\n }\n\n Optional <Patient> patient1 = this.patientRepository.findById(encounterDTO.getPatientId());\n if(!patient1.isPresent()){\n throw new EntityNotFoundException(Patient.class,\"Patient Id\", patient1.get().getId().toString());\n }\n\n Optional<Form> form = formRepository.findByCode(encounterDTO.getFormCode());\n if(!form.isPresent()){\n throw new EntityNotFoundException(Form.class,\"Form Name\", encounterDTO.getFormCode());\n }\n\n Optional<Program> program = this.programRepository.findByCode(encounterDTO.getProgramCode());\n if(!program.isPresent()){\n throw new EntityNotFoundException(Program.class,\"Program Name\", encounterDTO.getProgramCode());\n }\n\n Optional<Visit> visit = this.visitRepository.findById(encounterDTO.getVisitId());\n if(!visit.isPresent()){\n throw new EntityNotFoundException(Visit.class,\"Visit Id\", encounterDTO.getVisitId().toString());\n }\n\n\n final Encounter encounter1 = encounterMapper.toEncounter(encounterDTO);\n\n\n Encounter encounter2 = this.encounterRepository.save(encounter1);\n log.info(\"SAVING CONSULTATION TO BACKEND 12345... \" + encounter2);\n\n if(encounterDTO.getData().size() >0){\n encounterDTO.getData().forEach(formDataList->{\n FormData formData = new FormData();\n formData.setEncounterId(encounter2.getId());\n formData.setData(formDataList);\n this.formDataRepository.save(formData);\n });\n\n }\n\n return encounter2;\n\n }", "@Override\n\tpublic void addCompany(BeanCompany Company) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.save(Company);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n\t}", "@Override\r\n\tpublic Company updateCompany(Company company) {\n\t\treturn null;\r\n\t}", "VendorNotificationResponseDTO save(VendorNotificationRequestDTO VendorDataNotificationRequestDTO)throws Exception;", "@Test\n\tpublic void testPersistNewSupplierOrder() throws Exception {\n\t\tLong id = saveEntity();\n\t\tSupplierOrder order = dao.findById(id);\n\t\tassertNull(order.getUpdateDate());\n\t}", "Long saveOrUpdate(D dto);", "@Override\r\n\tpublic int createMarket(MarketDto dto) {\n\t\treturn session.insert(\"kdc.market.createMarket\", dto);\r\n\t}", "@PostMapping(\"/costo-servicios\")\n @Timed\n public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {\n log.debug(\"REST request to save CostoServicio : {}\", costoServicioDTO);\n if (costoServicioDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new costoServicio cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CostoServicioDTO result = costoServicioService.save(costoServicioDTO);\n return ResponseEntity.created(new URI(\"/api/costo-servicios/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@PostMapping(\"/prix-tickets\")\n @Timed\n public ResponseEntity<PrixTicketDTO> createPrixTicket(@RequestBody PrixTicketDTO prixTicketDTO) throws URISyntaxException {\n log.debug(\"REST request to save PrixTicket : {}\", prixTicketDTO);\n if (prixTicketDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new prixTicket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PrixTicketDTO result = prixTicketService.save(prixTicketDTO);\n return ResponseEntity.created(new URI(\"/api/prix-tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);", "@Override\n public boolean insertShare(CompanyShare companyShare) {\n CompanyShare existingShare = getShare(\n Filters.eq(\"companySymbol\", companyShare.getCompanySymbol())\n );\n\n if (existingShare != null) {\n return false;\n }\n\n Document newShare = ObjectMapperHelper.MapToDocument(companyShare);\n getSharesCollection().insertOne(newShare);\n\n return true;\n }", "@Test\n\tpublic void testSuppCompany() {\n\n\t\tSuppCompany suppCompany =new SuppCompany();\n\t\tsuppCompany.setName(\"www\");\n\t\tsuppCompanyService.update(suppCompany,new EntityWrapper<SuppCompany>().eq(false,\"name\",\"yyy\"));\n\t}", "public CustomerCompany addOrUpdateCustomerCompany(CustomerCompany company) \n\t{\n\t\tif (company.getId() == null) \n\t\t{\n\t\t\tthis.entityManager.persist(company);\t\t\t\n\t\t} \n\t\telse \n\t\t{\n\t\t\tcompany = this.entityManager.merge(company);\n\t\t}\n\t\treturn company;\n\t}", "@Override\n public void save(Trade trade) {\n this.tradeRepository.save(trade);\n }", "public void save(HrJBorrowcontract entity);", "@Test\n public void save_Negative() throws LocationSchemeAlreadyExists {\n LocationSchemeDTO locationScheme = new LocationSchemeDTO(false, EXISTING_SCHEME_NAME, \"Address 2\");\n locationScheme.setId(EXISTING_SCHEME2_ID);\n SectorDTO sector = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector2 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 10, 10, SectorType.GRANDSTAND);\n SectorDTO sector3 = new SectorDTO(false, 10.0, 10.0,\n 0.0, 0.0, 100,\n 0, 0, SectorType.PARTER);\n List<SectorDTO> sectors = Arrays.asList(sector, sector2, sector3);\n\n LocationSchemeSectorsDTO locationSchemeSectorsDTO = new LocationSchemeSectorsDTO(sectors, locationScheme);\n when(locationSchemeService.save(any(LocationScheme.class)))\n .thenThrow(LocationSchemeAlreadyExists.class);\n testRestTemplate.withBasicAuth(\"admin\", \"password\").postForEntity(URL_PREFIX, locationSchemeSectorsDTO, LocationSchemeSectorsDTO.class);\n\n verify(locationSchemeService, times(1)).save(any(LocationScheme.class));\n }", "@PostMapping(\"/company-departments\")\n @Timed\n public ResponseEntity<CompanyDepartment> createCompanyDepartment(@RequestBody CompanyDepartment companyDepartment) throws URISyntaxException {\n log.debug(\"REST request to save CompanyDepartment : {}\", companyDepartment);\n if (companyDepartment.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"companyDepartment\", \"idexists\", \"A new companyDepartment cannot already have an ID\")).body(null);\n }\n CompanyDepartment result = companyDepartmentRepository.save(companyDepartment);\n return ResponseEntity.created(new URI(\"/api/company-departments/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"companyDepartment\", result.getId().toString()))\n .body(result);\n }", "@Test\n public void getCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.QUOTE_SYMBOL);\n assertFalse(comps.isEmpty());\n boolean pass = false;\n for (Stock info : comps) {\n if (info.getSymbol().equals(TestConfiguration.QUOTE_SYMBOL)) {\n pass = true;\n }\n }\n assertTrue(pass);\n }", "@Override\n protected void postSaveDTO( final D dto )\n {\n final String methodName = \"postSaveDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postSaveDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "T createOrUpdate(final T domain) throws RequiredValueException, NoEntityFoundException;", "private void registrarSolicitudBienEntidad(SolicitudBienEntidadDTO SolicitudBienEntidadDTO) {\n SolicitudBienEntidad solicitudBienEntidad = SolicitudBienEntidadHelper.toLevel1Entity(SolicitudBienEntidadDTO,\n null);\n em.persist(solicitudBienEntidad);\n }", "@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}", "@PostMapping(\"/addNewTrader\")\r\n\tpublic int createNewPortfolio(@Valid @RequestBody List<Stock> stockPortfolioList){\r\n return stockPortfolioService.addNewTrader(stockPortfolioList);\r\n\t }", "public int saveOrUpdate(o dto);", "public Account create(CheckingAccDto checkingAccDto) {\n CheckingAcc checkingAcc;\n Optional<AccountHolder> accountHolder = accountHolderRepository.findById(checkingAccDto.getPrimaryOwnerId());\n if (accountHolder.isPresent()){\n if(Utils.calculateYears(accountHolder.get().getDateOfBirth())<24){\n StudentCheckingAcc studentCheckingAcc = new StudentCheckingAcc(\n accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n studentCheckingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return studentCheckingAccRepository.save(studentCheckingAcc);\n } else {\n checkingAcc = new CheckingAcc (accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n checkingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return checkingAccRepository.save(checkingAcc);\n }\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Primary owner not found\");\n }\n }", "void save(String key, Object data, int expirySeconds) throws BusinessException;", "@PostMapping(\"/opportunities\")\n @Timed\n public ResponseEntity<OpportunityDTO> createOpportunity(@Valid @RequestBody OpportunityDTO opportunityDTO) throws URISyntaxException {\n log.debug(\"REST request to save Opportunity : {}\", opportunityDTO);\n if (opportunityDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new opportunity cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OpportunityDTO result = opportunityService.save(opportunityDTO);\n return ResponseEntity.created(new URI(\"/api/opportunities/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public Contract save(Contract entity) {\n\t\treturn null;\r\n\t}", "@Test \n\tpublic void saveItemTest() throws Exception {\n\t\tItemDTO aItemDto = catalogService.createItem(itemDto);\n\t\tassertNotNull(aItemDto);\n\t\tassertEquals(itemDto,aItemDto);\n\t}", "public void singleSave() {\n\t\ttry {\n\t\t\tthis.insertBy = CacheUtils.getUser().username;\n\t\t} catch (Exception e) {\n\t\t\tif (! getClass().equals(GlobalCurrencyRate.class)) {\n\t\t\t\tlog.error(\"ERROR\", e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.insertBy = \"super\";\n\t\t}\n\t\tthis.workspace = CacheUtils.getWorkspaceId();\n\t\tthis.insertAt = new Date();\n\n\t\tsuper.save();\n\t\tCacheUtils.cleanAll(this.getClass(), getAuditRight());\n\t}", "@Override\r\n\tpublic void insertCompany(Company company) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\r\n\t\tString sql = \"insert into Company(ID, COMP_NAME, PASSWORD, EMAIL) values (?,?,?,?)\";\r\n\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\r\n\t\t\tpreparedStatement.setLong(1, company.getCompanyId());\r\n\t\t\tpreparedStatement.setString(2, company.getCompanyName());\r\n\t\t\tpreparedStatement.setString(3, company.getCompanyPassword());\r\n\t\t\tpreparedStatement.setString(4, company.getCompanyEmail());\r\n\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\r\n\t\t\tSystem.out.println(\"Company created: \" + company.toString());\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - Company creation failed. companyId: \"+ company.getCompanyId());\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"Company creation failed. companyId: \"+ company.getCompanyId());\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void saveOrUpdate(Contract entity) {\n\t\tif(UtilFuns.isEmpty(entity.getId())){ // 判断修改或者新增\n\t\t\t//设置默认值\n\t\t\tentity.setState(0); //0:草稿 1:已上报 2:已报运\n\t\t\tentity.setTotalAmount(0.0); //务必设置默认值否则新增货物,分散计算的时候会出先null + xxxx\n\t\t}else{\n\t\t\t\n\t\t}\n\t\t\n\t\tcontractDao.save(entity);\n\t}", "@PostMapping(\"/catalogue/save\")\n CatalogueProduitDTO saveCatalogue(@RequestBody CatalogueProduitDTO catalogueProduitDTO) {\n return catalogueProduitMetier.saveCatalogue(catalogueProduitDTO);\n }", "RocketDTO addRocket(CreateRocketDTO rocket);", "@Kpi(\"ID_KPI_AGENCY_EXPORT_STOCK_CREATE_UNDER_LYING\")\n @Secured(\"@\")\n public void doCreateUnderlyingStock() {\n try {\n //validate ngay nhap phai la dinh dang so, va phai la so nguyen duong\n List<StockTransDetailDTO> lsDetailDTOs = Lists.newArrayList();\n List<StockTransFullDTO> lsStockTransFull = listProductTag.getLsStockTransFull();\n Long totalDepositPrice = 0L;\n for (StockTransFullDTO stockTransFullDTO : lsStockTransFull) {\n StockTransDetailDTO stockTransDetailDTO = new StockTransDetailDTO();\n stockTransDetailDTO.setStockTransDetailId(stockTransFullDTO.getStockTransDetailId());\n stockTransDetailDTO.setProdOfferId(stockTransFullDTO.getProdOfferId());\n stockTransDetailDTO.setStateId(stockTransFullDTO.getStateId());\n stockTransDetailDTO.setQuantity(stockTransFullDTO.getQuantity());\n stockTransDetailDTO.setLstStockTransSerial(stockTransFullDTO.getLstSerial());\n stockTransDetailDTO.setTableName(stockTransFullDTO.getTableName());\n stockTransDetailDTO.setProdOfferTypeId(stockTransFullDTO.getProductOfferTypeId());\n stockTransDetailDTO.setDepositPrice(stockTransFullDTO.getDepositPrice());\n lsDetailDTOs.add(stockTransDetailDTO);\n if (!DataUtil.isNullObject(stockTransFullDTO.getDepositPrice())) {\n totalDepositPrice += stockTransFullDTO.getDepositPrice() * stockTransFullDTO.getQuantity();\n }\n }\n StockTransActionDTO stockTransActionDTO = orderStockTag.getStockTransActionDTO();\n StockTransDTO stockTransDTO = orderStockTag.getStockTransDTO();\n stockTransDTO.setStockTransActionId(getStockTransActionId());\n stockTransDTO.setCreateUserIpAdress(BccsLoginSuccessHandler.getIpAddress());\n stockTransDTO.setDepositPrice(totalDepositPrice);\n stockTransDTO.setProcessOffline(checkOffline ? Const.PROCESS_OFFLINE : \"\");\n stockTransDTO.setShopId(staffDTO.getShopId());\n BaseMessage message = executeStockTransService.executeStockTrans(Const.STOCK_TRANS.EXPORT_AGENT, Const.STOCK_TRANS_TYPE.EXPORT, stockTransDTO, stockTransActionDTO, lsDetailDTOs, requiredRoleMap);\n if (!DataUtil.isNullOrEmpty(message.getErrorCode())) {\n throw new LogicException(message.getErrorCode(), message.getKeyMsg(), message.getParamsMsg());\n }\n doSearchStockTrans();\n canPrint = true;\n reportSuccess(\"frmExportNote:msgExport\", \"export.stock.success\");\n } catch (LogicException ex) {\n logger.error(ex.getMessage(), ex);\n reportError(\"frmExportNote:msgExport\", ex);\n topPage();\n } catch (Exception ex) {\n logger.error(ex.getMessage(), ex);\n reportError(\"frmExportNote:msgExport\", \"common.error.happened\", ex);\n topPage();\n }\n\n }", "@Override\r\n\tpublic void saveCosmetics(CosmeticsDTO cosmeticsDTO) {\n\t\tSession session = null;\r\n\t\ttry {\r\n\t\t\tsession = HibSingleton.getFactory().openSession();\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tsession.save(cosmeticsDTO);\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tif (Objects.nonNull(cosmeticsDTO)) {\r\n\t\t\t\tSystem.out.println(\"data is stored in database successfully\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"data is not stored in database\");\r\n\r\n\t\t\t}\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (Objects.nonNull(session)) {\r\n\t\t\t\tsession.close();\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"session not closed properly\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void persistToDatabase(Stock stock, int id) throws ParseException {\n\n\n // Creating the config instance & passing the hibernate config file.\n Configuration config = new Configuration();\n config.configure(\"hibernate.cfg.xml\");\n\n // Session object to start the db transaction.\n Session s = config.buildSessionFactory().openSession();\n\n // Transaction object to begin the db transaction.\n Transaction t = s.beginTransaction();\n\n Stock_infoDAO stock_infoDAO = new Stock_infoDAO();\n stock_infoDAO.setId(id);\n stock_infoDAO.setSymbol(stock.getSymbol());\n BigDecimal price = new BigDecimal(stock.getPrice());\n stock_infoDAO.setPrice(price);\n\n String inDate= stock.getTime();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Timestamp ts = new Timestamp(((java.util.Date)dateFormat.parse(inDate)).getTime());\n stock_infoDAO.setTime(ts);\n\n\n // Saving the stockinfo object to the db.\n s.persist(stock_infoDAO);\n\n // Committing the transaction in the db.\n t.commit();\n\n System.out.println(\"\\n===================\\n\");\n\n\n // Closing the session object.\n s.close();\n }", "public BookingInfoEntity createBooking(BookingInfoEntity bookingInfoEntity) {\n System.out.println(bookingInfoEntity.getFromDate() + \"\\t\" + bookingInfoEntity.getToDate());\n long noOfDays = ChronoUnit.DAYS.between(bookingInfoEntity.getFromDate(), bookingInfoEntity.getToDate());\n bookingInfoEntity.setRoomPrice( 1000 * bookingInfoEntity.getNumOfRooms() * ((int)noOfDays) );\n bookingInfoEntity.setRoomNumbers(getRandomNumber(bookingInfoEntity.getNumOfRooms()));\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity); \n return bookingInfoEntity;\n }", "public boolean saveManagedCompany(ManagedCompany company) {\n boolean result = false;\n if (company.getId() == 0) {\n result = this.createManagedCompany(company);\n } else {\n result = this.updateManagedCompany(company);\n }\n return result;\n }", "ExchangeRate saveOrUpdate(ExchangeRate rate);", "public void createNewStock(Stock stock) throws DuplicateEntry, InvalidDateEntry {\n\t\tif (!validateDate(stock.getDate())) {\n\t\t\tlog.error(\"Date entered is a future date for:\" + stock.getStock() + \"date given : \" + stock.getDate());\n\t\t\tthrow new InvalidDateEntry(\n\t\t\t\t\t\"Date entered is a future date for: \" + stock.getStock() + \" date given : \" + stock.getDate());\n\t\t}\n\n\t\tif (checkForDuplicates(new StockId(stock.getStock(), stock.getDate()))) {\n\t\t\tlog.error(\"Duplcate Record for :\" + stock.getStock() + \"on \" + stock.getDate());\n\t\t\tthrow new DuplicateEntry(\"Duplcate Record for : \" + stock.getStock() + \" on \" + stock.getDate());\n\t\t}\n\n\t\tstockRepo.save(stock);\n\n\t}", "Boolean save(PostSaveDTO postSaveDTO);", "@Override\r\n\tpublic void addCompany(Company company) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"insert into companies values(0, ?, ?, ?)\";\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tif (company != null) {\r\n\t\t\t\tpstmt.setString(1, company.getCompName());\r\n\t\t\t\tpstmt.setString(2, company.getCompEmail());\r\n\t\t\t\tpstmt.setString(3, company.getCompPass());\r\n\t\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t\tSystem.out.println(\"New company was added\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"addCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String save() {\r\n\t\ttry {\r\n\r\n\t\t\tif (obs != null && !obs.trim().isEmpty()) {\r\n\t\t\t\tconcurso.setObservacionReserva(obs);\r\n\t\t\t\tconcursoHome.setInstance(concurso);\r\n\t\t\t\tString res = concursoHome.update();\r\n\t\t\t}\r\n\r\n\t\t\tfor (PlantaCargoDetDTO dto : listaPlantaCargoDto) {\r\n\r\n\t\t\t\tif (dto.getReservar()) {\r\n\t\t\t\t\tEstadoDet est = buscarEstado(\"en reserva\");\r\n\t\t\t\t\tif (!existeEnDetalle(dto.getPlantaCargoDet(), est)) {\r\n\t\t\t\t\t\t// buscar\r\n\r\n\t\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\t\tp.setActivo(true);\r\n\t\t\t\t\t\tp.setFechaAlta(new Date());\r\n\t\t\t\t\t\tp.setUsuAlta(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\tp.setNroOrden(2);\r\n\t\t\t\t\t\tp.setPlantaCargoDet(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\t\tif (est != null)\r\n\t\t\t\t\t\t\tp.setEstadoDet(est);\r\n\t\t\t\t\t\tp.setConcurso(concursoHome.getInstance());\r\n\t\t\t\t\t\tem.persist(p);\r\n\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(est.getEstadoCab());\r\n\t\t\t\t\t\tplanta.setEstadoDet(est);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Incidencia 1079 */\r\n\t\t\t\trefreshListaPuestoReservados();\r\n\t\t\t\t/**/\r\n\t\t\t\tEstadoCab estadoCab = obtenerEstadosCabecera(\"VACANTE\");\r\n\t\t\t\tif (esta(dto.getPlantaCargoDet())) {\r\n\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\tp = recuperarConcurso(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\tif (!dto.getReservar()) {\r\n\t\t\t\t\t\tif (p.getConcursoPuestoAgr() != null) {\r\n\t\t\t\t\t\t\tstatusMessages.clear();\r\n\t\t\t\t\t\t\tstatusMessages.add(Severity.ERROR,\r\n\t\t\t\t\t\t\t\t\t\"El puesto pertenece a un grupo\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * p.setActivo(true); p.setNroOrden(1);\r\n\t\t\t\t\t\t * p.setFechaMod(new Date());\r\n\t\t\t\t\t\t * p.setUsuMod(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\t * EstadoDet est = buscarEstado(\"libre\");\r\n\t\t\t\t\t\t * p.setEstadoDet(est); em.merge(p);\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(estadoCab);\r\n\t\t\t\t\t\tplanta.setEstadoDet(null);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\t\t\t\t\t\tif (!concurso\r\n\t\t\t\t\t\t\t\t.getDatosEspecificosTipoConc()\r\n\t\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\r\n\t\t\t\t\t\t\t\t\t\tCONCURSO_INTERNO_INTERINSTITUCIONAL)\r\n\t\t\t\t\t\t\t\t&& planta.getPermanente())\r\n\t\t\t\t\t\t\treponerCategoriasController.reponerCategorias(p,\r\n\t\t\t\t\t\t\t\t\t\"PUESTO\", \"CONCURSO\");\r\n\t\t\t\t\t\tem.remove(p);\r\n\t\t\t\t\t\t// listaPlantaCargoDto.remove(dto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tobs = null;\r\n\t\t\tem.flush();\r\n\t\t\tllenarListado1();\r\n\t\t\tstatusMessages.clear();\r\n\t\t\tstatusMessages.add(Severity.INFO, SeamResourceBundle.getBundle()\r\n\t\t\t\t\t.getString(\"GENERICO_MSG\"));\r\n\t\t\treturn \"persisted\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/free-cfdis\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n //public ResponseEntity<Free_cfdi> createFree_cfdi(@Valid @RequestBody Free_cfdi free_cfdi) throws URISyntaxException {\n public ResponseEntity<Free_cfdi> createFree_cfdi(@Valid @RequestBody Free_cfdiDTO free_cfdi_dto) throws URISyntaxException {\n\n Free_cfdi free_cfdi = free_cfdi_dto.getFreeCFDI();\n\n log.debug(\"REST request to save Free_cfdi : {}\", free_cfdi);\n if (free_cfdi.getId() != null) {\n Long idauditevent = new Long(\"4\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type,c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"idexists\", \"A new free_cfdi cannot already have an ID\")).body(null);\n }\n\n free_cfdi.setVersion(\"3.2\");\n free_cfdi.setDate_expedition(ZonedDateTime.now());\n\n String place_expedition = free_cfdi.getFree_emitter().getC_country().getName();\n\n if(free_cfdi.getFree_emitter().getC_state() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_state().getName();\n\n if(free_cfdi.getFree_emitter().getC_municipality() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_municipality().getName();\n\n if(free_cfdi.getFree_emitter().getC_colony() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_colony().getCode();\n\n if(free_cfdi.getFree_emitter().getC_zip_code() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_zip_code().getCode();\n\n free_cfdi.setPlace_expedition(place_expedition);\n free_cfdi.setStamp(\"stamp\");\n free_cfdi.setNo_certificate(\"no_cetificate\");\n free_cfdi.setCertificate(\"cetificate\");\n\n free_cfdi_dto.setFreeCFDI(free_cfdi);\n Free_cfdi result = free_cfdiService.save(free_cfdi_dto);\n\n Long idauditevent = new Long(\"4\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n //Sending emails\n List<String> attachments = new ArrayList<>();\n attachments.add(result.getPath_cfdi()+\".xml\");\n attachments.add(result.getPath_cfdi()+\".pdf\");\n\n mailService.sendNewFreeCFDICreatedToEmitterEmail(result, attachments);\n mailService.sendNewFreeCFDICreatedToReceiverEmail(result, attachments);\n\n return ResponseEntity.created(new URI(\"/api/free-cfdis/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"free_cfdi\", result.getId().toString()))\n .body(result);\n }", "int insert(TycCompanyCheckCrawler record);", "public void saveCompany(View v) {\n\n final String companyname = companyName.getText().toString().trim();\n\n final String emailAd = email.getText().toString().trim();\n final String passwordAd = password.getText().toString().trim();\n final String passwordR = passwordRepeat.getText().toString().trim();\n final Map<String, Object> company = new HashMap<>();\n\n if (TextUtils.isEmpty(companyname)) {\n companyName.setError(\"name required\");\n return;\n }\n\n if (companyname.matches(\"[0-9]+\")) {\n companyName.setError(\"Name must contain only letters\");\n return;\n }\n if (companyname.matches(\"[^<>%$]\")) {\n companyName.setError(\"No special characters allowed\");\n return;\n }\n if (TextUtils.isEmpty(emailAd)) {\n email.setError(\"users email required\");\n return;\n }\n if (TextUtils.isEmpty(passwordAd)) {\n password.setError(\"users password required\");\n return;\n }\n if (!emailAd.matches(\"^[a-zA-Z0-9_!#$%&’*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+$\")) {\n email.setError(\"users Email must be written correctly [email protected]\");\n return;\n }\n if (passwordAd.length() <= 8) {\n password.setError(\"Users password must be least 8 characters long\");\n return;\n }\n if (!passwordAd.matches(passwordR)) {\n passwordRepeat.setError(\"Password must match\");\n }\n\n\n fAuth.createUserWithEmailAndPassword(emailAd, passwordAd).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // getting current user id\n userId = fAuth.getCurrentUser().getUid();\n DocumentReference docRef = db.collection(\"Companies\").document(userId);\n\n // saving the values into the map\n company.put(COMPANY_NAME, companyname);\n company.put(COMPANY_CATEGORY, compaCategory);\n company.put(COMPANY_EMAIL, emailAd);\n docRef.set(company)\n\n // if the user is registered this will happen otherwise it will no be successful\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(signup.this, \"Your business has been registered\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getApplicationContext(), ManagerDashBoard.class));\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(signup.this, \"An erro has ocured, please try it again later\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, e.toString());\n }\n });\n } else {\n Toast.makeText(signup.this, \"Error!\" + task.getException().getMessage() + emailAd, Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n\n\n }", "public void insert(TmCompany tmCompany) {\n\t\ttmCompanyDao.insert(tmCompany);\r\n\t}", "@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public Owner save(Owner object) {\n Owner savedOwner = null;\n if(object != null) {\n if(object.getPets() != null) {\n object.getPets().forEach(pet -> {\n // 1. Handling Pet Type ID\n if(pet.getPetType() != null) {\n // when the pet has not been saved to our map yet -> save it.\n if(pet.getPetType().getId() == null) {\n pet.setPetType(petTypeService.save(pet.getPetType()));\n }\n } else {\n throw new RuntimeException(\"Pet Type is required!\");\n }\n\n // 2. Handling Pet ID\n if(pet.getId() == null) {\n Pet savedPet = petService.save(pet);\n pet.setId(savedPet.getId());\n }\n });\n }\n return super.save(object);\n } else {\n return null;\n }\n\n }", "protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * The stock price needs to be set the first time as it records the stock price when the record was created.\n */\n entity.setStockPriceWhenCreated( this.stockPriceQuoteService\n .getLastPrice( tickerSymbol ));\n }", "@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}", "@PostMapping(\"/data-set-operations\")\n @Timed\n public ResponseEntity<DataSetOperationDTO> createDataSetOperation(@Valid @RequestBody DataSetOperationDTO dataSetOperationDTO) throws URISyntaxException {\n log.debug(\"REST request to save DataSetOperation : {}\", dataSetOperationDTO);\n if (dataSetOperationDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new dataSetOperation cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DataSetOperation dataSetOperation = dataSetOperationMapper.toEntity(dataSetOperationDTO);\n dataSetOperation = dataSetOperationRepository.save(dataSetOperation);\n DataSetOperationDTO result = dataSetOperationMapper.toDto(dataSetOperation);\n dataSetOperationSearchRepository.save(dataSetOperation);\n return ResponseEntity.created(new URI(\"/api/data-set-operations/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void saveDetailItem(RequestParams<Df00201VO> requestParams) {\n DfDegree dfDegree = new DfDegree();\n\n if(StringUtils.isEmpty(requestParams.getString(\"disposalFreezeEventUuid\"))){\n return;\n }\n\n dfDegree.setDisposalFreezeEventUuid(requestParams.getString(\"disposalFreezeEventUuid\"));\n\n DfDegree orgDfDegree = null;\n\n orgDfDegree = repository.findOne(dfDegree.getId());\n\n if(orgDfDegree != null){\n dfDegree = orgDfDegree;\n dfDegree.setInsertDate(orgDfDegree.getInsertDate());\n dfDegree.setInsertUuid(orgDfDegree.getInsertUuid());\n }\n repository.save(dfDegree);\n }", "@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}", "public void saveQuote() {\n\t\ttry {\n\t\t\tString json = urlRead.readUrl(\"http://dist-sso.it-kartellet.dk/quote/\");\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tJSONObject jsonObject = (JSONObject) jsonParser.parse(json);\n\n\t\t\tString quote = (String) jsonObject.get(\"quote\");\n\t\t\tquote = quote.replace(\"'\", \"''\");\n\n\t\t\tString[] fields = {\"qotd\"};\n\t\t\tString[] values = {quote};\n\n\t\t\tif(qb.selectFrom(\"qotd\").all().executeQuery().next()){\n\t\t\t\tqb.update(\"qotd\", fields, values).where(\"msg_type\", \"=\", \"qotd\").execute();\n\t\t\t} else {\n\t\t\t\tqb.insertInto(\"qotd\", fields).values(values).execute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }", "OrderDTO create(OrderDTO orderDTO);", "@Override\n\tpublic void save(Commodity commodity) {\n\t\tthis.getHibernateTemplate().update(commodity);\n\t}", "@PostMapping(\"/convites\")\n @Timed\n public ResponseEntity<ConviteDTO> createConvite(@Valid @RequestBody ConviteDTO conviteDTO) throws URISyntaxException {\n log.debug(\"REST request to save Convite : {}\", conviteDTO);\n if (conviteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new convite cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n ConviteDTO result = conviteService.save(conviteDTO);\n mailService.sendConviteEmail(conviteDTO.getEmail());\n return ResponseEntity.created(new URI(\"/api/convites/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Test\r\n\tpublic void saveTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTswacct \r\n\t\tInteger teamId_3 = 0;\r\n\t\tTswacct related_tswacct = new wsdm.domain.Tswacct();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTswacct(teamId_3, related_tswacct);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTswacct\r\n\t}", "@Valid\n\tvoid create(Price Price);", "public void saveInformation(){\n market.saveInformationOfMarket();\n deckProductionCardOneBlu.saveInformationOfProductionDeck();\n deckProductionCardOneGreen.saveInformationOfProductionDeck();\n deckProductionCardOneViolet.saveInformationOfProductionDeck();\n deckProductionCardOneYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeBlu.saveInformationOfProductionDeck();\n deckProductionCardThreeGreen.saveInformationOfProductionDeck();\n deckProductionCardThreeYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoBlu.saveInformationOfProductionDeck();\n deckProductionCardTwoGreen.saveInformationOfProductionDeck();\n deckProductionCardTwoViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoYellow.saveInformationOfProductionDeck();\n\n\n }", "@Override\r\n\tpublic void saveASNew(Trade trade) {\n\t\ttradeid.setText(new Integer(trade.getId()).toString());\r\n\t\ttradestatus.setText(trade.getStatus());\r\n\t\tactionstatus.removeAllElements();\r\n\t\t\r\n\t//\tprocessActionData(actionstatus,trade.getTradedesc1()); \r\n\t\t/// imp note : wf understand CASH productType as MM so passing MM as hardcoded\r\n processActionData(actionstatus,productType.toUpperCase(),trade.getTradedesc1(),tradestatus.getText(),rtradeservices);\r\n\t\tthis.trade = trade;\r\n\t\tsetTrade(trade);\r\n\t\tgetTradeTransfers(transferPanel);\r\n\t\tgetTradeTask(taskPanel);\r\n\t\tgetTradeSDI(sdiPanel);\r\n\t}", "@Override\n\tpublic void modifryCompany(BeanCompany Company) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.update(Company);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n\t}", "@PostMapping(\"/cotacaos\")\n @Timed\n public ResponseEntity<CotacaoDTO> createCotacao(@Valid @RequestBody CotacaoDTO cotacaoDTO) throws URISyntaxException {\n log.debug(\"REST request to save Cotacao : {}\", cotacaoDTO);\n if (cotacaoDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new cotacao cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CotacaoDTO result = cotacaoService.save(cotacaoDTO);\n return ResponseEntity.created(new URI(\"/api/cotacaos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@PostMapping(\"/buckets\")\n @Timed\n public ResponseEntity<BucketDTO> createBucket(@RequestBody BucketDTO bucketDTO) throws URISyntaxException {\n log.debug(\"REST request to save Bucket : {}\", bucketDTO);\n if (bucketDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new bucket cannot already have an ID\")).body(null);\n }\n BucketDTO result = bucketService.save(bucketDTO);\n return ResponseEntity.created(new URI(\"/api/buckets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void insertNew(Company company,\n\t\t\tDataImportParametersDTO dataImportParametersDTO, Long companyId) {\n\n\t\tList<DataImportLogDTO> insertOnlyLogs = new ArrayList<DataImportLogDTO>();\n\t\tList<DataImportKeyValueDTO> companyColName = dataImportParametersDTO\n\t\t\t\t.getEmpColName();\n\t\tString rowNumber = dataImportParametersDTO.getRowNumber();\n\t\tboolean isDynamic = dataImportParametersDTO.isDynamic();\n\t\tList<Long> formIds = dataImportParametersDTO.getFormIds();\n\t\tlong entityId = dataImportParametersDTO.getEntityId();\n\t\tList<String> tableNames = dataImportParametersDTO.getTableNames();\n\t\tList<HashMap<String, String>> colFormMapList = dataImportParametersDTO\n\t\t\t\t.getColFormMapList();\n\t\tList<String> dynRecordsName = dataImportParametersDTO\n\t\t\t\t.getDynRecordsName();\n\n\t\ttry {\n\n\t\t\tCompanyConditionDTO companyDTO = new CompanyConditionDTO();\n\t\t\tcompanyDTO.setCompanyCode(company.getCompanyCode());\n\t\t\tCompany existingCompanyRecord = companyDAO\n\t\t\t\t\t.findByCondition(companyDTO);\n\n\t\t\tif (companyColName.size() == 1\n\t\t\t\t\t&& companyColName\n\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t.getMethodName()\n\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tPayAsiaConstants.CAMEL_CASE_COMPANY_CODE)) {\n\t\t\t\tif (existingCompanyRecord != null) {\n\t\t\t\t\tcompany.setCompanyId(existingCompanyRecord.getCompanyId());\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif (existingCompanyRecord == null) {\n\t\t\t\t\tcompany = companyDAO.saveReturn(company);\n\t\t\t\t} else {\n\t\t\t\t\tcompany.setCompanyId(existingCompanyRecord.getCompanyId());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isDynamic) {\n\t\t\t\tfor (Long formId : formIds) {\n\t\t\t\t\tDynamicFormRecord dynamicFormRecord = new DynamicFormRecord();\n\n\t\t\t\t\tdynamicFormRecord.setForm_ID(formId);\n\t\t\t\t\tdynamicFormRecord.setCompany_ID(companyId);\n\t\t\t\t\tdynamicFormRecord.setEntity_ID(entityId);\n\t\t\t\t\tdynamicFormRecord.setEntityKey(company.getCompanyId());\n\t\t\t\t\tDynamicFormRecord existingFormRecord = dynamicFormRecordDAO\n\t\t\t\t\t\t\t.getEmpRecords(company.getCompanyId(), null,\n\t\t\t\t\t\t\t\t\tformId, entityId, companyId);\n\n\t\t\t\t\tsuper.setDynamicValues(dataImportParametersDTO, tableNames,\n\t\t\t\t\t\t\tcolFormMapList, dynRecordsName, formId,\n\t\t\t\t\t\t\tdynamicFormRecord, existingFormRecord, companyId,\n\t\t\t\t\t\t\t\"update\");\n\n\t\t\t\t\tif (existingFormRecord == null) {\n\n\t\t\t\t\t\tdynamicFormRecordDAO.save(dynamicFormRecord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (PayAsiaSystemException ex) {\n\t\t\tsuper.handleException(rowNumber, insertOnlyLogs, ex);\n\t\t}\n\n\t\tif (insertOnlyLogs != null && !insertOnlyLogs.isEmpty()) {\n\t\t\tthrow new PayAsiaDataException(insertOnlyLogs);\n\t\t}\n\t}", "@PostMapping(\"/sys-coupon-classifies\")\n @Timed\n public ResponseEntity<SysCouponClassify> createSysCouponClassify(@RequestBody SysCouponClassify sysCouponClassify) throws URISyntaxException {\n log.debug(\"REST request to save SysCouponClassify : {}\", sysCouponClassify);\n if (sysCouponClassify.getId() != null) {\n throw new BadRequestAlertException(\"A new sysCouponClassify cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n SysCouponClassify result = sysCouponClassifyService.save(sysCouponClassify);\n return ResponseEntity.created(new URI(\"/api/sys-coupon-classifies/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void verifyData() {\n\n saveDay();\n\n }", "@PostMapping(\"/operational-heads\")\n @Timed\n public ResponseEntity<OperationalHeadDTO> createOperationalHead(@Valid @RequestBody OperationalHeadDTO operationalHeadDTO) throws URISyntaxException {\n log.debug(\"REST request to save OperationalHead : {}\", operationalHeadDTO);\n if (operationalHeadDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new operationalHead cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OperationalHeadDTO result = operationalHeadService.save(operationalHeadDTO);\n return ResponseEntity.created(new URI(\"/api/operational-heads/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\n\tpublic BnsCash save(BnsCash obj) {\n\t\treturn cashRepository.save(obj);\n\t}", "@PostMapping(\"/employee-salary-slips\")\n @Timed\n public ResponseEntity<EmployeeSalarySlipDTO> createEmployeeSalarySlip(@Valid @RequestBody EmployeeSalarySlipDTO employeeSalarySlipDTO) throws URISyntaxException {\n log.debug(\"REST request to save EmployeeSalarySlip : {}\", employeeSalarySlipDTO);\n if (employeeSalarySlipDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new employeeSalarySlip cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n EmployeeSalarySlipDTO result = employeeSalarySlipService.save(employeeSalarySlipDTO);\n return ResponseEntity.created(new URI(\"/api/employee-salary-slips/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice map and return true;\r\n stocksSymbolToPrice.put(tickerSymbol, sharePrice);\r\n return true;\r\n }", "public static void saveMyCompany(MyCompany myCompany) {\n\t\tCompany company = myCompany.company;\n\t\tcompany.joinAddressWithCompany();\n\t\tcompany.joinAccountsWithCompany();\n\n\t\tif (company.id != null) {\n\t\t\tcompany.merge();\n\t\t}\n\t\tcompany.save();\n\n\t\tif (myCompany.id != null) {\n\t\t\tmyCompany.merge();\n\t\t}\n\t\tmyCompany.save();\n\n\t\trender(\"@myCompany\", myCompany);\n\t}", "@Test\n public void testSaveWrongDataType() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"JPYUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), \"NaN\");\n final ToolContext toolContext = StarlingTestUtils.getToolContext(\"/inmemory/marketdata-test.properties\");\n final LocalDate today = LocalDate.now();\n final MarketDataManager marketDataManager = new MarketDataManager(toolContext);\n // saves the data\n marketDataManager.saveOrUpdate(dataSet, today);\n final HistoricalTimeSeriesSource source = toolContext.getHistoricalTimeSeriesSource();\n assertNull(source.getHistoricalTimeSeries(ExternalId.of(TEST_SCHEME, \"JPYUSD\").toBundle(), \n DataSource.DEFAULT.getName(), DataProvider.DEFAULT.getName(), MARKET_VALUE));\n }", "@PostMapping(\"/offers\")\n @Timed\n public ResponseEntity<OfferDTO> createOffer(@RequestBody OfferDTO offerDTO) throws URISyntaxException {\n log.debug(\"REST request to save Offer : {}\", offerDTO);\n if (offerDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new offer cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n OfferDTO result = offerService.save(offerDTO);\n return ResponseEntity.created(new URI(\"/api/offers/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public Order saveOrUpdate(Order order);", "private void saveUnsyncedDonor() {\n LocalDonor ldonor = LocalDonor.convert(donor,realm);\n realm.beginTransaction();\n realm.copyToRealmOrUpdate(ldonor);\n realm.commitTransaction();\n Toast.makeText(this, \"Donor record save.\", Toast.LENGTH_LONG).show();\n finish();\n }", "public abstract HistoricalEntity persistHistoricalWrapper();" ]
[ "0.6333118", "0.63163835", "0.60977966", "0.5930934", "0.5923495", "0.58587694", "0.58251035", "0.57778645", "0.5735815", "0.5691017", "0.56806314", "0.56466025", "0.5625797", "0.55832464", "0.5580272", "0.5552192", "0.55081767", "0.5488041", "0.54696673", "0.54573953", "0.54510355", "0.5406333", "0.5405701", "0.5402411", "0.5356517", "0.53485143", "0.5336399", "0.53220385", "0.5292812", "0.5287906", "0.52738124", "0.52588826", "0.5250845", "0.52505374", "0.5246413", "0.52423745", "0.52319586", "0.52267843", "0.5211572", "0.5173364", "0.515829", "0.51525754", "0.5151154", "0.5146276", "0.5138655", "0.5119813", "0.5108677", "0.5106391", "0.5098414", "0.5084865", "0.5076221", "0.5068311", "0.5062033", "0.5060589", "0.5059254", "0.50588065", "0.50292635", "0.5018306", "0.5017694", "0.5017207", "0.5010002", "0.50051826", "0.50032425", "0.49967128", "0.49936396", "0.49932027", "0.49917322", "0.4989116", "0.49870926", "0.4980822", "0.49761805", "0.49760437", "0.49739853", "0.49721614", "0.49695942", "0.49604678", "0.4957315", "0.49569416", "0.49419323", "0.49393716", "0.49317783", "0.49233672", "0.49137497", "0.49089167", "0.4907947", "0.49023056", "0.49018028", "0.49009633", "0.48958245", "0.4892183", "0.48885766", "0.48816195", "0.48801997", "0.48800102", "0.48762658", "0.4875061", "0.4865196", "0.48651832", "0.48646292", "0.48539" ]
0.5725779
9
Validate the ticker symbol and add a new stock_company table entry if necessary.
protected void checkTickerSymbol( final D dto ) { final String methodName = "checkTickerSymbol"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto argument cannot be null" ); this.stockCompanyEntityService .checkStockCompanyTableEntry( dto.getTickerSymbol() ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice map and return true;\r\n stocksSymbolToPrice.put(tickerSymbol, sharePrice);\r\n return true;\r\n }", "public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner scanner;\n\t\t\ttry {\n\t\t\t\tscanner = new Scanner(this.dataURL.openStream());\n\t\t\t\twhile (scanner.hasNextLine())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tscanner\n\t\t\t\t\t\t\t\t.findInLine(Pattern\n\t\t\t\t\t\t\t\t\t\t.compile(\"([0-9.]*),\\\"([0-9a-zA-Z._-]*)\\\",\\\"([a-zA-Z._\\\\s-]*)\\\"\"));\n\t\t\t\t\t\tfinal MatchResult result = scanner.match();\n\t\t\t\t\t\tboolean found = false;\n\t\t\t\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\t\t\t\tif (company.getCompanySymbol().equals(\n\t\t\t\t\t\t\t\t\tresult.group(2))) {\n\t\t\t\t\t\t\t\tfinal Double stockPrice = Double\n\t\t\t\t\t\t\t\t\t\t.parseDouble(result.group(1));\n\t\t\t\t\t\t\t\tcompany.setStockPrice(stockPrice);\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!found)\n\t\t\t\t\t\t\tStockBrokerImpl.this.stockData\n\t\t\t\t\t\t\t\t\t.add(new StockCompany(result.group(3),\n\t\t\t\t\t\t\t\t\t\t\tresult.group(2), Double\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parseDouble(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.group(1))));\n\n\t\t\t\t\t\tscanner.nextLine();\n\n\t\t\t\t\t} catch (final NumberFormatException e) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"CRITICAL ERROR: Update data corrupted. [Virtually impossible]\");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"ERROR: Connection to stock price update feed could not be established.\");\n\t\t\t}\n\t\t}", "public void createNewStock(Stock stock) throws DuplicateEntry, InvalidDateEntry {\n\t\tif (!validateDate(stock.getDate())) {\n\t\t\tlog.error(\"Date entered is a future date for:\" + stock.getStock() + \"date given : \" + stock.getDate());\n\t\t\tthrow new InvalidDateEntry(\n\t\t\t\t\t\"Date entered is a future date for: \" + stock.getStock() + \" date given : \" + stock.getDate());\n\t\t}\n\n\t\tif (checkForDuplicates(new StockId(stock.getStock(), stock.getDate()))) {\n\t\t\tlog.error(\"Duplcate Record for :\" + stock.getStock() + \"on \" + stock.getDate());\n\t\t\tthrow new DuplicateEntry(\"Duplcate Record for : \" + stock.getStock() + \" on \" + stock.getDate());\n\t\t}\n\n\t\tstockRepo.save(stock);\n\n\t}", "public void validateAdd(Stock s){\n Set<String> stock_symbols_set = new HashSet<>();\n for(Stock stock: stockList){\n stock_symbols_set.add(stock.getStockSymbol());\n }\n if(stock_symbols_set.contains(s.getStockSymbol())){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setIcon(R.drawable.baseline_warning_black_36);\n builder.setMessage(\"Stock Symbol \" + s.getStockSymbol() + \" is already displayed. \");\n builder.setTitle(\"Duplicate Stock\");\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n else{\n stockList.add(s);\n //keep the list in alphabetical order\n Collections.sort(stockList, new Comparator<Stock>() {\n @Override\n public int compare(Stock t1, Stock t2) {\n return t1.getStockSymbol().compareTo(t2.getStockSymbol());\n }\n });\n\n writeJSONData();\n myAdapter.notifyDataSetChanged();\n }\n }", "public String findCompany(String symbol)\n {\n for (int i = 0; i < symbolPairs.size(); i++)\n {\n SymbolPair pair = symbolPairs.get(i);\n if (pair.getTickerSymbol().equals(symbol))\n {\n return pair.getCompanyName();\n }\n }\n return \"Ticker symbol not recognized!\";\n }", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "public StockTradeGrouping( final String symbol ) {\n super() ;\n this.symbol = symbol ;\n }", "@Test\n public void getCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.QUOTE_SYMBOL);\n assertFalse(comps.isEmpty());\n boolean pass = false;\n for (Stock info : comps) {\n if (info.getSymbol().equals(TestConfiguration.QUOTE_SYMBOL)) {\n pass = true;\n }\n }\n assertTrue(pass);\n }", "public boolean addOrUpdateCapitalMarkets(CapitalMarketsModel companyDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSuccessful = false;\n\n //As usual Wrap it in a transaction\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_COMPANY_OBJECT_ID, companyDetails.getCompanyObjectId());\n values.put(KEY_COMPANY_NAME, companyDetails.getCompanyName());\n values.put(KEY_COMPANY_IMAGE, companyDetails.getCompanyImage());\n values.put(KEY_COMPANY_ADDRESS, companyDetails.getCompanyAddress());\n values.put(KEY_COMPANY_STOCK_CODE, companyDetails.getCompanyStockCode());\n values.put(KEY_COMPANY_DESCRIPTION, companyDetails.getCompanyDescription());\n values.put(KEY_COMPANY_ESTABLISHED, companyDetails.getCompanyEstablished());\n values.put(KEY_COMPANY_CONTACTS, companyDetails.getCompanyContacts());\n values.put(KEY_COMPANY_INDUSTRY, companyDetails.getCompanyType());\n values.put(KEY_COMPANY_WEBSITE, companyDetails.getCompanyWebsite());\n values.put(KEY_COMPANY_STATUS, companyDetails.getCompanyStatus());\n values.put(KEY_COMPANY_SUMMARY, companyDetails.getCompanySummary());\n //Let's try to update the Saved Product if it exists.\n int rows = db.update(TABLE_BANKS, values, KEY_COMPANY_OBJECT_ID + \"= ?\", new String[]{companyDetails.getCompanyObjectId()});\n\n //Let's check if the update worked\n if (rows == 1) {\n //Ok, we have updated a Saved COMPANY, we could probably get the COMPANY updated at this point if we needed to\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n\n } else {\n //No Such Bank Here, insert it\n db.insertOrThrow(TABLE_CAPITAL_MARKETS, null, values);\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error trying to Update company table\");\n transactionSuccessful = false;\n } finally {\n db.endTransaction();\n }\n return transactionSuccessful;\n\n }", "protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * The stock price needs to be set the first time as it records the stock price when the record was created.\n */\n entity.setStockPriceWhenCreated( this.stockPriceQuoteService\n .getLastPrice( tickerSymbol ));\n }", "public void putNewPrice(String symbol, double price);", "private int processStockSymbol(int count) {\n String line = this.result.get(count);\n if (line.indexOf(\"char:\") == 0) {\n checkEmptyLine(line);\n line = this.result.get(++count);\n }\n if (!line.equals(\"start:stock-symbol\")) {\n throw new IllegalArgumentException(\"Not find stock-symbol tag.\");\n }\n line = this.result.get(++count).replace(\"\\t\", \" \").trim();\n if (line.indexOf(\"char:\") != 0 || line.substring(5).trim().length() == 0) {\n throw new IllegalArgumentException(\"Not find stock symbol name.\");\n }\n this.stockList.add(line.substring(5).trim());\n line = this.result.get(++count);\n if (!line.equals(\"end:stock-symbol\")) {\n throw new IllegalArgumentException(\"Not find stock-symbol end tag.\");\n }\n this.state = ProcessState.WAIT_WEIGHT;\n return ++count;\n }", "private void setStock(String stockIn) throws InvalidDataException {\n\t\tif (stockIn == null || stockIn.isEmpty()) throw new InvalidDataException(\"The stock cannot be null.\");\n\t\tstock = stockIn;\n\t}", "public boolean saveOrUpdateStockExchange(StockExchange stockExchange);", "@Test\n\tpublic void testAddSymbolFromCatalog() throws Exception {\n\n\t\t// Choose a symbol which is not in the list, click \"Add\" and \"OK\"\n\t\tString selectedSymbol;\n\t\tboolean bSelectSymbolNotInList;\n\t\tint nListCount;\n\t\tint nIndex = 1;\n\t\tdo {\n\t\t\tmathEditSymbolsDlgViewControl.click(100 * nIndex, 10);\n\t\t\t// risk:after 6 or 7 circles, this will click out of ViewControl\n\t\t\tselectedSymbol = mathEditSymbolsDlgSymbol.getText();\n\t\t\tnIndex++;\n\t\t\t// Find if the selected symbol is already in the list\n\t\t\tbSelectSymbolNotInList = false;\n\t\t\tnListCount = mathEditSymbolsDlgSymbol.getItemCount();\n\t\t\tfor (int i = 0; i < nListCount; i++) {\n\t\t\t\tif (selectedSymbol.equals(mathEditSymbolsDlgSymbol\n\t\t\t\t\t\t.getItemText(i))) {\n\t\t\t\t\tbSelectSymbolNotInList = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (bSelectSymbolNotInList);\n\t\tmathEditSymbolsDlgAdd.click();\n\t\tmathEditSymbolsDlg.ok();\n\n\t\t// Verify if the symbol is added to Symbol set\n\t\tmathSymbolsDlgEditButton.click();\n\t\tbSelectSymbolNotInList = false;\n\t\tnListCount = mathEditSymbolsDlgSymbol.getItemCount();\n\t\tfor (int i = 0; i < nListCount; i++) {\n\t\t\tif (selectedSymbol.equals(mathEditSymbolsDlgSymbol.getItemText(i))) {\n\t\t\t\tbSelectSymbolNotInList = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tassertTrue(\"Symbol is not added to Symbol set\", bSelectSymbolNotInList);\n\t}", "private StockData addSymbolToCurrentWatchList(String symbol)\r\n {\r\n debug(\"addSymbolToCurrentWatchList(\" + symbol + \")\");\r\n // Get the index into the current selected Tabpane\r\n int index = tabPane.getSelectedIndex();\r\n // Now grab our Table and Models\r\n HGTable table = (HGTable) tableVector.elementAt(index);\r\n StockDataTableModel dataModel = (StockDataTableModel) modelVector.elementAt(index);\r\n // Get the current Selected Row.\r\n int row = ((table.getSelectedRow() >= 0) ? table.getSelectedRow() : 0);\r\n\r\n debug(\"Insert Row After row [\" + row + \"] The Row being inserted is \" + (row + 1));\r\n dataModel.insert(row + 1);\r\n // Fire a notification that we are changing the table\r\n table.tableChanged(\r\n new TableModelEvent(dataModel, row + 1, row + 1, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));\r\n // Set the row to be selected\r\n table.setRowSelectionInterval(row, row);\r\n table.repaint();\r\n // Now Get the StockData Obj at that row\r\n StockData sd = (StockData) dataModel.getData().elementAt(row + 1);\r\n // Now we have the Object - We still Need to pre-fill in the data\r\n sd.setSymbol(symbol, 0.00);\r\n // Set the Name as we are still Searching\r\n sd.setName(\"Search for \" + symbol);\r\n // Lets Load the Historic Data.\r\n this.loadHistoricData(sd);\r\n // We are done now.\r\n debug(\"addSymbolToCurrentWatchList(\" + symbol + \") - complete\");\r\n\r\n return sd;\r\n }", "void insertOrUpdate(StockList stockList) throws Exception;", "public void addStock(Stock stock) throws StockAlreadyExistsException, PortfolioFullException {\r\n\t\tboolean doesStockExists = false;\r\n\r\n\t\tfor (int i = 0; i < portfolioSize; i++){\r\n\t\t\tif (stockStatus[i].getSymbol().equals(stock.getSymbol())){\r\n\t\t\t\tdoesStockExists = true;\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\tif (portfolioSize >= MAX_PORTFOLIO_SIZE){\r\n\t\t\tthrow new PortfolioFullException();\r\n\t\t}\r\n\t\telse if (doesStockExists == true){\r\n\t\t\tthrow new StockAlreadyExistsException(stock.getSymbol());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tstockStatus[portfolioSize] = new StockStatus(stock.getSymbol(), stock.getAsk(),stock.getBid(), stock.getDate(), ALGO_RECOMMENDATION.DO_NOTHING, 0);\r\n\t\t\tthis.portfolioSize++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void updateStock(Stock s) {\n\n\t\ttry {\n\t String sql = \"INSERT or Replace into stockTable (hlr,sim,card,easyL,easyLR,easyP,easyPR,cash) \"\n\t \t\t+ \"VALUES (?,?,?,?,?,?,?,?)\";\n\t \n\t prepStmt = connection.prepareStatement(sql);\n\t prepStmt.setInt(1, s.getHlr());\n\t prepStmt.setInt(2, s.getSim());\n\t prepStmt.setInt(3, s.getCard());\n\t prepStmt.setInt(4, s.getEasyLoad());\n\t prepStmt.setInt(5, s.getEasyLoadReturn());\n\t prepStmt.setInt(6, s.getEasyPaisa());\n\t prepStmt.setInt(7, s.getEasyPaisaReturn());\n\t prepStmt.setInt(8,s.getCash());\n\t \t\t \n\t prepStmt.executeUpdate();\n\t \n\n\t System.out.println(\">>> Successfully insert query working\"); \n\t } catch (SQLException ex) {\n \n\t \t System.out.println(\"*** Error: insert query is not working\");\n\t \t ex.printStackTrace();\n\t \t \n\t }\n\t\t\n\t\t\n\t}", "public void addToSymbolsTable(Token t) {\n\t\tif (!t.hasError()\n && (t.getType().equals(\"Constante\") || (t.getType().equals(\"Cadena\")))\n && !reservedWords.containsKey(t.getToken())\n && !symbolsTable.contains(t.getToken())\n ) {\n\n\t\t\tsymbolsTable.add(t);\n\t\t\t//System.out.println(\"[V] Token added line: \" + line + \" TokenType: \"\n\t\t\t//\t\t+ t.getType() + \" Token: \" + t.getToken());\n\t\t} else {\n\t\t\t//System.out.println(\"[X] Token NOT added to the symbol table. line: \"\n\t\t\t//\t\t+ line + \" TokenType: \" + t.getType() + \" Token: \"\n\t\t\t//\t\t+ t.getToken());\n\t\t}\n\n\t}", "private void enterBook() {\n String sku;\n String author;\n String description;\n double price;\n String title;\n boolean isInStock;\n String priceTmp;\n String inStock;\n Scanner keyb = new Scanner(System.in);\n\n System.out.println(\"Enter the sku number.\"); // Enter the SKU number\n sku = keyb.nextLine();\n\n System.out.println(\"Enter the title of the book.\"); // Enter the title\n title = keyb.nextLine();\n\n System.out.println(\"Enter the author of the book.\"); // Enter the author\n author = keyb.nextLine();\n\n System.out.println(\"Enter the price of the book.\"); // Enter the price of the book\n priceTmp = keyb.nextLine();\n price = Double.parseDouble(priceTmp);\n\n System.out.println(\"Enter a description of the book.\"); // Enter the description of the book\n description = keyb.nextLine();\n\n System.out.println(\"Enter whether the book is in stock (\\\"Y\\\"|\\\"N\\\").\"); // in stock?\n inStock = keyb.nextLine();\n if (inStock.equalsIgnoreCase(\"Y\")) {\n isInStock = true;\n } else if (inStock.equalsIgnoreCase(\"N\")) {\n isInStock = false;\n } else {\n System.out.println(\"Not a valid entry. In stock status is unknown; therefore, it will be listed as no.\");\n isInStock = false;\n }\n\n Book book = new Book(title, author, description, price, isInStock);\n bookDB.put(sku, book);\n }", "public void initStockData() {\n\t\t\tStockBrokerImpl.this.stockData = new ArrayList<StockCompany>();\n\t\t\tthis.updateStockData();\n\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\tSystem.out.println(company.getStockPrice());\n\n\t\t}", "public void setStockSymbol(StockSymbol stockSymbol) {\n\t\tthis.stockSymbol = stockSymbol;\n\t}", "public static void init() {\n \n if(stock==null){\n stock=Analyser.stock;\n //for each stock, it price and the time\n// stoc\n// String[] listedCompanies = new NSELoader(20).getAllStocks();\n// \n// for (int i =0; i < listedCompanies.length; i++) {\n// \n// String stockName = listedCompanies[i];\n// float price = 0;\n// int time = 0;\n// ArrayList<String> value = new ArrayList<>();\n// String data = time + \":\" + price;// ':' is used as boundary token\n// value.add(data);\n// stock.put(stockName, value);\n// }\n \n\n }\n }", "public boolean checkStock(String symbol) {\n\t\tfor(Stock s : stockList) {\n\t\t\tif(s.getSymbol().equals(symbol))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "SimpleStock(String newsymbol, String newname, double newpreviousClosingPrice, double newcurrentPrice ) {\n\t\tSymbol = newsymbol;\n\t\tName = newname;\n\t\tpreviousClosingPrice = newpreviousClosingPrice;\n\t\tcurrentPrice = newcurrentPrice;\n\t \t }", "public synchronized void addToBook(Quote q) throws InvalidDataException, DataValidationException {\n\t\tvalidateData(q);\n\t\tif (getUserQuotes().contains(q.getUserName())) {\n\t\t\tgetBuySide().removeQuote(q.getUserName());\n\t\t\tgetSellSide().removeQuote(q.getUserName());\n\t\t\tupdateCurrentMarket();\n\t\t}\n\t\taddToBook(BookSide.BUY, q.getQuoteSide(BookSide.BUY));\n\t\taddToBook(BookSide.SELL, q.getQuoteSide(BookSide.SELL));\n\t\tgetUserQuotes().add(q.getUserName());\n\t\tupdateCurrentMarket();\n\t}", "@Override\r\n\tpublic StockResponseModel stockAdded(StockRequestModel stockRequestModel) {\n\t\tStockResponseModel response = new StockResponseModel();\r\n\r\n\t\tboolean isIDExits = CommonUtills.idExistOrNot(stockRequestModel);\r\n\t\tif(!isIDExits)\r\n\t\t{\r\n\t\t\tStockEntities stockEntity = new StockEntities();\r\n\t\t\tstockEntity = CommonUtills.mapConvert(stockRequestModel, stockEntity);\r\n\t\t\t\r\n\t\t\tstockRepository.save(stockEntity);\r\n\t\t\t\tresponse.setResponseCode(HttpStatus.CREATED.toString());\r\n\t\t\t\tresponse.setResponseMsg(HttpStatus.CREATED.getReasonPhrase());\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tresponse.setResponseCode(HttpStatus.CONFLICT.toString());\r\n\t\t\tresponse.setResponseMsg(\"Stock ID Already Exists\");\r\n\t\t}\r\n\t\t\r\n\t\treturn response;\r\n\t}", "public TradingDayInfo(String ticker, String date, double openingPrice, double highPrice, double lowPrice, double closingPrice) {\n this.ticker = ticker;\n this.date = date;\n this.openingPrice = openingPrice;\n this.highPrice = highPrice;\n this.lowPrice = lowPrice;\n this.closingPrice = closingPrice;\n \n \n return;\n }", "public String SendNewAutoTraderMarketDataRequest(String ticker) {\n\t\treturn null;\n\t}", "public boolean validateStock(Stock stock) {\n\t\treturn !stock.getDate().isEmpty() || !stock.getStock().isEmpty() || validateDate(stock.getDate())\n\t\t\t\t|| !checkForDuplicates(new StockId(stock.getStock(), stock.getDate()));\n\t}", "public void add(Stock stock) {\n\t\tif(!isExist(stock.getSymbol())) {\n\t\t\tmItems.add(stock);\t\t\n\t\t\tnotifyDataSetChanged();\n\t\t}\n\t}", "private void createStocksTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE stocks \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \" + \"owner INT, \"\n\t\t\t\t\t+ \"shareAmount INT, \" + \"purchasePrice DOUBLE, \" + \"symb VARCHAR(10), \"\n\t\t\t\t\t+ \"timePurchased BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table stocks\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of stocks table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Override\r\n\tpublic void addCompany(Company company) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"insert into companies values(0, ?, ?, ?)\";\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tif (company != null) {\r\n\t\t\t\tpstmt.setString(1, company.getCompName());\r\n\t\t\t\tpstmt.setString(2, company.getCompEmail());\r\n\t\t\t\tpstmt.setString(3, company.getCompPass());\r\n\t\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t\tSystem.out.println(\"New company was added\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"addCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "public synchronized void openMarket() throws InvalidDataException {\n\t\tPrice buyPrice = getBuySide().topOfBookPrice();\n\t\tPrice sellPrice = getSellSide().topOfBookPrice();\n\t\tif (buyPrice == null || sellPrice == null) return;\n\t\twhile(buyPrice.greaterOrEqual(sellPrice) || buyPrice.isMarket() || sellPrice.isMarket()) {\n\t\t\tArrayList<Tradable> topOfBuySide = getBuySide().getEntriesAtPrice(buyPrice);\n\t\t\tHashMap<String, FillMessage> allFills = null;\n\t\t\tArrayList<Tradable> toRemove = new ArrayList<Tradable>();\n\t\t\tfor (Tradable t: topOfBuySide) {\n\t\t\t\tallFills = getSellSide().tryTrade(t);\n\t\t\t\tif (t.getRemainingVolume() == 0) toRemove.add(t);\n\t\t\t}\n\t\t\tfor (Tradable t: toRemove) {\n\t\t\t\tgetBuySide().removeTradable(t);\n\t\t\t}\n\t\t\tupdateCurrentMarket();\n\t\t\tPrice lastSalePrice = determineLastSalePrice(allFills);\n\t\t\tint lastSaleVolume = determineLastSaleQuantity(allFills);\n\t\t\tLastSalePublisher.getInstance().publishLastSale(getStock(), lastSalePrice, lastSaleVolume);\n\t\t\tbuyPrice = getBuySide().topOfBookPrice();\n\t\t\tsellPrice = getSellSide().topOfBookPrice();\n\t\t\tif (buyPrice == null || sellPrice == null) break;\n\t\t}\n\t}", "public Stock(String symbol, String name, String quantity, String price) throws BadInputException\r\n {\r\n super(symbol, name, quantity, price);\r\n this.setBookValue(FEE + (this.getQuantity() * this.getPrice()));\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewAuditingCompany();", "public static List<YahooStock> retrieveYahooStocks(String symbol) {\n\t\tURL yahooFinanceUrl2 = null;\n\t\tURLConnection urlConnection;\n\t\tList<YahooStock> yahooStockList = null;\n\t\ttry {\n\t\t\t//yahooFinanceUrl1 = new URL(\"http://download.finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t\tyahooFinanceUrl2 = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t} catch (MalformedURLException mue) {\n\t\t\tmue.printStackTrace();\n\t\t} \n\t\ttry {\n\t\t\turlConnection = yahooFinanceUrl2.openConnection();\n\t\t\tBufferedReader dataIn = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); \n\t\t\tString inputLine; \n\t\t\tyahooStockList = new ArrayList<YahooStock>();\n\t\t\twhile ((inputLine = dataIn.readLine()) != null) {\n\t\t\t\tString[] yahooStockInfo = inputLine.split(\",\");\n\t\t\t\tYahooStock yahooStock = new YahooStock();\n\t\t\t\tyahooStock.setSymbol(yahooStockInfo[0].replaceAll(\"\\\"\", \"\"));\n\t\t\t\tyahooStock.setLastTrade(Double.valueOf(yahooStockInfo[1]));\n\t\t\t\tyahooStock.setTradeDate(yahooStockInfo[2]);\n\t\t\t\tyahooStock.setTradeTime(yahooStockInfo[3]);\n\t\t\t\tyahooStock.setChange(Double.valueOf(yahooStockInfo[4]));\n\t\t\t\tyahooStock.setOpen(Double.valueOf(yahooStockInfo[5]));\n\t\t\t\tyahooStock.setHigh(Double.valueOf(yahooStockInfo[6]));\n\t\t\t\tyahooStock.setLow(Double.valueOf(yahooStockInfo[7]));\n\t\t\t\tyahooStock.setVolume(Double.valueOf(yahooStockInfo[8]));\n\t\t\t\tyahooStock.setSmallChartUrl(\"http://ichart.finance.yahoo.com/t?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStock.setLargeChartUrl(\"http://chart.finance.yahoo.com/w?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStockList.add(yahooStock);\n\t\t\t} \n\t\t\tdataIn.close(); \n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} \n\t\treturn yahooStockList; \t\n\t}", "public void addToStockManager(Stock stock){\n this.stockAnalyzer.addStock(stock);\n }", "public StockNotInitializedException(String stockSymbol) {\r\n super();\r\n this.stockSymbol = stockSymbol;\r\n }", "Stock retrieveStock(String symbol);", "public InsertSymbolResponse insertSymbol(InsertSymbolRequest request) throws GPUdbException {\n InsertSymbolResponse actualResponse_ = new InsertSymbolResponse();\n submitRequest(\"/insert/symbol\", request, actualResponse_, false);\n return actualResponse_;\n }", "public Stock(String sym)\n\t{\n\t\tthis(sym, 0);\n\t}", "@Override\n\tpublic void AddOrUpdate(Stock model) {\n\t\tif (model.getId() == 0){\n\t\t\t_stockDao.insert(model);\n\t\t}\n\t\telse {\n\t\t\t_stockDao.updateByPrimaryKey(model);\n\t\t}\n\t}", "@Test(expected = InvalidSymbolException.class)\r\n\tpublic void getCompanyNameInvalidSymbolExceptionTest() throws Exception {\r\n\t\tString comapanyName = \"ABC\";\r\n\t\tString uriString = \"http://localhost:8080/sample/url\";\r\n\t\tURI uri = new URI(uriString);\r\n\t\tString json = \"{\\\"query\\\":{\\\"count\\\":1,\\\"created\\\":\\\"2016-11-23T09:55:57Z\\\",\\\"lang\\\":\\\"en-US\\\",\\\"results\\\":{\\\"quote\\\":{\\\"Name\\\":null}}}}\";\r\n\r\n\t\tPowerMockito.whenNew(RestTemplate.class).withNoArguments().thenReturn(restTemplate);\r\n\t\tPowerMockito.doReturn(json).when(restTemplate).getForObject(uri, String.class);\r\n\t\tMockito.when(uriGeneratorService.getStockRestURI(comapanyName)).thenReturn(uri);\r\n\t\tcompanyDetailsServiceImpl.getCompanyName(comapanyName);\r\n\t}", "public static void checkValidStocks(\n EngineCollection<List<Stock>, Stock> collectionToCheck)\n throws IOException {\n\n // get the collection:\n List<Stock> list = collectionToCheck.getCollection();\n\n // bubble - compare:\n for (int i = 0; i < list.size(); ++i) {\n\n String i_symbol = list.get(i).getSymbol();\n String i_companyName = list.get(i).getCompanyName();\n for (int j = list.size() - 1; j > i; --j) {\n String j_symbol = list.get(j).getSymbol();\n String j_companyName = list.get(j).getCompanyName();\n if (i_symbol.equalsIgnoreCase(j_symbol)) {\n\n /*\n * found an equality of Strings between Symbols,\n * means this File is invalid:\n */\n throw new IOException(Message.Err.XML.Load\n .stocksInvalid_SymbolsAmbiguity() + \"'\" + i_symbol +\n \"' and '\" + j_symbol + \"'\");\n }\n if (i_companyName.equalsIgnoreCase(j_companyName)) {\n\n /*\n * found an equality of Strings between companyNames,\n * means this File is invalid:\n */\n throw new IOException(Message.Err.XML.Load\n .stocksInvalid_CompanyNameAmbiguity() + \"'\" +\n i_companyName + \"' and '\" + j_companyName + \"'\");\n }\n }\n }\n\n // passed all checks, thus valid.\n }", "TickerPrice getPrice(String symbol);", "@Override\n\tpublic void addCompany(BeanCompany Company) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tsession.save(Company);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n\t}", "private void initializeAggTradesCache(String symbol) {\r\n\r\n\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\tBinanceApiRestClient client = factory.newRestClient();\r\n\t\tList<AggTrade> aggTrades = client.getAggTrades(symbol.toUpperCase());\r\n\t\tthis.aggTradesCache = new HashMap<>();\r\n\r\n\t\t/*\r\n\t\t * List<Tick> ticks = null; Long tickIndex = 0L; List<AggTrade> listAggTrade =\r\n\t\t * new CopyOnWriteArrayList<AggTrade>(); this.aggTradeTicksCashe = new\r\n\t\t * HashMap<Long, List<AggTrade>>();\r\n\t\t * \r\n\t\t *\r\n\t\t * ZonedDateTime tickStartTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t * ZonedDateTime tickEndTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t */\r\n\r\n\t\t// Check server time\r\n\t\ttradeSessionStartTime = client.getServerTime();\r\n\r\n\t\tList<Integer> xData = new CopyOnWriteArrayList<Integer>();\r\n\t\tList<Double> yData = new CopyOnWriteArrayList<Double>();\r\n\t\tList<Double> errorBars = new CopyOnWriteArrayList<Double>();\r\n\r\n\t\tlong startTimestamp = tradeSessionStartTime;\r\n\t\tlong endTimestamp = tradeSessionStartTime;\r\n\t\tfor (AggTrade aggTrade : aggTrades) {\r\n\t\t\tLong currentTimestamp = aggTrade.getTradeTime();\r\n\t\t\tif (currentTimestamp < startTimestamp)\r\n\t\t\t\tstartTimestamp = currentTimestamp;\r\n\t\t\tif (currentTimestamp > endTimestamp)\r\n\t\t\t\tendTimestamp = currentTimestamp;\r\n\t\t}\r\n\r\n\t\tfor (AggTrade aggTrade : aggTrades) {\r\n\r\n\t\t\t/*\r\n\t\t\t * ZonedDateTime tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault()); if ( tradeTimestamp.isBefore(tickStartTime))\r\n\t\t\t * tickStartTime = tradeTimestamp; if (!tradeTimestamp.isBefore(tickEndTime))\r\n\t\t\t * tickEndTime = tradeTimestamp;\r\n\t\t\t * \r\n\t\t\t * if (!tradeTimestamp.isBefore(tickEndTime)) { // new tick if ( (tickIndex >0)\r\n\t\t\t * && (listAggTrade.size() > 0)) aggTradeTicksCashe.put( tickIndex, listAggTrade\r\n\t\t\t * ); tickEndTime = tradeTimestamp.plus(tickDuration); listAggTrade = new\r\n\t\t\t * CopyOnWriteArrayList<AggTrade>(); tickIndex++; } listAggTrade.add(aggTrade);\r\n\t\t\t */\r\n\r\n\t\t\tLong currentTimestamp = aggTrade.getTradeTime();\r\n\t\t\tDouble price = new Double(aggTrade.getPrice());\r\n\t\t\tDouble quantity = new Double(aggTrade.getQuantity());\r\n\t\t\tDouble amount = price * quantity;\r\n\t\t\txData.add((int) (50 * (currentTimestamp - startTimestamp) / (endTimestamp - startTimestamp)));\r\n\t\t\tyData.add(amount);\r\n\t\t\terrorBars.add(0.0);\r\n\t\t\taggTradesCache.put(aggTrade.getAggregatedTradeId(), aggTrade);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * realTimeChart = new MercuryRealTimeChart(xData,yData, errorBars, response ->\r\n\t\t * {\r\n\t\t * \r\n\t\t * } );\r\n\t\t */\r\n\t}", "public synchronized void addOldEntry(Tradable t) throws InvalidDataException {\n\t\tif (t == null) throw new InvalidDataException(\"The trade cannot be null.\");\n\t\tif (!getOldEntries().containsKey(t.getPrice())) {\n\t\t\tgetOldEntries().put(t.getPrice(), new ArrayList<Tradable>());\n\t\t}\n\t\tt.setCancelledVolume(t.getRemainingVolume());\n\t\tt.setRemainingVolume(0);\n\t\tgetOldEntries().get(t.getPrice()).add(t);\n\t}", "stockFilePT102.StockDocument.Stock insertNewStock(int i);", "@Override\n\tpublic void addInStock(Stock s) {\n\t\n\t}", "Stock retrieveStock(String symbol, String asOf);", "public void insert(SymbolTableEntry newEntry) {\n if (table.containsKey(newEntry.getName())) {\n table.remove(newEntry.getName());\n }\n table.put(newEntry.getName(), newEntry);\n }", "@Override\n\tpublic boolean buyStock(int companySymbol, int count, int investorId) {\n\t\tad.buyStock(companySymbol,count,investorId);\n\t\treturn true;\n\t}", "SimpleStock() {\n\t\tSymbol = \"symbol\";\n\t\tName = \"name\";\n\t\t\t }", "public String getCompanySymbol() {\n\t\treturn companySymbol;\n\t}", "@Override\n public void add(Symbol symbol) {\n\n super.add(symbol);\n\n Symbol_MultiPart multiPartSymbol = (Symbol_MultiPart) symbol;\n\n multiPart_Index_ByID.put(new Integer(multiPartSymbol.ID), multiPartSymbol);\n\n multiPart_Index_ByMultiPartName.put(multiPartSymbol.name_MultiPart, multiPartSymbol);\n multiPart_Index_ByName.put(multiPartSymbol.name, multiPartSymbol);\n multiPart_Index_ByName_IdentFormat.put(multiPartSymbol.name_IdentFormat, multiPartSymbol);\n\n multiPart_List.add(multiPartSymbol);\n\n singleAndMultiPart_SymbolIndex_ByID.put(new Integer(symbol.ID), symbol);\n\n\n }", "public void createOrUpdateItem(Stockitem stockitem) {\n\t\tstockitemDAO.save(stockitem);\n\t}", "void buyStock(String portfolio, String stock, Integer count, Date date)\r\n throws IllegalArgumentException;", "private synchronized void validateData(Quote q) throws DataValidationException, InvalidDataException {\n\t\tif (q == null) throw new InvalidDataException(\"Quote cannot be null.\");\n\t\tif (q.getQuoteSide(BookSide.SELL).getPrice().lessOrEqual(q.getQuoteSide(BookSide.BUY).getPrice())) {\n\t\t\tthrow new DataValidationException(\"Sell price: \" + q.getQuoteSide(BookSide.SELL).getPrice() +\n\t\t\t\t\t\" cannot be less than or equal to the buy price: \" + q.getQuoteSide(BookSide.BUY).getPrice());\n\t\t}\n\t\tif (q.getQuoteSide(BookSide.BUY).getPrice().lessOrEqual(PriceFactory.makeLimitPrice(0)) || \n\t\t\t\tq.getQuoteSide(BookSide.SELL).getPrice().lessOrEqual(PriceFactory.makeLimitPrice(0))) {\n\t\t\tthrow new DataValidationException(\"The buy and sell prices cannot be less than or equal to 0. \"\n\t\t\t\t\t+ \"Your buy price: \" + q.getQuoteSide(BookSide.BUY).getPrice() \n\t\t\t\t\t+ \". Your sell price: \" + q.getQuoteSide(BookSide.SELL).getPrice());\n\t\t}\n\t\tif (q.getQuoteSide(BookSide.BUY).getOriginalVolume() <= 0 || \n\t\t\t\tq.getQuoteSide(BookSide.SELL).getOriginalVolume() <= 0) {\n\t\t\tthrow new DataValidationException(\"The original volume of the BUY or SELL side cannot be less than or equal to 0. \"\n\t\t\t\t\t+ \"Your BUY volume: \" + q.getQuoteSide(BookSide.BUY).getOriginalVolume()\n\t\t\t\t\t+ \". Your SELL volume: \" + q.getQuoteSide(BookSide.SELL).getOriginalVolume());\n\t\t}\n\t}", "@Override\r\n\tpublic Company insertCompany(Company company) throws SQLException {\n\t\treturn companyRepository.save(company);\r\n\t}", "public StockDownloader(String symbol, GregorianCalendar start, GregorianCalendar end){\n\n dates = new ArrayList<GregorianCalendar>();\n //opens = new ArrayList<Double>();\n //highs = new ArrayList<Double>();\n //lows = new ArrayList<Double>();\n //closes = new ArrayList<Double>();\n //volumes = new ArrayList<Integer>();\n adjCloses = new ArrayList<Double>();\n\n name = symbol;\n\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\n String url = \"http://real-chart.finance.yahoo.com/table.csv?s=\"+symbol+\n \"&a=\"+end.get(Calendar.MONTH)+\n \"&b=\"+end.get(Calendar.DAY_OF_MONTH)+\n \"&c=\"+end.get(Calendar.YEAR)+\n \"&d=\"+start.get(Calendar.MONTH)+\n \"&e=\"+start.get(Calendar.DAY_OF_MONTH)+\n \"&f=\"+start.get(Calendar.YEAR)+\n \"&g=d&ignore=.csv\";\n\n // Error URL\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=3&b=13&c=2016&d=3&e=13&f=2015&g=d&ignore=.csv\n\n //Good URL\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\n\n try{\n URL yhoofin = new URL(url);\n //URL yhoofin = new URL(\"http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\");\n URLConnection data = yhoofin.openConnection();\n Scanner input = new Scanner(data.getInputStream());\n if(input.hasNext()){\n input.nextLine();//skip line, it's just the header\n\n //Start reading data\n while(input.hasNextLine()){\n String line = input.nextLine();\n String[] stockinfo = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n //StockHelper sh = new StockHelper();\n dategetter.add(stockinfo[0]);\n adjCloses.add(handleDouble(stockinfo[ADJCLOSE]));\n }\n }\n\n //System.out.println(adjCloses);\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "private void validateAndPushToDB(String name, String code, String traildate, String moduleText) {\n if (isValid(name, code, traildate)) {\n Trail newTrail = new Trail(name, code, moduleText, startDate, user.getUid());\n String trailId = newTrail.getTrailID();\n addUpdateTrailToDB(trailId, newTrail);\n }\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"STOCK\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ,\" + // 0: id\n \"\\\"SYMBOL\\\" TEXT NOT NULL UNIQUE ,\" + // 1: symbol\n \"\\\"NAME\\\" TEXT NOT NULL ,\" + // 2: name\n \"\\\"EPS\\\" REAL,\" + // 3: eps\n \"\\\"YEAR_HIGH\\\" REAL,\" + // 4: yearHigh\n \"\\\"YEAR_LOW\\\" REAL,\" + // 5: yearLow\n \"\\\"OPEN\\\" REAL,\" + // 6: open\n \"\\\"PERCENT_CHANGE\\\" TEXT,\" + // 7: percentChange\n \"\\\"EX_DIVIDEND_DATE\\\" INTEGER,\" + // 8: exDividendDate\n \"\\\"DIVIDEND_PAY_DATE\\\" INTEGER,\" + // 9: dividendPayDate\n \"\\\"DIVIDEND_AVERAGE\\\" REAL);\"); // 10: dividendAverage\n }", "public boolean addCompanyData (CompanyData companyData) //ADD\n\t{\n\t\tContentValues contentValues = new ContentValues();\n\t\tcontentValues.put(COLUMN_COMPANY_NAME, companyData.getCompanyName());\n\n\n\t\tlong result = db.insert(TABLE_COMPANY, null, contentValues);\n\t\tdb.close();\n\n\t\t//Notifying if transaction was successful \n\t\tif(result == -1)return false;\n\t\telse return true;\n\n\t}", "public void buyStock(Stock stock) {\n\t\tportfolio.add(stock);\n\t}", "stockFilePT102.StockDocument.Stock addNewStock();", "public void putMarketData(RawData rawData) {\n\t\t\n\t\t//raw data can have multiple market change messages (must have at least one)\n\t\tif (rawData.getMc().size() < 1) {\n\t\t\tSystem.out.println(\"ERROR: no mc in \" + rawData.getOp() + \n\t\t\t\t\t\", pt = \" + rawData.getPt() + \n\t\t\t\t\t\", clk = \" + rawData.getClk());\n\t\t\tRuntime.getRuntime().halt(0);\n\t\t}\n\n\t\t//not all have marketDefinition but all have id, check it against blacklist\n\t\tfor (Mc mc : rawData.getMc()) {\n\t\t\tif (!nonMarketData.containsKey(mc.getId())) {\n\t\t\t\t\n\t\t\t\t//copy non-null fields to attributes\n\t\t\t\tMarketData newMarketData = copyFrom(marketData.get(mc.getId()), mc, rawData.getPt());\n\n\t\t\t\tif (mc.getId().contains(Test.FORENSIC)) {\n\t\t\t\t\tUtils.prettilyPrint(newMarketData, null);\n\t\t\t\t}\n\n\t\t\t\t//if not a market in which we are not interested in\n\t\t\t\tif (newMarketData != null) {\n\t\t\t\t\tmarketData.put(mc.getId(), newMarketData);\n\t\t\t\t} else {\n\t\t\t\t\tmarketData.remove(mc.getId());\n\t\t\t\t\tnonMarketData.put(mc.getId(), mc.getMarketDefinition().getMarketType());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static Map createStockList(){\n\t\t\n\t\t\n\t\t\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(file))){\n\t\t\t\n\t\t\tString currentLine;\n\t\t\t\n\t\t\tif ((currentLine=br.readLine())!= null){\n\t\t\t\tString str[] =currentLine.split(\",\");\n\t\t\t\t\n\t\t\t\tfor(int i=0; i< str.length;i++){\n\t\t\t\t\tif(str[i].equals(\"Symbol\"))\n\t\t\t\t\tsymbolIndex=i;\n\t\t\t\t\telse if(str[i].equals(\"Security Name\"))\n\t\t\t\t\tnameIndex=i;\n\t\t\t\t\telse if(str[i].equals(\"Price\"))\n\t\t\t\t\tpriceIndex=i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tif(symbolIndex==-1||nameIndex==-1||priceIndex==-1)\n\t\t\tSystem.out.println(\"CSV file is not in correct format\");\n\t\t\t\n\t\t\twhile ((currentLine=br.readLine())!=null){\t// read every line in csv file\n\t\t\t\t\n\t\t\t\tString str[] =currentLine.split(\",\");\n if(str.length==7) { \n\t\t\t\tif(str[priceIndex].equals(\"N\"))\n\t\t\t\t\tstr[priceIndex]=\"0\";\n\t\t\t\t\n\t\t\t\tstockList.put(str[symbolIndex],new Stock(str[symbolIndex],str[nameIndex],Double.parseDouble(str[priceIndex]))); // add stock to list\n }\n else {\n if(str[priceIndex].equals(\"N\"))\n\t\t\t\t\tstr[priceIndex]=\"0\";\n\t\t\t\t\n\t\t\t\tstockList.put(str[symbolIndex],new Stock(str[symbolIndex],str[nameIndex]+\"\"+str[nameIndex+str.length-7],Double.parseDouble(str[priceIndex+str.length-7])));\n }\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\tcatch (IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn stockList;\n\t\t}", "double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;", "public void addRecord() {\n int numOverflowRecords = Integer.parseInt(getNumberOfRecords(\"overflow\"));\n\n int rankForNewRecord = Integer.parseInt(getHighestRank()) + 1;\n\n byte [] companyNameBytes = new byte[Constants.NUM_BYTES_COMPANY_NAME];\n byte [] companyCityBytes = new byte[Constants.NUM_BYTES_COMPANY_CITY];\n byte [] companyStateBytes = new byte[Constants.NUM_BYTES_COMPANY_STATE];\n byte [] companyZipCodeBytes = new byte[Constants.NUM_BYTES_COMPANY_ZIP];\n byte [] companyEmployeesBytes = new byte[Constants.NUM_BYTES_COMPANY_EMPLOYEES];\n\n // User input for each of the fields ******************\n byte [] companyRankBytes = HelperFunctions.addWhitespacesToEnd(Integer.toString(rankForNewRecord), Constants.NUM_BYTES_RANK).getBytes();\n\n // Input for name of company\n System.out.println(\"Please enter the name of the company (truncated at \" + Constants.NUM_BYTES_COMPANY_NAME + \" characters): \");\n companyNameBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_NAME);\n\n // Input for city the company is located in\n System.out.println(\"Please enter the city the company is located in (truncated at \" + Constants.NUM_BYTES_COMPANY_CITY + \" characters): \");\n companyCityBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_CITY);\n\n // Input for state the company is located in\n System.out.println(\"Please enter the state the company is located in (truncated at \" + Constants.NUM_BYTES_COMPANY_STATE + \" characters): \");\n companyStateBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_STATE);\n\n // Input for zip code of company\n System.out.println(\"Please enter the zip code of the company (truncated at \" + Constants.NUM_BYTES_COMPANY_ZIP + \" characters): \");\n companyZipCodeBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_ZIP);\n\n // Input for number of employees of company\n System.out.println(\"Please enter the company's number of employees (truncated at \" + Constants.NUM_BYTES_COMPANY_EMPLOYEES + \" charactes): \");\n companyEmployeesBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_EMPLOYEES);\n\n byte [] newLineBytes = System.getProperty(\"line.separator\").getBytes();\n\n // End user input ************************************\n\n // Add bytes to overflow file\n addRecordToOverflow(companyRankBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD);\n addRecordToOverflow(companyNameBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 5);\n addRecordToOverflow(companyCityBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 45);\n addRecordToOverflow(companyStateBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 65);\n addRecordToOverflow(companyZipCodeBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 68);\n addRecordToOverflow(companyEmployeesBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 74);\n addRecordToOverflow(newLineBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 84);\n\n numOverflowRecords++;\n\n if (numOverflowRecords > 4) {\n mergeSortRecords(numOverflowRecords);\n updateNumRecords(\"overflow\", 0);\n\n try {\n PrintWriter clearOverflow = new PrintWriter(this.databaseName + \".overflow\");\n clearOverflow.write(\"\");\n clearOverflow.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n } else {\n updateNumRecords(\"overflow\", numOverflowRecords);\n }\n\n String currentHighestRank = getHighestRank().trim();\n updateHighestRank(Integer.parseInt(currentHighestRank) + 1);\n\n System.out.println(\"Record Added...\");\n }", "public Stock(String symbol, String name, String quantity, String price, String bookVal) throws BadInputException\r\n {\r\n super(symbol, name, quantity, price);\r\n double b;\r\n try\r\n {\r\n b = Double.parseDouble(bookVal);\r\n }\r\n catch(NumberFormatException ex)\r\n {\r\n throw new BadInputException(\"book val\");\r\n }\r\n this.setBookValue(b);\r\n }", "@Override\r\n\tpublic StockResponseModel stockUpdated(StockRequestModel stockRequestModel) {\n\t\tStockResponseModel response = new StockResponseModel();\r\n\t\tboolean isStockID = CommonUtills.idExistOrNot(stockRequestModel);\r\n\t\tif(isStockID)\r\n\t\t{\r\n\t\t\t\tStockEntities stockEntity = new StockEntities();\r\n\t\t\t\tstockEntity = CommonUtills.mapConvert(stockRequestModel, stockEntity);\r\n\t\t\t\t\r\n\t\t\t\tstockRepository.save(stockEntity);\r\n\t\t\t\tresponse.setResponseCode(HttpStatus.ACCEPTED.toString());\r\n\t\t\t\tresponse.setResponseMsg(HttpStatus.ACCEPTED.getReasonPhrase());\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tresponse.setResponseCode(HttpStatus.NOT_FOUND.toString());\r\n\t\t\tresponse.setResponseMsg(HttpStatus.NOT_FOUND.getReasonPhrase());\r\n\t\t}\r\n\t\treturn response;\t\r\n\t\r\n\t}", "stockFilePT102.StockHeaderDocument.StockHeader addNewStockHeader();", "@Test\n public void getNullCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.NULL_QUOTE_SYMBOL);\n assertTrue(comps.isEmpty());\n }", "public void setStock_num(Integer stock_num) {\n this.stock_num = stock_num;\n }", "public void setStock_update(String stock_update) {\n this.stock_update = stock_update;\n }", "public void add(Stock s)\n {\n stocks.add(s);\n }", "public void setStockCode(String stockCode) {\r\n this.stockCode = stockCode == null ? null : stockCode.trim();\r\n }", "public synchronized void updateCurrentMarket() throws InvalidDataException {\n\t\tPrice topBuyPrice = (getBuySide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getBuySide().topOfBookPrice();\n\t\tPrice topSellPrice = (getSellSide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getSellSide().topOfBookPrice();\n\n\t\tString data = topBuyPrice.toString() + getBuySide().topOfBookVolume()\n\t\t\t\t\t+ topSellPrice.toString() + getSellSide().topOfBookVolume();\n\t\tif (!getLatestMarketData().equals(data)) {\n\t\t\tMarketDataDTO latestData = new MarketDataDTO(getStock(), topBuyPrice, \n\t\t\t\t\tgetBuySide().topOfBookVolume(), topSellPrice, getSellSide().topOfBookVolume());\n\t\t\tCurrentMarketPublisher.getInstance().publishCurrentMarket(latestData);\n\t\t\tsetLatestMarketData(data);\n\t\t}\n\t}", "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "public void setStockCode(String stockCode) {\n this.stockCode = stockCode == null ? null : stockCode.trim();\n }", "@PostMapping(\"/addNewTrader\")\r\n\tpublic int createNewPortfolio(@Valid @RequestBody List<Stock> stockPortfolioList){\r\n return stockPortfolioService.addNewTrader(stockPortfolioList);\r\n\t }", "@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}", "private StockData parseStockData(String data) {\n String[] arr = data.split(\",\");\n StockData stock = new StockData();\n // Match all numbers\n Pattern pattern = Pattern.compile(\"[0-9]+\");\n Matcher matcher = pattern.matcher(arr[0]);\n if (!matcher.find()) {\n return null;\n }\n stock.setCode(matcher.group());\n\n // Match all Chinese characters\n pattern = Pattern.compile(\"[\\\\u4e00-\\\\u9fa5]+$\");\n matcher = pattern.matcher(arr[0]);\n if (!matcher.find()) {\n return null;\n }\n stock.setName(matcher.group());\n\n // Recent trading day open price\n stock.setOpenPrice(Double.valueOf(arr[1]));\n // Recent trading day close price\n Double close = Double.valueOf(arr[2]);\n stock.setClosePrice(Double.valueOf(arr[2]));\n\n // Recent real-time stock price\n Double now = Double.valueOf(arr[3]);\n stock.setNowPrice(now);\n\n stock.setMaxPrice(Double.valueOf(arr[4]));\n stock.setMinPrice(Double.valueOf(arr[5]));\n\n // The latest real-time ups or downs\n BigDecimal range = new BigDecimal((now - close) / close)\n .multiply(new BigDecimal(100))\n .setScale(2, BigDecimal.ROUND_HALF_UP);\n stock.setRange(range.doubleValue());\n\n return stock;\n }", "@Override\n public boolean insertShare(CompanyShare companyShare) {\n CompanyShare existingShare = getShare(\n Filters.eq(\"companySymbol\", companyShare.getCompanySymbol())\n );\n\n if (existingShare != null) {\n return false;\n }\n\n Document newShare = ObjectMapperHelper.MapToDocument(companyShare);\n getSharesCollection().insertOne(newShare);\n\n return true;\n }", "@Override\n\tpublic void save(Company company) {\n\t\t\n\t}", "@Override\n public boolean existsById(String ticker) {\n String selectSql = \"SELECT * FROM \" + TABLE_NAME + \" WHERE ticker = '\" + ticker + \"'\";\n List<Quote> quotes = jdbcTemplate\n .query(selectSql, BeanPropertyRowMapper.newInstance(Quote.class));\n if(quotes.size()==1) {\n Quote outQuote = quotes.get(0);\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "public void createCompany(Company company) throws ApplicationException {\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\n\t\ttry {\n\t\t\t// Establish a connection from the connection manager\n\t\t\tconnection = JdbcUtils.getConnection();\n\n\t\t\t// Creating the SQL query\n\t\t\t// CompanyID is defined as a primary key and auto incremented\n\t\t\tString sqlStatement = \"INSERT INTO companies (company_Name) VALUES (?)\";\n\n\t\t\t// Combining between the syntax and our connection\n\t\t\tpreparedStatement = connection.prepareStatement(sqlStatement);\n\n\t\t\t// Replacing the question marks in the statement above with the relevant data\n\t\t\tpreparedStatement.setString(1, company.getName());\n\n\t\t\t// Executing the update\n\t\t\tpreparedStatement.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\t// **If there was an exception in the \"try\" block above, it is caught here and\n\t\t\t// notifies a level above.\n\t\t\te.printStackTrace();\n\t\t\tthrow new ApplicationException(e,ErrorType.GENERAL_ERROR,\n\t\t\t\t\tDateUtils.getCurrentDateAndTime() + \"FAILED to create a company\");\n\t\t} finally {\n\t\t\t// Closing the resources\n\t\t\tJdbcUtils.closeResources(connection, preparedStatement);\n\t\t}\n\t}", "public void buildStocks(List<String[]> stockData){\n for(int i = 0; i < stockData.size(); i++){\n this.addToStockManager(this.buildStock(i, stockData)); \n }\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "Company getOrCreateCompanyId(String companyID) throws Exception;", "@Override\r\n\tpublic Company updateCompany(Company company) {\n\t\treturn null;\r\n\t}", "int insert(R_dept_trade record);", "public void updateStockPrice(String ticker, double currentUnitValue) {\n\t\tStock stock = this.findStockByTicker(ticker);\n\t\tstock.setCurrentUnitValue(currentUnitValue);\n\t\tstockRepo.save(stock);\t\n\t}" ]
[ "0.6257494", "0.6045545", "0.5757523", "0.5675593", "0.56294745", "0.548363", "0.5420675", "0.54042876", "0.5391335", "0.5390994", "0.5259689", "0.52248967", "0.52244174", "0.52070576", "0.52004737", "0.5187445", "0.51794493", "0.516299", "0.51239634", "0.5108557", "0.5102992", "0.50834507", "0.5081645", "0.5080726", "0.5072549", "0.5069552", "0.50688064", "0.50623775", "0.5026954", "0.5015494", "0.50092477", "0.500602", "0.50026464", "0.5000716", "0.49906805", "0.49873698", "0.49656752", "0.49608535", "0.49366894", "0.48962373", "0.48766747", "0.48750725", "0.48739973", "0.48627657", "0.4837618", "0.4837195", "0.4821009", "0.4818497", "0.48111403", "0.48030445", "0.47928455", "0.47871882", "0.47813636", "0.47777402", "0.47578296", "0.47532758", "0.47472462", "0.4744081", "0.4733888", "0.47228366", "0.47214887", "0.47191823", "0.47074196", "0.47055665", "0.4697117", "0.46899068", "0.46876076", "0.46801764", "0.46764567", "0.467091", "0.4667864", "0.46673164", "0.46630257", "0.46577284", "0.46288618", "0.46266022", "0.46167088", "0.46086168", "0.46050918", "0.46047863", "0.4603318", "0.45992136", "0.4598998", "0.45976484", "0.45938328", "0.45917574", "0.45911786", "0.45877796", "0.4584605", "0.4583599", "0.45740446", "0.4570988", "0.45703223", "0.45646957", "0.45636562", "0.45636562", "0.456182", "0.45563173", "0.4543339", "0.45420435" ]
0.57894987
2
TODO Autogenerated method stub
public static void main(String[] args) { int a=10; int b=20; a=a+b; b=a-b; a=a-b; System.out.println("reverse_no_is a= "+a); System.out.println("reverse_no_is b= "+b); }
{ "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
null, because begin node has no prev
public Node getPrev() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic Node getPreviousSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public Node<S> getPrev() { return prev; }", "public DNode getPrev() { return prev; }", "@Override\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\n\t}", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "public Node getPrev()\n {\n return this.prev;\n }", "public Node getPrev() {\n return prev;\n }", "HNode getPreviousSibling();", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "public DListNode2 prev(){\r\n return this.prev;\r\n }", "public Node getPrevious() {\n return previous;\n }", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "public Node setPrevNode(Node node);", "public Node<T> getPrev() {\n\t\treturn prev;\n\t}", "@Override\r\n\tpublic VertexInterface<T> getPredecessor() {\n\t\treturn null;\r\n\t}", "private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}", "@Override\n\tpublic Node getPreviousChild(Node existing) {\n\t\treturn null;\n\t}", "protected T removeBeginning() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> startNode = this.getHead().getPrev();\r\n\t\t\tthis.getHead().setPrev(startNode.getPrev());\r\n\t\t\tsize--;\r\n\t\t\treturn startNode.getValue();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Node<T> previous() {\r\n return previous;\r\n }", "public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}", "public void prev() {\r\n\t\tif (curr == head)\r\n\t\t\treturn; // No previous element\r\n\t\tLink<E> temp = head;\r\n\t\t// March down list until we find the previous element\r\n\t\twhile (temp.next() != curr)\r\n\t\t\ttemp = temp.next();\r\n\t\tcurr = temp;\r\n\t}", "public Node<T> getPrevNode() {\n\t\treturn prevNode;\n\t}", "public Node findInOrderSuccessor() {\n\n return null;\n }", "private void findPrev() {\n \tthis.find(false);\n }", "public AStarNode getPrevious() {\n return previous;\n }", "public E getPrevEdge()\r\n/* */ {\r\n/* 178 */ return (E)this.prevEdge;\r\n/* */ }", "@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public int getPrevNode() {\n\t\treturn this.previousNode;\n\t}", "public E previous(){\n\t\t\tE e = tail.element;\n\t\t\tcurrent = current.next;\n\t\t\treturn e;\n\t\t}", "Iterable<T> followNodeAndSelef(T start) throws NullPointerException;", "public void prev();", "Iterable<T> followNode(T start) throws NullPointerException;", "public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }", "@Override\n public E previous() throws NoSuchElementException\n { \n if(hasPrevious() == false)\n {\n throw new NoSuchElementException();\n }\n idx = idx - 1;\n Node theNode = getNth(idx);\n left = left.prev;\n right = left;\n canRemove = false;\n forward = false;\n return theNode.getElement(); \n }", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }", "private T getPredecessor (BSTNode<T> current) {\n\t\twhile(current.getRight() != null) {\n\t\t\tcurrent = current.getRight();\n\t\t}\n\t\treturn current.getData();\n\n\t}", "int getPrev(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 1);\n\t}", "@Override\n\tpublic Node getNextSibling() {\n\t\treturn null;\n\t}", "public Vertex getPrev() {\n return prev;\n }", "public DoublyLinkedNode<E> getPrevious() {\n return prevNode;\n }", "public void Prev();", "public static ListNode getPreNode(ListNode head, ListNode end){\n ListNode prevEnd = head;\n while(prevEnd.next != end){\n prevEnd = prevEnd.next;\n }\n return prevEnd;\n }", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public IndexRecord getIteratorPrev() {\n iter = (iter == 0 ? -1 : iter - 1);\n return (iter == -1 ? null : data[iter]);\n }", "private T getPredecessor(BSTNode<T> current) {\n while (current.getRight() != null) {\n current = current.getRight();\n }\n return current.getData();\n }", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "public Vertex getPrevious(){\n return previous;\n }", "public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }", "@Override\n public boolean hasPrevious()\n {\n if(left == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "public K prev();", "private IAVLNode findPredecessor(IAVLNode node)\r\n\t{\r\n\t\t//minimum node has no predecessor\r\n\t\tif (node == minimum) \r\n\t\t\treturn null; \r\n\t\t\r\n\t\tif (node.getLeft().isRealNode()) \r\n\t\t\treturn maxPointer(node.getLeft()); \r\n\t\telse \r\n\t\t{\r\n\t\t\tIAVLNode parent = node.getParent();\r\n\t\t\twhile ((node == parent.getLeft())&&(parent != null)) \r\n\t\t\t{ \r\n\t\t\t\tnode = parent; \r\n \t\t\t\tparent = parent.getParent() ; \r\n\t\t\t}\r\n\t\t\treturn parent;\t\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}", "public NodeD getSelecPrev(){\n if (this.selec == this.head){\n return this.head;\n }else{\n this.selec = this.selec.getPrev();\n return selec;\n }\n }", "static int findpredecessor(Node tmp)\n {\n int max=tmp.val;\n while(tmp.right!=null)\n {\n max=tmp.right.val;\n tmp=tmp.right;\n }\n return max;\n }", "public Node top() {\r\n\t\treturn start;\r\n\t}", "public LinkedListIterator(){\n position = null;\n previous = null; \n isAfterNext = false;\n }", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "Object previous();", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = lastObject;\n }", "public void setPrevious(Node p) {\n previous = p;\n }", "public void setPrev(Node prev)\r\n\t{\r\n\t\tthis.prev = prev;\r\n\t}", "public void setPrev(Node<T> prev) {\n\t\tthis.prev = prev;\n\t}", "static BNode getSibling(BNode cur){\n int height = 0;\n cur = cur.parent;\n height++;\n while(cur!= null){\n\n if(cur.right!= null){\n int tHeight = height-1;\n BNode tCur = cur.right;\n while (tCur!=null){\n if(tHeight == 0 && tCur.left == null && tCur.right == null){\n return tCur;\n }else{\n tCur = tCur.right;\n tHeight--;\n }\n }\n\n }\n\n cur = cur.parent;\n height++;\n\n\n\n }\n\n return null;\n\n }", "public boolean hasPreviousElement() {\n return false;\n }", "public Node getStart(){\n return start;\n }", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "public void setPrev(Node prev) {\n this.prev = prev;\n }", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "@Override\n public Node getParentNode() {\n return null;\n }", "public com.Node<T> getNextRef() {\n\t\treturn null;\n\t}", "static int nullNode() {\n\t\treturn -1;\n\t}", "ComponentAgent getPreviousSibling();", "Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}", "@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }", "public IDLink<T> getPrev(){\n \treturn ppointer;\n }", "public boolean hasPrev() {\n return cursor != null && ((Entry<T>) cursor).prev!= null && ((Entry) cursor).prev.prev != null;\n }", "public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "public Node getPrev(Node root, int key, Node prev){\n\t\tif(root==nil){\n\t\t\treturn nil;\n\t\t}\n\t\t\n\t\tif(key==root.id){\n\t\t\tif(root.left != nil){\n\t\t\t\tNode temp = root.left;\n\t\t\t\twhile(temp.right != nil){\n\t\t\t\t\ttemp = temp.right;\n\t\t\t\t}\n\t\t\t\tprev = temp;\n\t\t\t}\n\t\t\treturn prev;\n\t\t}\n\t\t\n\t\tif(key>root.id){\n\t\t\tprev = root;\n\t\t\tprev = getPrev(root.right,key,prev);\n\t\t}else{\n\t\t\tprev = getPrev(root.left,key,prev);\n\t\t}\n\t\t\n\t\treturn prev;\n\t}", "@Test(expected = NoSuchElementException.class)\n public void testPrevious_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 5, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.previous();\n }", "public void removeAtFront(){\r\n\t head = head.getLink();\r\n\t cursor = head; \r\n\t precursor = null; \r\n\t \r\n\t manyNodes--;\r\n }", "@Override\r\n\t/**\r\n\t * advanceToNo() advances the current node to its left child in the event the left child is not null.\r\n\t * If the left child is null, current is set to be null.\r\n\t * advanceToNo() has a precondition that the current node is not null.\r\n\t */\r\n\tpublic void advanceToNo() {\n\t\tif(!current.hasLeftChild())\r\n\t\t\tcurrent = null;\r\n\t\telse {\r\n\t\t\tcurrent = current.getLeftChild();\r\n\t\t}\r\n\t}", "public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public void setPrevNode(int node) {\n\t\tthis.previousNode = node;\n\t}", "public Node getBack(){\n return this.back;\n }", "@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void setPrevious(MyNode<? super E> _previous)\n\t{\n\t\tthis.previous = _previous;\n\t\t//this.previous = _previous;\n\t}", "public\t\tMiPart\t\tgetPrevious()\n\t\t{\n\t\tMiPart obj = iterator.getPrevious();\n\t\twhile ((obj == null) || ((filter != null) && ((obj = filter.accept(obj)) == null)))\n\t\t\t{\n\t\t\tif (!hasLayers)\n\t\t\t\treturn(null);\n\t\t\tif (!iterateThroughAllLayers)\n\t\t\t\treturn(null);\n\t\t\tMiContainerIterator iter = getPreviousIterator();\n\t\t\tif (iter == null)\n\t\t\t\treturn(null);\n\t\t\titerator = iter;\n\t\t\tobj = iterator.getPrevious();\n\t\t\t}\n\t\treturn(obj);\n\t\t}", "@Override\r\n\t\tpublic Node getFirstChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public Node getFront(){\n return this.front;\n }", "public AccessibilityNodeInfo getTraversalBefore() {\n/* 376 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "@Override\n public void start() {\n if (size > 0) {\n cursor = head;\n prev = null;\n } else {\n cursor = null; }\n }", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }" ]
[ "0.72642684", "0.7240599", "0.7211108", "0.71660936", "0.7115276", "0.7082196", "0.7065731", "0.70277226", "0.6943928", "0.69122165", "0.6861313", "0.6838583", "0.683807", "0.677049", "0.67121875", "0.66758204", "0.6673199", "0.6659561", "0.66564953", "0.66047573", "0.6600268", "0.6593685", "0.6540341", "0.65264034", "0.6513589", "0.6510198", "0.64575624", "0.64573324", "0.64554906", "0.6454519", "0.6444291", "0.6443833", "0.6435789", "0.6412231", "0.63971496", "0.6369857", "0.6361852", "0.6349191", "0.63441813", "0.63258797", "0.6324969", "0.631916", "0.63042235", "0.63026017", "0.62928194", "0.62770516", "0.6275743", "0.6275705", "0.6263781", "0.6227304", "0.6214507", "0.6177905", "0.6177318", "0.61576056", "0.6154076", "0.61369246", "0.61195296", "0.61122066", "0.6109133", "0.60967135", "0.6083429", "0.60701054", "0.60436857", "0.6027727", "0.6024819", "0.6024414", "0.60227424", "0.6008548", "0.6001556", "0.59919643", "0.5991246", "0.5990786", "0.5978368", "0.59586465", "0.59554964", "0.5949982", "0.59468305", "0.5943943", "0.59430337", "0.5939716", "0.59342563", "0.59338266", "0.59152335", "0.59021986", "0.5899652", "0.5895609", "0.5895127", "0.5886269", "0.58780706", "0.58770704", "0.58675855", "0.5867103", "0.5865107", "0.58590645", "0.5849653", "0.58437675", "0.5839659", "0.5838523", "0.5838497", "0.58291245" ]
0.79273665
0
We give the hierarchy a class that talks about another class 'B', but we never give it B, so B is left hanging around as a ghost node.
@Test public void testWhenHierarchyContainsGhostNode() { ClassInformation info = ClassInformation.postRenameInfoFor(false, "A", "B", new String[]{ CommonType.I_OBJECT.dotName }); ClassHierarchy hierarchy = new ClassHierarchyBuilder().build(); hierarchy.add(info); HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy); assertFalse(result.success); assertTrue(result.foundGhost); assertEquals(info.superClassDotName, result.nodeName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "private void buildGraph(Classes classes) {\n \t\n\tadjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n\t//add primitives to the children of object\n ArrayList<String> objectlist = adjacencyList.get(TreeConstants.Object_.getString());\n objectlist.add(TreeConstants.IO.getString());\n objectlist.add(TreeConstants.Int.getString());\n objectlist.add(TreeConstants.Bool.getString());\n objectlist.add(TreeConstants.Str.getString());\n adjacencyList.put(TreeConstants.Object_.getString(), objectlist);\n \tfor (Enumeration e = classes.getElements(); e.hasMoreElements(); ) {\n \t class_c currentClass = ((class_c)e.nextElement());\n \n \t // If the same class name is already present, that's a redefinition error\n \t String className = currentClass.getName().toString();\n \t if (!nameToClass.containsKey(className)) {\n \t \tnameToClass.put(currentClass.getName().toString(), currentClass);\n \t } else {\n \t \tsemantError(currentClass).println(\"Class \" + className + \" was previously defined\");\n \t \tcontinue;\n \t }\n \t // if parent already present in HashMap, append child to list of children\n \t String parent = currentClass.getParent().toString();\n \t if ( !adjacencyList.containsKey(parent) ) {\n \t\tadjacencyList.put(parent, new ArrayList<String>() );\n \t }\n \t adjacencyList.get(parent).add(currentClass.getName().toString());\n \t}\n \n // Check if each parent in a parent-child inheritance is a valid class\n HashSet<String> bogusClasses = new HashSet<String>();\n for (String parent : adjacencyList.keySet()) {\n \tif (!nameToClass.containsKey(parent)) {\n \t\tfor (String child: adjacencyList.get(parent)) {\n \t\t\tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" inherits from an undefined class \" + parent);\n \t\t}\n \t\t// Remove the bogus parent class from the graph\n \t\tbogusClasses.add(parent);\n \t}\n }\n // Remove the bogus parent class from the graph\n for (String bogus : bogusClasses) {\n \tadjacencyList.remove(bogus);\n }\n if (Flags.semant_debug) {\n \tSystem.out.println(\"Pruned out unreachable classes\");\n }\n \n // Also check if someone's inheriting from the Basic classes other than Object & IO\n for (String child : adjacencyList.get(TreeConstants.Int.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Int\");\n }\n for (String child : adjacencyList.get(TreeConstants.Str.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Str\");\n }\n for (String child : adjacencyList.get(TreeConstants.Bool.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Bool\");\n }\n // No point in continuing further. The above classes are going to propagate more errors\n if (Flags.semant_debug) {\n \tSystem.out.println(\"Checked for simple inheritance errors\");\n }\n if (errors()) {\n \treturn;\n }\n \n \t// Now check for cycles\n \t// Do the depth first search of this adjacency list starting from Object\n \tHashMap<String, Boolean> visited = new HashMap<String, Boolean>();\n \tfor (String key : adjacencyList.keySet() ) {\n \t\tvisited.put(key, false);\n \t\tfor ( String value : adjacencyList.get(key) ) {\n \t\t\tvisited.put(value, false);\n \t\t}\n \t}\n \tdepthFirstSearch(visited, TreeConstants.Object_.toString());\n \t// It is legal to inherit from the IO class. So mark classes down that tree as well\n\t\n\t/*depthFirstSearch(visited, TreeConstants.IO.getString());\n \t// Check for unreachable components - unreachable classes are cycles\n \t// Except the Bool, IO, Int and String. Hack - set them to true\n \tvisited.put(TreeConstants.IO.getString(), true);\n \tvisited.put(TreeConstants.Bool.getString(), true);\n \tvisited.put(TreeConstants.Str.getString(), true);\n \tvisited.put(TreeConstants.Int.getString(), true);\n\t*/\n \tfor (String key : visited.keySet()) {\n \t\tif (!visited.get(key)) {\n \t\t\tsemantError(nameToClass.get(key)).println(\"Class \" + key + \" or an ancestor is involved in an inheritance cycle.\");\n \t\t}\n \t} \n \n \tif (Flags.semant_debug) {\n \t\tSystem.out.println(\"Checked for cycles\");\n \t}\n \t}", "@Test\n public void testWhenHierarchyContainsUnreachableNodes() {\n ClassInformation info = ClassInformation.postRenameInfoFor(false, \"A\", \"B\", null);\n\n ClassHierarchy hierarchy = new ClassHierarchyBuilder().build();\n hierarchy.add(info);\n\n HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy);\n assertFalse(result.success);\n assertTrue(result.foundUnreachableNodes);\n assertEquals(2, result.numberOfUnreachableNodes);\n }", "@Test public void testInheritance () {\n ArrayList<String> point = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"Point\") );\n GNode pointNode = treeManager.dereference(point);\n\n ArrayList<String> colorPoint = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"ColorPoint\") );\n GNode colorNode = treeManager.dereference(colorPoint);\n\n assertTrue( colorNode != null );\n assertTrue( pointNode != null );\n GNode g = (GNode)(treeManager.getParent(colorNode).getProperty(\"ClassDeclaration\"));\n \n\n assertTrue( treeManager.getParent(colorNode) == pointNode );\n\n //\n // Test distinction between package names\n //\n\n ArrayList<String> otherColor =\n new ArrayList<String>( Arrays.asList(\"org\", \"fake\",\n \"ColorPoint\"));\n GNode otherColorNode = treeManager.dereference(otherColor);\n\n assertTrue( otherColorNode != null );\n assertTrue( treeManager.getParent( otherColorNode )\n != treeManager.getParent(colorNode) );\n assertTrue( otherColorNode != colorNode );\n }", "B createB();", "@Override\n\tpublic void VisitInstanceOfNode(BunInstanceOfNode Node) {\n\n\t}", "@Override\n public ClassNode getClassNode() {\n return this.classNode;\n }", "private void setupGhostBoard(){\n // The ghostBoard is being set to be an exact copy of the board.\n ghostBoard.setBoardBricks(new ArrayList<>());\n for(Brick brick : board.getBoardBricks()){\n ghostBoard.getBoardBricks().add(new Brick(brick.getX(), brick.getY()));\n }\n ArrayList<Brick> ghostBlock = new ArrayList<>();\n for(Brick currentBlockBrick : board.getCurrentBlock().getBricks()){\n ghostBlock.add(new Brick(currentBlockBrick.getX(), currentBlockBrick.getY()));\n }\n ghostBoard.getCurrentBlock().setBricks(ghostBlock);\n // Its currentBlock is moved right up against the lowest reachable position.\n while (!ghostBoard.getDownwardsCollision()){\n ghostBoard.moveDown();\n }\n }", "private SceneGraphObject createNodeFromSuper( String className ) {\n\tSceneGraphObject ret;\n\n String tmp = this.getClass().getName();\n String superClass = tmp.substring( tmp.indexOf(\"state\")+6, tmp.length()-5 );\n\n System.err.println(\"Unable to create node \"+className+\" attempting Java3D superclass \"+superClass );\n\n\ttry {\n Class state = Class.forName( superClass );\n\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t} catch(ClassNotFoundException e) {\n\t throw new SGIORuntimeException( \"No Such Class \"+\n\t\t\t\t\t\tclassName );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Unable to instantiate class \"+\n\t\t\t\t\t\tclassName );\n\t}\n\n return ret;\n }", "public void test_der_01() {\n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.RDFS_MEM_TRANS_INF, null);\n Resource a = m.createResource(\"http://example.org#A\");\n Resource b = m.createResource(\"http://example.org#B\");\n OntClass A = new OntClassImpl(a.getNode(), (EnhGraph) m) {\n protected boolean hasSuperClassDirect(Resource cls) {\n throw new RuntimeException(\"did not find direct reasoner\");\n }\n };\n \n // will throw an exception if the wrong code path is taken\n A.hasSuperClass(b, true);\n }", "public interface ClassNode\n{\n}", "public void subclassExistingClasses() {\n final PNode n = new PPath.Float(new Ellipse2D.Float(0, 0, 100, 80)) {\n\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aPaintContext) {\n if (fIsPressed) {\n // if mouse is pressed draw self as a square.\n final Graphics2D g2 = aPaintContext.getGraphics();\n g2.setPaint(getPaint());\n g2.fill(getBoundsReference());\n }\n else {\n // if mouse is not pressed draw self normally.\n super.paint(aPaintContext);\n }\n }\n };\n\n n.addInputEventListener(new PBasicInputEventHandler() {\n public void mousePressed(final PInputEvent aEvent) {\n super.mousePressed(aEvent);\n fIsPressed = true;\n n.invalidatePaint(); // this tells the framework that the node\n // needs to be redisplayed.\n }\n\n public void mouseReleased(final PInputEvent aEvent) {\n super.mousePressed(aEvent);\n fIsPressed = false;\n n.invalidatePaint(); // this tells the framework that the node\n // needs to be redisplayed.\n }\n });\n\n n.setPaint(Color.ORANGE);\n getCanvas().getLayer().addChild(n);\n }", "public final native void classFollows(String name, Element newNode, Element oldNode) /*-{ this.classFollows(name, newNode, oldNode); }-*/;", "public abstract B zzjo();", "ClassB initClassB(ClassB iClassB)\n {\n iClassB.updateElementValue(\"ClassB\");\n return iClassB;\n }", "private Class<?> unedge(Class<?> cls) {\n if (!Edge.class.isAssignableFrom(cls)) return cls;\n ParameterizedType edge = getEdgeType(cls);\n return getEdgeTypeArgument(edge);\n }", "private void visitOutgoingReferences(EClass eClass) {\n EList<EReference> references = eClass.getEReferences();\n for (EReference ref : references) {\n\n // is it in containment graph? (ie should it be added)\n if (ref.isContainer() || ref.isContainment() || ref.getLowerBound() > 0) {\n EClass referencedClass = ref.getEReferenceType();\n\n boolean foundNewClass = addClassToContainmentIfNotAlreadyPresent(referencedClass);\n possiblyReportNewClass(foundNewClass, refToString(ref), eClass, referencedClass);\n }\n }\n }", "private void generateGhost() {\r\n\t\ttry {\r\n\t\t\tghost = (FallingPiece)falling.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\twhile(moveIfNoConflict(ghost.moveDown(), ghost));\t\t\r\n\t\tfor (BlockDrawable block : ghost.allBlocks())\r\n\t\t\tblock.setGhost(true);\r\n\t}", "public DancingNode()\n {\n L=R=U=D=this;\n }", "@Override\r\n\tpublic void transform(ClassNode cn) {\n\t\t\r\n\t}", "public void trickleUp(TreeHeapNode newNode)\n\t{\n\t\tint bottom = newNode.getKey();\n\t\tTreeHeapNode current = newNode;\n\t\twhile( current.parent != null && current.parent.getKey() < bottom )\n\t\t{\n\t\t\tcurrent.setKey(current.parent.getKey());\n\t\t\tcurrent = current.parent;\n\t\t}\n\t\tcurrent.setKey(bottom);\n\t}", "private static void getClassHierarchyRecurs(Class clazz, boolean flag) {\n Class classFirst = null;\n if (flag) {\n classFirst = clazz;\n }\n if (clazz != null) {\n clazz = clazz.getSuperclass();\n getClassHierarchyRecurs(clazz, false);\n }\n if (clazz != null) {\n System.out.println(clazz.getName());\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n if (classFirst != null) {\n System.out.println(classFirst.getName());\n }\n }", "private void initDepthToClass(OWLOntologyManager manager, OWLOntology ont, int depth) {\n\n\t\t// Are there lower \"level\"\n\t\tboolean areThereLower = true;\n\n\t\t// Save the current top classes (subclasses of top)\n\t\tSet<OWLClass> classes = reasoner.getSubClasses(df.getOWLThing(), true).entities().collect(Collectors.toSet());\n\n\t\t// as long as there are lower level\n\t\twhile (areThereLower) {\n\n\t\t\t// Save this new subclasses as the classes for this depth\n\t\t\tdepthToClasses.put(depth, classes);\n\n\t\t\t// Create a List for the next level\n\t\t\tSet<OWLClass> newClasses = new HashSet<>();\n\n\t\t\t// For all classes of the current level\n\t\t\tfor (OWLClass cls : classes) {\n\n\t\t\t\t// Get all subclasses\n\t\t\t\tList<OWLClass> subForCls = reasoner.getSubClasses(cls, true).entities().collect(Collectors.toList());\n\n\t\t\t\t// Add them to the next level\n\t\t\t\tnewClasses.addAll(subForCls);\n\n\t\t\t\t// save parent structure\n\t\t\t\tsubForCls.stream().forEach(subCls -> {\n\t\t\t\t\tclassToParent.put(subCls, cls);\n\t\t\t\t\tclassToParentString.put(OntologyDescriptor.getCleanNameOWLObj(subCls),\n\t\t\t\t\t\t\tOntologyDescriptor.getCleanNameOWLObj(cls));\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t// Set the new level as the current level\n\t\t\tclasses = newClasses;\n\n\t\t\t// Next level index\n\t\t\tdepth++;\n\n\t\t\t// If there are less than 1 new class stop this loop\n\t\t\tif (newClasses.size() < 1) {\n\t\t\t\tareThereLower = false;\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void visit(ClassDefinitionNode classDefinitionNode) {\n }", "@Override\n\t\tpublic void displayB() {\n\t\t\tSystem.out.println(\"Display B class X\");\n\t\t}", "public abstract Type treeCopyNoTransform();", "protected void makeChild(FHeapNode y, FHeapNode x)\r\n { \r\n y.left.right = y.right;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// remove y from root list of heap\r\n y.right.left = y.left;\r\n \r\n y.parent = x;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// make y a child of x\r\n\r\n if (x.child == null)\r\n\t\t{\r\n x.child = y;\r\n y.right = y;\r\n y.left = y;\r\n } \r\n\t\telse\r\n\t\t{\r\n y.left = x.child;\r\n y.right = x.child.right;\r\n x.child.right = y;\r\n y.right.left = y;\r\n }\t\t\t\r\n x.degree++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// increase degree[x] \r\n y.childCut = false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// set childCut[y] to false\r\n }", "public interface BPTreeNode {\n\n /*\n * Method returns the node index in the B+ tree organization.\n *\n * Returns:\n * node index in B+ tree\n * */\n public long getNodeIndex();\n\n\n /*\n * Method identifies the node as a leaf node or a child (non-leaf) node.\n *\n * Returns:\n * true, if leaf node; false if child node\n * */\n public boolean isLeaf();\n\n /*\n * Method inserts the node item appropriate to the item's key value.\n *\n * Returns:\n * Node item inserted successfully.\n * */\n public boolean insertItem(BPTreeNodeItem item);\n\n /*\n * Method deletes the node item appropriate to the item's index.\n *\n * Returns:\n * Node item deleted successfully.\n * */\n public boolean deleteItem(int index);\n\n /*\n * Method returns the number of items assigned to the node.\n *\n * Returns:\n * Count of node items contained in the node\n * */\n public int getItemCount();\n\n /*\n * Method returns the indexed node item.\n *\n * Returns:\n * Indexed node item.\n * */\n public BPTreeNodeItem getItem(int index);\n\n /*\n * Method returns the lowest chromosome name key belonging to the node.\n *\n * Returns:\n * Lowest contig/chromosome name key; or null for no node items.\n * */\n public String getLowestChromKey();\n\n /*\n * Method returns the highest chromosome name key belonging to the node.\n *\n * Returns:\n * Highest contig/chromosome name key; or null for no node items.\n * */\n public String getHighestChromKey();\n\n /*\n * Method returns the lowest chromosome ID belonging to the node.\n *\n * Returns:\n * Lowest contig/chromosome ID; or -1 for no node items.\n * */\n public int getLowestChromID();\n\n /*\n * Method returns the highest chromosome ID belonging to the node.\n *\n * Returns:\n * Highest contig/chromosome ID; or -1 for no node items.\n * */\n public int getHighestChromID();\n\n /*\n * Method prints the nodes items and sub-node items.\n * Node item deleted successfully.\n * */\n public void printItems();\n\n}", "@Override\n public IMXMLInstanceNode getInstanceNode()\n {\n return !(childNode instanceof IMXMLClassNode) ? childNode : null;\n }", "@Override\n public boolean isMissingNode() { return false; }", "protected SceneGraphObject createNode( Class state ) {\n\tSceneGraphObject ret;\n\n\ttry {\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName()+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName() );\n\t}\n\n\treturn ret;\n }", "@Override\n protected void checkSubclass() {\n }", "public static void initClass()\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoSubNode.SO__NODE_INIT_CLASS(SoCubeWithoutTop.class, \"CubeWithoutTop\", SoShape.class);\n}", "public abstract Type treeCopy();", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "public FamilyTree(){\r\n super();\r\n }", "private void join (Block b) {\n\t\tArrayList<Block> neighbors = getAdj(b); // All of the neighbors.\n\t\tfor (Block neighbor: neighbors) { // Iterates through all of the neighbors.\n\t\t\tif (neighbor.t == ' ') { // Important, checks if the neighbor is a wall or not.\n\t\t\t\tfor (Block member: neighbor.tree) {\n\t\t\t\t\tb.tree.add(member);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Block member : b.tree) { // Iterates through all of the members of the tree.\n\t\t\tif (member.t == ' ') member.tree = b.tree; // Sets the trees of the members to the shared tree. \n\t\t}\n\t\tb.t = ' ';\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@SuppressWarnings(\"unchecked\")\n protected B self() {\n return (B) this;\n }", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "private void treeBreadthFirstTraversal() {\n Node currNode = root;\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n // Highlights the first Node.\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n queueQueueAddAnimation(currNode.children[i],\n \"Queueing \" + currNode.children[i].key,\n AnimationParameters.ANIM_TIME);\n\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n queueListPopAnimation(\"Popped \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n }", "public BSearchTree() {\n\t\tthis.overallRoot = null;\n\t}", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\n\tpublic void inAClass(AClass node) {\n\t\tString className = node.getType().getText();\n\t\tcurrentClass = topLevelSymbolTable.get(className);\n\t\tif (currentClass.isAbstract()){\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER | Constants.ACC_ABSTRACT, null);\n\t\t}else{\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER, null);\n\t\t}\n\t\tcp = cg.getConstantPool(); \n\t}", "private void split () {\n\n if (firstClassList != null && firstClassList.size() > MAX_OBJECTS && depth < MAX_DEPTH) {\n\n // Set new bounds along each axis\n double[] xBounds = new double[] {bounds.getMinX(), bounds.getCenterX(), bounds.getMaxX()};\n double[] yBounds = new double[] {bounds.getMinY(), bounds.getCenterY(), bounds.getMaxY()};\n double[] zBounds = new double[] {bounds.getMinZ(), bounds.getCenterZ(), bounds.getMaxZ()};\n\n // Create each child\n children = new SceneOctTree[8];\n for (int x = 0; x <= 1; x++) {\n for (int y = 0; y <= 1; y++) {\n for (int z = 0; z <= 1; z++) {\n Bounds childBounds = new BoundingBox (\n xBounds[x], yBounds[y], zBounds[z],\n xBounds[x+1] - xBounds[x], yBounds[y+1] - yBounds[y], zBounds[z+1] - zBounds[z]\n );\n int index = x + y*2 + z*4;\n children[index] = new SceneOctTree (childBounds, this.depth+1);\n } // for\n } // for\n } // for\n\n // Insert first class objects into children. Note that we don't know\n // if the object will be first or second class in the child so we have\n // to perform a full insert.\n for (Node object : firstClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insert (object);\n } // for\n } // for\n firstClassList = null;\n\n // Insert second class objects into children (if any exist). We know\n // that the object will be second class in the child, so we just\n // perform a second class insert.\n if (secondClassList != null) {\n for (Node object : secondClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insertSecondClass (object, objectBounds);\n } // for\n } // for\n } // if\n secondClassList = null;\n\n // Perform a split on the children, just in case all the first class\n // objects that we just inserted all went into one child.\n for (SceneOctTree child : children) child.split();\n\n } // if\n\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "protected AbstractTreeAdjacencyGraph()\n\t{\n\t\tsuper();\n\t}", "boolean hasEnclosingInstance(ClassType encl);", "public void shouldAddSubclassAxiom(OWLOntologyManager manager, OWLClass classA, OWLClass classB) throws OWLOntologyCreationException,OWLOntologyStorageException {\n\t\tOWLOntology ontology = manager.getOntology(currentOntologyID); \n\t\t\t\n\t\t// Now we want to specify that A is a subclass of B. To do this, we add\n\t\t// a subclass axiom. A subclass axiom is simply an object that specifies\n\t\t// that one class is a subclass of another class. We need a data factory\n\t\t// to create various object from. Each manager has a reference to a data\n\t\t// factory that we can use.\n\t\tOWLDataFactory factory = manager.getOWLDataFactory();\n\t\n\t\t// Now create the axiom\n\t\tOWLAxiom axiom = factory.getOWLSubClassOfAxiom(classA, classB);\n\t\t\n\t\t// We now add the axiom to the ontology, so that the ontology states\n\t\t// that A is a subclass of B. To do this we create an AddAxiom change\n\t\t// object. At this stage neither classes A or B, or the axiom are\n\t\t// contained in the ontology. We have to add the axiom to the ontology.\n\t\tAddAxiom addAxiom = new AddAxiom(ontology, axiom);\n\t\t// We now use the manager to apply the change\n\t\tmanager.applyChange(addAxiom);\n\t\n\t}", "public T caseGraphicalNode(GraphicalNode object) {\n\t\treturn null;\n\t}", "private PersistentLinkedList<T> pop() {\n //the latest element won't become empty\n int index = this.treeSize - 1;\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n ArrayList<Node<T>> newNodes = new ArrayList<>();\n newNodes.add(newRoot);\n ArrayList<Integer> newNodesIndices = new ArrayList<>();\n\n for (int b = base; b > 1; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n newNodes.add(currentNewNode);\n newNodesIndices.add(index / b);\n index = traverseData.index;\n }\n newNodesIndices.add(index);\n\n for (int i = 0; i < branchingFactor && i < index; i++) {\n currentNewNode.set(i, currentNode.get(i));\n }\n currentNewNode.set(index, null);\n\n if (index == 0) {\n int latestIndex = newNodes.size() - 2;\n newNodes.get(latestIndex).set(newNodesIndices.get(latestIndex), null);\n\n for (int i = latestIndex; i > 0; i--) {\n if (newNodesIndices.get(i) == 0) {\n newNodes.get(i - 1).set(newNodesIndices.get(i - 1), null);\n } else {\n break;\n }\n }\n }\n\n if (newNodes.size() > 1) {\n int nonNullChildren = 0;\n for (Node<T> child : newRoot.children) {\n if (child != null) {\n nonNullChildren++;\n }\n }\n if (nonNullChildren == 1) { //need new root\n newRoot = newRoot.get(0);\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth - 1,\n this.base / branchingFactor, this.treeSize - 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }\n }\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize - 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "public void breadthFirstTraversal() {\n beginAnimation();\n treeBreadthFirstTraversal();\n stopAnimation();\n\n }", "@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}", "protected void checkSubclass() {\n }", "public void markDead() {\r\n\t\tsetNodeWasContacted(0);\r\n\t}", "private void processNode(BranchNode bn, Grid[][] map) {\n\t\tif (bn.leaf_alive) {\r\n\t\t\tfor (int i = 0; i < leaf_size; i++) {\r\n\t\t\t\tint l = bn.x + i - leaf_size / 2;\r\n\t\t\t\tif (l >= 0 && l < World.WORLD_WIDTH) {\r\n\t\t\t\t\thealth += map[l][bn.y].sunlight;\r\n\t\t\t\t\tmap[l][bn.y].sunlight -= World.LEAF_BLOCK;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Kill Leaf if the leaf is too old\r\n\t\t\tbn.leaf_age += 1;\r\n\t\t\tif (bn.leaf_age >= LEAF_LIFETIME) {\r\n\t\t\t\tbn.killLeaf(this, map);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If I really want to be safe, I should put a check for if bn.children.size() > 0\r\n\t\t// But the for loop here checks it for me already.\r\n\t\tfor (int i = 0; i < bn.children.size(); i++) {\r\n\t\t\tprocessNode(bn.children.get(i), map);\r\n\t\t}\t\t\r\n\t}", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "public abstract void bepaalGrootte();", "private void setChildFeaturesDead(ClassifiedFeature classifiedFeature, Classifier newClassifier) {\n Feature parentFeature = classifiedFeature.getFeature();\r\n Classification classification = (Classification) classifiedFeature.eContainer();\r\n\r\n TreeIterator<EObject> eAllContents = parentFeature.eAllContents();\r\n while (eAllContents.hasNext()) {\r\n EObject element = eAllContents.next();\r\n if (element instanceof Group) {\r\n Group group = (Group) element;\r\n List<ClassifiedFeature> childFeatures = ClassificationUtil.getFeaturesOfGroup(group, classification, true);\r\n for (ClassifiedFeature childFeature : childFeatures) {\r\n handleAutoCompleteFeature(childFeature, Classifier.DEAD);\r\n }\r\n }\r\n }\r\n }", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public void dies(){\n currentNode.deleteAnt(this);\n \n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }" ]
[ "0.63042843", "0.59853125", "0.5904864", "0.580627", "0.5552033", "0.5472713", "0.5452376", "0.53994167", "0.53761846", "0.53247356", "0.5317943", "0.5295998", "0.52611166", "0.5239409", "0.5145552", "0.5098616", "0.5093282", "0.5077134", "0.5076658", "0.50749815", "0.50620395", "0.50575835", "0.50566477", "0.50491714", "0.50108474", "0.4980412", "0.49746984", "0.4954928", "0.49531904", "0.49394193", "0.4927461", "0.49241018", "0.49229926", "0.49223503", "0.4918302", "0.4900427", "0.48939204", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892892", "0.4892545", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845652", "0.48845503", "0.48777252", "0.48773465", "0.48717993", "0.4862351", "0.4862351", "0.4862351", "0.48605284", "0.48601037", "0.48503822", "0.48503822", "0.48503822", "0.48468632", "0.48459688", "0.48445854", "0.4844036", "0.4841347", "0.4840361", "0.48332226", "0.4831925", "0.4826583", "0.48232806", "0.48216686", "0.48201782", "0.48161557", "0.48106945", "0.4800807", "0.4799693", "0.47993332", "0.47993332", "0.47993332" ]
0.6614474
0
B will be a ghost node, but since it's never made real it will never descend from any other node. And A only descends from B, so both A and B are cut off from the hierarchy.
@Test public void testWhenHierarchyContainsUnreachableNodes() { ClassInformation info = ClassInformation.postRenameInfoFor(false, "A", "B", null); ClassHierarchy hierarchy = new ClassHierarchyBuilder().build(); hierarchy.add(info); HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy); assertFalse(result.success); assertTrue(result.foundUnreachableNodes); assertEquals(2, result.numberOfUnreachableNodes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testWhenHierarchyContainsGhostNode() {\n ClassInformation info = ClassInformation.postRenameInfoFor(false, \"A\", \"B\", new String[]{ CommonType.I_OBJECT.dotName });\n\n ClassHierarchy hierarchy = new ClassHierarchyBuilder().build();\n hierarchy.add(info);\n\n HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy);\n assertFalse(result.success);\n assertTrue(result.foundGhost);\n assertEquals(info.superClassDotName, result.nodeName);\n }", "private void awayFromAncestor(Graph graph, Node a, Node b, Node c) {\n if ((graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, c) == Endpoint.CIRCLE)) {\n\n if ((graph.getEndpoint(a, b) == Endpoint.ARROW) &&\n (graph.getEndpoint(b, c) == Endpoint.ARROW) && (\n (graph.getEndpoint(b, a) == Endpoint.TAIL) ||\n (graph.getEndpoint(c, b) == Endpoint.TAIL))) {\n\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n changeFlag = true;\n }\n }\n }", "public void setIgnoreDanglingEdgeOfDelNode(boolean b) {\r\n\t\tthis.ignoreDanglingEdgeOfDelNode = b;\r\n\t}", "public void test_der_01() {\n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.RDFS_MEM_TRANS_INF, null);\n Resource a = m.createResource(\"http://example.org#A\");\n Resource b = m.createResource(\"http://example.org#B\");\n OntClass A = new OntClassImpl(a.getNode(), (EnhGraph) m) {\n protected boolean hasSuperClassDirect(Resource cls) {\n throw new RuntimeException(\"did not find direct reasoner\");\n }\n };\n \n // will throw an exception if the wrong code path is taken\n A.hasSuperClass(b, true);\n }", "public void cutNode ()\n {\n copyNode();\n deleteNode();\n }", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\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 deleteA_useAwithB_danglingEdgeTest() {\n\t\tHenshinResourceSet resourceSet = new HenshinResourceSet(PATH);\n\n\t\t// Load the module:\n\t\tModule module = resourceSet.getModule(\"simpleTgRules.henshin\", false);\n\n\t\tUnit deleteAUnit = module.getUnit(\"deleteA\");\n\t\tRule deleteARule = (Rule) deleteAUnit;\n\n\t\tUnit useAwithBUnit = module.getUnit(\"useAwithB\");\n\t\tRule useAwithBRule = (Rule) useAwithBUnit;\n\n\t\tConflictAnalysis atomicCoreCPA = new ConflictAnalysis(deleteARule, useAwithBRule);\n\t\tList<ConflictAtom> computedConflictAtoms = atomicCoreCPA.computeConflictAtoms();\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, computedConflictAtoms.size());\n\t\t// System.out.println(\"number of conflict atoms:\n\t\t// \"+computedConflictAtoms.size());\n\t\t// for(ConflictAtom conflictAtom : computedConflictAtoms){\n\t\t// System.out.println(conflictAtom);\n\t\t// }\n\n\t\tAtomCandidateComputation candComp = new AtomCandidateComputation(deleteARule, useAwithBRule);\n\t\tList<Span> conflictAtomCandidates = candComp.computeAtomCandidates();\n\n\t\tSet<MinimalConflictReason> reasons = new HashSet<>();//\n\t\tfor (Span candidate : conflictAtomCandidates) {\n\t\t\tnew MinimalReasonComputation(deleteARule, useAwithBRule).computeMinimalConflictReasons(candidate, reasons);\n\t\t}\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, reasons.size());\n\n\t\t// Set<Span> minimalConflictReasons = reasons;\n\t\t// System.out.println(\"number of minimal conflict reasons:\n\t\t// \"+minimalConflictReasons.size());\n\t\t// for(Span minimalConflictReason : minimalConflictReasons){\n\t\t// System.out.println(minimalConflictReason);\n\t\t// }\n\t}", "private void keepRangeRecur(BinaryNode node, E a, E b) {\n\n if (node == null) return;\n\n //node is within a-b bounds so keep it\n if (a.compareTo((E)node.element) <= 0 && b.compareTo((E)node.element) >= 0) {\n keepRangeRecur(node.left, a, b);\n keepRangeRecur(node.right, a, b);\n\n //node is to the left of boundaries\n } else if (a.compareTo((E)node.element) > 0) {\n if (node == root) {\n root = node.right;\n node.right.parent = null;\n } else if (node.parent.right == node) { //node and its parent are out\n root = node;\n node.parent = null;\n keepRangeRecur(node.left, a, b);\n } else { //node is out but its parent is in\n node.parent.left = node.right;\n if (node.right != null) node.right.parent = node.parent; // checking if child exists\n }\n keepRangeRecur(node.right, a, b);\n\n // node is to the right of boundaries\n } else if (b.compareTo((E)node.element) < 0) {\n if (node == root) {\n root = node.left;\n node.left.parent = null;\n } else if (node.parent.left == node) { //node and its parent are out\n root = node;\n node.parent = null;\n keepRangeRecur(node.right, a, b);\n } else { //node is out but its parent is in\n node.parent.right = node.left;\n if (node.left != null) node.left.parent = node.parent; // checking if child exists\n }\n keepRangeRecur(node.left, a, b);\n }\n }", "public void union(Node a, Node b) {\n Node set1 = find(a);\n Node set2 = find(b);\n\n if (set1 != set2) {\n // Limits the worst case runtime of a find to O(log N)\n if (set1.getSize() < set2.getSize()) {\n set2.setParent(set1);\n set1.setSize(set1.getSize() + set2.getSize());\n }\n else {\n set1.setParent(set2);\n set2.setSize(set1.getSize() + set2.getSize());\n }\n }\n }", "private void awayFromAncestorCycle(Graph graph) {\n while (changeFlag) {\n changeFlag = false;\n List<Node> nodes = graph.getNodes();\n\n for (Node B : nodes) {\n List<Node> adj = graph.getAdjacentNodes(B);\n\n if (adj.size() < 2) {\n continue;\n }\n\n ChoiceGenerator cg = new ChoiceGenerator(adj.size(), 2);\n int[] combination;\n\n while ((combination = cg.next()) != null) {\n Node A = adj.get(combination[0]);\n Node C = adj.get(combination[1]);\n\n //choice gen doesnt do diff orders, so must switch A & C around.\n awayFromAncestor(graph, A, B, C);\n awayFromAncestor(graph, C, B, A);\n awayFromCycle(graph, A, B, C);\n awayFromCycle(graph, C, B, A);\n }\n }\n }\n changeFlag = true;\n }", "@Override\n public boolean removeChild(N endNode) {\n Edge<N, E> edge = buildDirectEdge(getThis(), endNode);\n if (!outgoingEdges.contains(edge)) {\n return false;\n }\n Edge<N, E> actualEdge = findActual(edge, outgoingEdges);\n return actualEdge.detach();\n }", "private void bubbleDown() {\n int pos = 0;\n boolean done = false;\n while (!done) {\n if (rightChild(pos) < heap.size() && isBigger(rightChild(pos), pos)) {\n swapup(rightChild(pos));\n } else if (leftChild(pos) < heap.size() && isBigger(leftChild(pos), pos)) {\n swapup(leftChild(pos));\n } else {\n done = true;\n }\n }\n }", "boolean leafNodeNeedsBase(int deltaY) {\n\t\treturn deltaY >= this.heightLimit * 0.2;\n\t}", "private Node caseNoChildren(Node deleteThis) {\r\n\r\n Node parent = deleteThis.getParent();\r\n\r\n if (parent == null) {\r\n this.root = null; // Kyseessä on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(null);\r\n } else {\r\n parent.setRight(null);\r\n }\r\n return deleteThis;\r\n }", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "public void trickleDown(TreeHeapNode newNode)\n\t{\n\t\tTreeHeapNode current = newNode;\n\t\tint top = newNode.getKey();\n\t\tTreeHeapNode largerChild;\n\t\twhile(current.leftChild != null || current.rightChild != null) //while node has at least one child\n\t\t{\n\t\t\tif(current.rightChild != null && //rightchild exists?\n\t\t\t\t\tcurrent.leftChild.getKey() <\n\t\t\t\t\tcurrent.rightChild.getKey() )\n\t\t\t\tlargerChild = current.rightChild;\n\t\t\telse\n\t\t\t\tlargerChild = current.leftChild;\n\t\t\tif(top >= largerChild.getKey() )\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcurrent.setKey(largerChild.getKey());\n\t\t\tcurrent = largerChild;\n\t\t}\n\t\tcurrent.setKey(top);\n\t}", "protected void makeChild(FHeapNode y, FHeapNode x)\r\n { \r\n y.left.right = y.right;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// remove y from root list of heap\r\n y.right.left = y.left;\r\n \r\n y.parent = x;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// make y a child of x\r\n\r\n if (x.child == null)\r\n\t\t{\r\n x.child = y;\r\n y.right = y;\r\n y.left = y;\r\n } \r\n\t\telse\r\n\t\t{\r\n y.left = x.child;\r\n y.right = x.child.right;\r\n x.child.right = y;\r\n y.right.left = y;\r\n }\t\t\t\r\n x.degree++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// increase degree[x] \r\n y.childCut = false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// set childCut[y] to false\r\n }", "public TreeNode buildTree(int[] A, int[] B) {\n HashMap<Integer, Integer> order = new HashMap<>();\n for (int i = 0; i < B.length; i++) {\n order.put(B[i], i);\n }\n\n // build Binary Tree from Pre-order list with order of nodes\n TreeNode root = new TreeNode(A[0]);\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerLast(root);\n\n /*\n for (int i = 1; i < A.length; i++) {\n if (order.get(A[i]) < order.get(stack.peekLast().val)) {\n TreeNode parent = stack.peekLast();\n parent.left = new TreeNode(A[i]);\n stack.offerLast(parent.left);\n }\n else {\n TreeNode parent = stack.peekLast();\n while(!stack.isEmpty() &&\n (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = new TreeNode(A[i]);\n stack.offerLast(parent.right);\n }\n\n }\n */\n for (int i = 1; i < A.length; i++) {\n TreeNode parent = stack.peekLast();\n TreeNode node = new TreeNode(A[i]);\n if (order.get(A[i]) < order.get(parent.val)) {\n parent.left = node;\n } else {\n while (!stack.isEmpty() && (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = node;\n }\n stack.offerLast(node);\n }\n\n return root;\n }", "void removeDirectedEdge(final Node first, final Node second)\n {\n if (first.connectedNodes.contains(second))\n first.connectedNodes.remove(second);\n\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "public void breadthFirstTraversal() {\n beginAnimation();\n treeBreadthFirstTraversal();\n stopAnimation();\n\n }", "@Override\n public boolean isMissingNode() { return false; }", "public boolean isRealNode();", "public boolean isRealNode();", "public void uncover ()\n {\n for (DancingNode i=this.U; i!=this; i=i.U) // go up the column\n {\n for (DancingNode j=i.L; j!=i; j=j.L) // go left across the row \n {\n j.C.size++;\n j.relinkUD();\n }\n }\n this.relinkLR();\n }", "@Test\n public void testManipulateObjectByReference() {\n TreeNode root = new TreeNode(0);\n root.left = new TreeNode(1);\n root.right = new TreeNode(2);\n setLeftChildToNull(root);\n System.out.println(root.left);\n }", "@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeletePartOfThatSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a/b\")\n .and()\n .execute();\n\n // Now look up node A ...\n File newFile = new File(testWorkspaceRoot, \"a\");\n assertTrue(newFile.exists());\n assertTrue(newFile.isDirectory());\n assertTrue(newFile.list().length == 0);\n assertFalse(new File(newFile, \"b\").exists());\n }", "@Test\r\n void test_insert_two_vertice_with_one_edge_remove_edge() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n //Check that A and B are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n //There's one edge in the graph\r\n if(graph.size() != 1) {\r\n fail();\r\n }\r\n //Remove edge from A to B\r\n graph.removeEdge(\"A\", \"B\");\r\n // Check that A and B are still in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n // B should not be an adjacent vertex of \r\n if(graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // There are no more edges in the graph\r\n if(graph.size() != 0) {\r\n fail();\r\n }\r\n }", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public static void join(Node a, Node b) {\r\n a.right = b;\r\n b.left = a;\r\n }", "@Test public void testInheritance () {\n ArrayList<String> point = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"Point\") );\n GNode pointNode = treeManager.dereference(point);\n\n ArrayList<String> colorPoint = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"ColorPoint\") );\n GNode colorNode = treeManager.dereference(colorPoint);\n\n assertTrue( colorNode != null );\n assertTrue( pointNode != null );\n GNode g = (GNode)(treeManager.getParent(colorNode).getProperty(\"ClassDeclaration\"));\n \n\n assertTrue( treeManager.getParent(colorNode) == pointNode );\n\n //\n // Test distinction between package names\n //\n\n ArrayList<String> otherColor =\n new ArrayList<String>( Arrays.asList(\"org\", \"fake\",\n \"ColorPoint\"));\n GNode otherColorNode = treeManager.dereference(otherColor);\n\n assertTrue( otherColorNode != null );\n assertTrue( treeManager.getParent( otherColorNode )\n != treeManager.getParent(colorNode) );\n assertTrue( otherColorNode != colorNode );\n }", "public void trickleUp(TreeHeapNode newNode)\n\t{\n\t\tint bottom = newNode.getKey();\n\t\tTreeHeapNode current = newNode;\n\t\twhile( current.parent != null && current.parent.getKey() < bottom )\n\t\t{\n\t\t\tcurrent.setKey(current.parent.getKey());\n\t\t\tcurrent = current.parent;\n\t\t}\n\t\tcurrent.setKey(bottom);\n\t}", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void transferLink(Node one, Node two){ \n\t\t//System.out.println(\" in transferLink\");\n\t\tif (one.parent == nil){\n\t\t\t//System.out.println(\" u is root \" + u.id + \" v is \" + v.id);\n\t root=two;\n\t }else if(one==one.parent.right){\n\t \tone.parent.right = two; \n\t }else{\n\t \tone.parent.left = two;\n\t }\n\t \n\t two.parent = one.parent;\n\t}", "B createB();", "public BTreeNode<E> handleUnderflow() {\n\t\tBTreeNode<E> donor = findDonor();\n\t\tint thisIndex = parent.children.indexOf(this);\n\t\tif (donor.canDonate()) {\n\t\t\tBTreeNode<E> parent = donor.parent;\n\t\t\tint donorIndex = parent.children.indexOf(donor);\n\t\t\t//rotate(donor, myGainIndex, sibLossIndex, pSepIndex);\n\t\t\t//if the donor is on the left, add the new data to the beginning of the deficient node; otherwise add it to the end\n\t\t\tif (donorIndex < thisIndex) {\n\t\t\t\trotate(donor, 0, donor.dataSize() - 1, donorIndex);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trotate(donor, dataSize(), 0, thisIndex);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\t//the only time you will merge right, is if the deficient node is the first child\n\t\t\tBTreeNode<E> joinedNode;\n\t\t\tif (thisIndex == 0) {\n\t\t\t\tjoinedNode = join(this, donor, thisIndex);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjoinedNode = join(donor, this, thisIndex - 1);\n\t\t\t}\n\n\t\t\treturn joinedNode;\n\t\t}\n\t}", "private double heuristic(Node a, Node b){\n\n // absolute value of the differences in floors\n return Math.abs(a.getFloor() - b.getFloor());\n }", "public DecisionTreeNode getNoLink() {\n return (DecisionTreeNode)this.getLeftChild();\n }", "protected void cascadingCut(FHeapNode y)\r\n {\r\n FHeapNode z = y.parent;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// node z is the parent of node y\r\n if (z != null) \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if y is not root and y has a parent\r\n\t\t{\r\n if (!y.childCut) \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if childCut value of y is false, set it true.\r\n\t\t\t{\r\n y.childCut = true;\r\n } \r\n\t\t\telse \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if childcut value is true\r\n\t\t\t{\r\n cut(y, z);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cut node y from its parent \r\n cascadingCut(z);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check the child cut value of its parent as well and continue cascading cut operation\r\n }\r\n }\r\n }", "void arbitraryRemove(Nodefh node){\n\t\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t\tnode.Parent = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t\tnode.Parent = null;\n\n\t\t}\n\t\tif(node.Child!=null){\n\t\t\tNodefh temp = node.Child;\n\t\t\tif(node.Child.Right!=null){\n\t\t\t\ttemp = node.Child.Right;\n\t\t\t}\n\t\t\tfhInsert(node.Child);\n\t\t\twhile(temp!=node.Child.Right){\n\t\t\t\tfhInsert(temp);\n\t\t\t\ttemp = temp.Right;\n\t\t\t}\n\n\t\t}\n\n\t}", "private void shiftDown() {\n int index = 1;\n\n while (hasLeftChild(index)) {\n //compare chield Nodes\n int smallerChild = leftIndex(index);\n\n // shft down with smaller Node if any\n if (hasRightChild(index) && heap[leftIndex(index)].compareTo(heap[rightIndex(index)]) > 0) {\n smallerChild = rightIndex(index);\n }\n\n if (heap[index].compareTo(heap[smallerChild]) > 0) {\n swap(index, smallerChild);\n } else {\n //Nothing to do\n break;\n }\n index = smallerChild;\n }\n }", "protected void cascadingCut(Node<T> y) {\n Node<T> z = y.parent;\n if (z != null) {\n if (!y.mark) {\n y.mark = true;\n } else {\n cut(y, z);\n cascadingCut(z);\n }\n }\n }", "@DISPID(1611006012) //= 0x6006003c. The runtime will prefer the VTID if present\n @VTID(88)\n void relationsNodeInTree(\n boolean oNodeDisplayed);", "public ListNode removeNthFromEnd(ListNode A, int B) {\n int sz=0;\n ListNode temp=A;\n while(temp!=null){\n temp=temp.next;\n sz++;\n }\n // B is now the node to be removed from the starting\n B=sz-B+1;\n if(B<=1){\n return A.next;\n }\n // aim is to get to the node just before the node to be deleted\n int aim=B-1;\n int curr=1;\n temp=A;\n \n while(temp!=null){\n // if we have reached the prev node of the node which has to be deleted\n if(curr==aim){\n // if node to be removed is not null \n if(temp.next!=null){\n // forming a new link of prev and next's next node\n ListNode deletedNode=temp.next;\n temp.next=deletedNode.next;\n // unlinking that node from the chain\n deletedNode.next=null;\n }\n }\n curr++;\n temp=temp.next;\n }\n return A;\n }", "public boolean deleteConnection(GraphNode nodeA, GraphNode nodeB) {\n if (nodeB.getAdjacent().contains(nodeA)) {\n //do the thing\n nodeA.removeAdjacent(nodeB);\n nodeB.removeAdjacent(nodeA);\n return true;\n }\n return false;\n }", "private Node<T> rotateWithLeft(Node<T> b) {\n Node<T> a = b.getLeft();\n b.setLeft(a.getRight());\n a.setRight(b);\n int bH = Math.max(findHeight(b.getLeft()),\n findHeight(b.getRight())) + 1;\n b.setHeight(bH);\n int aH = Math.max(findHeight(a.getLeft()), bH) + 1;\n a.setHeight(aH);\n hAndBF(a);\n hAndBF(b);\n return a;\n }", "@Override\n public void deleteRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB) {\n assert false : \"shouldn't call this method\";\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 }", "private BinarySearchTree deleteLeftMost(BinarySearchTree tree){\r\n\t\t\r\n\t\tif(tree.getLeftChild() == null){\r\n\t\t\t//this is the node we want. No left child\r\n\t\t\t//Right child might exist\r\n\t\t\t\r\n\t\t\treturn tree.getRightChild();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tBinarySearchTree replacement = deleteLeftMost(tree.getLeftChild());\r\n\t\t\ttree.attachRightSubtree(replacement);\r\n\t\t\treturn tree;\r\n\t\t}\r\n\t}", "private Node caseTwoChildren(Node deleteThis) {\r\n\r\n Node next = getMin(deleteThis.getRight()),\r\n child, parent;\r\n deleteThis.setKey(next.getKey());\r\n child = next.getRight();\r\n parent = next.getParent();\r\n if (parent.getLeft() == next) {\r\n parent.setLeft(child);\r\n } else {\r\n parent.setRight(child);\r\n }\r\n if (child != null) {\r\n child.setParent(parent);\r\n }\r\n return next;\r\n }", "private BSTNode<E> replacementSubtreeFromChildren(BSTNode<E> left,\r\n\t\t\tBSTNode<E> right) {\r\n\t\t\r\n\t\tif (left == null && right == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tif (left != null && right == null)\r\n\t\t\treturn left;\r\n\t\tif (left == null && right != null)\r\n\t\t\treturn right;\r\n\t\t\r\n\t\tBSTNode<E> root = null;\r\n\t\t\r\n\t\troot = right;\r\n\t\twhile (root.left != null) {\r\n\t\t\troot = root.left;\r\n\t\t}\r\n\t\tright = right.remove(root.value);\r\n\t\t\r\n\t\t\r\n\t\troot.left = left;\r\n\t\troot.right = right;\r\n\t\t\r\n\t\t// not a simple case => return modified node\r\n\t\treturn root;\r\n\t}", "public void fixDelete(Node<E> x) {\n \t\twhile (x != root && x.getColor() == 'B') {\n\n\t\t\tif (x == x.getParent().getLeftChild()) {\n\t\t\t\tNode<E> tempNode = x.getParent().getRightChild();\n\t\t\t\tif (tempNode.getColor() == 'R') {\n\t\t\t\t\t// case 1\n\t\t\t\t\ttempNode.setColor('B');\n\t\t\t\t\tx.getParent().setColor('R');\n\t\t\t\t\tleftRotate(x.getParent());\n\t\t\t\t\ttempNode = x.getParent().getRightChild();\n\t\t\t\t}\n\n\t\t\t\tif (tempNode.getLeftChild().getColor() == 'B' && tempNode.getRightChild().getColor() == 'B') {\n\t\t\t\t\t// case 2\n\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\tx = x.getParent();\n\t\t\t\t} else {\n\t\t\t\t\tif (tempNode.getRightChild().getColor() == 'B') {\n\t\t\t\t\t\t// case 3\n\t\t\t\t\t\ttempNode.getLeftChild().setColor('B');\n\t\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\t\trightRotate(tempNode);\n\t\t\t\t\t\ttempNode = x.getParent().getRightChild();\n\n\t\t\t\t\t}\n\t\t\t\t\t// case 4\n\t\t\t\t\ttempNode.setColor(x.getParent().getColor());\n\t\t\t\t\tx.getParent().setColor('B');\n\t\t\t\t\ttempNode.getRightChild().setColor('B');\n\t\t\t\t\tleftRotate(x.getParent());\n\t\t\t\t\tx = root;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tNode<E> tempNode = x.getParent().getLeftChild();\n\n\t\t\t\tif (tempNode.getColor() == 'R') {\n\t\t\t\t\ttempNode.setColor('B');\n\t\t\t\t\tx.getParent().setColor('R');\n\t\t\t\t\trightRotate(x.getParent());\n\t\t\t\t\ttempNode = x.getParent().getLeftChild();\n\t\t\t\t}\n\t\t\t\tif (tempNode.getRightChild().getColor() == 'B' && (tempNode.getLeftChild().getColor() == 'B')) {\n\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\tx = x.getParent();\n\t\t\t\t} else {\n\t\t\t\t\tif (!(tempNode.getLeftChild().getColor() == 'B')) {\n\t\t\t\t\t\ttempNode.getRightChild().setColor('B');\n\t\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\t\tleftRotate(tempNode);\n\t\t\t\t\t\ttempNode = x.getParent().getLeftChild();\n\t\t\t\t\t}\n\n\t\t\t\t\ttempNode.setColor(x.getParent().getColor());\n\t\t\t\t\tx.getParent().setColor('B');\n\t\t\t\t\ttempNode.getLeftChild().setColor('B');\n\t\t\t\t\trightRotate(x.getParent());\n\t\t\t\t\tx = root;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tx.setColor('B');\n }", "protected Edge makeEdge(Node p_a, Node p_b) {\n\t\tif(!isDirectedGraph && p_a.hashCode() > p_b.hashCode()) {\n\t\t\treturn new Edge(p_b, p_a);\n\t\t} else {\n\t\t\treturn new Edge(p_a, p_b);\n\t\t}\n\t}", "void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);", "private int joinFirstCase(AVLTree t1, IAVLNode x, AVLTree t2) {\r\n\t\t\t int returnValue = 0;\r\n\t\t\t IAVLNode curr = t2.getRoot();\r\n\t\t\t \r\n\t\t\t while(true) {\r\n\t\t\t\t if(curr.getHeight() <= t1.getRoot().getHeight())\r\n\t\t\t\t\t break;\r\n\t\t\t\t if(curr.getLeft().getHeight() == -1)\r\n\t\t\t\t\t break;\r\n\t\t\t\t curr = curr.getLeft();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t if(t2.getRoot() == curr) {\r\n\t\t\t\t curr.setLeft(x);\r\n\t\t\t\t x.setParent(curr);\r\n\t\t\t\t curr.setHeight(curr.getHeight() + 1 );\r\n\t\t\t\t return 0;\r\n\t\t\t\t\t\t \r\n\t\t\t }\r\n\t\t\t returnValue = t2.getRoot().getHeight() - curr.getHeight();\r\n\t\t\r\n\t\t\t //replacing pointers\r\n\t\t\t x.setRight(curr);\r\n\t\t\t x.setParent(curr.getParent());\r\n\t\t\t curr.getParent().setLeft(x);\r\n\t\t\t curr.setParent(x);\r\n\t\t\t x.setLeft(t1.getRoot());\r\n\t\t\t t1.getRoot().setParent(x);\r\n\t\t\t t1.setRoot(t2.getRoot());\r\n\t\t\t x.setHeight(Math.max(x.getRight().getHeight(),x.getLeft().getHeight()) + 1);\r\n\t\t\t \r\n\t\t\t t2.minimum = t1.minimum;\r\n\t\t\t \r\n\t\t\t //FIXING NEW TREE CREATED\r\n\t\t\t HieghtsUpdating(x);\r\n\t\t\t SizesUpdate(x);\r\n\t\r\n\t\t\t return returnValue;\r\n\t\t\t \r\n\t\t}", "void cascadingCut(Nodefh node){\n\t\tif(node.Parent == null){\n\t\t\treturn;\n\t\t}\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Right.Right = node.Right;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t}\n\t\tfhInsert(node);\n\t\tif(node.Parent.ChildCut == true){\n\t\t\tcascadingCut(node.Parent);\n\t\t}\n\t\telse{\n\t\t\tnode.Parent.ChildCut = true;\n\t\t}\n\t\tnode.Parent = null;\n\t}", "public boolean isRealNode() {\n\t\t\tif (this.getHeight() != -1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position when it is expanded (within scroll pane bounds)\n Node rootNode = nodes.get(0);\n VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();\n rootVBox.layout();\n Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal();\n rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY()));\n rootVBox.layout();\n\n for (int i = 0; i < nodes.size(); i++) {\n Pane containerPane = nodes.get(i).getContainerPane();\n //reposition node to the center of its children\n ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren();\n if (!genericNodes.isEmpty()) {\n nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2);\n }\n\n for (int j = 0; j < containerPane.getChildren().size(); j++) {\n if (containerPane.getChildren().get(j) instanceof Edge) {\n containerPane.getChildren().remove(j);\n j--;\n }\n }\n }\n redrawEdges(rootNode);\n }", "private void removeEdge() {\n boolean go = true;\n int lastNode;\n int proxNode;\n int atualNode;\n if ((parentMatrix[randomChild][0] != 1) &&\n (childMatrix[randomParent][0] != 1)) {\n lastNode =\n parentMatrix[randomChild][parentMatrix[randomChild][0] - 1];\n for (int i = (parentMatrix[randomChild][0] - 1); (i > 0 && go); i--)\n { // remove element from parentMatrix\n atualNode = parentMatrix[randomChild][i];\n if (atualNode != randomParent) {\n proxNode = atualNode;\n parentMatrix[randomChild][i] = lastNode;\n lastNode = proxNode;\n }\n else {\n parentMatrix[randomChild][i] = lastNode;\n go = false;\n }\n }\n if ((childMatrix[randomParent][0] != 1) &&\n (childMatrix[randomParent][0] != 1)) {\n lastNode = childMatrix[randomParent][\n childMatrix[randomParent][0] - 1];\n go = true;\n for (int i = (childMatrix[randomParent][0] - 1); (i > 0 &&\n go); i--) { // remove element from childMatrix\n atualNode = childMatrix[randomParent][i];\n if (atualNode != randomChild) {\n proxNode = atualNode;\n childMatrix[randomParent][i] = lastNode;\n lastNode = proxNode;\n }\n else {\n childMatrix[randomParent][i] = lastNode;\n go = false;\n }\n } // end of for\n }\n childMatrix[randomParent][(childMatrix[randomParent][0] - 1)] = -4;\n childMatrix[randomParent][0]--;\n parentMatrix[randomChild][(parentMatrix[randomChild][0] - 1)] = -4;\n parentMatrix[randomChild][0]--;\n }\n }", "private void addElementNode(BaleElement nbe,int prior)\n{\n if (nbe.getBubbleType() != BaleFragmentType.NONE) {\n BaleElement.Branch bbe = (BaleElement.Branch) nbe;\n if (cur_parent == root_element) {\n\t int j = -1;\n\t for (int i = new_children.size() - 1; i >= 0; --i) {\n\t BaleElement celt = new_children.get(i);\n\t if (celt.isComment() || celt.isEmpty()) j = i;\n\t else break;\n\t }\n\t if (j >= 0) {\n\t while (j < new_children.size()) {\n\t BaleElement celt = new_children.remove(j);\n\t bbe.add(celt);\n\t }\n\t }\n }\n else {\n\t int j = -1;\n\t for (int i = cur_parent.getElementCount() - 1; i >= 0; --i) {\n\t BaleElement celt = cur_parent.getBaleElement(i);\n\t if (celt.isComment() || celt.isEmpty()) j = i;\n\t else break;\n\t }\n\t if (j >= 0) {\n\t while (j < cur_parent.getElementCount()) {\n\t BaleElement celt = cur_parent.getBaleElement(j);\n\t cur_parent.remove(j,j);\n\t bbe.add(celt);\n\t }\n\t }\n }\n }\n else if (nbe.isComment() && prior > 0 && cur_parent != root_element) {\n BaleElement.Branch bbe = (BaleElement.Branch) nbe;\n int n = cur_parent.getElementCount();\n prior -= 1;\t\t\t// is this what we want?\n int j = n-prior;\n for (int i = 0; i < prior; ++ i) {\n\t BaleElement celt = cur_parent.getBaleElement(j);\n\t cur_parent.remove(j,j);\n\t bbe.add(celt);\n }\n }\n else if (nbe.isComment() && prior > 0 && cur_parent == root_element) {\n BaleElement.Branch bbe = (BaleElement.Branch) nbe;\n int n = new_children.size();\n int j = n-prior+1;\n for (int i = 0; i < prior-1; ++ i) {\n\t BaleElement celt = new_children.get(j);\n\t new_children.remove(j);\n\t bbe.add(celt);\n }\n }\n\n if (cur_parent == root_element) {\n new_children.add(nbe);\n }\n else {\n cur_parent.add(nbe);\n }\n}", "@Test\n\t public void testGetNode() {\n\t\tDGraph g1 = null;\n\t\tDGraph g = initFactory(g1);\n\t\tg.removeNode(1);\n\t\tg.removeNode(2);\n\t\t//g.removeNode(4);\n\t\tassertTrue(g.getNode(1)==null);\n\t\tassertTrue(g.getNode(2)==null);\n\t\tassertTrue(g.getNode(3)!=null);\n\t}", "private void rebalanceLeft(TreeNodeDataType n) {\n left(n);\r\n \r\n \r\n }", "private void awayFromCycle(Graph graph, Node a, Node b, Node c) {\n if ((graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, c) == Endpoint.ARROW) &&\n (graph.getEndpoint(c, a) == Endpoint.CIRCLE)) {\n if (graph.isDirectedFromTo(a, b) && graph.isDirectedFromTo(b, c)) {\n graph.setEndpoint(c, a, Endpoint.TAIL);\n changeFlag = true;\n }\n }\n }", "private void deleteDegreeOneChild(Node curr, AtomicReference<Node> rootRef) {\n\t\tNode child = curr.right.isNull ? curr.left : curr.right;\n replaceNode(curr, child, rootRef);\n if(curr.color == Color.BLACK) {\n if(child.color == Color.RED) {\n child.color = Color.BLACK;\n } else {\n adjustRootDeficiency(child, rootRef);\n }\n }\n\t}", "@Test\n public void tr0()\n {\n Graph g = new Graph(1);\n Set<Integer> nodes = new TreeSet<Integer>();\n nodes.add(0);\n assertTrue(g.reachable(nodes, nodes));\n }", "@Test\r\n public void testRemoveEdge() {\r\n System.out.println(\"removeEdge\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n int expectedResult = 0;\r\n int result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1Element, v2Element, edgeElement);\r\n\r\n expectedResult = 1;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeEdge(e);\r\n\r\n expectedResult = 0;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n }", "@Test\n public void tr1()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n assertFalse(graph.reachable(sources, targets));\n }", "void attachToLeft(Node newNode)\n {\n newNode.left = left;\n newNode.right = this;\n newNode.right.left = newNode;\n newNode.left.right = newNode;\n }", "public void removeEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tedges.remove(edge);\n\t}", "@Schema(description = \"target node of the connection\")\n public String getNodeB() {\n return nodeB;\n }", "public boolean isHierarchical() {\n/* 2889 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private Node removeElement() {\n if (this.leftChild != null) {\n if (this.rightChild != null) {\n Node current = this.rightChild;\n\n while (current.leftChild != null) {\n current = current.leftChild;\n }\n\n //swap\n E value = this.value;\n this.value = current.value;\n current.value = value;\n\n this.rightChild = this.rightChild.removeElement(current.value);\n return this.balance();\n } else {\n return this.leftChild;\n }\n } else {\n return this.rightChild;\n }\n }", "public void setNoLink(DecisionTreeNode node) {\n this.setLeftChild(node);\n }", "private Node caseOneChild(Node deleteThis) {\r\n\r\n Node child, parent;\r\n if (deleteThis.getLeft() != null) {\r\n child = deleteThis.getLeft();\r\n } else {\r\n child = deleteThis.getRight();\r\n }\r\n parent = deleteThis.getParent();\r\n child.setParent(parent);\r\n\r\n\r\n if (parent == null) {\r\n this.root = child; // Poistettava on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(child);\r\n } else {\r\n parent.setRight(child);\r\n }\r\n return deleteThis;\r\n }", "@Test \r\n void create_edge_between_to_nonexisted_vertexes() {\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }", "private void checkEdgeExistance(Node a, Node b, int weight) {\n for (Edge edge : a.getEdges()) {\n if (edge.getSource() == a && edge.getDestination() == b) {\n edge.setWeight(weight);\n return;\n }\n }\n a.getEdges().add(new Edge(a, b, weight));\n }", "void fixViolation(Node node){\n\t\tNode parentPtr = nil;\n\t\tNode grParentPtr = nil;\n\t\t\n\t\twhile( node != root && node.colour != \"Black\" && node.parent.colour == \"Red\" && node.parent.parent != nil){\n\t\t\t\n\t\t\tparentPtr = node.parent;\n\t\t\tgrParentPtr = node.parent.parent;\n\t\t\t//case A\n\t\t\t//parent of node is the left child of grandparent\n\t\t\tif(parentPtr == grParentPtr.left){\n\t\t\t\tNode unclePtr = grParentPtr.right;\n\t\t\t\t\n\t\t\t\t//case 1 \n\t\t\t\t//Uncle is red in color\n\t\t\t\tif(unclePtr != nil && unclePtr.colour == \"Red\"){\n\t\t\t\t\tgrParentPtr.colour = \"Red\";\n\t\t\t\t\tparentPtr.colour = \"Black\";\n\t\t\t\t\tunclePtr.colour = \"Black\";\n\t\t\t\t\tnode = grParentPtr;\n\t\t\t\t}else{\n\t\t\t\t\t//case 2\n\t\t\t\t\t//of node is the right child of its parent\n\t\t\t\t\tif(node == parentPtr.right){\n\t\t\t\t\t\trotateLeft(parentPtr);\n\t\t\t\t\t\tnode = parentPtr;\n\t\t\t\t\t\tparentPtr = node.parent;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//case 3\n\t\t\t\t\t//node is the left child of its parent left rotation is required\n\t\t\t\t\trotateRight(grParentPtr);\n\t\t\t\t\tString temp = parentPtr.colour;\n\t\t\t\t\tparentPtr.colour = grParentPtr.colour;\n\t\t\t\t\tgrParentPtr.colour = temp;\n\t\t\t\t\tnode = parentPtr;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//case B\n\t\t\t//parent of the node is the right child of grand parent\n\t\t\tif(parentPtr == grParentPtr.right){\n\t\t\t\tNode unclePtr = grParentPtr.left;\n\t\t\t\t//case 1\n\t\t\t\t//uncle pointer is red\n\t\t\t\tif(unclePtr != nil && unclePtr.colour == \"Red\"){\n\t\t\t\t\tgrParentPtr.colour = \"Red\";\n\t\t\t\t\tparentPtr.colour = \"Black\";\n\t\t\t\t\tunclePtr.colour = \"Black\";\n\t\t\t\t\tnode = grParentPtr;\n\t\t\t\t}else{\n\t\t\t\t\t//case 2\n\t\t\t\t\t//node is the left child of its parent right rotation is required\n\t\t\t\t\tif(node == parentPtr.left){\n\t\t\t\t\t\trotateRight(parentPtr);\n\t\t\t\t\t\tnode = parentPtr;\n\t\t\t\t\t\tparentPtr = node.parent;\n\t\t\t\t\t}\n\t\t\t\t\t//case 3\n\t\t\t\t\t//node is the right child of its parent left rotation is required\n\t\t\t\t\trotateLeft(grParentPtr);\n\t\t\t\t\tString temp = parentPtr.colour;\n\t\t\t\t\tparentPtr.colour = grParentPtr.colour;\n\t\t\t\t\tgrParentPtr.colour = temp;\n\t\t\t\t\tnode = parentPtr;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\troot.colour = \"Black\";\n\t}", "@Override\n\tpublic boolean mergeWith(BUEdge other) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public abstract Node getBoundingNode();", "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 }", "private void join (Block b) {\n\t\tArrayList<Block> neighbors = getAdj(b); // All of the neighbors.\n\t\tfor (Block neighbor: neighbors) { // Iterates through all of the neighbors.\n\t\t\tif (neighbor.t == ' ') { // Important, checks if the neighbor is a wall or not.\n\t\t\t\tfor (Block member: neighbor.tree) {\n\t\t\t\t\tb.tree.add(member);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Block member : b.tree) { // Iterates through all of the members of the tree.\n\t\t\tif (member.t == ' ') member.tree = b.tree; // Sets the trees of the members to the shared tree. \n\t\t}\n\t\tb.t = ' ';\n\t}", "@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeleteSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a\")\n .and()\n .execute();\n\n // Now look up node A ...\n assertTrue(testWorkspaceRoot.list().length == 0);\n assertFalse(new File(testWorkspaceRoot, \"a\").exists());\n }", "private void awayFromColliderAncestorCycle(Graph graph) {\n List<Node> nodes = graph.getNodes();\n\n for (Node B : nodes) {\n List<Node> adj = graph.getAdjacentNodes(B);\n\n if (adj.size() < 2) {\n continue;\n }\n\n ChoiceGenerator cg = new ChoiceGenerator(adj.size(), 2);\n int[] combination;\n\n while ((combination = cg.next()) != null) {\n Node A = adj.get(combination[0]);\n Node C = adj.get(combination[1]);\n\n //choice gen doesnt do diff orders, so must switch A & C around.\n// awayFromCollider(graph, A, B, C);\n// awayFromCollider(graph, C, B, A);\n// awayFromAncestor(graph, A, B, C);\n// awayFromAncestor(graph, C, B, A);\n// awayFromCycle(graph, A, B, C);\n// awayFromCycle(graph, C, B, A);\n ruleR1(A, B, C, graph);\n ruleR1(C, B, A, graph);\n ruleR2(A, B, C, graph);\n ruleR2(C, B, A, graph);\n\n }\n }\n }", "protected void notifyChildRemoval(FONode node) {\n //nop\n }", "public DirectedAcyclicGraphImpl() {\r\n super();\r\n topologicalsorting = new TopologicalSorting( this );\r\n }", "private PersistentLinkedList<T> pop() {\n //the latest element won't become empty\n int index = this.treeSize - 1;\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n ArrayList<Node<T>> newNodes = new ArrayList<>();\n newNodes.add(newRoot);\n ArrayList<Integer> newNodesIndices = new ArrayList<>();\n\n for (int b = base; b > 1; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n newNodes.add(currentNewNode);\n newNodesIndices.add(index / b);\n index = traverseData.index;\n }\n newNodesIndices.add(index);\n\n for (int i = 0; i < branchingFactor && i < index; i++) {\n currentNewNode.set(i, currentNode.get(i));\n }\n currentNewNode.set(index, null);\n\n if (index == 0) {\n int latestIndex = newNodes.size() - 2;\n newNodes.get(latestIndex).set(newNodesIndices.get(latestIndex), null);\n\n for (int i = latestIndex; i > 0; i--) {\n if (newNodesIndices.get(i) == 0) {\n newNodes.get(i - 1).set(newNodesIndices.get(i - 1), null);\n } else {\n break;\n }\n }\n }\n\n if (newNodes.size() > 1) {\n int nonNullChildren = 0;\n for (Node<T> child : newRoot.children) {\n if (child != null) {\n nonNullChildren++;\n }\n }\n if (nonNullChildren == 1) { //need new root\n newRoot = newRoot.get(0);\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth - 1,\n this.base / branchingFactor, this.treeSize - 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }\n }\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize - 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "protected void siftDown() {\r\n\t\tint parent = 0, child = (parent << 1) + 1;// preguntar porque 0 y no 1\r\n\t\t\r\n\t\twhile (child < theHeap.size()) {\r\n\t\t\tif (child < theHeap.size() - 1\r\n\t\t\t\t\t&& compare(theHeap.get(child), theHeap.get(child + 1)) > 0)\r\n\t\t\t\tchild++; // child is the right child (child = (2 * parent) + 2)\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tparent = child;\r\n\t\t\tchild = (parent << 1) + 1; // => child = (2 * parent) + 1\r\n\t\t}\r\n\t}", "@Test\n\tpublic void removeEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertTrue(graph.removeEdge(edge_0));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().size() == 1);\n\t}", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "public boolean isDirected();", "public boolean isDirected();", "private void generateGhost() {\r\n\t\ttry {\r\n\t\t\tghost = (FallingPiece)falling.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\twhile(moveIfNoConflict(ghost.moveDown(), ghost));\t\t\r\n\t\tfor (BlockDrawable block : ghost.allBlocks())\r\n\t\t\tblock.setGhost(true);\r\n\t}", "public void setNodeCoherent(boolean b) {\n }", "protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}", "Liste<? extends Binarbre<E>> ancestors();", "public void deleteNode(BinaryTreeNode node) // Only leaf nodes and nodes with degree 1 can be deleted. If a degree 1 node is deleted, it is replaced by its subtree.\r\n {\n if(!node.hasRightChild() && !node.hasLeftChild()){\r\n if(node.mActualNode.mParent.mRightChild == node.mActualNode) {\r\n\r\n node.mActualNode.mParent.mRightChild = null;\r\n }\r\n else if(node.mActualNode.mParent.mLeftChild == node.mActualNode) {\r\n\r\n node.mActualNode.mParent.mLeftChild = null;\r\n }\r\n //node.mActualNode = null;\r\n\r\n }\r\n //if deleted node has degree 1 and has only left child\r\n else if(node.hasLeftChild() && !node.hasRightChild()){\r\n node.mActualNode.mLeftChild.mParent = node.mActualNode.mParent;\r\n //if deleted node is left child of his father\r\n if(node.mActualNode.mParent.mLeftChild == node.mActualNode)\r\n node.mActualNode.mParent.mLeftChild = node.mActualNode.mLeftChild;\r\n //if deleted node is right child of his father\r\n else {\r\n\r\n node.mActualNode.mParent.mRightChild = node.mActualNode.mLeftChild;\r\n }\r\n }\r\n // if deleted node has degree 1 and has only right child\r\n else if(node.hasRightChild() && !node.hasLeftChild()){\r\n node.mActualNode.mRightChild.mParent = node.mActualNode.mParent;\r\n\r\n //if node is left child of his father\r\n if(node.mActualNode.mParent.mLeftChild == node.mActualNode) {\r\n\r\n\r\n node.mActualNode.mParent.mLeftChild = node.mActualNode.mRightChild;\r\n\r\n }\r\n //if node is right child of his father\r\n else\r\n node.mActualNode.mParent.mRightChild = node.mActualNode.mRightChild;\r\n\r\n\r\n }\r\n else\r\n System.out.println(\"Error : node has two child\");\r\n\r\n }", "private void awayFromCollider(Graph graph, Node a, Node b, Node c) {\n Endpoint BC = graph.getEndpoint(b, c);\n Endpoint CB = graph.getEndpoint(c, b);\n\n if (!(graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, b) == Endpoint.ARROW)) {\n if (CB == Endpoint.CIRCLE || CB == Endpoint.TAIL) {\n if (BC == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, b, c)) {\n return;\n }\n\n graph.setEndpoint(b, c, Endpoint.ARROW);\n changeFlag = true;\n }\n }\n\n if (BC == Endpoint.CIRCLE || BC == Endpoint.ARROW) {\n if (CB == Endpoint.CIRCLE) {\n graph.setEndpoint(c, b, Endpoint.TAIL);\n changeFlag = true;\n }\n }\n }\n }" ]
[ "0.5944471", "0.5562143", "0.5504375", "0.5442457", "0.5407396", "0.5338226", "0.5294936", "0.5286568", "0.5280353", "0.5266047", "0.5175182", "0.51492053", "0.5141445", "0.51401156", "0.51293176", "0.5094881", "0.5090036", "0.5081714", "0.5059328", "0.5053244", "0.50452304", "0.503664", "0.50293773", "0.5027686", "0.5016461", "0.5016461", "0.5005241", "0.5001624", "0.5000833", "0.49779263", "0.49778262", "0.49691433", "0.49673644", "0.49660003", "0.49550298", "0.49472934", "0.4946278", "0.49441832", "0.49352455", "0.4932988", "0.49250916", "0.4919529", "0.4916508", "0.49019948", "0.4886853", "0.48745462", "0.48724487", "0.48714924", "0.48697886", "0.48656708", "0.4865252", "0.48606482", "0.48606285", "0.4847463", "0.48456693", "0.48398218", "0.4839438", "0.48361465", "0.48351428", "0.4831543", "0.48315394", "0.48245558", "0.48110786", "0.48093948", "0.48089367", "0.4800795", "0.48000395", "0.4795195", "0.47930616", "0.47927237", "0.4792129", "0.47901574", "0.47885087", "0.47882676", "0.47800693", "0.47743312", "0.47708893", "0.47629592", "0.47599488", "0.47590986", "0.47553945", "0.47532046", "0.47502255", "0.47466663", "0.47451752", "0.4742366", "0.47423482", "0.47399378", "0.47381026", "0.4735985", "0.47325417", "0.47321713", "0.4729489", "0.4729489", "0.47225368", "0.47197863", "0.47197428", "0.47168413", "0.47166142", "0.47151893" ]
0.5495248
3
Getters Synchronisation (attendre fin de la saisie) par mutex
public String getprenom() { return prenom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getLock() {\n return dataLock;\n }", "public Lock getLock();", "public void synchronize(){ \r\n }", "public abstract ReentrantLock getLock();", "@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public Lock getLock() {\n return lock;\n }", "@Override\n @ReturnsLock(\"this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@Override\n @ReturnsLock(\"L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "Thread getLocker();", "void contentsSynchronized();", "void lock();", "final Object getLockObject() {\n return timeManager;\n }", "@Override\n @ReturnsLock(\"N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "@Override\n @ReturnsLock(\"x:M\")\n public Object get(final C x, final C y) {\n return lock;\n }", "@Override\n\tpublic Lock getLock() {\n\t\treturn this.lock;\n\t}", "@Override\n @ReturnsLock(\"Bad4c.this:L\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public LockSync() {\n lock = new ReentrantLock();\n }", "LockStorage getLockStorage();", "public @NotNull ReentrantLock getLock() {\n return lock;\n }", "public Lock delegate() {\n return this.delegate;\n }", "public boolean getlock()\r\n\t{\r\n\t\tif(cnt > 10)\r\n\t\t{\r\n\t\t\tcnt = 0;\r\n\t\t\treturn unlocked;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@ReturnsLock(\"RW\")\n public ReadWriteLock getLock() {\n return rwLock;\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"***ready to get lock1\");\r\n\t\t\tsynchronized (holder.lock1) {\r\n\t\t\t\tnew Thread(new Task3(holder)).start();\r\n\t\t\t\tSystem.out.println(\"***get lock ->\"+Thread.currentThread().getName());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"***Lock1 ready to wait\");\r\n\t\t\t\t\tholder.lock1.wait();\r\n\t\t\t\t\tSystem.out.println(\"***Lock1 get,ready to Exit\");\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "final public Lock test_get_lock() {\r\n\t\treturn lock_;\r\n\t}", "public synchronized int get() { \n return this.soma_pares; \n }", "@Override\n @ReturnsLock(\"test.formals.C:N\")\n public Object get(final C a, final C b) {\n return lock;\n }", "public void lock() {\n\n }", "public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}", "public synchronized int getThreads()\n/* */ {\n/* 181 */ return this.threads;\n/* */ }", "@Override\r\n public void run()\r\n {\r\n // Boucle infinie\r\n while (true)\r\n {\r\n synchronized (this)\r\n {\r\n // Blocage du traitement tant que la liste est vide\r\n while (demandesAccesSC.size() == 0)\r\n {\r\n try\r\n {\r\n this.wait();\r\n }\r\n catch (InterruptedException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Traitement de chaque demande de SC\r\n Integer proc;\r\n while ((proc = demandesAccesSC.pollFirst()) != null)\r\n {\r\n \tsynchronized(this)\r\n \t{\r\n \t\twhile(this.accesScEnCours)\r\n \t\t{\r\n \t\t\ttry {\r\n\t\t\t\t\t\t\t\twait();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t} \t\t\t\r\n \t\t}\r\n \t}\r\n \t\r\n \tthis.accesScEnCours = true;\r\n try\r\n {\r\n stub.sendTo(new Message(masterId, TypeMessage.AUTORISER_ACCES_SC, proc, null));\r\n }\r\n catch (RemoteException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "@Override\r\n\tpublic boolean isSynchronized() {\n\t\treturn false;\r\n\t}", "void m2() {\n\n boolean locked = false;\n try {\n locked = lock.tryLock(4, TimeUnit.SECONDS);\n\n //可以设置lock为可打断的\n //可以在主线程中调用interrupt方法打断,然后当做异常处理\n// lock.lockInterruptibly();\n\n System.out.println(locked);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n if (locked) lock.unlock();\n }\n }", "public LockOperation[] getLocks() {\n return locks;\n }", "public Boolean getLockAll() {\n return lockAll;\n }", "@Override public void run()\n\t\t{\n\t\t\twhile (mutex)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t}\n\t\t\tmutex = true; \n\t\t\treadCount++;\n\t\t\tif (readCount == 1)\n\t\t\t{\n\t\t\twrt = true; // Locking writer when reader is active\n\t\t\t}\n\t\t\tmutex = false;\n\t\t\t// Critical Section \n\t\t\ttry {\n\t\t\t\t\tFile myObj = new File(\"shared.txt\"); \n\t\t\t\t\tScanner myReader = new Scanner(myObj); \n\t\t\t\t\tString data = myReader.nextLine(); \n\t\t\t\t\tSystem.out.println(\"Reading: \" + data); \n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e){}\n\n\t\t\t// Leave Critical section\n\t\t\twhile (mutex) { System.out.print(\"\"); } mutex = true;\n\t\t\treadCount--;\n\t\t\tif (readCount == 0) \n\t\t\t{\n\t\t\t\twrt = false; // Unlocking writer if all reading process is done.\n\t\t\t}\n\t\t\tmutex = false;\n\t\t}", "@NonNull\r\n public final Object getSeaLock() {\r\n return f_seaLock;\r\n }", "public ReentrantReadWriteLock getLogLock() {\n return logLock;\n }", "private Object metricLock() {\n return metricLock;\n }", "@Override\r\n\tpublic String[] getLockTokens() {\n\t\treturn null;\r\n\t}", "PLock getLock() {\n return getTextBuffer().getLock();\n }", "public static ArrayList<Teacher> getLockedDocenti() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_TEACHERS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Teacher> docentiBloccati = (ArrayList<Teacher>) rpp.parameters[0];\n\t\treturn docentiBloccati;\n\t}", "@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treaders++;\n\t\t\t}\n\t\t}", "public void lock_write() {\n boolean update = false;\n logger.log(Level.FINE,\"lock_write() \"+this.lockState+\".\");\n lock.lock();\n logger.log(Level.FINE,\"lock_write : taking mutex \"+this.lockState+\".\");\n switch(this.lockState){\n case WLC:\n this.lockState=State.WLT;\n logger.log(Level.INFO,\"writing with cache\");\n \t break;\n \t\t default: \t\n update = true;\n break;\n \t }\n lock.unlock();\n logger.log(Level.FINE,\"lock_write : the mutex with :\"+lockState+\".\");\n if(update){\n \tlogger.log(Level.INFO,\"Updating lock to WLT \"+lockState+\".\"); //Avant RLC\n \tthis.lockState=State.WLT; \n if(lockState!=State.WLT){\n logger.log(Level.SEVERE,\"Lock = \"+this.lockState+\" instead of WLT\"); //Bien mmis à WLT.\n }\n logger.log(Level.INFO,\"LockState was updated to \"+lockState+\".\");\n this.obj = client.lock_write(this.id); //BUG : se fait invalider en tant que reader et passe à NL entrant dans la boucle suivante \n // A mon avis : se fait invalider en tant que lecteur (d'ou un lock_incohérent = WLT). A voir \n // Est-ce qu'il s'auto-invalide, auquel cas, il faut vérifier invalidate_reader mais je crois qu'il y un test pour ce cas.\n // Quelqu'un d'autre l'invalide mais dans ce cas, le serveur devrait \"séquencer\" cette autre invalidation et le lock_write.\n if(lockState!=State.WLT){\n logger.log(Level.SEVERE,\"Lock = \"+this.lockState+\" instead of WLT\");\n }\n logger.log(Level.INFO,\"lock_write() : end with \"+lockState+\".\");\n }\n }", "@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (readers > 0 || writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriters++;\n\t\t\t}\n\t\t}", "public void lock_read() {\n boolean update = false;\n logger.log(Level.INFO,\"lock_read()\"+this.lockState);\n lock.lock();\n logger.log(Level.INFO,\"lock_read : taking mutex : \"+this.lockState);\n \t\tswitch(this.lockState){\n \t\t\tcase RLC :\n \t\t\t\tthis.lockState=State.RLT;\n logger.log(Level.INFO,\"reading in cache\");\n \t\t\tbreak;\n \t\t\tcase WLC:\n \t\t\t\tthis.lockState=State.RLT_WLC;\n \t\t\t\tlogger.log(Level.INFO,\"reading in cache as previous writer\");\n \t\t\tbreak;\n \t\t\tdefault:\n update = true;\n \t\t\tbreak;\t\t\t\t\t\n \t\t}\n lock.unlock();\n logger.log(Level.FINE,\"lock_read : release the lock with :\"+lockState+\".\");\n if(update){\n logger.log(Level.INFO,\"Updating lockState to RLT\");\n \tthis.lockState=State.RLT;\n logger.log(Level.INFO,\"Lockstate was updated to \"+lockState);\n if(this.lockState!=State.RLT){\n logger.log(Level.SEVERE,\"Lock = \"+lockState+\" instead of RLT\");\n }\n this.obj = client.lock_read(this.id);\n if(this.lockState!=State.RLT){\n logger.log(Level.SEVERE,\"Lock = \"+lockState+\" instead of RLT\");\n }\n logger.log(Level.INFO,\"lock_read(): end with \"+lockState);\n }\n \t}", "public List<Person> getListSynchronsprecher() {\n\t\treturn this.listSynchronsprecher;\n\t}", "public Result get(Get get, Integer lockId) throws IOException;", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tboolean bok = checkMinPath();\n\t\t\t\t\t\t\tif (bok) {\n\t\t\t\t\t\t\t\tcanRun = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (exitWhenGetNotLock) {// 获取不到锁,直接不执行,return\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\tif (canRun) {\n\t\t\t\t\t\t\t\t\tboolean bok1 = checkMinPath();\n\t\t\t\t\t\t\t\t\tif (bok1) {// 获取所成功\n\t\t\t\t\t\t\t\t\t\tgetLockSuccess();\n\t\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} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"同步等待...\");\n\t\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (KeeperException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"---ready to get lock1\");\r\n\t\t\tsynchronized (holder.lock1) {\r\n\t\t\t\tSystem.out.println(\"---get lock ->\"+Thread.currentThread().getName());\r\n\t\t\t\tSystem.out.println(\"---Lock1 ready to notify\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tholder.lock1.notify();\r\n\t\t\t\tSystem.out.println(\"---Lock1 notified,ready to Exit,Lock1 release\");\r\n\t\t\t}\r\n\t\t}", "public Object get() {\n while(isLocked() ) {\n try {\n Thread.sleep(10);\n }\n catch(InterruptedException ie) {\n // do nothing\n }\n }\n \n Object retVal = getHead();\n LAST_READ_TIME = now();\n return retVal;\n }", "@Override\n public void run() {\n synchronized (student) {\n if (!student.flag) {\n try {\n student.wait(); //立即释放锁\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(student.name + \":\" + student.age);\n //修改标记\n student.flag = false;\n //唤醒线程\n student.notify();\n }\n }", "void synchronizationDone();", "private void getEncParticipantes() {\n mEncuestasParticipantes = estudioAdapter.getListaEncuestaParticipantesSinEnviar();\n //ca.close();\n }", "@Override\n @ReturnsLock(\"a:L\")\n public Object get(final C a, final C b) {\n return a;\n }", "public SimpleLock writeLock() {\n\n\t\treturn writerLock;\n\t}", "@Override\n public void run() {\n while(true) {\n try {\n // Caixa dorme até que algum cliente o acorde\n ativo.acquire();\n // atende o cliente\n atender(atendido);\n // volta a estar disponível para atender um novo cliente\n disponivel = true;\n // incrementa o número de caixas a dormir (pois ele passará a dormir)\n this.mutexCaixasDormindo.acquire();\n SystemManager.getInstance().setNumeroCaixasDormindo(SystemManager.getInstance().getNumeroCaixasDormindo() + 1);\n this.mutexCaixasDormindo.release();\n // acorda o próximo cliente, caso haja algum\n SystemManager.getInstance().chamarProximoCliente();\n // incrementa a quantidade de caixas que etão disponíveis\n caixas.release();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public int getMutexBits() {\n/* 64 */ return this.mutexBits;\n/* */ }", "public void lock() {\r\n super.lock();\r\n }", "public synchronized List getBufferForWriting() {\n// if some writer is writing or some reader is reading, wait until no one is writing or reading \n while (readerNumber != 0) {\n try {\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n// when readerNumber == 0 \n readerNumber--; // now readderNumber == -1. \n return buffer;\n }", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }", "public static ArrayList<Student> getLockedStudenti() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_STUDENTS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Student> studentiBloccati = (ArrayList<Student>) rpp.parameters[0];\n\t\treturn studentiBloccati;\n\t}", "public int get(int index) {\r\n\t\treturn(this.vclock.get(index));\r\n\t}", "String getShortString() \t\t{ return \"MUTEX\"; }", "public int getLockon() {\r\n return lockon;\r\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public Object get() {\r\n Object res;\r\n synchronized (this) {\r\n while (empty) {\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n System.err.println(\"Unexpected interrupt\");\r\n }\r\n }\r\n res= data;\r\n empty= true;\r\n notifyAll();\r\n }\r\n return res;\r\n }", "@Override\n\tpublic boolean isLocked() { return true; }", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public boolean getShared(){\n return this.shared;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (lock1) {\n\t\t\t\t\tSystem.out.println(\"This is the lock1\");\n\t\t\t\t\tsynchronized (lock2) {\n\t\t\t\t\t\tSystem.out.println(\"This is the lock2\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public boolean synchronize() {\n\t\treturn false;\n\t}", "ManagementLockObject refresh();", "Shared shared();", "@Override public void run()\n {\n while (wrt)\n {\n System.out.print(\"\");\n }\n\n // Locking Writer and Reader wrt = true;\n mutex = true;\n // Critical section\n BufferedWriter out = null; \n try \n {\n\t\t\t\tout = new BufferedWriter(new FileWriter(\"shared.txt\", false)); \n\t\t\t\tvalue = value + 1;\n\t\t\t\tSystem.out.println(\"Writing: \" + (value)); \n\t\t\t\tout.write(String.valueOf(value)); \n\t\t\t\tout.close();\n } \n catch (IOException e){}\n\n // Leaving Critical section\n wrt = false;\n\tmutex = false;\n\t\t}", "public boolean isSynchronized() {\n return (getAccessFlags() & Constants.ACCESS_SYNCHRONIZED) > 0;\n }", "public boolean isSynchronized()\n {\n ensureLoaded();\n return m_flags.isSynchronized();\n }", "public List<ClientThread> getClients(){\n return clients;\n }", "@Test\n public void readTryLockShareTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final CountDownLatch countDownLatch = new CountDownLatch(5);\n final List<Integer> result = new ArrayList<Integer>();\n for (int i = 0; i < 5; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Integer r = testUse.getCountInReadTryLock(2000);\n if(r!=null){\n result.add(r);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(5, result.size());\n }", "private SingletonSyncBlock() {}", "public Queue<Student> getWaitlist(){\n return waitlist;\n }", "@Override\r\n public void run() {\n try {\r\n synchronized (lock) {\r\n System.out.println(\"begin wait\");\r\n lock.wait();\r\n System.out.println(\"end wait\");\r\n }\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "private void inicializareVariablesManejoHilos() {\n\t\tmanejadorHilos = Executors.newFixedThreadPool(LONGITUD_COLA);\n\t\tbloqueoJuego = new ReentrantLock();\n\t\tesperarInicio = bloqueoJuego.newCondition();\n\t\tesperarTurno = bloqueoJuego.newCondition();\n\t\tfinalizar = bloqueoJuego.newCondition();\n\t\tjugadores = new Jugador[LONGITUD_COLA];\n\t}", "Completable getCompletable();", "@Override\n public void sync(){\n }", "private void getTempRojoBhcs(){\n mTempRojoBhcs = estudioAdapter.getListaTempRojoBhcSinEnviar();\n //ca.close();\n }", "public ReentrantReadWriteLock getStateLock() {\n return stateLock;\n }", "private void getLactanciasMaternas() {\n mLactanciasMaternas = estudioAdapter.getListaLactanciaMaternasSinEnviar();\n //ca.close();\n }", "public Lock getLoginInitLock()\n {\n return loginInitLock;\n }", "Lock getComponentAccessTokenLock();", "public synchronized List getBufferForReading() {\n// if some writer is writing, wait until no writer is writing \n while (readerNumber < 0) {\n try {\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n// when readerNumber >= 0 \n readerNumber++;\n return buffer;\n }", "public RCC() {\n v = new Semaphore(1);\n s = new Semaphore(0);\n mutex = new Semaphore(1);\n suspendidos_s = 0;\n }", "V m19258a() throws CancellationException, ExecutionException, InterruptedException {\n acquireSharedInterruptibly(-1);\n return getValue();\n }", "public static synchronized void foo() {\n\n }", "protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"inside run() method.....\");\n\n\t\tlock();\n\n\t}", "@Override\n public void run() {\n if(Thread.currentThread().getName().equals(\"t1\")){\n synchronized(obj){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n System.out.println(\"t1拿到了obj的锁\");\n synchronized(obj2){\n\n }\n }\n }\n //当线程名等于t2 时 进入此方法\n if(Thread.currentThread().getName().equals(\"t2\")){\n // 线程t2 拿到obj2 的锁 然后线程进入休眠一秒状态 \n synchronized(obj2){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n System.out.println(\"t2拿到了obj2的锁\");\n synchronized(obj){\n\n }\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\t\tfor(int i = 0; i<2;i++){\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"正在等待\");\n\t\t\t\t\t\t//rl.lock();\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"得到锁\");\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}finally {\n\t\t\t\t\t\t//rl.unlock();\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"释放锁\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"=============\");\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }" ]
[ "0.6259019", "0.6068567", "0.59849685", "0.59075314", "0.58816445", "0.58731264", "0.5861049", "0.58329856", "0.5793413", "0.5761322", "0.5746664", "0.57292056", "0.57061744", "0.5666202", "0.5640241", "0.55839443", "0.55569625", "0.5537715", "0.5523909", "0.54961145", "0.5493344", "0.5478662", "0.5433852", "0.5430691", "0.5425976", "0.5422687", "0.54173577", "0.53784525", "0.5341637", "0.53204685", "0.5311147", "0.5293195", "0.52852446", "0.52759665", "0.52701336", "0.5266732", "0.52507585", "0.52368575", "0.5231077", "0.5211426", "0.5205616", "0.5196888", "0.518634", "0.51571727", "0.51354825", "0.5134972", "0.5132666", "0.5130436", "0.51249605", "0.50971186", "0.509363", "0.5093236", "0.50928986", "0.5083574", "0.50735676", "0.5072502", "0.5069808", "0.50635636", "0.5060028", "0.5056105", "0.50530154", "0.50522774", "0.5051941", "0.50494885", "0.50438464", "0.503599", "0.503599", "0.503599", "0.50356627", "0.50324255", "0.50296885", "0.50084746", "0.50040203", "0.49996406", "0.49901456", "0.49843815", "0.49828812", "0.49688572", "0.4968569", "0.49683568", "0.4962515", "0.49555933", "0.49506384", "0.49445662", "0.49406207", "0.49359262", "0.4934773", "0.49299735", "0.4923254", "0.49205208", "0.4917525", "0.49169406", "0.4908709", "0.49046835", "0.49018052", "0.4900761", "0.4899024", "0.48986268", "0.48981687", "0.48953095", "0.4889092" ]
0.0
-1
cPark is the object of CarPark class. Constructor for Application class
public Application() { pSlot = new ParkingSlot(); cPark = new CarPark(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CarPark() {\r\n\t\tthis(Constants.DEFAULT_MAX_CAR_SPACES,\r\n\t\t\t\tConstants.DEFAULT_MAX_SMALL_CAR_SPACES,\r\n\t\t\t\tConstants.DEFAULT_MAX_MOTORCYCLE_SPACES,\r\n\t\t\t\tConstants.DEFAULT_MAX_QUEUE_SIZE);\r\n\r\n\t\t// Initialise the parking spots avaliable.\r\n\t\tmaxCarSpaces = Constants.DEFAULT_MAX_CAR_SPACES\r\n\t\t\t\t- Constants.DEFAULT_MAX_SMALL_CAR_SPACES;\r\n\t\tmaxSmallCarSpaces = Constants.DEFAULT_MAX_SMALL_CAR_SPACES;\r\n\t\tmaxMotorCycleSpaces = Constants.DEFAULT_MAX_MOTORCYCLE_SPACES;\r\n\t\tmaxQueueSize = Constants.DEFAULT_MAX_QUEUE_SIZE;\r\n\t\ttotalSpaces = maxCarSpaces + maxSmallCarSpaces + maxMotorCycleSpaces;\r\n\r\n\t\t// Arrays to hold vehicles past/present.\r\n\t\tvehiclesInQueue = new ArrayList<Vehicle>(maxQueueSize);\r\n\t\tsatisfiedVehicles = new ArrayList<Vehicle>();\r\n\t\tdissatifiedVehicles = new ArrayList<Vehicle>();\r\n\r\n\t\t// Arrays to hold numbers of each type of vehicle + a list to hold the\r\n\t\t// lists.\r\n\t\tmotorCyclesParked = new ArrayList<Vehicle>();\r\n\t\tcarsParked = new ArrayList<Vehicle>();\r\n\t\tsmallCarsParked = new ArrayList<Vehicle>();\r\n\t\tallVehiclesParked = new ArrayList<ArrayList<Vehicle>>();\r\n\r\n\t\tallVehiclesParked.add(carsParked);\r\n\t\tallVehiclesParked.add(smallCarsParked);\r\n\t\tallVehiclesParked.add(motorCyclesParked);\r\n\r\n\t}", "public ParkingApp() {\n runApp();\n }", "public ParkedCar(String inputOwnerName, String inputCarMake, int inputModelYear,\n String inputLicensePlateNumber, int inputMinutesParked) {\n\n // validate instance variables\n if (inputOwnerName == null) { throw new IllegalArgumentException(\"owner name cannot be null\"); } \n if (inputCarMake == null) { throw new IllegalArgumentException(\"car make cannot be null\"); } \n if (inputModelYear < 1900) { throw new IllegalArgumentException(\"year model cannot be earlier than 1900\"); } \n if (inputModelYear > currentYear) { throw new IllegalArgumentException(\"year model cannot be later than 2020\"); }\n if (inputLicensePlateNumber == null) { throw new IllegalArgumentException(\"car license plate number cannot be null\"); } \n if (inputMinutesParked <= 0) { throw new IllegalArgumentException(\"minutes parked should be greater than 0\"); } \n\n ownerName = inputOwnerName;\n carMake = inputCarMake;\n modelYear = inputModelYear;\n carLicensePlateNumber = inputLicensePlateNumber;\n minutesParked = inputMinutesParked;\n }", "public void carParking() {\r\n\t\t\r\n\t}", "public EngineClass( int inCyl, String inFuel )\n {\n setCyl( inCyl );\n setFuel( inFuel );\n }", "public Car(String carname) {\n this.carname = carname;\n }", "public Car(){\n\t\t\n\t}", "public Carrier() {\n }", "public AppManager() {\n /** have a parking lot operator */\n ParkingLotOperatorInstance = new ParkingLotOperator();\n OperatorThread = new Thread(ParkingLotOperatorInstance);\n OperatorThread.start();\n ParkingLotOperatorInstance.startParkingLot();\n\n /** graceful shutdown */\n Runtime.getRuntime().addShutdownHook(new ProcessorHook());\n }", "public Car() {\n }", "public Car() {\n }", "@Override\n\tpublic void carEngine() {\n\n\t}", "public Car() {\r\n super();\r\n }", "Car()\r\n\t{\r\n\t\tSystem.out.println(\"hello\");\r\n\t}", "public CarWashConfigPK() {\n }", "public Car() {\n super();\n }", "public void setCarparktype(String carparktype) {\n this.carparktype = carparktype == null ? null : carparktype.trim();\n }", "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "public Carmodel() {\n this(\"CarModel\", null);\n }", "public Park(int parkId, String name, double latitude, double longitude, String washroom,\n String neighName, String neighURL, String streetNumber, String streetName,\n String[] facility, String[] feature) {\n this.parkId = parkId;\n this.name = name;\n this.latitude = latitude;\n this.longitude = longitude;\n this.washroom = washroom;\n this.neighbourhoodName = neighName;\n this.neighbourhoodurl = neighURL;\n this.streetNumber = streetNumber;\n this.streetName = streetName;\n this.facility = facility;\n this.feature = feature;\n }", "public QAQCMain(String appMode) {\n initComponents();\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n centerScreen();\n }", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public Car( double fuelEfficiency)\n {\n // initialise instance variables\n fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public Car(Engine engine, String brand, String model, String color, String serialNumber,\n double fuelConsumption, double fuelLevel, FuelTank fuelTank) {\n this.engine = engine;\n this.brand = brand;\n this.model = model;\n this.color = color;\n this.serialNumber = serialNumber;\n this.fuelTank = fuelTank;\n this.fuelConsumption = fuelConsumption;\n this.fuelLevel = fuelLevel;\n this.mirrors = new ArrayList<>();\n this.tires = new ArrayList<>();\n }", "public UsedCarWarehouse()\r\n {\r\n carStorage = new CarList();\r\n exitFlag = false;\r\n scan = new Scanner(System.in);\r\n }", "public String getCarparktype() {\n return carparktype;\n }", "public PokemonPark(){\n super(\"Pokemon Park\", \"Una vez por turno blabla\");\n }", "public Park(int parkId, String name, double latitude, double longitude, String washroom,\n String neighName, String neighURL, String streetNumber, String streetName) {\n this.parkId = parkId;\n this.name = name;\n this.latitude = latitude;\n this.longitude = longitude;\n this.washroom = washroom;\n this.neighbourhoodName = neighName;\n this.neighbourhoodurl = neighURL;\n this.streetNumber = streetNumber;\n this.streetName = streetName;\n }", "public Car() {\n\t\t\tmake = \"GM\";\n\t\t\tyear = 1900;\n\t\t\tmileage= 0;\n\t\t\tcarCost = 0;\n\t\t}", "public StockApp()\n {\n reader = new InputReader();\n manager = new StockManager();\n menuSetup();\n }", "public Car(String primaryKey, String name, String dealerKey, int year, Category category,\r\n double price, String displacementCC, int maxPower,\r\n String powerRPM, double torqueFtLb, String torqueRPM, DriveTrain driveTrain,\r\n Aspiration aspiration, double length, double width, double height, double weight,\r\n double maxSpeed, double acceleration, double braking, double cornering, double stability) {\r\n this.primaryKey = primaryKey;\r\n this.name = name;\r\n this.manufacturerKey = dealerKey;\r\n this.year = year;\r\n this.category = category;\r\n this.price = price;\r\n this.displacementCC = displacementCC;\r\n this.maxPower = maxPower;\r\n this.powerRPM = powerRPM;\r\n this.torqueFtLb = torqueFtLb;\r\n this.torqueRPM = torqueRPM;\r\n this.driveTrain = driveTrain;\r\n this.aspiration = aspiration;\r\n this.length = length;\r\n this.width = width;\r\n this.height = height;\r\n this.weight = weight;\r\n this.maxSpeed = maxSpeed;\r\n this.acceleration = acceleration;\r\n this.braking = braking;\r\n this.cornering = cornering;\r\n this.stability = stability;\r\n }", "public Car(double fuelEfficiency)\n {\n this.fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public CH340Application() {\n sContext = this;\n }", "private void initializeBoundary() {\n\t\tapp = new Application(model);\n\t}", "public void setCarparktypeid(Integer carparktypeid) {\n this.carparktypeid = carparktypeid;\n }", "public CarEdition() {\n ELContext context = FacesContext.getCurrentInstance().getELContext();\n app = (CarsaleApplication) FacesContext.getCurrentInstance().getApplication().getELResolver().getValue(context, null, \"carsaleApplication\");\n try {\n this.carId = Integer.valueOf(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"carId\"));\n this.car = searchCar(this.carId);\n } catch (Exception ex) {\n Logger.getLogger(CarDetail.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public EngineClass()\n {\n cyl = 10;\n fuel = new String( BATT );\n }", "public CarShowroom() {\n initialiseShowroom();\n calculateAveragePrice();\n setOldestCar();\n getPriciestCar();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_new_car);\n\n // Set up variables for accessing the elements of the view\n nameTextView = (TextView) findViewById(R.id.nickname_text);\n yearSpinner = (Spinner) findViewById(R.id.year_spinner);\n makeSpinner = (Spinner) findViewById(R.id.make_spinner);\n modelSpinner = (Spinner) findViewById(R.id.model_spinner);\n trimSpinner = (Spinner) findViewById(R.id.trim_spinner);\n textView = (TextView) findViewById(R.id.car_info);\n\n // Create a blank car object and object for accessing CarQueryAPI\n newCar = new Car();\n cars = new Cars(this);\n carQuery = new CarQueryAPI();\n\n // Listen for changes to the spinners\n yearSpinner.setOnItemSelectedListener(this);\n makeSpinner.setOnItemSelectedListener(this);\n modelSpinner.setOnItemSelectedListener(this);\n trimSpinner.setOnItemSelectedListener(this);\n\n // Start by populating the year spinner\n try {\n populateYearSpinner();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void setParkCombo(ArrayList<String> parkList) {\n\t\tlist = FXCollections.observableArrayList(parkList);\n\t\tparkNameCombo.setItems(list);\n\t}", "public ParkingSpace() {}", "public MTApplication(){\r\n\t\tsuper();\r\n\t}", "public Bicycle(int startCadence, int startSpeed, int startGear,\n String name) {\n System.out.println(\"Bicycle.Bicycle- has arguments\");\n this.gear = startGear;\n this.cadence = startCadence;\n this.speed = startSpeed;\n this.name = name;\n }", "public CarUpdateMB() {\n }", "Parking createParking();", "private ParkingLotApi()\r\n {\r\n }", "public Model() {\n\t \tentranceCarQueue = new CarQueue();\n\t entrancePassQueue = new CarQueue();\n\t paymentCarQueue = new CarQueue();\n\t exitCarQueue = new CarQueue();\n\t abonnementsPlaatsen = abonnementsPlaatsen < 0 ? 0 : abonnementsPlaatsen;\n\t numberOfOpenSpots =numberOfFloors*numberOfRows*numberOfPlaces;\n\t hoeveelheid = abonnementsPlaatsen;\n\t cars = new Car[numberOfFloors][numberOfRows][numberOfPlaces];\n\t \n\t /*\n\t\tguiframe=new JFrame(\"Parkeergarage Simulator\");\n\t\tscreen.setSize(800, 500);\n\t\tscreen.setLayout(null);\n\t \n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t Container Controlpanelview = getContentPane();\n\t Controlpanelview.add(cpview, BorderLayout.CENTER);\n\t Controlpanelview.add(simcontroller, BorderLayout.EAST);\n\t pack();\n\t screen.setVisible(true);\n\t\t\n\t updateViews(); */\n\t}", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "@Override\r\n\tpublic void start() {\n\t\tSystem.out.println(\"Car Started\");\r\n\t}", "public Application() {\n\t\tinitComponents();\n\t\tthis.service = new PacienteService();\n\t\tthis.AtualizarTabelaPacientes();\n\t\tthis.sexo = this.rd_nao_informado.getText();\n\t\tthis.cb_estados.setSelectedIndex(24);\n\t}", "public Car(String description)\r\n {\r\n this.description = description;\r\n customersName = \"\";\r\n }", "public OVChipkaart() {\n\n }", "public CarAccessBean () {\n super();\n }", "public BrickControlPi() {\r\n\t}", "public Park(int id, int maxCapacity, int actualCapacity, int maxChargingPlaces, int actualChargingPlaces, double power, int pharmacyID, int idParktype) {\n this.id = id;\n this.maxCapacity = maxCapacity;\n this.actualCapacity = actualCapacity;\n this.maxChargingPlaces = maxChargingPlaces;\n this.actualChargingPlaces = actualChargingPlaces;\n this.power = power;\n this.pharmacyID = pharmacyID;\n this.idParktype = idParktype;\n }", "public EngineClass(EngineClass inEngine)\n {\n cyl = inEngine.getCyl();\n fuel = inEngine.getFuel();\n }", "@Override\n protected void initialize() {\n if(sClimber.PreparedToClimb == true){\n sClimber.StageOneStart();\n sClimber.StageTwoStart();\n } else {\n end();\n }\n //sIntake.WristMove(mWristAngle);\n //sElevator.setHighGear(false);\n //sElevator.setPositionLowGear(mElevatorHieght);\n }", "public Classroom() {\n\t}", "public App() {\n\t\tContainer pane = getContentPane();\n\t\t\n\t\ttetapan = new JButton(\"Tetapan\");\n\t\tpane.add(tetapan);\n\t\ttetapan.setBounds(10, 20, 80, 30);\n\t\t// tetapan.addActionListener(arg0);\n\t\tcarian = new JTextField(\"Cari...\");\n\t\tpane.add(carian);\n\t\tcarian.setBounds(260, 20, 150, 30);\n\t\tcari = new JButton(\"Cari\");\n\t\tpane.add(cari);\n\t\tcari.setBounds(410, 20, 60, 30);\n\t\t// cari.addActionListener(arg0);\n\t}", "Classroom() {}", "public Car (String color, int wheels, double speed)\n {\n this.color = color;\n this.wheels = wheels;\n this.speed = speed;\n }", "public CarExternalizable() {\n System.out.println(\"in carExternalizable\");\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "Cab(){\n\t\tSystem.out.println(\"Cab Object Constructed..\");\n\t}", "protected void initialize() {\n \tclaw = Robot.getClaw();\n\n \tclaw.open();\n }", "public static void main(String[] args) {\n\t\tkiaCar kc = new kiaCar();\r\n\t\tkc.prinCar();\r\n\t}", "public Car(String brand, String model, int productionYear, float dailyRentalPrice, int passengers){\n super(brand,model,productionYear,dailyRentalPrice);\n this.passengers = passengers;\n }", "private void initialize() {\n\t\tservice = KCSClient.getInstance(this.getApplicationContext(), new KinveySettings(APP_KEY, APP_SECRET));\n\n BaseKinveyDataSource.setKinveyClient(service);\n }", "public Ch0209Car(String vin, double efficiency, double fuelCapacity) {\n super();\n this.vin = vin;\n this.efficiency = efficiency;\n this.fuelCapacity = fuelCapacity;\n }", "private Application(){\r\n theAccounts = new ArrayList<Account>();\r\n\r\n accountInTotal = 100;\r\n startingBonds = 10000;\r\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public BazaarApplicationImpl() {\r\n\t\tsuper();\r\n\r\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n vehicleType = \"CAR\";\r\n VehicleCtrl vehicleControl = new VehicleCtrl();\r\n ObservableList<String> list = FXCollections.observableArrayList(vehicleControl.getCarType());\r\n VehicleClassCB.getItems().clear();\r\n VehicleClassCB.setItems(list);\r\n }", "void initialiseShowroom(){\n currentCars.put(\"Aston Martin\", new Car(\"Aston Martin\", 50000, 2012));\n currentCars.put(\"BMW\", new Car(\"BMW\", 30000, 2014));\n currentCars.put(\"Chevrolet\", new Car(\"Chevrolet\", 20000, 2013));\n currentCars.put(\"Datsun\", new Car(\"Datsun\", 2000, 2001));\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public CarResource() {\n }", "@Test\n\tpublic void testCarWithWankelEngine() {\n\t\t\n\t\tOldStyleCarFactory factory = new OldStyleCarFactory() {\n\t\t\t@Override\n\t\t\tpublic Car createPremiumCombustionCar() {\n\t\t\t\tCombustionEngine engine = new WankelEngine();\n\t\t\t\tInternalCombustionCar car = new InternalCombustionCar(engine);\n\t\t\t\treturn car;\n\t\t\t}\n\t\t};\n\t\t\n\t\tCar testCar = factory.createPremiumCombustionCar();\n\t\ttestCar.start();\n\t\tassertTrue(testCar.isRunning());\n\t\ttestCar.stop();\n\t\tassertFalse(testCar.isRunning());\n\t}", "public Car(int floor, String color){\n\t\tthis.carPosition = floor;\n\t\tthis.carColor = color;\n\t}", "public Car(String make, String model, Color color){\n // set the arguments to the member variables.\n this.make = make;\n this.model = model;\n this.color = color;\n // the default speed will be 0 since the car isn't moving.\n speed = 0;\n }", "public void car(){\n\t\t\tSystem.out.println(\"My car is BMW\");\n\t\t}", "public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }", "public void init(Map<String, String> pParams, Application pApp) throws Exception;", "public void start() {\r\n\t\tSystem.out.println(\"start the car\");\r\n\t}", "public AirlineCompany() {\n\t}", "public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }", "public CarComponent() {\n callCount = 0;\n }", "public static void main(String[] args) {\n\t\tCar bmw = new Car();\r\n\t\tbmw.make=2021;\r\n\t\tbmw.colour=\"Blue\";\r\n\t\tbmw.transmission=\"Auto\";\r\n\tbmw.displayCharacteristics();\r\n\tbmw.accelarate();\r\n\tbmw.brake();\r\n\t\t\r\n\r\n\t}", "public ElectricCar(double enginePower) {\n super(0);\n\n this.enginePower = enginePower;\n }", "public MusicClientApp() {\n\n tlm = new TrackListModel(new RecordDto());\n rcm = new RecordComboBoxModel(new MusicCollectionDto());\n scm = new PlayerComboBoxModel(new ArrayList<>());\n sercm = new ServerComboBoxModel(new ArrayList<>());\n\n initComponents();\n\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n StartMusicClient smc = new StartMusicClient(MusicClientApp.this);\n new Thread(smc).start();\n }\n });\n }", "private SudokuSolverApplication() {\n\t}", "@Test\n\tvoid testParkCarForGivenCarDetailsAndNoSlotIsEmptyThenReturnTrue() {\n\t\tint totalSlots = 1;\n\t\tString regNumber = \"KA-01-HH-1234\", color = \"White\";\n\t\tParkingArea parkingArea = new ParkingArea(totalSlots); \n\t\tparkingArea.parkCar(\"KA-012-12\", \"Black\");\n\t\t\n\t\t//When: Method parkCar is executed\n\t\tboolean isParked = parkingArea.parkCar(regNumber, color);\n\t\t\n\t\t//Then: Verify isParked status as false\n\t\tassertEquals(false, isParked);\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MountainBike() {\n super();\n }", "@Override\r\n\tpublic String getCarparkId() {\n\t\treturn null;\r\n\t}", "public ApplicationCreator() {\n }", "public Car(String registrationNumber, String make, String model) {\r\n super(registrationNumber, make, model);\r\n }", "public ElectricBike() {\n\t\tsuper();\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) {\n this.id = id;\n this.make = make;\n this.logoFileName = logoFileName;\n this.makeUrl = makeUrl;\n this.model = model;\n this.year = year;\n this.price = price;\n this.mileage = mileage;\n this.cityMPG = cityMPG;\n this.highwayMPG = highwayMPG;\n this.engineType = engineType;\n this.driveType = driveType;\n }", "public ElectricCar(String name, String desc, String make, String model, String year, int odometer) {\n\t\tsuper(name, desc, make, model, year, odometer);\n\t\tvalidMaintenance.add(TireRotation.MAINTENANCE_TYPE);\n\t\tvalidMaintenance.add(ReplaceAirFilter.MAINTENANCE_TYPE);\n\t}" ]
[ "0.6566476", "0.6510629", "0.59901285", "0.5937237", "0.57924294", "0.57850105", "0.57662684", "0.57465273", "0.5602348", "0.55825204", "0.55681205", "0.5524485", "0.5504267", "0.549277", "0.5464252", "0.54580605", "0.5446613", "0.54422545", "0.5442126", "0.54375374", "0.54363966", "0.5420322", "0.54182076", "0.5404062", "0.5400397", "0.5396952", "0.5394795", "0.5389957", "0.5385857", "0.53841174", "0.5377002", "0.53626657", "0.5361941", "0.5344421", "0.5314977", "0.53137124", "0.5304861", "0.5304008", "0.5293808", "0.5293395", "0.5279683", "0.5273523", "0.52713025", "0.52711207", "0.5263189", "0.5259225", "0.5251906", "0.5246194", "0.5244957", "0.52449083", "0.52429086", "0.524158", "0.5239558", "0.5237923", "0.5234327", "0.52279955", "0.52036804", "0.52008826", "0.5199934", "0.51992023", "0.5198733", "0.51969606", "0.5194797", "0.51914674", "0.518945", "0.5177286", "0.516093", "0.514949", "0.51481426", "0.51425314", "0.5133365", "0.51329285", "0.51299405", "0.51288664", "0.5096263", "0.5093659", "0.50887305", "0.508053", "0.50646275", "0.5064344", "0.5056334", "0.5053526", "0.50507003", "0.5050656", "0.50447", "0.50428706", "0.50118494", "0.50113046", "0.5009162", "0.5008445", "0.50053036", "0.50046664", "0.5003637", "0.5002924", "0.49994314", "0.49991637", "0.4995307", "0.4984703", "0.49759048", "0.4975779" ]
0.7542303
0
Method to display the main menu of the system.
private void displayMenu() { System.out.println("\nWelcome to Car Park System"); System.out.println("============================="); System.out.println("(1)Add a Slot "); System.out.println("(2)Delete a Slot"); System.out.println("(3)List all Slots"); System.out.println("(4)Park a Car"); System.out.println("(5)Find a Car "); System.out.println("(6)Remove a Car"); System.out.println("(7)Exit "); System.out.println("\nSelect an Option: "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "private static void displayMainMenu() {\n\t\tSystem.out.println(\"\\t Main Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"au <username> : Registers as a new user \\n\"\n\t\t\t\t+ \"du <username> : De-registers a existing user \\n\"\n\t\t\t\t+ \"li <username> : To login \\n\"\n\t\t\t\t+ \"qu : To exit \\n\"\n\t\t\t\t+\"====================================\\n\");\n\t}", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }", "public abstract void displayMenu();", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "public void showMenu() {\n menuController.showMenuPanel();\n }", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "public static void WriteMainMenu(){\r\n System.out.println(\"\\n=================Welcome to McDonalds=================\");\r\n System.out.println(\"1. Take Order \\n2. Edit McDonalds Menu \\n3. Exit application \");\r\n }", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "private void displayMainMenu () {\n System.out.println();\n System.out.println(\n \"Enter the number of the action to perform: \");\n System.out.println(\n \"Run game...............\" + PLAY_GAME);\n System.out.println(\n \"Exit...................\" + EXIT);\n }", "public void showMainMenu() {\r\n\t\tmenu.setThreadSuspended(false);\r\n\t\tmenu.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t\tsetVisible(true);\r\n\t}", "public static void displayMainMenu() {\n\t\tSystem.out.println(\"1.) Scan network\");//looks for IP address\n\t\tSystem.out.println(\"2.) Wait for connections\");//server\n\t\tSystem.out.println(\"3.) Connect to client\");//client\n\t\tSystem.out.println(\"4.) Exit\");\n\t}", "public void menu() {\n\t\tstate.menu();\n\t}", "public void mainMenu() {\n\t\t// main menu\n\t\tdisplayOptions();\n\t\twhile (true) {\n\t\t\tString choice = ValidInputReader.getValidString(\n\t\t\t\t\t\"Main menu, enter your choice:\",\n\t\t\t\t\t\"^[aAcCrRpPeEqQ?]$\").toUpperCase();\n\t\t\tif (choice.equals(\"A\")) {\n\t\t\t\taddPollingPlace();\n\t\t\t} else if (choice.equals(\"C\")) {\n\t\t\t\tcloseElection();\n\t\t\t} else if (choice.equals(\"R\")) {\n\t\t\t\tresults();\n\t\t\t} else if (choice.equals(\"P\")) {\n\t\t\t\tperPollingPlaceResults();\n\t\t\t} else if (choice.equals(\"E\")) {\n\t\t\t\teliminate();\n\t\t\t} else if (choice.equals(\"?\")) {\n\t\t\t\tdisplayOptions();\n\t\t\t} else if (choice.equals(\"Q\")) {\n\t\t\t\tSystem.out.println(\"Goodbye.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "public Menu displayMenu() {\n return new CMDDisplayMenu(agg).execute();\n }", "public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}", "private static void printMainMenu() {\n\t\tprintln(\"Main Menu:\");\n\t\tprintln(\"\\tI: Import Movie <Title>\");\n\t\tprintln(\"\\tD: Delete Movie <Title>\");\n\t\tprintln(\"\\tS: Sort Movies\");\n\t\tprintln(\"\\tA: Sort Actors\");\n\t\tprintln(\"\\tQ: Quit\");\n\t}", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "void printMainMenu(){\n\t\tSystem.out.println(\"\\n\\nMarketo Music\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"1. Create Playlist: create <playlist name>\");\n\t\tSystem.out.println(\"2. Edit Playlist: edit <playlist id>\");\n\t\tSystem.out.println(\"3. Print Song: song <song id>\");\n\t\tSystem.out.println(\"4. Print Playlist: playlist <playlist id>\");\n\t\tSystem.out.println(\"5. Print All Songs or Playlists: print song/playlist\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"8. Quit: quit\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "public static void main(String[] args) throws IOException {\n\n\n Menu.displayMenu();\n }", "public static void main(String[] args) {\n Graphics.graphicsMainMenu();\r\n //Print main menu\r\n Menu.mainMenu();\r\n }", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}", "IMenu getMainMenu();", "public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public static void mainMenu() throws InterruptedException {\n\n // Calling the delay method to slow down the speed of the menu presentation\n delay();\n\n //Displaying the menu options by using the system out method\n System.out.println(\"Menu Main: \\n\");\n System.out.println(\"1 - Create a project\");\n System.out.println(\"2 - View projects\");\n System.out.println(\"3 - Completed projects\");\n System.out.println(\"4 - Customer information\");\n System.out.println(\"5 - Architect information\");\n System.out.println(\"6 - Project Manager Information\");\n System.out.println(\"7 - Structural Engineer Information\");\n System.out.println(\"8 - Past Due projects\\n\");\n System.out.println(\"0 - Exit\\n\");\n }", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "public static void openMainMenu() {\r\n\t\tif(!STATUS.equals(Gamestatus.STOPPED)) return;\r\n\t\tgui.setMenu(new MainMenu(), true);\r\n\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "@Override\n\tpublic void display() {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twelcomeMessage();\n\t\tloggy.info(\"User sees the welcome menu\");\n\t\t\n\t\tboolean loggingIn = true;\n\t\tUser user = null;\n\t\twhile(loggingIn) {\n\t\t\tuser = loginMenu(sc);\n\t\t\t\n\t\t\tif(user != null) {\n\t\t\t\tloggingIn = false;\n\t\t\t\tloggy.info(\"User logged in!\");\n\t\t\t}else {\n\t\t\t\tloggy.warn(\"User failed to login\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Welcome user! Here are your tasks!\");\n\t\tboolean running = true;\n\t\t\n\t\t\n\t\twhile(running) {\n\t\t\t\n\t\t\tSystem.out.println(\"Here is the todo menu!\");\n\t\t\tSystem.out.println(\"1) See all todos\");\n\t\t\tSystem.out.println(\"2) Add a todo\");\n\t\t\tSystem.out.println(\"3) Delete a todo\");\n\t\t\tSystem.out.println(\"4) Set a todo to complete\");\n\t\t\tSystem.out.println(\"0) Exit the application \");\n\t\t\t\n\t\t\tString input = sc.nextLine();\n\t\t\t\n\t\t\tswitch(input) {\n\t\t\t\n\t\t\tcase \"1\": \n\t\t\t\tseeAllTodos(user);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\taddTodoMenu(user, sc);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdeleteTodoMenu(user);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tcompleteTodoMenu(user);\n\t\t\t\tbreak;\n\t\t\tcase \"0\":\n\t\t\t\trunning = false;\n\t\t\t\tSystem.out.println(\"Thanks for using my service!\");\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tSystem.out.println(\"Invalid input, try again!\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n System.out.println(\"\\t\\t____________________________________\"); \r\n System.out.println(\"\\t\\t| |\");\r\n System.out.println(\"\\t\\t| Maintain Delivery man module |\");\r\n System.out.println(\"\\t\\t|____________________________________|\\n\\n\");\r\n mainMenu(); //call main menu \r\n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "private void printMainMenu() {\n\t\tSystem.out.println(\"1. Go adventuring\");\n\t\tSystem.out.println(\"2. Enter tavern\");\n\t\tSystem.out.println(\"3. Show details about your character\");\n\t\tSystem.out.println(\"4. Exit game\");\n\t}", "void Menu();", "public static void activateMenu() {\n instance.getMenu().show();\n }", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "public static void main(String[] args){\n\n main_menu();\n\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "public void displayMenu() {\n\t\tSystem.out.println(\"\\n1 to see vehicles in a date interval\");\n\t\tSystem.out.println(\"2 to see a specific reservation\");\n\t\tSystem.out.println(\"3 to see all reservations\");\n\t\tSystem.out.println(\"9 to exit\\n\");\n\t\ttry {\n\t\t\tString in = reader.readLine();\n\t\t\tswitch (in) {\n\t\t\tcase \"1\":\n\t\t\t\tdisplayCarsInInterval();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdisplaySpecificBooking();\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdisplayBookings();\n\t\t\t\tbreak;\n\t\t\tcase \"9\":\n\t\t\t\tSystem.out.println(\"Client application terminated\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please insert a valid number\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unexpected problem with reading your input, please try again.\");\n\t\t}\n\t\tdisplayMenu();\n\t}", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "public void openMenu() {\r\n\t\tmenu.click();\r\n\t}", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "public static void displayMenu() {\n while (true) {\n m.display();\n int i = m.choice();\n m.execute1(i);\n }\n }", "public void pressMainMenu() {\n }", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "public void showTitleScreen() {\n frame.showMenu();\n }", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "public static void updateMainMenu() {\n instance.updateMenu();\n }", "private int mainMenu(){\n System.out.println(\" \");\n System.out.println(\"Select an option:\");\n System.out.println(\"1 - See all transactions\");\n System.out.println(\"2 - See all transactions for a particular company\");\n System.out.println(\"3 - Detailed information about a company\");\n System.out.println(\"0 - Exit.\");\n\n return getUserOption();\n }", "public static void archMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Architect Profile\");\n System.out.println(\"2 - Search for Architect Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "public static void main(String [] args) {\n \tMainEnvironment mainMenu = new MainEnvironment();\n mainMenu.displayMenu();\n }", "public static void printMenu()\r\n\t{\r\n\t\tSystem.out.println(\"A) Add Scene\");\r\n\t\tSystem.out.println(\"R) Remove Scene\");\r\n\t\tSystem.out.println(\"S) Show Current Scene\");\r\n\t\tSystem.out.println(\"P) Print Adventure Tree\");\r\n\t\tSystem.out.println(\"B) Go Back A Scene\");\r\n\t\tSystem.out.println(\"F) Go Forward A Scene \");\r\n\t\tSystem.out.println(\"G) Play Game\");\r\n\t\tSystem.out.println(\"N) Print Path To Cursor\");\r\n\t\tSystem.out.println(\"M) Move Scene\");\r\n\t\tSystem.out.println(\"Q) Quit\");\r\n\t\tSystem.out.println();\r\n\t}", "default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "public int displayMainMenu() {\n while (true) {\n int index = requestFromList(guestPresenter.getMenu(), true);\n if (index == -1) {\n return -1;\n }\n if (index == 0) {\n int id = logIn();\n if (id != -1) {\n return id;\n }\n }\n if (index == 1) {\n register();\n }\n }\n }", "public static void main(String[] args) {\n mainMenu();\n }", "public void menu()\r\n\t{\r\n\t\t//TODO\r\n\t\t//Exits for now\r\n\t\tSystem.exit(0);\r\n\t}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "public void main_menu()\n\t{\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.println(\"Please Select an option\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.print(\"1.Add 2.Update 3.Delete 4.Exit\\n\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tchoice=me.nextInt();\n\t\tthis.check_choice(choice);\n\t}", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"AVAILABLE ORDERS\");\n\t\tSystem.out.println(\"================\");\n\t\tSystem.out\n\t\t\t\t.println(\"HELP - shows information on \" +\n\t\t\t\t\t\t\"available orders\");\n\t\tSystem.out\n\t\t\t\t.println(\"DIR - displays the content \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t .println(\"DIRGALL - displays the content\" +\n\t\t\t\t \" of current directory\");\n System.out\n\t\t .println(\" and all its internal\" +\n\t\t\t\t \" subdirectories\"); \t\t\n\t\tSystem.out\n\t\t\t\t.println(\"CD dir - changes the current \" +\n\t\t\t\t\t\t\"directory to its subdirectory [dir]\");\n\t\tSystem.out\n\t\t\t\t.println(\"CD .. - changes the current \" +\n\t\t\t\t\t\t\"directory to its father directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"WHERE - shows the path and name \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"FIND text - shows all the images \" +\n\t\t\t\t\t\t\"whose name includes [text]\");\n\t\tSystem.out\n\t\t\t\t.println(\"DEL text - information and delete \" +\n\t\t\t\t\t\t\"a picture named [text] of current \" +\n\t\t\t\t\t\t\"directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"MOVE text - move an image named \" +\n\t\t\t\t\t\t\"[text] to another directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMG time - displays a carousel \" +\n\t\t\t\t\t\t\"with the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" each image is displayed\" +\n\t\t\t\t\t\t\" [time] seconds\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMGALL time - displays a carousel with\" +\n\t\t\t\t\t\t\" the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" and in all its internal\" +\n\t\t\t\t\t\t\" subdirectories; each image is\");\n\t\tSystem.out.println(\" displayed [time] \" +\n\t\t\t\t\"seconds\");\n\t\tSystem.out.println(\"BIGIMG - displays the bigest image int the current\" +\n\t\t\t\t\"directory\");\n\t\tSystem.out.println(\"END - ends of program \" +\n\t\t\t\t\"execution\");\n\t}", "public static void launch() {\r\n\t\tint choice = EXIT;\r\n\t\tdo {\r\n\t\t\tchoice = displayMenu();\r\n\t\t\texecuteMenuItem(choice);\r\n\t\t} while (choice != EXIT);\r\n\t}", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "public void showStartMenu() {\n\t\tframe = new JFrame(\"Starting menu\");\n\t\tframe.setPreferredSize(new Dimension(700, 500));\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(this);\n\t\tframe.setVisible(true);\n\t\tframe.setLocationRelativeTo(null);\n\t}", "public void initMenu(){\n\t}", "public static void main(String[] args) \n\t{\n\t\tMenu();// calls menu method\n\t}", "private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }", "public static void main(String[] args)\r\n {\n\t\t System.out.println(\"************* Welocome To My Application ************* \");\r\n\t\t MainMenu();\r\n }", "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "public static void customerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the customers\");\n System.out.println(\"2 - Would you like to search for a customer's information\");\n System.out.println(\"3 - Adding a new customer's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }" ]
[ "0.8375603", "0.8303884", "0.80003124", "0.78711325", "0.7802954", "0.7747435", "0.7727556", "0.76540387", "0.76435614", "0.75950885", "0.7518838", "0.7515759", "0.7513814", "0.7503451", "0.74991196", "0.74750423", "0.74542195", "0.74229825", "0.7402853", "0.7384139", "0.73672134", "0.73310083", "0.73290956", "0.73238474", "0.7318734", "0.73103374", "0.73103213", "0.7291263", "0.72796357", "0.7258156", "0.72427857", "0.7210167", "0.7207236", "0.7203298", "0.7201352", "0.7198095", "0.7194573", "0.7188381", "0.71799445", "0.7118577", "0.71124667", "0.7105511", "0.7103769", "0.71022487", "0.70840013", "0.70584255", "0.70579433", "0.70512694", "0.7043011", "0.70125633", "0.7001675", "0.7000274", "0.6998152", "0.6995045", "0.6993023", "0.6986814", "0.69793177", "0.6974023", "0.6972548", "0.694061", "0.6902404", "0.6900225", "0.6896924", "0.6871238", "0.6854117", "0.6847674", "0.6840878", "0.682999", "0.6810469", "0.6802753", "0.68009555", "0.6798378", "0.67947215", "0.67926943", "0.6785566", "0.6762872", "0.6759097", "0.67527646", "0.67525434", "0.6752243", "0.6745915", "0.67452097", "0.67448163", "0.67399067", "0.67312014", "0.6723896", "0.6711975", "0.67015404", "0.6697858", "0.6695287", "0.66876143", "0.6680931", "0.66619724", "0.6660725", "0.66553575", "0.66526186", "0.66443604", "0.66364145", "0.66340315", "0.6633174" ]
0.7327636
23
This method implements all the functionalities of the system.
public void startSystem() { Scanner sc = new Scanner(System.in); while(true) { displayMenu(); if(sc.hasNextInt()) { int choice = sc.nextInt();//choice stores the value of input entered by the user. switch(choice) { case 1: pSlot.addSlot(); break; case 2: pSlot.deleteSlot(); break; case 3: pSlot.listSlots(); break; case 4: pSlot.parkCar(); break; case 5: pSlot.findCar(); break; case 6: pSlot.removeCar(); break; case 7: exitApplication(); break; default: System.out.println("\n Please choose the input from 1-7"); } } else { System.out.println("\n Please choose the input from 1-7"); sc.next(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void aktualisieren() {\r\n\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@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 sensorSystem() {\n\t}", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void perish() {\n \n }", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void working()\n {\n \n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@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}", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void run() {\n\t\t\t\t\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 anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "private stendhal() {\n\t}", "protected void additionalProcessing() {\n\t}", "@Override\n protected void Start() {\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void logic(){\r\n\r\n\t}", "@Override\n protected void execute() {\n \n }", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void run() {\n\n }", "@Override\r\n\tprotected void processInit() {\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 emprestimo() {\n\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "public void use()\n\t{\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void run() {\n\n\t\t}", "@Override\n protected void setup() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\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 protected void initialize() \n {\n \n }", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "@Override\n public void update() {\n \n }", "protected Doodler() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "private void start() {\n\n\t}", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected void setup() {\r\n }", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "public void ventilationServices() {\n\t\tSystem.out.println(\"FH----overridden method from hospital management--parent class of fortis hospital\");\n\t}", "protected void execute() {\n\n\t}", "public void process() {\n\t\tSystem.out.println(RegisterUser(\"Instructor\", \"Instructor\"));\n\t\t/*\n\t\t * UserRegistration usr1 = new UserRegistration();\n\t\t * usr1.registerUser(userTable, \"raj\", \"raj\");\n\t\t * usr1.registerUser(userTable, \"mahesh\", \"mahesh\");\n\t\t */\n\n\t\t/*\n\t\t * LoginAndSeeDetails login = new LoginAndSeeDetails();\n\t\t * \n\t\t * HashMap<String,String> result = login.userLogin(userTable, \"raj1\",\n\t\t * \"raj\"); if(result.size()<1)\n\t\t * System.out.println(result+\"No images to display\"); else\n\t\t * if(result.containsKey(\"failure\"))\n\t\t * System.out.println(\"Unable to login\"); else\n\t\t * System.out.println(result);\n\t\t */\n\t}", "public void setup() {\n }", "public void run() {\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void onFirstUse() {}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "private void inizia() throws Exception {\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}" ]
[ "0.6503546", "0.6500815", "0.6400934", "0.6397882", "0.6365482", "0.6339815", "0.6339815", "0.6339427", "0.6330755", "0.6310319", "0.63098055", "0.6244174", "0.624161", "0.6238435", "0.6230459", "0.6216521", "0.6216521", "0.6195318", "0.6195318", "0.61764854", "0.6167665", "0.6167665", "0.6167665", "0.6167665", "0.6167665", "0.6162667", "0.6133599", "0.6133599", "0.6111437", "0.6107099", "0.6091659", "0.60840166", "0.60697025", "0.60608137", "0.60608137", "0.6053979", "0.6049255", "0.6040624", "0.60391915", "0.60269034", "0.6018095", "0.6011564", "0.6010908", "0.6010428", "0.6007762", "0.6003329", "0.6002665", "0.59940577", "0.5983121", "0.59815943", "0.59805554", "0.5978299", "0.5956701", "0.5956701", "0.59438723", "0.59369105", "0.59244835", "0.59244835", "0.5919657", "0.5918817", "0.5914625", "0.58841205", "0.5880453", "0.58803165", "0.587918", "0.58769083", "0.58769083", "0.5872321", "0.5866482", "0.58661497", "0.58585334", "0.58585334", "0.58473915", "0.5845115", "0.5843118", "0.58404076", "0.58361644", "0.5823394", "0.5822034", "0.58185256", "0.5812675", "0.58105665", "0.58095944", "0.5800543", "0.57970434", "0.57952106", "0.5789099", "0.578909", "0.57888454", "0.578723", "0.5785931", "0.5779588", "0.5772518", "0.5772518", "0.57669514", "0.576558", "0.576558", "0.57649374", "0.5764285", "0.57624876", "0.5759767" ]
0.0
-1
This method closes the application.
private void exitApplication() { System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void closeApp();", "public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }", "private void closeApp() {\n\t\tcurrentBoard.storeXMLfil();\n\t\tzipBackUp( currentBoard.getBoardFile() );\n\t\tlogConcoleOutput();\n\t\t//\n\t\tif( funcBoard != null ){\n\t\t\tfuncBoard.close();\n\t\t\tzipBackUp( funcBoard.getBoardFile() );\n\t\t}\n\t}", "private void closeProgram()\n {\n window.close();\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tcloseApplication();\n\t\t\t}", "@FXML public void closeApplication() {\n\t\tPlatform.exit();\n System.exit(0);\n\t}", "private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }", "public void exitApp() {\n\t\tSystem.out.println(\"Exiting PhoneBook\");\n\n\t}", "public void close() {\n appContext.close();\n }", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "public void close() {\n System.exit(0);\n }", "@Override\r\n\tpublic void onCloseApplication() {\n\t}", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "public void close() {\n\t\t\r\n\t}", "private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }", "private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }", "public void close() {\t\t\n\t}", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "private static void Close () {\n frame.setVisible (false);\n frame.dispose();\n System.exit(0);\n }", "private void exitApplication() {\n\t\tBPCC_Logger.logInfoMessage(classNameForLogger, logMessage_applicationFrameClosed);\r\n\t\tSystem.exit(0);\r\n\t}", "public void close() {\n getMainApplication().getMainWindow().removeWindow(popupWindow);\n }", "public void close() {\n\t\t}", "public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "public void close()\n\t\t{\n\t\t}", "public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }", "public void close() throws IOException {\r\n\t\tUIConfiguration.save();\r\n\t\tLogger.instance().debug(\"Application terminated\");\r\n\t\tLogSerializer.archive();\r\n\t}", "private void exitApplication() {\n Button exit = (Button) findViewById(R.id.activity_one_exit_button); // exit button declaration\n exit.setOnClickListener(new View.OnClickListener() { //set listener for exit button\n @Override\n public void onClick(View v) {\n finish();//close the activity\n\n }\n });\n }", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void close() {\r\n\t}", "@Override\n public void closeWindow() {\n \n }", "public void stopApplication() {\n\t\twindowOpened = false;\n\t\tPlatform.exit();\n\t}", "void close() {\n\t\t\n\t\tthis.frame.setVisible(false);\n\t\tthis.frame.dispose();\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n getCloseButton().click();\n }", "@AfterMethod\r\n\tpublic void closeapp()\r\n\t{\n\t\tdriver.quit();\r\n\t}", "@Override\n\t\t\tpublic void close() {\n\t\t\t\tisAutoPlay = false;\n\t\t\t\tCustomApplication.app.preferencesUtil.setBooleanValue(\n\t\t\t\t\t\t\"isAutoPlay\", isAutoPlay);\n\t\t\t}", "public void close() {\n helperAngkot.close();\n }", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "public void close()\r\n {\r\n }", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "private void programShutdown(){\n\n am.finishAllActivity();\n activity .moveTaskToBack(true);\n activity .finish();\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(0);\n\n\n }", "public void close() {}", "public void close() {\n\t}", "public void close() {\n }", "public void close() {\n }" ]
[ "0.80985826", "0.77584493", "0.764082", "0.74355274", "0.7403385", "0.73645663", "0.7283048", "0.7279058", "0.7269199", "0.7204967", "0.7194052", "0.7180427", "0.7124042", "0.7073469", "0.7072989", "0.7052671", "0.704252", "0.70299035", "0.7024631", "0.697832", "0.69676626", "0.696279", "0.6944271", "0.69431126", "0.69431126", "0.6941317", "0.69342554", "0.6931215", "0.6921481", "0.6908013", "0.69070655", "0.68829966", "0.68683195", "0.6862338", "0.68406177", "0.6811882", "0.6811882", "0.6811882", "0.678937", "0.6785405", "0.6764286", "0.67584014", "0.6753551", "0.6739264", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.67297584", "0.6725286", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.6723238", "0.67190385", "0.6718753", "0.67105865", "0.6710046", "0.6710046" ]
0.69383746
26
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent e) { }
{ "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
Runs the build.xml file for the the given exercise.
protected boolean buildAntProject(Path path) { final File buildFile = new File(path.toString() + File.separatorChar + "build.xml"); final File buildLog; Project buildProject = new Project(); buildProject.setUserProperty("ant.file", buildFile.getAbsolutePath()); buildProject.setProperty("javac.fork", "true"); buildProject.init(); buildProject.setBaseDir(path.toAbsolutePath().toFile()); try { DefaultLogger logger = new DefaultLogger(); buildLog = new File(path.toString(), "build_log.txt"); PrintStream buildOutput = new PrintStream(buildLog); logger.setErrorPrintStream(buildOutput); logger.setOutputPrintStream(buildOutput); logger.setMessageOutputLevel(Project.MSG_INFO); buildProject.addBuildListener(logger); try { buildProject.fireBuildStarted(); ProjectHelper helper = ProjectHelper.getProjectHelper(); buildProject.addReference("ant.projectHelper", helper); helper.parse(buildProject, buildFile); buildProject.executeTarget("compile-test"); buildProject.fireBuildFinished(null); return true; } catch (BuildException e) { buildProject.fireBuildFinished(e); buildRunResult = new RunResult(Status.COMPILE_FAILED, ImmutableList.copyOf(new ArrayList<TestResult>()), new ImmutableMap.Builder<String, byte[]>().put(SpecialLogs.COMPILER_OUTPUT, Files.readAllBytes(buildLog.toPath())).build()); return false; } } catch (IOException e) { throw Throwables.propagate(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBuildAndRun() {\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n // increase timeout to 60 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 60000);\n // start to track Main Window status bar\n MainWindowOperator.StatusTextTracer stt = MainWindowOperator.getDefault().getStatusTextTracer();\n stt.start();\n // call Build|Compile main menu item\n new CompileJavaAction().perform(sampleClass1Node);\n // \"SampleProject (compile-single)\"\n String compileSingleTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"compile-single\"}); // NOI18N\n // \"Finished building SampleProject (compile-single)\"\n String finishedCompileSingleLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{compileSingleTarget});\n // wait message \"Finished building SampleProject (compile-single)\"\n stt.waitText(finishedCompileSingleLabel); \n\n // \"Run\"\n // TODO bundle property name should be changed back to Menu/RunProject after updating bundle\n String runItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.Bundle\", \"Menu/BuildProject\");\n // \"Run File\"\n String runFileItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\",\n \"LBL_RunSingleAction_Name\",\n new Object[]{new Integer(1), SAMPLE1_FILE_NAME});\n // call \"Run|Run File|Run \"SampleClass1.java\"\"\n new Action(runItem + \"|\" + runFileItem, null).perform(sampleClass1Node);\n // \"SampleProject (run-single)\"\n String runSingleTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"run-single\"}); // NOI18N\n // \"Finished building SampleProject (run-single)\"\n String finishedRunSingleLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{runSingleTarget});\n // wait message \"Finished building SampleProject (run-single)\"\n stt.waitText(finishedRunSingleLabel); // NOI18N\n // check Hello and Good bye was printed out to the output window\n\n OutputTabOperator outputOper = new OutputTabOperator(\"run-single\"); //NOI18N\n outputOper.waitText(\"Hello\"); //NOI18N\n outputOper.waitText(\"Good bye\"); //NOI18N\n\n // \"Run\"\n String buildItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.Bundle\", \"Menu/BuildProject\");\n // \"Build Main Project\"\n String buildMainProjectItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\", \"LBL_BuildMainProjectAction_Name\");\n // call \"Run|Build Main Project\" main menu item\n new Action(buildItem + \"|\" + buildMainProjectItem, null).perform();\n // \"SampleProject (jar)\"\n String jarTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"jar\"}); // NOI18N\n // \"Finished building SampleProject (jar)\"\n String finishedJarLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{jarTarget});\n // wait message \"Finished building SampleProject (jar)\"\n stt.waitText(finishedJarLabel);\n\n // Run Main Project\n String runMainProjectItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\", \"LBL_RunMainProjectAction_Name\");\n // call \"Run|Run Main Project\" main menu item\n new Action(runItem + \"|\" + runMainProjectItem, null).perform();\n // \"SampleProject (run)\"\n String runTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"run\"}); // NOI18N\n // \"Finished building SampleProject (run)\"\n String finishedRunLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{runTarget});\n // wait message \"Finished building SampleProject (run)\"\n stt.waitText(finishedRunLabel);\n\n stt.stop();\n }", "void createProjectForExercise(ProgrammingExercise programmingExercise) throws VersionControlException;", "@TaskAction\n public void executeAction() {\n try {\n String xml = instantRunBuildContext.toXml();\n if (logger.isEnabled(LogLevel.DEBUG)) {\n logger.debug(\"build-id $1$l, build-info.xml : %2$s\",\n instantRunBuildContext.getBuildId(), xml);\n }\n Files.createParentDirs(buildInfoFile);\n Files.write(instantRunBuildContext.toXml(), buildInfoFile, Charsets.UTF_8);\n } catch (Exception e) {\n\n throw new RuntimeException(\n String.format(\"Exception while saving build-info.xml : %s\", e.getMessage()));\n }\n }", "@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public RunResult runTests(Path exercise) throws NoLanguagePluginFoundException {\n System.err.println(\"Path: \" + exercise.toString());\n TaskExecutorImpl taskExecutor = new TaskExecutorImpl();\n return taskExecutor.runTests(exercise);\n }", "public void testSimple15() throws Exception\n {\n QdoxModelBuilder builder = new QdoxModelBuilder();\n\n ClassLoader classLoader = this.getClass().getClassLoader();\n URL sourceUrl = classLoader.getResource(\"builder/simple15/Foo.java\");\n String parentDirName = new File(sourceUrl.getFile()).getParent();\n File parentDir = new File(parentDirName);\n List sourceDirs = new ArrayList();\n sourceDirs.add(parentDir.getAbsolutePath());\n\n Model model = new Model();\n model.setModelId(\"test\");\n ModelParams parameters = new ModelParams();\n parameters.setSourceDirs(sourceDirs);\n builder.buildModel(model, parameters);\n\n // basic sanity checks\n assertTrue(model.getComponents().size() > 0);\n\n // Now write it. Optionally, we could just write it to an in-memory\n // buffer.\n File outfile = new File(\"target/simple15-out.xml\");\n IOUtils.saveModel(model, outfile);\n\n StringWriter outbuf = new StringWriter();\n IOUtils.writeModel(model, outbuf);\n\n compareData(outfile, \"builder/simple15/goodfile.xml\");\n }", "public static void main(String[] args) {\n\t\tnew XmlContextApplicationStep22().doIt();\n\n\t}", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "@Test\n\tpublic void testBuild() {\n\n\t\tSystem.out.println(\"End\");\n\t}", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "public static void main(String[] args) throws IOException {\n Module2Exercises lesson = new Module2Exercises();\n lesson.runExercises();\n }", "public void test7() throws Exception {\n //$NON-NLS-1$\n IFolder buildFolder = newTest(\"test7\");\n //$NON-NLS-1$\n String buildXMLPath = buildFolder.getFile(\"build.xml\").getLocation().toOSString();\n Properties properties = new Properties();\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"reference_location\", buildFolder.getFile(\"before\").getLocation().toOSString());\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"current_location\", buildFolder.getFile(\"after\").getLocation().toOSString());\n //$NON-NLS-1$\n properties.put(\"report_location\", buildFolder.getLocation().toOSString());\n //$NON-NLS-1$\n runAntScript(buildXMLPath, new String[] { \"run\" }, buildFolder.getLocation().toOSString(), properties);\n //$NON-NLS-1$ //$NON-NLS-2$\n assertFalse(\"allNonApiBundles must not exist\", buildFolder.getFolder(\"allNonApiBundles\").exists());\n //$NON-NLS-1$\n IFolder folder = buildFolder.getFolder(\"deltatest\");\n //$NON-NLS-1$\n assertTrue(\"deltatest folder must exist\", folder.exists());\n //$NON-NLS-1$ //$NON-NLS-2$\n assertTrue(\"report.xml file must be there\", folder.getFile(\"report.xml\").exists());\n }", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "@Test\n public void testExample() {\n assertSolution(\"16\", \"example-day06-2018.txt\");\n }", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ConfigureGanttChartView.class);\n\n Project project = new Project(dataDir + \"project.mpp\");\n\n // Create a new project task\n Task task = project.getRootTask().getChildren().add(\"New Activity\");\n\n // Define new custom attribute\n ExtendedAttributeDefinition text1Definition = ExtendedAttributeDefinition.createTaskDefinition(ExtendedAttributeTask.Text1, null);\n project.getExtendedAttributes().add(text1Definition);\n // Add custom text attribute to created task.\n task.getExtendedAttributes().add(text1Definition.createExtendedAttribute(\"Activity attribute\"));\n\n // Customize table by adding text attribute field\n TableField attrField = new TableField();\n attrField.setField(Field.TaskText1);\n attrField.setWidth(20);\n attrField.setTitle(\"Custom attribute\");\n attrField.setAlignTitle(StringAlignment.Center);\n attrField.setAlignData(StringAlignment.Center);\n\n Table table = project.getTables().toList().get(0);\n table.getTableFields().add(3, attrField);\n\n // The result of opening of saved project in MSP2010 is in attached screenshot\n project.save(\"saved.mpp\", SaveFileFormat.Mpp);\n }", "public static void main(String[] args) {\n\t\tnew SATExerciseSolver().testExercises();\n\t}", "public static void main (String[] args) throws FileNotFoundException\n {\n System.out.println (\"So, you have an idea for a project.\");\n\n DecisionTree expert = new DecisionTree(\"projectplan-input.txt\");\n expert.evaluate();\n }", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public void testSimple() throws Exception\n {\n QdoxModelBuilder builder = new QdoxModelBuilder();\n\n ClassLoader classLoader = this.getClass().getClassLoader();\n URL sourceUrl = classLoader.getResource(\"builder/simple/Foo.java\");\n String parentDirName = new File(sourceUrl.getFile()).getParent();\n File parentDir = new File(parentDirName);\n List sourceDirs = new ArrayList();\n sourceDirs.add(parentDir.getAbsolutePath());\n\n Model model = new Model();\n model.setModelId(\"test\");\n ModelParams parameters = new ModelParams();\n parameters.setSourceDirs(sourceDirs);\n builder.buildModel(model, parameters);\n\n // basic sanity checks\n assertTrue(model.getComponents().size() > 0);\n\n // Now write it. Optionally, we could just write it to an in-memory\n // buffer.\n File outfile = new File(\"target/simple-out.xml\");\n IOUtils.saveModel(model, outfile);\n\n StringWriter outbuf = new StringWriter();\n IOUtils.writeModel(model, outbuf);\n\n compareData(outfile, \"builder/simple/goodfile.xml\");\n }", "@Test\n public void testExample1() {\n assertSolution(\"3\", \"example-day01-2018-1.txt\");\n }", "public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }", "@Test\n public void testExample3() {\n assertSolution(\"-6\", \"example-day01-2018-3.txt\");\n }", "@Test\n public void testExample0() {\n assertSolution(\"3\", \"example-day01-2018-0.txt\");\n }", "@Test\n\tpublic void testMainValidFile() throws Exception {\n\t\tString testPathResource = System.getProperty(\"user.dir\") + \"/src/test/resources/instructions-file\";\n\t\tString[] arguments = { testPathResource };\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;", "public void test5() throws Exception {\n //$NON-NLS-1$\n IFolder buildFolder = newTest(\"test5\");\n //$NON-NLS-1$\n String buildXMLPath = buildFolder.getFile(\"build.xml\").getLocation().toOSString();\n Properties properties = new Properties();\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"reference_location\", buildFolder.getFile(\"before\").getLocation().toOSString());\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"current_location\", buildFolder.getFile(\"after\").getLocation().toOSString());\n //$NON-NLS-1$\n properties.put(\"report_location\", buildFolder.getLocation().toOSString());\n //$NON-NLS-1$\n runAntScript(buildXMLPath, new String[] { \"run\" }, buildFolder.getLocation().toOSString(), properties);\n //$NON-NLS-1$ //$NON-NLS-2$\n assertFalse(\"allNonApiBundles must not exist\", buildFolder.getFolder(\"allNonApiBundles\").exists());\n //$NON-NLS-1$\n IFolder folder = buildFolder.getFolder(\"deltatest\");\n //$NON-NLS-1$\n assertTrue(\"deltatest folder must exist\", folder.exists());\n //$NON-NLS-1$\n folder = buildFolder.getFolder(\"deltatest1\");\n //$NON-NLS-1$\n assertTrue(\"deltatest1 folder must exist\", folder.exists());\n //$NON-NLS-1$ //$NON-NLS-2$\n assertTrue(\"report.xml file must be there\", folder.getFile(\"report.xml\").exists());\n }", "public void build() {\r\n\tfDoingBatchBuild = true;\r\n\tfNotifier = new BuildNotifier(fDC, true);\r\n\tgetBuilderEnvironment().setNotifier(fNotifier);\r\n\tfNotifier.begin();\r\n\ttry {\r\n\t\tfNewState.readClassPath();\r\n\t\tfNotifier.subTask(Util.bind(\"build.scrubbingOutput\"/*nonNLS*/));\r\n\t\tfNewState.getBinaryOutput().scrubOutput();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingPackages\"/*nonNLS*/));\r\n\t\tfNewState.buildInitialPackageMap();\r\n\t\tfNotifier.updateProgressDelta(0.05f);\r\n\r\n\t\t/* Force build all in build context */\r\n\t\tfNotifier.subTask(Util.bind(\"build.analyzingSources\"/*nonNLS*/));\r\n\t\tIPackage[] pkgs = fNewState.getPackageMap().getAllPackagesAsArray();\r\n\t\tfor (int i = 0; i < pkgs.length; ++i) {\r\n\t\t\tfNotifier.checkCancel();\r\n\t\t\tSourceEntry[] entries = fNewState.getSourceEntries(pkgs[i]);\r\n\t\t\tif (entries != null) {\r\n\t\t\t\tfor (int j = 0; j < entries.length; ++j) {\r\n\t\t\t\t\tSourceEntry sEntry = entries[j];\r\n\t\t\t\t\tif (sEntry.isSource()) {\r\n\t\t\t\t\t\tPackageElement element = fNewState.packageElementFromSourceEntry(sEntry);\r\n\t\t\t\t\t\tfWorkQueue.add(element);\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\tfNotifier.updateProgressDelta(0.05f);\r\n\t\tVector vToCompile = fWorkQueue.getElementsToCompile();\r\n\t\tif (vToCompile.size() > 0) {\r\n\t\t\tfNotifier.setProgressPerCompilationUnit(0.75f / vToCompile.size());\r\n\t\t\tcompile(vToCompile);\r\n\t\t}\r\n\t\t/* Copy resources to binary output */\r\n\t\tnew ProjectResourceCopier(fNewState.getJavaProject(), fDC, fNotifier, 0.10f).copyAllResourcesOnClasspath();\r\n\t\t\r\n\t\tfNotifier.done();\r\n\t} finally {\r\n\t\tcleanUp();\r\n\t}\r\n}", "@Override\n public void run(String... args) throws Exception {\n this.exercise6();\n }", "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 void runExercises() throws IOException {\n System.out.println(\"JDK 8 Lambdas and Streams MOOC Lesson 2\");\n System.out.println(\"Running exercise 1 solution...\");\n exercise1();\n System.out.println(\"Running exercise 2 solution...\");\n exercise2();\n System.out.println(\"Running exercise 3 solution...\");\n exercise3();\n System.out.println(\"Running exercise 4 solution...\");\n exercise4();\n System.out.println(\"Running exercise 5 solution...\");\n exercise5();\n System.out.println(\"Running exercise 6 solution...\");\n exercise6();\n System.out.println(\"Running exercise 7 solution...\");\n exercise7();\n }", "public void test6() throws Exception {\n //$NON-NLS-1$\n IFolder buildFolder = newTest(\"test6\");\n //$NON-NLS-1$\n String buildXMLPath = buildFolder.getFile(\"build.xml\").getLocation().toOSString();\n Properties properties = new Properties();\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"reference_location\", buildFolder.getFile(\"before\").getLocation().toOSString());\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"current_location\", buildFolder.getFile(\"after\").getLocation().toOSString());\n //$NON-NLS-1$\n properties.put(\"report_location\", buildFolder.getLocation().toOSString());\n //$NON-NLS-1$\n runAntScript(buildXMLPath, new String[] { \"run\" }, buildFolder.getLocation().toOSString(), properties);\n //$NON-NLS-1$ //$NON-NLS-2$\n assertFalse(\"allNonApiBundles must not exist\", buildFolder.getFolder(\"allNonApiBundles\").exists());\n //$NON-NLS-1$\n IFolder folder = buildFolder.getFolder(\"deltatest2\");\n //$NON-NLS-1$\n assertTrue(\"deltatest2 folder must exist\", folder.exists());\n //$NON-NLS-1$ //$NON-NLS-2$\n assertTrue(\"report.xml file must be there\", folder.getFile(\"report.xml\").exists());\n }", "@Test(groups = { \"v11\" })\n public void test2() {\n configureProject(\"PCTWSComp/test2/build.xml\");\n executeTarget(\"test\");\n }", "public static void main(String args[]) throws Exception { \r\n try {\r\n \tString maps[] = {\"main\"}; \r\n Excel2XML e2x = new Excel2XML(path, \"DTRules.xml\",\"SyntaxExamples\");\r\n \t\te2x.compileRuleSet(path,\"DTRules.xml\",\"SyntaxExamples\",\"repository\",maps,80);\r\n \r\n } catch ( Exception ex ) {\r\n System.out.println(\"Failed to convert the Excel files\");\r\n ex.printStackTrace();\r\n throw ex;\r\n }\r\n \r\n \r\n \r\n }", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public static void main(String[] args)throws IOException {\r\n\t\t\r\n\t\t String inputFolder = \"C:/Users/Nekromantik/Desktop/321\";\r\n\t\t String inputfile = \"C:/Users/Nekromantik/Desktop/222/disagreements.txt\";\r\n\t\t \r\n\t\t String outputfile = \"C:/Users/Nekromantik/Desktop/222/result.txt\";\r\n\t\t \r\n\t\t Eva_help2 test = new Eva_help2();\r\n\t\t test.generate(inputfile, inputFolder, outputfile);\r\n\t\t\r\n\t}", "@Test\n public void testExample2() {\n assertSolution(\"0\", \"example-day01-2018-2.txt\");\n }", "public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }", "public static void main(String[] args) {\n\t\tExemplaryContent ec = new ExemplaryContent();\n\t\tRendezvous rendezvous = ec.getExample();\n\n\t\t// make a few steps\n\t\tILOGExporter exporter = new ILOGExporter();\n\t\tILOGSolver solver = new ILOGSolver();\n\n\t\tFile modelFile = new File(\"Constraints-Displays-Model.mod\");\n\n\t\tPreferenceStructure preferences = new PreferenceStructure(); // unit preference structure Max-CSP\n\n\t\tResultChecker checker = new ResultChecker();\n\t\tfor (int steps = 0; steps < 5; ++steps) {\n\n\t\t\tString dataContent = exporter.getILOGDataFile(rendezvous);\n\t\t\tString preferencesContent = exporter.getPreferenceContent(preferences);\n\n\t\t\tSolution solution = solver.solve(modelFile, dataContent + \"\\n\" + preferencesContent);\n\n\t\t\tFrame selectedFrame = rendezvous.getContent().getFrameGraph().lookup(solution.getSelectedFrameId());\n\t\t\tsolution.setSelectedFrame(selectedFrame);\n\n\t\t\tSystem.out.println(\"Selected \" + solution.getSelectedFrameId());\n\n\t\t\tchecker.check(solution, rendezvous, preferences);\n\n\t\t\t// add to the seen frames\n\t\t\tfor (Group g : rendezvous.getMeetup().getGroups()) {\n\t\t\t\tfor (User u : g.getMembers()) {\n\t\t\t\t\tu.getSeenFrames().add(selectedFrame);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// test suite has ended\n\t\tSystem.out.println(checker.retrieveCoverageInformation());\n\t}", "public void execute() throws XDocletException {\n\t\tsetPublicId(DD_PUBLICID_20);\n\t\tsetSystemId(DD_SYSTEMID_20);\n\n\t\t// will not work .... dumper.xdt does not exist\n\t\t/*\n\t\tsetTemplateURL(getClass().getResource(\"resources/dumper.xdt\"));\n\t\tsetDestinationFile(\"dump\");\n\t\tSystem.out.println(\"Generating dump\");\n\t\tstartProcess();\n\t\t*/\n\n\n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_EJB_JAR_XML_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"ejb-jar.xml\");\n\t\tSystem.out.println(\"Generating ejb-jar.xml\");\n\t\tstartProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_BND_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_BND_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_BND_FILE_NAME);\n startProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_FILE_NAME);\n startProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_PME_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_PME_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_PME_FILE_NAME);\n startProcess();\n\n /*\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_ACCESS_BEAN_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_ACCESS_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_ACCESS_FILE_NAME);\n startProcess();\n */\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_MAPXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tstartProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_DBXMI_TEMPLATE_FILE));\n setDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n System.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n startProcess();\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_SCHXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tstartProcess();\n\t\t\n\t\tCollection classes = getXJavaDoc().getSourceClasses();\n\t\tfor (ClassIterator i = XCollections.classIterator(classes); i.hasNext();) {\n\t\t\tXClass clazz = i.next();\n\t\t\t//System.out.print(\">> \" + clazz.getName());\n\t\t\t// check tag ejb:persistence + sub tag table-name\n\t\t\tXTag tag = clazz.getDoc().getTag(\"ejb:persistence\");\n\t\t\tif (tag != null) {\n\t\t\t\tString tableName = tag.getAttributeValue(\"table-name\");\n\t\t\t\t//System.out.println(\"ejb:persistence table-name = '\" + tableName + \"'\");\n\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\tSystem.out.println(\"Generating \" + destinationFileName);\n\t\t\t\t\n\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_TBLXMI_TEMPLATE_FILE));\n\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\tsetHavingClassTag(\"ejb:persistence\");\n\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\tstartProcess();\n\t\t\t}\n\t\t\t// Now, check for relationships \n\t\t\tfor (Iterator methods = clazz.getMethods().iterator(); methods.hasNext();) {\n\t\t\t\tXMethod method = (XMethod)methods.next();\n\t\t\t\tif (method.getDoc().hasTag(\"websphere:relation\")) {\n\t\t\t\t\tString tableName = method.getDoc().getTagAttributeValue(\"websphere:relation\",\"table-name\");\n\t\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_RELATIONSHIP_TBLXMI_TEMPLATE_FILE));\n\t\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\t\tsetCurrentMethod(method);\n\t\t\t\t\tSystem.out.println(\"\\tGenerating M-M Relationship table: \" + destinationFileName);\n\t\t\t\t\tstartProcess();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t}\n\n/*\n if (atLeastOneCmpEntityBeanExists()) {\n setTemplateURL(getClass().getResource(WEBSPHERE_SCHEMA_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_SCHEMA_FILE_NAME);\n startProcess();\n }\n*/\n }", "private static void testgen(String[] args) {\n JSONParser parser = new JSONParser();\n TestgenOptions options = parseTestgenOptions(args);\n CLI.setVerbosity(options);\n if (options.numTasks < 1) {\n API.throwCLIError(\"Invalid number of tasks provided (-n): \" + options.numTasks);\n }\n\n Map<String, Object> objects;\n if (!options.inFile.isEmpty()) {\n objects = parser.parse(options.inFile, true);\n } else if (!options.inString.isEmpty()) {\n objects = parser.parse(options.inString, false);\n } else {\n API.throwCLIError(\"No input JSON provided (-i)\");\n return;\n }\n\n if (objects.get(\"initialState\") == null || objects.get(\"goalState\") == null) {\n API.throwCLIError(\"Both an initial state and a goal state must be provided.\");\n }\n\n TestCaseGenerator generator = new TestCaseGenerator(\n (SystemState) objects.get(\"initialState\"),\n (GoalState) objects.get(\"goalState\"),\n options.numTasks,\n options.optimalPlan,\n options.output\n );\n\n ArrayList<Task> tasks = generator.generateTestCase();\n ArrayList<Optimization> ops = generator.generateOptimizations();\n try{\n generator.testCaseToJSON(tasks, ops, options.perturbations);\n } catch (IOException e){\n API.throwCLIError(\"Failed to write testCase to JSON\");\n }\n\n }", "void build(String name, Project project);", "public static void main(String[] args) throws IOException {\n List<String> instanceToRun = Arrays.asList(\"fnl4461-n44600\");\n //List<String> instanceToRun = Competition.INSTANCES;\n for (String instance : instanceToRun) {\n System.out.println(\"Running on \" + instance);\n String fname = String.format(\"resources/%s.txt\", instance);\n InputStream is = LOADER.getResourceAsStream(fname);\n\n TravelingThiefProblem problem = Util.readProblem(is);\n System.out.println(problem.numOfCities + \" \" + problem.numOfItems);\n problem.name = instance;\n int popSize = instance.charAt(0) == 'p' ? 10 : 100;\n int eliteSize = instance.charAt(0) == 'p' ? 3 : 20;\n int generations = instance.charAt(0) == 'p' ? 10 : 100;\n double evalProbability = problem.numOfItems > 34000 ? 10.0 / problem.numOfItems : 0.04;\n //Algorithm algorithm = new GeneticAlgorithm(popSize, eliteSize,0.02, 1, evalProbability);\n\n Algorithm algorithm = new AntColonyAlgorithm.Builder()\n .withHistoryCoefficient(0.1)\n .withHeuristicCoefficient(2.5)\n .withTotalAnts(40)\n .build();\n List<Solution> nds = algorithm.solve(problem);\n System.out.println(problem.name + \" \" + nds.size() + \" \" + Competition.numberOfSolutions(problem));\n File dir = new File(\"results\");\n Util.writeSolutions(\"results\", Competition.TEAM_NAME, problem, nds);\n }\n }", "static public void main(String[] argv)\n {\n\tboolean bFirstAdded = false;\n\tHashtable master = new Hashtable();\n\tif (argv.length < 2)\n\t {\n\t System.out.println(\n \"Usage: DetailGenerator <xmlfilename> <langFileDirectory> [trace] [parseonly]\");\n\t System.exit(0);\n\t }\n\t\n\tI18NTextSource source = new I18NTextSource(\"en\",argv[1],\"%\");\n\ttry \n\t {\n\t DetailGenerator generator = new DetailGenerator(argv[0],null,\n\t\t\t\t\t\t source,\n\t\t\t\t\t\t null);\n\t if ((argv.length > 2) && (argv[2].compareTo(\"trace\") == 0))\n\t\tgenerator.setTracing(true);\n\n\t if ((argv.length > 3) && (argv[3].compareTo(\"parseonly\") == 0))\n\t\tgenerator.setParseOnly(true);\n\n\t generator.parse();\n\t if (generator.getPanelCount() > 0)\n\t generator.generateDetailHtml(null);\n\t }\n\tcatch (Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t}", "public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}", "public static void main(String[] args) {\n\t\tTestListener listener=new TestListener();\r\n\t\tXmlSuite suite=new XmlSuite();\r\n\t\tsuite.setName(\"Test Results\");\r\n\t\tsuite.setParallel(ParallelMode.METHODS);\r\n\t\tsuite.setThreadCount(Integer.parseInt(TestProperties.THREAD_COUNT.toString()));\r\n\t\tList<XmlSuite> suits=new ArrayList<XmlSuite>();\r\n\t\tsuits.add(suite);\r\n\r\n\r\n\t\tList<XmlPackage> xpackage=new ArrayList<XmlPackage>();\r\n\t\txpackage.add(new XmlPackage(TestProperties.TESTNG_PACKAGE.toString()));\r\n\r\n\t\t\r\n\t\tXmlTest test=new XmlTest(suite);\r\n\t\ttest.setPackages(xpackage);\r\n\t\tString groups=TestProperties.TESTNG_GROUP.toString();\r\n\t\tString groupArray[]=groups.split(\",\");\r\n\t\tList<String> includedGroups=new ArrayList<String>();\r\n\t\tincludedGroups.addAll(Arrays.asList(groupArray));\r\n\t\ttest.setIncludedGroups(includedGroups);\r\n\t\r\n\t\t\r\n\t\tTestNG tng=new TestNG();\r\n\t\ttng.setOutputDirectory(System.getProperty(\"user.dir\")+\"\\\\test-output\\\\\");\r\n\t\ttng.setXmlSuites(suits);\r\n\t\ttng.addListener((ITestNGListener) listener);\r\n\t\ttng.run();\r\n\t\tSystem.exit(0);\r\n\t}", "void runBuild(java.lang.Object buildKey, java.util.List targets) throws org.apache.ant.common.util.ExecutionException;", "public static void main(String[] args) throws SQLException, IOException {\n CONNECTION = getConnection();\n System.out.println(\"Enter the number of the check task\");\n int number = Integer.parseInt(READER.readLine());\n switch (number) {\n case 2:\n exerciseOne();\n break;\n case 3:\n exerciseTwo();\n break;\n case 4:\n exerciseThree();\n break;\n case 5:\n exerciseFive();\n break;\n case 6:\n exerciseSix();\n break;\n case 7:\n exerciseSeven();\n break;\n case 8:\n exerciseEight();\n break;\n case 9:\n exerciseNine();\n break;\n }\n\n }", "public void testRunWhileBuilding() {\n \t\tfinal IWorkspace workspace = ResourcesPlugin.getWorkspace();\n \t\t//create a POST_BUILD listener that will touch a project\n \t\tfinal IProject touch = workspace.getRoot().getProject(\"ToTouch\");\n \t\tfinal IProject rule = workspace.getRoot().getProject(\"jobThree\");\n \t\tfinal IFile ruleFile = rule.getFile(\"somefile.txt\");\n \t\tensureExistsInWorkspace(rule, true);\n \t\tensureExistsInWorkspace(touch, true);\n \t\tensureExistsInWorkspace(ruleFile, true);\n \t\tfinal Throwable[] failure = new Throwable[1];\n \t\tIResourceChangeListener listener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\ttry {\n \t\t\t\t\ttouch.touch(null);\n \t\t\t\t} catch (CoreException e) {\n \t\t\t\t\tfailure[0] = e;\n \t\t\t\t} catch (RuntimeException e) {\n \t\t\t\t\tfailure[0] = e;\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \t\tworkspace.addResourceChangeListener(listener, IResourceChangeEvent.POST_BUILD);\n \t\ttry {\n \t\t\t//create one job that does a build, and then waits\n \t\t\tfinal int[] status = new int[3];\n \t\t\tJob jobOne = new Job(\"jobOne\") {\n \t\t\t\tprotected IStatus run(IProgressMonitor monitor) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tworkspace.run(new IWorkspaceRunnable() {\n \t\t\t\t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\t\t\t\t//do a build\n \t\t\t\t\t\t\t\tworkspace.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor);\n \t\t\t\t\t\t\t\t//signal that the job has done the build\n \t\t\t\t\t\t\t\tstatus[0] = TestBarrier.STATUS_RUNNING;\n \t\t\t\t\t\t\t\t//wait for job two to start\n \t\t\t\t\t\t\t\tTestBarrier.waitForStatus(status, 0, TestBarrier.STATUS_WAIT_FOR_DONE);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}, null);\n \t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\treturn e.getStatus();\n \t\t\t\t\t}\n \t\t\t\t\treturn Status.OK_STATUS;\n \t\t\t\t}\n \t\t\t};\n \t\t\t//schedule and wait for job one to start\n \t\t\tjobOne.schedule();\n \t\t\tTestBarrier.waitForStatus(status, 0, TestBarrier.STATUS_RUNNING);\n \t\t\t\n \t\t\t//create job two that does an empty workspace operation\n \t\t\tJob jobTwo = new Job(\"jobTwo\") {\n \t\t\t\tprotected IStatus run(IProgressMonitor monitor) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tworkspace.run(new IWorkspaceRunnable() {\n\t\t\t\t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\t\t\t\t//signal that this job has started\n \t\t\t\t\t\t\t\tstatus[1] = TestBarrier.STATUS_RUNNING;\n \t\t\t\t\t\t\t\t//let job one finish\n \t\t\t\t\t\t\t\tstatus[0] = TestBarrier.STATUS_WAIT_FOR_DONE;\n \t\t\t\t\t\t\t\t//wait for job three to start\n \t\t\t\t\t\t\t\tTestBarrier.waitForStatus(status, 1, TestBarrier.STATUS_WAIT_FOR_DONE);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}, null, IResource.NONE, null);\n \t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\treturn e.getStatus();\n \t\t\t\t\t}\n \t\t\t\t\treturn Status.OK_STATUS;\n \t\t\t\t}\n \t\t\t};\n \t\t\tjobTwo.schedule();\n \t\t\t//create job three that has a non-null rule\n \t\t\tJob jobThree= new Job(\"jobThree\") {\n \t\t\t\tprotected IStatus run(IProgressMonitor monitor) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tworkspace.run(new IWorkspaceRunnable() {\n \t\t\t\t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\t\t\t\t//signal that this job has started\n \t\t\t\t\t\t\t\tstatus[2] = TestBarrier.STATUS_RUNNING;\n \t\t\t\t\t\t\t\t//let job two finish\n \t\t\t\t\t\t\t\tstatus[1] = TestBarrier.STATUS_WAIT_FOR_DONE;\n \t\t\t\t\t\t\t\t//ensure this job does something so the build listener runs\n \t\t\t\t\t\t\t\truleFile.touch(null);\n \t\t\t\t\t\t\t\t//wait for the ok to complete\n \t\t\t\t\t\t\t\tTestBarrier.waitForStatus(status, 2, TestBarrier.STATUS_WAIT_FOR_DONE);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}, workspace.getRuleFactory().modifyRule(ruleFile), IResource.NONE, null);\n \t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\treturn e.getStatus();\n \t\t\t\t\t}\n \t\t\t\t\treturn Status.OK_STATUS;\n \t\t\t\t}\n \t\t\t};\n \t\t\tjobThree.schedule();\n \t\t\t//wait for job two to complete\n \t\t\twaitForCompletion(jobTwo);\n \t\t\t\n \t\t\t//let job three complete\n \t\t\tstatus[2] = TestBarrier.STATUS_WAIT_FOR_DONE;\n \t\t\t\n \t\t\t//wait for job three to complete\n \t\t\twaitForCompletion(jobThree);\n \n \t\t\t//ensure no jobs failed\n \t\t\tIStatus result = jobOne.getResult();\n \t\t\tif (!result.isOK())\n \t\t\t\tfail(\"1.0\", new CoreException(result));\n \t\t\tresult = jobTwo.getResult();\n \t\t\tif (!result.isOK())\n \t\t\t\tfail(\"1.1\", new CoreException(result));\n \t\t\tresult = jobThree.getResult();\n \t\t\tif (!result.isOK())\n \t\t\t\tfail(\"1.2\", new CoreException(result));\n \t\t\t\n \t\t\tif (failure[0] != null)\n \t\t\t\tfail(\"1.3\", failure[0]);\n \t\t} finally {\n\t\t\t//esure listener is removed\n \t\t\tworkspace.removeResourceChangeListener(listener);\n \t\t}\n \t}", "public static void main(String[] args) throws Exception {\n\t\tLogger.getRootLogger().setLevel(Level.OFF);\n\t\tConfigurationLib configLib = new ConfigurationLib();\n\t\tString binPath = configLib.getTestSuitePath();\n\t\tTestNG testng = new TestNG();\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\n\t\tXmlSuite mySuite = new XmlSuite();\n\t\tList<XmlClass> xmlClasses = new ArrayList<XmlClass>();\n\t\tXmlTest test = null;\n\t\tString className = null;\n\t\tbinPath = binPath.replace(\"null\", \"\");\n\n\t\tFile dir = new File(binPath);\n\t\tList<File> files = (List<File>) FileUtils.listFiles(dir, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE);\n\t\tfor (File f : files) {\n\t\t\ttest = new XmlTest(mySuite);\n\t\t\tclassName = ((f.getCanonicalPath().replace(configLib.getBinaryPath(), \"\")).replace(\"\\\\\", \".\"));\n\t\t\tclassName = StringUtils.removeEnd(className, \".class\");\n\t\t\ttest.setName(className);\n\t\t\txmlClasses.add(new XmlClass(Class.forName(className)));\n\t\t}\n\n\t\ttest.setXmlClasses(xmlClasses);\n\t\tAnnotationTransformerImpl myTransformer = new AnnotationTransformerImpl();\n\t\ttestng.addListener(myTransformer);\n\t\tAlterSuiteImpl alterSuite = new AlterSuiteImpl();\n\t\ttestng.addListener(alterSuite);\n\t\tsuites.add(mySuite);\n\t\ttestng.setXmlSuites(suites);\n\t\tsuiteExec = true;\n\t\ttestng.run();\n\t}", "public static void main(String[] args) throws FileNotFoundException\n {\n\n Scanner sc = new Scanner(new File(\"example.in\"));\n\n // Read the number of testcases to follow\n int t = sc.nextInt();\n\n //Iterate over the testcases and solve the problem\n for (int i = 0; i < t; i++) {\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n AdjacencyList adj = new AdjacencyList(n);\n\n for (int j = 0; j < m; j++)\n {\n int v = sc.nextInt();\n int u = sc.nextInt();\n\n adj.addEdge(v, u);\n }\n\n System.out.println();\n System.out.println(\"testcase \" + i);\n testcase(adj);\n System.out.println();\n\n }\n }", "public static void main(String[] args) {\n new ExecutionPipeline(\n new ExerciseSelector(\"sheet\"),\n new ExerciseSheetFactory(\n new ExerciseSelector()\n )).run();\n }", "public static void main(String[] args) throws IOException, JAXBException {\n Report.builder()\n .moduleList(System.getProperty(MODULES_PROPERTY_NAME, DEFAULT_MODULES_LIST))\n .inputFileDir(System.getProperty(INPUT_FILE_DIR_PROPERTY_NAME, DEFAULT_INPUT_FILE_DIR))\n .inputFileName(System.getProperty(INPUT_FILE_NAME_PROPERTY_NAME, DEFAULT_INPUT_FILE_NAME))\n .outputFileDir(System.getProperty(OUTPUT_FILE_DIR_PROPERTY_NAME, DEFAULT_OUTPUT_FILE_DIR))\n .outputFileName(System.getProperty(OUTPUT_FILE_NAME_PROPERTY_NAME, DEFAULT_OUTPUT_FILE_NAME))\n .build()\n .execute();\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{\"-i\", \"-p\", \"src/test/resources/problems_resp.xml\", \"src/test/resources/context.txt\"};\n PrintStream prev = System.out;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(bos));\n XpathGenerator.main(args);\n System.setOut(prev);\n System.out.println(bos.toString());\n assertTrue(bos.toString().startsWith(\"/fhir:Bundle[1]\"));\n }", "public void testXML() {\n // check XML Entity Catalogs\n\n // \"Tools\"\n String toolsItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/Tools\"); // NOI18N\n // \"DTDs and XML Schemas\"\n String dtdsItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogAction_Name\");\n new Action(toolsItem + \"|\" + dtdsItem, null).perform();\n // \"DTDs and XML Schemas\"\n String dtdsTitle = Bundle.getString(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogPanel_Title\");\n NbDialogOperator dtdsOper = new NbDialogOperator(dtdsTitle);\n\n String publicID = \"-//DTD XMLCatalog//EN\";\n Node catalogNode = new Node(new JTreeOperator(dtdsOper),\n \"NetBeans Catalog|\"\n + publicID);\n // view and close it\n new ViewAction().perform(catalogNode);\n new EditorOperator(publicID).close();\n dtdsOper.close();\n\n // create an XML file\n\n // create xml package\n // select Source Packages to not create xml folder in Test Packages\n new SourcePackagesNode(SAMPLE_PROJECT_NAME).select();\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, \"xml\"); // NOI18N\n Node xmlNode = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), \"xml\"); //NOI18N\n // \"XML\"\n String xmlCategory = Bundle.getString(\"org.netbeans.api.xml.resources.Bundle\", \"Templates/XML\");\n // \"XML Document\"\n String xmlDocument = Bundle.getString(\"org.netbeans.modules.xml.resources.Bundle\", \"Templates/XML/XMLDocument.xml\");\n NewFileWizardOperator.invoke(xmlNode, xmlCategory, xmlDocument);\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(\"XMLDocument\"); // NOI18N\n nameStepOper.next();\n nameStepOper.finish();\n // wait node is present\n Node xmlDocumentNode = new Node(xmlNode, \"XMLDocument.xml\"); // NOI18N\n // wait xml document is open in editor\n new EditorOperator(\"XMLDocument.xml\").close(); // NOI18N\n\n // \"Check XML\"\n\n String checkXMLItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Check_XML\");\n // invoke context action to check xml\n new Action(null, checkXMLItem).perform(xmlDocumentNode);\n // \"XML check\"\n String xmlCheckTitle = Bundle.getString(\"org.netbeans.modules.xml.actions.Bundle\", \"TITLE_XML_check_window\");\n // find and close an output with the result of xml check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Validate XML\"\n\n String validateItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_XML\");\n // invoke context action to validate xml\n new Action(null, validateItem).perform(xmlDocumentNode);\n // find and close an output with the result of xml validation\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DTD...\"\n\n String generateDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDTD\");\n new ActionNoBlock(null, generateDTDItem).perform(xmlDocumentNode);\n // \"Select File Name\"\n String selectTitle = Bundle.getString(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_fileNameTitle\");\n NbDialogOperator selectDialog = new NbDialogOperator(selectTitle);\n // name has to be set because of issue http://www.netbeans.org/issues/show_bug.cgi?id=46049\n new JTextFieldOperator(selectDialog).setText(\"DTD\");\n String oKLabel = Bundle.getString(\"org.netbeans.core.windows.services.Bundle\", \"OK_OPTION_CAPTION\");\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait DTD is open in editor\n new EditorOperator(\"DTD.dtd\").close(); // NOI18N\n Node dtdNode = new Node(xmlNode, \"DTD.dtd\"); // NOI18N\n\n // \"Check DTD\"\n\n String checkDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_DTD\");\n new Action(null, checkDTDItem).perform(dtdNode);\n // find and close an output with the result of dtd check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DOM Tree Scanner\"\n String generateScannerItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDOMScanner\");\n new ActionNoBlock(null, generateScannerItem).perform(dtdNode);\n selectDialog = new NbDialogOperator(selectTitle);\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait Scanner is open in editor\n new EditorOperator(\"DTDScanner.java\").close(); // NOI18N\n new Node(xmlNode, \"DTDScanner.java\"); // NOI18N\n }", "public void testOneRunUnjudged() throws IOException, ClassNotFoundException, FileSecurityException {\n\n InternalContest contest = new InternalContest();\n \n initContestData(contest);\n Run run = getARun(contest);\n // Directory where test data is\n// String testDir = \"testdata\";\n// String projectPath=JUnitUtilities.locate(testDir);\n// if (projectPath == null) {\n// throw new IOException(\"Unable to locate \"+testDir);\n// }\n\n RunFiles runFiles = new RunFiles(run, loadData.getAbsolutePath());\n \n contest.addRun(run, runFiles, null);\n \n checkOutputXML(contest);\n }", "public static void main(String[] args) throws IOException {\n\t\tString task = \"palsquare\"; //XXX change this\n\t\tString path = !TESTING ? task + \".in\"\n\t\t\t\t: System.getProperty(\"user.dir\") + File.separator + \"src\" + File.separator + \"test.in\";\n\t\tInputReader in = new InputReader(new FileInputStream(path));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(task + \".out\")));\n\t\tsolve(in, out);\n\t\tout.close();\n\t}", "@Test\n public void testGemInstructions() throws URISyntaxException {\n\n\t\tTestBase testBase = TestBase.getInstance();\n\n\n\n\t\tDAQ snapshot = testBase.getSnapshot(\"1533649437939.json.gz\");\n\n\t\ttestBase.runLogic(snapshot);\n\n\t\tOutput output = testBase.getOutputOf(LogicModuleRegistry.FlowchartCase1);\n\n\n\t\tAssert.assertTrue(output.getResult());\n\n\t\tKnownFailure knownFailure = (KnownFailure)LogicModuleRegistry.FlowchartCase1.getLogicModule();\n\t\tAssert.assertEquals(\"GEM-1467\", knownFailure.getContextHandler().getActionKey());\n\t\tList<String> action = knownFailure.getActionWithContext();\n\n\t\tassertEquals(2, action.size());\n\t\tassertEquals(\"Stop and start the run\", action.get(0));\n\t\tassertEquals(\"Call the GEM DOC\", action.get(1));\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 testGeneration() throws Exception\n {\n QdoxModelBuilder builder = new QdoxModelBuilder();\n\n ClassLoader classLoader = this.getClass().getClassLoader();\n URL sourceUrl = classLoader\n .getResource(\"builder/generation/testpkg/ComponentBase.java\");\n String parentDirName = new File(sourceUrl.getFile()).getParent();\n File parentDir = new File(parentDirName);\n File baseDir = parentDir.getParentFile();\n List sourceDirs = new ArrayList();\n sourceDirs.add(baseDir.getAbsolutePath());\n\n Model model = new Model();\n model.setModelId(\"test\");\n ModelParams parameters = new ModelParams();\n parameters.setSourceDirs(sourceDirs);\n builder.buildModel(model, parameters);\n\n // basic sanity checks\n assertTrue(model.getComponents().size() > 0);\n\n // Now write it. Optionally, we could just write it to an in-memory\n // buffer.\n File outfile = new File(\"target/generation-out.xml\");\n IOUtils.saveModel(model, outfile);\n\n StringWriter outbuf = new StringWriter();\n IOUtils.writeModel(model, outbuf);\n\n compareData(outfile, \"builder/generation/goodfile.xml\");\n }", "@Test\n public void testCanReadXml() throws Exception {\n final String xml = new TestJenkins().jobs().iterator().next().builds()\n .iterator().next().xml();\n MatcherAssert.assertThat(\n xml.startsWith(\"<build>\"), new IsEqual<>(true)\n );\n MatcherAssert.assertThat(\n xml.contains(\"<displayName>#1</displayName>\"),\n new IsEqual<>(true)\n );\n MatcherAssert.assertThat(\n xml.endsWith(\"</build>\"), new IsEqual<>(true)\n );\n }", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "public List<AssertionFailure> go() throws IOException,\r\n RecognitionException, CheckerExpception, InterruptedException,\r\n SMTSolverTimeoutException, UnknownResultException {\n Program p = SimpleCParserUtil.createAST(inputFile);\r\n\r\n // Add blocks to make things simpler\r\n // E.g. if(c) stmt; becomes if(c) {stmt;} else {}\r\n p = (Program) new MakeBlockVisitor().visit(p);\r\n\r\n // Do basic checks\r\n // E.g. Variables declared before use\r\n // no duplicate local variables\r\n Checker checker = new Checker();\r\n boolean success = checker.check(p);\r\n if (!success) {\r\n throw new CheckerExpception(checker.getCheckerError());\r\n }\r\n\r\n // Checks whether abstract loop abstraction is turned on\r\n if (clArgs.abstractLoops) {\r\n p = (Program) new LoopAbstractionVisitor().visit(p);\r\n } else {\r\n p = (Program) new LoopUnwinderVisitor(clArgs.unwindingAssertions,\r\n clArgs.unwindDepth).visit(p);\r\n }\r\n\r\n // Carries out predication on the program\r\n p = (Program) new PredicationVisitor().visit(p);\r\n\r\n // Carries out ssa renaming on the program\r\n p = (Program) new SSAVisitor().visit(p);\r\n\r\n // Output the program as text after being transformed (for debugging)\r\n // Comment the code below to hide the output\r\n String programText = new PrinterVisitor().visit(p);\r\n System.out.println(programText);\r\n\r\n // Collect the constraint expressions and variable names\r\n CollectConstraintsVisitor collectConstraintsVisitor = new CollectConstraintsVisitor();\r\n collectConstraintsVisitor.visit(p);\r\n\r\n // Stores the assertion failures\r\n List<AssertionFailure> assertionFailures = new ArrayList<AssertionFailure>();\r\n\r\n // Stop here if there are no assertions (properties) to check\r\n if (collectConstraintsVisitor.propertyExprs.size() == 0) {\r\n System.out.println(\"No asserts! Stopping.\");\r\n return assertionFailures;\r\n }\r\n\r\n // Convert constraints to SMTLIB string\r\n SMTLIBConverter converter = new SMTLIBConverter(collectConstraintsVisitor.variableNames,\r\n collectConstraintsVisitor.transitionExprs, collectConstraintsVisitor.propertyExprs);\r\n String smtQuery = converter.getQuery();\r\n\r\n // Submit query to SMT solver\r\n SMTQuery query = new SMTQuery(smtQuery, clArgs.timeout * 1000);\r\n String queryResult = query.go();\r\n if (queryResult == null) {\r\n throw new SMTSolverTimeoutException(\"Timeout!\");\r\n }\r\n System.out.println(\"--SMT COMPLETE--\");\r\n\r\n // Report the assertions that can be violated\r\n handleAssertionFailures(assertionFailures, collectConstraintsVisitor, queryResult);\r\n\r\n return assertionFailures;\r\n }", "public void execute() throws MojoExecutionException {\n CodeGeneratorLoggerFactory.setLogger(getLog());\n\n // iff baseFolder is null or empty, reset it to the default value\n baseFolder = StringUtils.defaultIfEmpty(baseFolder, \"GUIData\");\n\n // create the helper with our config\n CodeGeneratorHelper helper = new CodeGeneratorHelper(toCodeGeneratorConfig());\n\n if (CodeGeneratorLoggerFactory.getLogger().isDebugEnabled()) {\n helper.displayProjectInformation();\n }\n\n // register all custom element classes\n helper.registerCustomElements();\n\n // create the generated page details file\n helper.createSeLionPageDetailsFile();\n\n // process the files.\n helper.processFiles();\n }", "public static void executeCleanBuild(String[] args) {\n\r\n\t\tSystem.out.println(\"STARTED TRANSFORMING FILES\");\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tArabicLayoutOrchestrator reviewOrchestrator = new ArabicLayoutOrchestrator();\r\n\t\t\t\r\n\t\t\tReviewModeConstants.TESTING_MODE_FLAG = true;\r\n\t\t\t\r\n\t\t\tif (args != null && args.length>0 && args[0] != null && args[0].trim().length()>0) {\r\n\t\t\t\tSystem.out.println(\"PROJECT FOLDER : \" + args[0]);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Unable to locate the Project !! Project Folder should be passed as an input arg to this task !! \");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tBuildPropertiesUtil.init(args[0]);\r\n\t\t\t\r\n\t\t\tLinkedHashSet<String> channelList = BuildPropertiesUtil.getSelectedChannelList();\r\n\t\t\tif(channelList.size() == 0) {\r\n\t\t\t\tSystem.out.println(\"Invalid/No Platforms Platforms selected. Please check your build.properties file\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint status = BuildPropertiesUtil.executeBuild(args[0]);\r\n\t\t\t\r\n\t\t\tif(status == 0){\r\n\t\t\t\tSystem.out.println(\"\\n************** Build Execution is successful. **************\\n\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"\\n************** Build Execution Failed. Please check the console Logs. **************\\n\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(String channel : channelList){\t\r\n\t\t\t\treviewOrchestrator.performCodeReview((new Date()).getTime());\r\n\t\t\t\t\r\n\t\t\t\tint buildStatus = BuildPropertiesUtil.executeBuild(args[0]);\r\n\t\t\t\t\r\n\t\t\t\tif(buildStatus == 0){\r\n\t\t\t\t\tJSReviewUtil.printToConsole(\"\\n************** Build execution for Channel \"+channel+\" is successful **********\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(\"ERROR : \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"COMPLETED TRANSFORMING FILES\");\r\n\t}", "public static void main(String[] args) {\n ExerciseTwo cr = new ExerciseTwo();\n cr.ex02();\n }", "public static void main(String[] args) throws IOException {\n final dev.punchcafe.vngine.game.GameBuilder<NarrativeImp> gameBuilder = new dev.punchcafe.vngine.game.GameBuilder();\n final NarrativeAdaptor<Object> narrativeReader = (file) -> List.of();\n final var pom = PomLoader.forGame(new File(\"command-line/src/main/resources/vng-game-1\"), narrativeReader).loadGameConfiguration();\n final var narratives = NarrativeParser.parseNarrative(new File(\"command-line/src/main/resources/vng-game-1/narratives/narratives.yml\"));\n final var narrativeService = new NarrativeServiceImp(narratives);\n gameBuilder.setNarrativeReader(new NarrativeReaderImp());\n gameBuilder.setNarrativeService(narrativeService);\n gameBuilder.setPlayerObserver(new SimplePlayerObserver());\n gameBuilder.setProjectObjectModel(pom);\n final var game = gameBuilder.build();\n //game.startNewGame();\n final var saveFile = GameSave.builder()\n .nodeIdentifier(NodeIdentifier.builder()\n .chapterId(\"ch_01\")\n .nodeId(\"1_2_2\")\n .build())\n .savedGameState(SavedGameState.builder()\n .chapterStateSnapshot(StateSnapshot.builder()\n .booleanPropertyMap(Map.of())\n .integerPropertyMap(Map.of())\n .stringPropertyMap(Map.of())\n .build())\n .gameStateSnapshot(StateSnapshot.builder()\n .booleanPropertyMap(Map.of())\n .integerPropertyMap(Map.of())\n .stringPropertyMap(Map.of())\n .build())\n .build())\n .build();\n final var saveGame = game.loadGame(saveFile)\n .tick()\n .tick()\n .saveGame();\n System.out.println(\"checkpoint\");\n }", "public static void main(String args[])\n {\n LoadFileSupport sample = new LoadFileSupport();\n sample.createNewInstance(\"C:/pavan/j2eeWork/ws-studio-ie-workspace/xml-test/HTMLtoXSLProject/IncomingTimber/LoadSampleSample.xml\");\n sample.loadExistingInstance(\"C:/pavan/j2eeWork/ws-studio-ie-workspace/xml-test/HTMLtoXSLProject/IncomingTimber/LoadSampleSample.xml\");\n }", "public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }", "public void testBuilderExample() throws IOException {\n doTest();\n }", "private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }", "@Override\r\n public void execute() throws BuildException { \r\n AbstractGenerator g;\r\n \r\n if (kind == null) {\r\n throw new BuildException(\"kind was not specified\");\r\n }\r\n final String k = kind.getValue();\r\n if (k.equals(INTERFACE)) {\r\n g = new InterfaceGen();\r\n }\r\n else if (k.equals(CRYSTAL)) {\r\n g = new CrystalGen();\r\n }\r\n else if (k.equals(OPERATOR)) {\r\n g = new OperatorGen();\r\n }\r\n else {\r\n throw new BuildException(\"Unknown kind was specified: \"+kind);\r\n }\r\n if (dest != null) {\r\n srcs.add(0, \"-out\");\r\n srcs.add(1, dest);\r\n }\r\n g.generate(srcs.toArray(new String[srcs.size()]));\r\n }", "private void runProject() {\n\t\t// displays text input dialog to get user JDK path\n\t\tString s = (String) JOptionPane.showInputDialog(new JFrame(), \"Java JDK Path:\", \"Run Process\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, null, path);\n\t\t// if the user did not cancel and the string is not empty\n\t\tif ((s != null) && (s.length() > 0)) {\n\t\t\t// set the path to input\n\t\t\tpath = s;\n\t\t\t// compile and run the process\n\t\t\ttry {\n\t\t\t\tArrayList<DraggableRect> startRects = Controller.getRectsByType(5);\n\t\t\t\tfor (DraggableRect r : startRects) {\n\t\t\t\t\tRun.genJava(r);\n\t\t\t\t}\n\t\t\t\trunProcess(Save.getFile() + \".java\");\n\t\t\t\t// catches invalid path exception\n\t\t\t} catch (IOException io) {\n\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Invalid Path\");\n\t\t\t\tio.printStackTrace();\n\t\t\t\t// catches other exceptions\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n// final File folder = new File(\"tests/speedTestExamples\");\n final File folder = new File(\"tests/speedTestExamples/hard\");\n iterateExamples(folder);\n long ms = System.currentTimeMillis() - startTime;\n System.out.println(\"All tests have been finished in \" + ((double) ms) / (1000 * 60 * 60) + \" hours.\");\n }", "@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 }", "public static void main(String[] args) {\n\t\tTestNG testNG = new TestNG();\n\t\tTestListenerAdapter adapter = new TestListenerAdapter();\n\t\tList<String> suites = new ArrayList<>();\n\t\ttestNG.addListener((ITestNGListener) adapter);\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/main_testng.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng1.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng2.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng3.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng4.xml\");\n\t\ttestNG.setTestSuites(suites);\n\t\ttestNG.setParallel(XmlSuite.ParallelMode.METHODS);\n\t\ttestNG.setPreserveOrder(true);\n\t\ttestNG.setSuiteThreadPoolSize(5);\n\t\ttestNG.setVerbose(0);\n\t\ttestNG.setOutputDirectory(\"test-output\");\n\t\ttestNG.run();\n\t}", "@Test\n\tpublic void buildTest() {\n\t\tXMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();\n\n\t\t// Get the assertion builder based on the assertion element name\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSAMLObjectBuilder<Assertion> builder = (SAMLObjectBuilder<Assertion>) builderFactory\n\t\t\t\t.getBuilder(Assertion.DEFAULT_ELEMENT_NAME);\n\n\t\t// Create the assertion\n\t\tAssertion assertion = builder.buildObject();\n\n\t}", "public void execute()\n throws BuildException {\n this.validator = new TestClassValidator.DefaultClassValidator();\n this.validator.setListener(new TestClassValidator.ClassValidatorListener() {\n public void info(String message) {\n log(\"INFO> \" + message, verbosity);\n System.out.println(\"INFO> \" + message);\n }\n\n public void warning(String message) {\n log(\"WARNING> \" + message, verbosity);\n System.out.println(\"WARNING> \" + message);\n }\n\n public void error(String message) {\n log(\"ERROR> \" + message, verbosity);\n System.out.println(\"ERROR> \" + message);\n }\n });\n\n\n if (classpath != null) {\n classpath.setProject(project);\n this.loader = new AntClassLoader(project, classpath);\n }\n\n log(TestClassValidator.BANNER, Project.MSG_VERBOSE);\n System.out.println(TestClassValidator.BANNER);\n int count = 0;\n for (int i = 0; i < filesets.size(); i++) {\n FileSet fs = (FileSet) filesets.get(i);\n\n try {\n DirectoryScanner ds = fs.getDirectoryScanner(project);\n ds.scan();\n\n String[] files = ds.getIncludedFiles();\n\n for (int k = 0; k < files.length; k++) {\n String pathname = files[k];\n if (pathname.endsWith(\".class\")) {\n String classname = pathname.substring(0, pathname.length() - \".class\".length()).replace(File.separatorChar, '.');\n processFile(classname);\n }\n }\n count += files.length;\n } catch (BuildException e) {\n if (failonerror) {\n throw e;\n } else {\n log(e.getMessage(), quiet ? Project.MSG_VERBOSE : Project.MSG_WARN);\n }\n } catch (ClassNotFoundException e) {\n if (failonerror) {\n throw new BuildException(e);\n } else {\n log(e.getMessage(), quiet ? Project.MSG_VERBOSE : Project.MSG_WARN);\n }\n }\n log(\"Number of classes: \" + count, Project.MSG_VERBOSE);\n System.out.println(\"Number of classes: \" + count);\n }\n }", "@Test\n\tpublic void testAllExampleGenerations() {\n\t\ttry {\n\t\t\tOdfHelper.main(null);\n\t\t} catch (Exception ex) {\n\t\t\tLOG.log(Level.SEVERE, null, ex);\n\t\t\tAssert.fail(ex.toString());\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Enter your action:\");\n\n\t\tSystem.out.println(\"1->Data Generation\" + \"\\n2->Commit Change Analysis and Import Full Log\"\n\t\t\t\t+ \"\\n3->Differential Log Analysis and Import\" + \"\\n4->Perform Fault Localization on Full Log\"\n\t\t\t\t+ \"\\n5->Perform Fault Localization on Differenttial Log\"\n\t\t\t\t+ \"\\n6->Perform Fault Localization on Differenttial Log + File Change\" + \"\\n7->For Logging\"\n\t\t\t\t+ \"\\n8->Log Fail Part Line Similarity Generator\"\n\t\t\t\t+ \"\\n9->Perform Fault Localization on Fail Part Log with Similarity Limit\"\n\t\t\t\t+ \"\\n10->Build Dependency Analysis\" + \"\\n11->Log Analysis\" + \"\\n12->ASTParser Checking\"\n\t\t\t\t+ \"\\n13->Analyze Result\" + \"\\n14->Generate Similarity on Build Dependency Graph\"\n\t\t\t\t+ \"\\n21->Param Tunning for DiffFilter\" + \"\\n22->Set Tunning Dataset Tag\"\n\t\t\t\t+ \"\\n23->Set Failing Type\"\n\t\t\t\t\n\t\t\t\t+ \"\\n31->Performance Analysis for Reverting File\" \n\t\t\t\t+ \"\\n32->Full Log Based\" \n\t\t\t\t+ \"\\n33->Full Log AST Based\"\n\t\t\t\t+ \"\\n34->Diff filter+Dependency+BoostScore\" \n\t\t\t\t+ \"\\n35->Diff filter+Dependency\"\n\t\t\t\t+ \"\\n36->Diff filter+BoostScore\" \n\t\t\t\t+ \"\\n37->Full Log+Dependency+BoostScore\"\n\t\t\t\t+ \"\\n38->Baseline(Saha et al){Fail Part Log+Java File Rank+Then Gradle Build Script}\"\n\t\t\t\t+ \"\\n39->All Evaluation Experiment\"\n\t\t\t\t+ \"\\n41->Strace Experiment\");\n\n\t\t// create an object that reads integers:\n\t\tScanner cin = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Enter an integer: \");\n\t\tint inputid = cin.nextInt();\n\n\t\tif (inputid == 1) {\n\t\t\tdataFiltering();\n\t\t} else if (inputid == 2) {\n\t\t\tcommitChangeAnalysis();\n\t\t} else if (inputid == 3) {\n\t\t\tgenDifferentialBuildLog();\n\t\t} else if (inputid == 4) {\n\t\t\tgenerateSimilarity();\n\t\t\t// generateSimilarityDifferentialLog();\n\t\t\t// genSimDifferentialLogOnChange();\n\t\t} else if (inputid == 5) {\n\t\t\tgenerateSimilarityDifferentialLog();\n\t\t} else if (inputid == 6) {\n\t\t\tgenSimDifferentialLogOnChange();\n\t\t} else if (inputid == 7) {\n\t\t\tgenSimDifferentialLogOnChangeForLogging();\n\t\t} else if (inputid == 8) {\n\t\t\tgenerateStoreFailPartSimValue();\n\t\t} else if (inputid == 9) {\n\t\t\tgenSimFailLogPartWithSimLimit();\n\t\t} else if (inputid == 10) {\n\t\t\tgenerateBuildDependencyTree();\n\t\t} else if (inputid == 11) {\n\t\t\tgenerateLogForAnalysis();\n\t\t} else if (inputid == 12) {\n\t\t\tastParserChecker();\n\t\t} else if (inputid == 13) {\n\t\t\tperformResultAnalysis();\n\t\t} else if (inputid == 14) {\n\t\t\tgenerateSimilarityWithDependency();\n\n\t\t}\n\t\t// this is for 6,8,9,13 menu runnning together for analysis\n\t\telse if (inputid == 21) {\n\t\t\tparameterTunningDiffFilter();\n\t\t} else if (inputid == 22) {\n\t\t\tTunningDTSetter dtsetter = new TunningDTSetter();\n\t\t\ttry {\n\t\t\t\tdtsetter.setTunningDataTags(100);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t;\n\n\t\t}\n\t\telse if(inputid==23)\n\t\t{\n\t\t\tGenerateTestFailType typesetobj=new GenerateTestFailType();\n\t\t\ttypesetobj.generateFailType();\n\t\t}\n\n\t\telse if (inputid == 31) {\n\t\t\tEvaluationMgr.FixWithBuildFailChangeEval();\n\t\t} else if (inputid == 32) {\n\t\t\tEvaluationMgr.FullLogFaultLocalizationEval();\n\t\t} else if (inputid == 33) {\n\t\t\tEvaluationMgr.FullLogASTFaultLocalizationEval();\n\t\t} else if (inputid == 34) {\n\t\t\tEvaluationMgr.DiffFilterDependencyWithBoostScoreSimEval();\n\t\t} else if (inputid == 35) {\n\t\t\tEvaluationMgr.DiffFilterDependencySimEval();\n\t\t} else if (inputid == 36) {\n\t\t\tEvaluationMgr.DiffFilterBoostScoreSimEval();\n\t\t} else if (inputid == 37) {\n\t\t\tEvaluationMgr.FullLogDependencyBoostScoreSimEval();\n\t\t} else if (inputid == 38) {\n\t\t\tEvaluationMgr.BaseLineForISSTA();\n\t\t} \n\t\telse if((inputid == 39))\n\t\t{\n\t\t\tEvaluationMgr.FixWithBuildFailChangeEval();\n\t\t\tEvaluationMgr.FullLogFaultLocalizationEval();\n\t\t\tEvaluationMgr.FullLogASTFaultLocalizationEval();\n\t\t\tEvaluationMgr.DiffFilterDependencyWithBoostScoreSimEval();\n\t\t\tEvaluationMgr.DiffFilterDependencySimEval();\n\t\t\tEvaluationMgr.DiffFilterBoostScoreSimEval();\n\t\t\tEvaluationMgr.FullLogDependencyBoostScoreSimEval();\n\t\t\tEvaluationMgr.BaseLineForISSTA();\n\t\t\t\n\t\t}\t\t\n\t\telse if (inputid == 68913) {\n\t\t\tgenSimDifferentialLogOnChange();\n\t\t\tgenSimDifferentialLogOnChangeForLogging();\n\t\t\tgenSimFailLogPartWithSimLimit();\n\t\t\tperformResultAnalysis();\n\t\t}\n\t\telse if(inputid == 41)\n\t\t{\n\t\t\tRankingMgr straceraking=new RankingMgr();\n\t\t\tstraceraking.generateStraceRanking();\n\t\t}\n\n\t\telse {\n\t\t\tCommitChangeExtractor obj = new CommitChangeExtractor();\n\t\t\tobj.testCommit();\n\n\t\t\tSystem.out.println(\"Wrong Function Id Entered\");\n\n\t\t\tConfig.thresholdForSimFilter = 0.1;\n\n\t\t\tSystem.out.println(Config.thresholdForSimFilter);\n\t\t}\n\n\t\tcleanupResource();\n\t}", "protected abstract void executeTests() throws BuilderException;", "public static void ConvertToBuilt()\r\n\t{\r\n\t\t Browser.instance.findElement(exitButton).click();\r\n\t\tBuildBagsPage.goTo();\r\n\t\tBuildBagsPage.EmptyToBuilt();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n XmlToHtmlConverter x = new XmlToHtmlConverter();\n x.populateForApi();\n x.generateToc();\n x.generateIndividualCommandPages();\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}", "Execution executeRecipe(TestRecipe recipe);", "public static void main(String[] args) {\n\n if (args.length < 2 || args.length > 3) {\n System.out.println(\"Usage: BuildDemoData <dir> <file> [<jenaflag>]\");\n System.out.println(\"where <dir> is the output directory\");\n System.out.println(\"where <file> is a properties file\");\n System.out.println(\"where <jenaflag> is any value\");\n System.exit(0);\n }\n\n Properties dataProps = new Properties();\n\n try {\n File props = new File(args[1]);\n FileInputStream fis = new FileInputStream(props);\n dataProps.load((InputStream) fis);\n } catch (Exception e) {\n System.err.println(e.toString());\n e.printStackTrace();\n }\n\n \tModel model = ModelFactory.createDefaultModel();\n try {\n model = getModelFromFiles(dataProps);\n } catch (Exception e) {\n System.err.println(e.toString());\n e.printStackTrace();\n }\n \n System.out.println(\"Writing no inferencing model...\");\n writeModel(model, args[0] + \"simileDemoNoInference.rdf\");\n System.out.println(\"Uninferenced model contains \" + model.size() + \" statements\");\n\n System.out.println(\"Inferencing...\"); \t\n if (args.length == 2) {\n Reasoner reasoner = new SimileReasoner();\n writeModel(reasoner.process(model), args[0] + \"simileDemoMappingInference.rdf\");\n } else {\n Reasoner reasoner = new JenaReasoner();\n writeModel(reasoner.process(model), args[0] + \"simileDemoJenaInference.rdf\");\n }\n \n System.out.println(\"Inferenced model contains \" + model.size() + \" statements\");\n }", "public void exp1() throws Exception {\n String exp = \"E1\";\n//\n// testNoExpansion(exp, \"RankedBoolean\");\n\n // pass the parameter file to main\n String[] args = new String[1];\n String[] slist = new String[]{\"param-E1-RankedBoolean.txt\"};\n //\"param-E1-Indri-NoRef.txt\" \"param-E1-Indri-YRef.txt\",\"param-Exp1-Indri-false-1000-0.4.txt\", \"param-Exp1-Indri-false-1000-0.7.txt\",\"param-Exp1-Indri-false-2500-0.4.txt\", \"param-Exp1-Indri-false-2500-0.7.txt\",\n for (String paramFilePath: slist) {\n args[0] = \"hw3/param/\" + paramFilePath;\n QryEval.main(args);\n }\n }", "public static void main(String[] args) {\r\n\t\tnew CreateDataModelForFile(PROJECT_NAME, RELATIVE_FILE_PATH).execute();\r\n\t}", "public static void main(String[] args) {\n\t\tExercise1b ex1b = new Exercise1b();\n\t\tex1b.run();\n\t}", "public void run() {\r\n\t\tvar configs = new Configurations();\r\n\t\ttry {\r\n\t\t\tconfig = configs.properties(new File(PROPERTIES_FILE_NAME));\r\n\t\t\toutputDirPath = config.getString(OUTPUT_DIR_KEY, \"./\");\r\n\t\t\tvar dir = new File(outputDirPath);\r\n\t\t\toutputDirPath = dir.getAbsolutePath();\r\n\t\t\tdir.mkdirs();\r\n\t\t} catch (ConfigurationException cex) {\r\n\t\t\tlogger.severe(\"Initialization failed: unable to load \" + PROPERTIES_FILE_NAME + \"!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsetOutputDirectory();\r\n\t\tlogger.info(\"Synthesizer: started\");\r\n\t\tsynthesisTime.reset();\r\n\t\tplanningTime.reset();\r\n\t\ttry {\r\n\t\t\tvar problem = genProblem();\r\n\t\t\tdebugger = new JminorDebugger(config, logger, problem.name, outputDirPath);\r\n\t\t\tdebugger.addLink(logFile.getName(), \"Events log\");\r\n\t\t\tdebugger.addCodeFile(\"problem.txt\", problem.toString(), \"Specification\");\r\n\t\t\tdebugger.printExamples(problem.examples);\r\n\t\t\tsynthesisTime.start();\r\n\t\t\tvar planner = new AStar<JmStore, Stmt>(new BasicJminorTR(problem.semantics));\r\n\t\t\tvar synthesizer = new PETISynthesizer<JmStore, Stmt, BoolExpr>(planner, config, logger, debugger);\r\n\t\t\tvar synthesisResult = synthesizer.synthesize(problem);\r\n\t\t\tif (synthesisResult.success()) {\r\n\t\t\t\tlogger.info(\"success!\");\r\n\t\t\t\t// We have to structure _after_ testing against the test examples,\r\n\t\t\t\t// since currently a command sequence is counted as an atomic\r\n\t\t\t\t// command, which fails the tests.\r\n\t\t\t\tvar automaton = synthesisResult.get();\r\n\t\t\t\tif (config.getBoolean(\"pexyn.structureResultAutomaton\", false)) {\r\n\t\t\t\t\tnew AutomatonToStructuredCmd<JmStore, Stmt, BoolExpr>(\r\n\t\t\t\t\t\t\t(StructuredSemantics<JmStore, Stmt, BoolExpr>) problem.semantics()).compress(automaton);\r\n\t\t\t\t\tdebugger.printAutomaton(automaton, \"Compressed automaton\");\r\n\t\t\t\t}\r\n\t\t\t\tif (config.getBoolean(\"jminor.generateJavaImplementation\", true)) {\r\n\t\t\t\t\tvar backend = AutomatonCodegen.forJava(automaton, problem, config, debugger, logger);\r\n\t\t\t\t\tbackend.generate();\r\n\t\t\t\t}\r\n\t\t\t\tif (config.getBoolean(\"jminor.generateDafnyImplementation\", true)) {\r\n\t\t\t\t\tvar backend = AutomatonCodegen.forDafny(automaton, problem, config, debugger, logger);\r\n\t\t\t\t\tbackend.generate();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.info(\"fail!\");\r\n\t\t\t}\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.severe(t.toString());\r\n\t\t\tt.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsynthesisTime.stop();\r\n\t\t\tlogger.info(\"Planning time: \" + planningTime.toSeconds());\r\n\t\t\tlogger.info(\"Synthesizer: done! (\" + synthesisTime.toSeconds() + \")\");\r\n\t\t\tdebugger.refresh();\r\n\t\t}\r\n\t}", "private static void runExamples() throws Exception {\n\t\t\n\t\tJavaModeReffDif javaMRD = new JavaModeReffDif(\"https://github.com/airbnb/lottie-android.git\", \"lottie-android\",\"2ccdac06f95f68752abdede79770f5a8904e7e12\");\n\t\tjavaMRD.checkCommits();\n\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tFileInputStream input=new FileInputStream(file);\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tXSSFWorkbook workbook=new XSSFWorkbook(input);\r\n\t\t\tXSSFSheet sheet=workbook.getSheet(\"Test_Runner\");\r\n\t\t\tString testcase;\r\n\t\t\t\r\n\t\t\tfor(int i=1;i<=sheet.getLastRowNum();i++) {\r\n\t\t\t\tXSSFRow row=sheet.getRow(i);\r\n\t\t\t\tXSSFCell cell=row.getCell(0);\r\n\t\t\t\tXSSFCell cell1=row.getCell(1);\r\n\t\t\t\t\r\n\t\t\t\ttestcase=cell.getStringCellValue();\r\n\t\t\t\tString flag=cell1.getStringCellValue();\r\n\t\t\t\tif(flag.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\ttests_to_run(testcase,workbook);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n TestHelper.runTests(args, ActionEditorTest.class);\n }", "public static void main(String[] args) {\n\t\tUtility utility = new Utility();\n\t\t\n\t\t// build trainingset\n\t\tSystem.out.println(\"Training System....\");\n\t\tArrayList<Student> trainingSet = utility.readStudentfile(\"porto_math_train.csv\");\n\t\tArrayList<Variable> variableSets = Student.getAllVar();\n\n\t\tTree tree = new Tree();\n\t\tNode decisionTree = tree.buildTree2(trainingSet, variableSets);\n\n\t\tutility .printNode(decisionTree);\n\n\t\t// testing DT\n\t\tSystem.out.println(\"\\tTesting System (trainingSet)....\");\n\t\tutility.testTree2(trainingSet, decisionTree);\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\tTesting System (testSet)....\");\n\t\tArrayList<Student> testSet = utility.readStudentfile(\"porto_math_test.csv\");\n\t\tutility.testTree2(testSet, decisionTree);\t\t\n\t}", "public static void main (String [] args) {\r\n TestNG runner= new TestNG();\r\n suitefiles=new ArrayList<String>();\r\n checkarguments(args);\r\n //suitefiles.add(\"C:\\\\data\\\\workspace\\\\webauto\\\\Suites.xml\");\r\n runner.setTestSuites(suitefiles);\r\n runner.run();\r\n }", "public static void main(String[] args) {\n\t\t/* Project 1: Easy with plenty of time */\n\t\tSystem.out.println(\"You should \" + decision(12, 1) + \" Project 1\");\n\t\t/* Project 2: Hard with very little time */\n\t\tSystem.out.println(\"You should \" + decision(1, 9) + \" Project 2\");\n\t\t/* Project 3: Easy but with little time */\n\t\tSystem.out.println(\"You should \" + decision(2, 5) + \" Project 3\");\n\t\t/* Project 4: Hard but with lots of time */\n\t\tSystem.out.println(\"You should \" + decision(12, 8) + \" Project 4\");\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 }", "public static void main(String[] args) throws ParseException {\n System.out.println(\"Would you like to use the example project? (y/n) \");\n String selection = input.nextLine();\n if (selection.equals(\"y\")) {\n Project example = exampleProject();\n System.out.print(example.toString());\n menuSelection();\n } else {\n menuSelection();\n }\n }", "public static void main(String[] args) {\n\n Building building1 = new Building(\"Building_A\");\n building1.addRoom(new Room(\"Kitchen\", 256, 2));\n try {\n building1.getRoom(\"Kitchen\")\n .addLightBulb(new LightBulbs(25))\n .addFurniture(new Armchair(\"Armchair_1\", 25, 45))\n .addLightBulb(new LightBulbs(58));\n } catch (RoomNotFoundException e) {\n System.out.println(e.getMessage());\n }\n building1.addRoom(new Room(\"Bedroom\", 258, 4));\n try {\n building1.getRoom(\"Bedroom\")\n .addLightBulb(new LightBulbs(684))\n .addLightBulb(new LightBulbs(158))\n .addFurniture(new Table(\"Table\", 45))\n .addFurniture(new Armchair(\"Armchair_2\", 12, 15));\n } catch (RoomNotFoundException e) {\n System.out.println(e.getMessage());\n }\n\n building1.addRoom(new Room(\"Bathroom\", 25, 1));\n if (building1.verifyBuilding() == false) {\n return;\n }\n System.out.println(building1.describe());\n }", "private void openSubFile() throws Exception {\r\n sub = new PrintOutput(SUBMISSION);\r\n \r\n xml = new XMLSerializer(sub, false, true);\r\n xml.doctype(token(\"efficiency-submission\"),\r\n token(\"\\\"efficiency-submission.dtd\\\"\"), null);\r\n \r\n // print header in output file\r\n xml.openElement(token(\"efficiency-submission\"),\r\n token(\"participant-id\"), token(\"304\"),\r\n token(\"run-id\"), token(\"1111111\"),\r\n token(\"task\"), token(TASK[0]),\r\n token(\"type\"), token(TYPE[0]),\r\n token(\"query\"), token(QUERY[0]),\r\n token(\"sequential\"), token(\"yes\"),\r\n token(\"no_cpu\"), token(\"2\"),\r\n token(\"ram\"), token(\"32 GB\"),\r\n token(\"index_size_bytes\"), token(\"7869335184\"),\r\n token(\"indexing_time_sec\"), token(\"2874\")\r\n );\r\n xml.emptyElement(token(\"topic-fields\"),\r\n token(\"co_title\"), token(\"no\"),\r\n token(\"cas_title\"), token(\"no\"),\r\n token(\"xpath_title\"), token(\"yes\"),\r\n token(\"text_predicates\"), token(\"no\"),\r\n token(\"description\"), token(\"no\"),\r\n token(\"narrative\"), token(\"no\")\r\n );\r\n \r\n xml.openElement(token(\"general_description\"));\r\n xml.text(token(\"The client/server architecture of BaseX 5.72 was used \" +\r\n \"to perform the tests. The test machine has an Intel Xeon E5345 \" +\r\n \"with 2 Quad-Core CPUs and 32 GB RAM.\"));\r\n xml.closeElement();\r\n xml.openElement(token(\"ranking_description\"));\r\n xml.text(token(\"We are using both content-based as well as \" +\r\n \"structural-based ranking. At first, a content-based weight \" +\r\n \"is estimated and later refined for each location step. \" +\r\n \"The weights are derived from database meta information.\"));\r\n xml.closeElement();\r\n xml.openElement(token(\"indexing_description\"));\r\n xml.text(token(\"The full-text indexes of BaseX support both an \" +\r\n \"sped up evaluation of simple ftcontains operators as well \" +\r\n \"as advanced features of the upcoming XQFT Recommendation. \" +\r\n \"The indexes contain token positions and pointers on the text nodes. \" +\r\n \"Structural information, such as location paths to the text nodes, \" +\r\n \"are evaluated at runtime. As a consequence, our performance \" +\r\n \"measurements include the total time both for accessing the indexes \" +\r\n \"as well as traversing the inverted specified location paths.\"));\r\n xml.closeElement();\r\n xml.openElement(token(\"caching_description\"));\r\n xml.text(token(\"Both database instances as well as the full-text \" +\r\n \"indexes are completely disk-based and rely on the caching \" +\r\n \"mechanisms of the operating system.\"));\r\n xml.closeElement();\r\n }" ]
[ "0.5883303", "0.582251", "0.58042747", "0.5695403", "0.5667133", "0.56444746", "0.5499851", "0.5498112", "0.5467397", "0.54652196", "0.5452272", "0.54431415", "0.5423425", "0.5422656", "0.5402018", "0.53989863", "0.5392692", "0.53924656", "0.5384207", "0.53832465", "0.53439826", "0.5329802", "0.5320975", "0.5320263", "0.53141147", "0.5297823", "0.52906036", "0.5273696", "0.52546734", "0.52544415", "0.52368444", "0.52358234", "0.52265817", "0.52099293", "0.5205755", "0.5199374", "0.5183955", "0.5175498", "0.5164007", "0.5143574", "0.51401234", "0.5113507", "0.5106341", "0.5095917", "0.5095675", "0.5088408", "0.50877374", "0.5075025", "0.50710094", "0.5069146", "0.50669074", "0.5066265", "0.50647783", "0.50608075", "0.5043941", "0.5042785", "0.50368774", "0.5025129", "0.5021381", "0.50197107", "0.50026613", "0.49943134", "0.49865296", "0.49848694", "0.49810404", "0.49809843", "0.4974062", "0.49710748", "0.49630997", "0.49559608", "0.49533653", "0.49530184", "0.49509677", "0.49503225", "0.4942209", "0.49171188", "0.48938698", "0.48924068", "0.488062", "0.48743677", "0.48718327", "0.487161", "0.48657385", "0.48602042", "0.48582825", "0.4853835", "0.4848647", "0.4844429", "0.48431587", "0.48414135", "0.48413426", "0.48324573", "0.48290053", "0.48279226", "0.48256367", "0.48236096", "0.48185566", "0.4811244", "0.48035747", "0.48001587", "0.4797274" ]
0.0
-1
Gets the initial option values provided by the Graal runtime. These are option values typically parsed from the command line.
public static OptionValues getInitialOptions() { return Graal.getRequiredCapability(OptionValues.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getOptions() {\n return argv;\n }", "@Override\n\tpublic String[] getOptions() {\n\t\tVector<String> result = new Vector<String>();\n\n\t\tresult.add(\"-populationSize\");\n\t\tresult.add(\"\" + populationSize);\n\n\t\tresult.add(\"-initialMaxDepth\");\n\t\tresult.add(\"\" + maxDepth);\n\n\t\tCollections.addAll(result, super.getOptions());\n\n\t\treturn result.toArray(new String[result.size()]);\n\t}", "public static void initDefaultOptions()\r\n\t{\n\r\n\t\taddOption(HELP, true, \"show Arguments\");\r\n\t}", "public String[] getOptions(){\n\n String[] options = new String[5];\n int current = 0;\n\n options[current++] = \"-G\"; options[current++] = \"\" + m_NumAttemptsOfGene;\n options[current++] = \"-I\"; options[current++] = \"\" + m_NumFoldersMI;\n\n while (current < options.length) {\n options[current++] = \"\";\n }\n return options;\n }", "@Override\n\t@SystemSetupParameterMethod\n\tpublic List<SystemSetupParameter> getInitializationOptions()\n\t{\n\t\tfinal List<SystemSetupParameter> params = new ArrayList<SystemSetupParameter>();\n\t\tparams.add(createBooleanSystemSetupParameter(IMPORT_SBD_SAMPLE_PRODUCT_DATA, \"Import SBD Sample Product Data\", true));\n\t\tparams.add(createBooleanSystemSetupParameter(IMPORT_PROJECT_DATA, \"Import Project Data\", true));\n\t\tparams.add(createBooleanSystemSetupParameter(CoreSystemSetup.ACTIVATE_SOLR_CRON_JOBS, \"Activate Solr Cron Jobs\", true));\n\t\t\n\t\t// Add more Parameters here as your require\n\n\t\treturn params;\n\t}", "public void initOptions(String[] args) {\n\t\tCL_Initializer.CL_init(args);\n\t\tCL_Initializer.checkParsing(args);\n\t\tCL_Initializer.initImagingScheme();\n\t\tCL_Initializer.initDataSynthesizer();\n\t}", "List<String> getJavaOptions();", "private static Options getOptions() {\n Option inputOption = Option.builder(\"i\")\n .longOpt(\"input\")\n .hasArg()\n .argName(\"input file\")\n .required()\n .desc(\"The JSON input filename\")\n .build();\n Option outputOption = Option.builder(\"o\")\n .longOpt(\"output\")\n .hasArg()\n .argName(\"output file\")\n .required()\n .desc(\"The Drupal output filename\")\n .build();\n Option configOption = Option.builder(\"c\")\n .longOpt(\"config\")\n .hasArg()\n .argName(\"properties file\")\n .required()\n .desc(\"The properties file for containing Google credentials\")\n .build();\n Option helpOption = Option.builder(\"h\")\n .longOpt(\"help\")\n .desc(\"Print this message\")\n .build();\n\n Options options = new Options();\n options.addOption(inputOption);\n options.addOption(outputOption);\n options.addOption(configOption);\n options.addOption(helpOption);\n\n return options;\n }", "public abstract String[] getOptions();", "public String[] getDefaults();", "public abstract String[] getDefaultValues();", "public List<String> defaultArgs() {\n return defaultArgs;\n }", "public String[] getRuntimeProgramArguments(IPath configPath, boolean debug, boolean starting);", "private void initOptions() {\n\t\t// TODO: ???\n\t\t// additional input docs via --dir --includes --excludes --recursive\n\t\t// --loglevel=debug\n\t\t// --optionally validate output as well?\n\t\t\n\t\tthis.sb = new StringBuffer();\n\t\tArrayList options = new ArrayList();\n\t\toptions.add( new LongOpt(\"help\", LongOpt.NO_ARGUMENT, null, 'h') );\n\t\toptions.add( new LongOpt(\"version\", LongOpt.NO_ARGUMENT, null, 'v') );\t\t\n\t\toptions.add( new LongOpt(\"query\", LongOpt.REQUIRED_ARGUMENT, sb, 'q') );\n\t\toptions.add( new LongOpt(\"base\", LongOpt.REQUIRED_ARGUMENT, sb, 'b') );\n\t\toptions.add( new LongOpt(\"var\", LongOpt.REQUIRED_ARGUMENT, sb, 'P') );\n\t\toptions.add( new LongOpt(\"out\", LongOpt.REQUIRED_ARGUMENT, sb, 'o') );\n\t\toptions.add( new LongOpt(\"algo\", LongOpt.REQUIRED_ARGUMENT, sb, 'S') );\n\t\toptions.add( new LongOpt(\"encoding\", LongOpt.REQUIRED_ARGUMENT, sb, 'E') );\n\t\toptions.add( new LongOpt(\"indent\", LongOpt.REQUIRED_ARGUMENT, sb, 'I') );\t\n\t\toptions.add( new LongOpt(\"strip\", LongOpt.NO_ARGUMENT, null, 's') );\t\t\n\t\toptions.add( new LongOpt(\"update\", LongOpt.REQUIRED_ARGUMENT, sb, 'u') );\t\n\t\toptions.add( new LongOpt(\"xinclude\", LongOpt.NO_ARGUMENT, null, 'x') );\t\t\n\t\toptions.add( new LongOpt(\"explain\", LongOpt.NO_ARGUMENT, null, 'e') );\n\t\toptions.add( new LongOpt(\"noexternal\", LongOpt.NO_ARGUMENT, null, 'n') );\t\t\n\t\toptions.add( new LongOpt(\"runs\", LongOpt.REQUIRED_ARGUMENT, sb, 'r') );\n\t\toptions.add( new LongOpt(\"iterations\", LongOpt.REQUIRED_ARGUMENT, sb, 'i') );\n\t\toptions.add( new LongOpt(\"docpoolcapacity\", LongOpt.REQUIRED_ARGUMENT, sb, 'C') );\n\t\toptions.add( new LongOpt(\"docpoolcompression\", LongOpt.REQUIRED_ARGUMENT, sb, 'D') );\n\t\toptions.add( new LongOpt(\"nobuilderpool\", LongOpt.NO_ARGUMENT, null, 'p') );\n\t\toptions.add( new LongOpt(\"debug\", LongOpt.NO_ARGUMENT, null, 'd') );\t\t\n\t\toptions.add( new LongOpt(\"validate\", LongOpt.REQUIRED_ARGUMENT, sb, 'V') ); \n\t\toptions.add( new LongOpt(\"namespace\", LongOpt.REQUIRED_ARGUMENT, sb, 'W') ); \n\t\toptions.add( new LongOpt(\"schema\", LongOpt.REQUIRED_ARGUMENT, sb, 'w') );\n\t\toptions.add( new LongOpt(\"filterpath\", LongOpt.REQUIRED_ARGUMENT, sb, 'f') );\n\t\toptions.add( new LongOpt(\"filterquery\", LongOpt.REQUIRED_ARGUMENT, sb, 'F') );\n\t\toptions.add( new LongOpt(\"xomxpath\", LongOpt.NO_ARGUMENT, null, 'N') );\t\t\n\t\t\n////\t\toptions.add( new LongOpt(\"loglevel\", LongOpt.REQUIRED_ARGUMENT, sb, 'l') ); setLogLevels(Level.INFO);\n\t\t\t\n\t\tthis.longOpts = new LongOpt[options.size()];\n\t\toptions.toArray(this.longOpts);\t\t\n\t}", "public String[] getOptions() {\n\t\tString[] EvaluatorOptions = new String[0];\n\t\tString[] SearchOptions = new String[0];\n\t\tint current = 0;\n\n//\t\tif (m_ASEvaluator instanceof OptionHandler) {\n//\t\t\tEvaluatorOptions = ((OptionHandler) m_ASEvaluator).getOptions();\n//\t\t}\n//\n//\t\tif (m_ASSearch instanceof OptionHandler) {\n//\t\t\tSearchOptions = ((OptionHandler) m_ASSearch).getOptions();\n//\t\t}\n\n\t\tString[] setOptions = new String[10];\n//\t\tsetOptions[current++] = \"-E\";\n//\t\tsetOptions[current++] = getEvaluator().getClass().getName() + \" \"\n//\t\t\t\t+ Utils.joinOptions(EvaluatorOptions);\n//\n//\t\tsetOptions[current++] = \"-S\";\n//\t\tsetOptions[current++] = getSearch().getClass().getName() + \" \"\n//\t\t\t\t+ Utils.joinOptions(SearchOptions);\n//\t\t\n\t\t setOptions[current++] = \"-k\";\n\t\t setOptions[current++] = \"\" + getK();\n\t\t setOptions[current++] = \"-p\";\n\t\t setOptions[current++] = \"\" + getminF_Correlation();\n\n\t\twhile (current < setOptions.length) {\n\t\t\tsetOptions[current++] = \"\";\n\t\t}\n\n\t\treturn setOptions;\n\t}", "public List<String> getValues(String opt) {\n //noinspection unchecked\n return m_commandLine.getValues(opt);\n }", "public Properties getCommandLineArgs()\n {\n return this.commandLineArgs;\n }", "@NonNull\n\t\tMap<String, String> getOptions();", "public Collection<String> getOptions() {\n return options==null? Collections.emptyList() : Arrays.asList(options);\n }", "Map getOptions();", "@Override\n public String[] getOptions() {\n\n Vector<String> result = new Vector<String>();\n\n Collections.addAll(result, super.getOptions());\n\n result.add(\"-a\");\n result.add(\"\" + getNumAttributes());\n\n if (getClassFlag()) {\n result.add(\"-c\");\n }\n\n return result.toArray(new String[result.size()]);\n }", "private void setOptions() {\n cliOptions = new Options();\n cliOptions.addOption(Option.builder(\"p\")\n .required(false)\n .hasArg()\n .desc(\"Paramaters file\")\n .type(String.class)\n .build());\n cliOptions.addOption(Option.builder(\"P\")\n .required(false)\n .hasArg()\n .desc(\"Overwrite of one or more parameters provided by file.\")\n .type(String.class)\n .hasArgs()\n .build());\n cliOptions.addOption(Option.builder(\"H\")\n .required(false)\n .desc(\"Create a parameter file model on the classpath.\")\n .type(String.class)\n .build());\n }", "ImmutableList<String> vmOptions();", "public Object[] getOptions(JavaFXGui gui) {\r\n\t\t// Create new object for setup variables\r\n\t\tObject[] setup = new Object[9];\r\n\t\t\r\n\t\t// Add setup variables\r\n\t\tsetup[0] = gui;\r\n\t\tsetup[1] = lengthInput.getText();\r\n\t\tsetup[2] = widthInput.getText();\r\n\t\tsetup[3] = minDurationInput.getText();\r\n\t\tsetup[4] = maxDurationInput.getText();\r\n\t\tsetup[5] = evPercentInput.getText();\r\n\t\tsetup[6] = disabilityPercentInput.getText();\r\n\t\tsetup[7] = getModelSpeed();\r\n\t\tsetup[8] = algorithmChoiceInput.getValue();\r\n\t\t\r\n\t\treturn setup;\r\n\t}", "public static Options getCmdLineOptions(){\n\t\tOptions options = new Options();\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"outputPath\").hasArg().withDescription(\"output sequence lengths to a file [if not specified, lengths are printed to stdout]\").create(Thunder.OPT_PATH_OUTPUT));\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"maxExpectedLength\").hasArg().withDescription(\"print sequences exceeding this maximum expected size (for debugging + QC)\").create(\"m\"));\n\t\treturn options;\n\t}", "private static Map<String, String> getOptions(String[] args)\n {\n Map<String, String> options = new HashMap<>();\n\n for (int i = 0; i < args.length; i++) {\n if (args[i].charAt(0) == '-') {\n if (args[i].charAt(1) == '-') {\n if (args[i].length() < 3) {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n\n String arg = args[i].substring(2, args[i].length());\n String[] keyVal = arg.split(\"=\");\n if (keyVal.length != 2) {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n\n String optionKey = keyVal[0];\n String optionVal = keyVal[1];\n\n if (!Arrays.asList(validOptions).contains(optionKey)) {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n\n options.put(optionKey, optionVal);\n } else {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n }\n }\n\n return options;\n }", "private static JSAP prepCmdLineParser()\n throws Exception {\n final JSAP jsap = new JSAP();\n\n final FlaggedOption site_xml = new FlaggedOption(\"hbase_site\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/hbase-site.xml\")\n .setRequired(true)\n .setShortFlag('c')\n .setLongFlag(JSAP.NO_LONGFLAG);\n site_xml.setHelp(\"Path to hbase-site.xml\");\n jsap.registerParameter(site_xml);\n\n final FlaggedOption jmxremote_password = new FlaggedOption(\"jmxremote_password\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/jmxremote.password\")\n .setRequired(true)\n .setShortFlag('j')\n .setLongFlag(JSAP.NO_LONGFLAG);\n jmxremote_password.setHelp(\"Path to jmxremote.password.\");\n jsap.registerParameter(jmxremote_password);\n\n final FlaggedOption throttleFactor = new FlaggedOption(\"throttleFactor\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('t')\n .setLongFlag(JSAP.NO_LONGFLAG);\n throttleFactor.setHelp(\"Throttle factor to limit the compaction queue. The default (1) limits it to num threads / 1\");\n jsap.registerParameter(throttleFactor);\n\n final FlaggedOption num_cycles = new FlaggedOption(\"numCycles\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('n')\n .setLongFlag(JSAP.NO_LONGFLAG);\n num_cycles.setHelp(\"Number of iterations to run. The default is 1. Set to 0 to run forever.\");\n jsap.registerParameter(num_cycles);\n\n final FlaggedOption pauseInterval = new FlaggedOption(\"pauseInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"30000\")\n .setRequired(false)\n .setShortFlag('p')\n .setLongFlag(JSAP.NO_LONGFLAG);\n pauseInterval.setHelp(\"Time (in milliseconds) to pause between compactions.\");\n jsap.registerParameter(pauseInterval);\n\n final FlaggedOption waitInterval = new FlaggedOption(\"waitInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"60000\")\n .setRequired(false)\n .setShortFlag('w')\n .setLongFlag(JSAP.NO_LONGFLAG);\n waitInterval.setHelp(\"Time (in milliseconds) to wait between \" +\n \"time (are we there yet?) checks.\");\n jsap.registerParameter(waitInterval);\n\n DateStringParser date_parser = DateStringParser.getParser();\n date_parser.setProperty(\"format\", \"HH:mm\");\n\n final FlaggedOption startTime = new FlaggedOption(\"startTime\")\n .setStringParser(date_parser)\n .setDefault(\"01:00\")\n .setRequired(true)\n .setShortFlag('s')\n .setLongFlag(JSAP.NO_LONGFLAG);\n startTime.setHelp(\"Time to start compactions.\");\n jsap.registerParameter(startTime);\n\n final FlaggedOption endTime = new FlaggedOption(\"endTime\")\n .setStringParser(date_parser)\n .setDefault(\"07:00\")\n .setRequired(true)\n .setShortFlag('e')\n .setLongFlag(JSAP.NO_LONGFLAG);\n endTime.setHelp(\"Time to stop compactions.\");\n jsap.registerParameter(endTime);\n\n final FlaggedOption dryRun = new FlaggedOption(\"dryRun\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('d')\n .setLongFlag(JSAP.NO_LONGFLAG);\n dryRun.setHelp(\"Don't actually do any compactions or splits.\");\n jsap.registerParameter(dryRun);\n\n final FlaggedOption maxSplitSize = new FlaggedOption(\"maxSplitSize_in_MB\")\n .setStringParser(JSAP.LONG_PARSER)\n .setDefault(\"4096\")\n .setRequired(false)\n .setShortFlag('m')\n .setLongFlag(JSAP.NO_LONGFLAG);\n maxSplitSize.setHelp(\"Maximum size for store files (in MB) at which a region is split.\");\n jsap.registerParameter(maxSplitSize);\n\n final FlaggedOption splitsEnabled = new FlaggedOption(\"splitsEnabled\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('h')\n .setLongFlag(JSAP.NO_LONGFLAG);\n splitsEnabled.setHelp(\"Do splits (default split size will be 256MB unless specified).\");\n jsap.registerParameter(splitsEnabled);\n\n final FlaggedOption table_names = new FlaggedOption(\"tableNames\")\n .setStringParser(JSAP.STRING_PARSER)\n .setRequired(false)\n .setShortFlag(JSAP.NO_SHORTFLAG)\n .setLongFlag(\"tableNames\")\n .setList(true)\n .setListSeparator(',');\n table_names.setHelp(\"Specific table names to check against (default is all)\");\n jsap.registerParameter(table_names);\n\n final FlaggedOption files_keep = new FlaggedOption(\"filesKeep\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setRequired(false)\n .setShortFlag('f')\n .setLongFlag(\"filesKeep\")\n .setDefault(\"5\");\n files_keep.setHelp(\"Number of storefiles to look for before compacting (default is 5)\");\n jsap.registerParameter(files_keep);\n\n\n return jsap;\n }", "go.micro.runtime.RuntimeOuterClass.ListOptions getOptions();", "public List<String> defaultJvmOptions() {\n return defaultJvm;\n }", "public static StartupOptions initial() {\n return new StartupOptions(StartupMode.INITIAL, null);\n }", "public abstract Options getOptions();", "private List<String> GetParams(){\n\n ArrayList<String> params = new ArrayList<String>();\n\n // java executable binary\n params.add(_javaConfig.getJava());\n\n params.add(\"-Xms\".concat(_javaConfig.getXms()));\n params.add(\"-Xmx\".concat(_javaConfig.getXmx()));\n params.add(\"-Djava.library.path=\".concat(_javaConfig.getJava_library_path()));\n\n params.add(\"-cp\");\n params.add(_javaConfig.getClasspath());\n\n params.add(\"net.minecraft.client.main.Main\");\n\n params.add(\"--username\");\n params.add(_gameConfig.getUserName());\n\n params.add(\"--session\");\n params.add(_gameConfig.getSession());\n\n params.add(\"--gameDir\");\n params.add(_gameConfig.getGameDir());\n\n params.add(\"--assetsDir\");\n params.add(_gameConfig.getAssetsDir());\n\n params.add(\"--version\");\n params.add(_gameConfig.getVersion());\n\n return params;\n }", "ImmutableList<String> mainArgs();", "@Override\n public String[] getOptions() {\n List<String> options = new ArrayList<String>();\n\n for (String opt : getJobOptionsOnly()) {\n options.add(opt);\n }\n\n return options.toArray(new String[options.size()]);\n }", "public abstract IParser[] getParserOptionSet();", "@Override\n public String[] getOptions() {\n\n Vector<String> result = new Vector<String>();\n\n result.add(\"-K\");\n result.add(\"\" + m_kBEPPConstant);\n\n if (getL()) {\n result.add(\"-L\");\n }\n\n if (getUnbiasedEstimate()) {\n result.add(\"-U\");\n }\n\n if (getB()) {\n result.add(\"-B\");\n }\n\n result.add(\"-Ba\");\n result.add(\"\" + m_bagInstanceMultiplier);\n\n result.add(\"-M\");\n result.add(\"\" + m_SplitMethod);\n\n result.add(\"-A\");\n result.add(\"\" + m_AttributesToSplit);\n\n result.add(\"-An\");\n result.add(\"\" + m_AttributeSplitChoices);\n\n Collections.addAll(result, super.getOptions());\n\n return result.toArray(new String[result.size()]);\n }", "public Arguments getDefaultParameters()\n {\n Arguments params = new Arguments();\n params.addArgument(\"SleepTime\", String.valueOf(DEFAULT_SLEEP_TIME));\n params.addArgument(\n \"SleepMask\",\n \"0x\" + (Long.toHexString(DEFAULT_SLEEP_MASK)).toUpperCase());\n return params;\n }", "public LsArguments() {\n this.options = LsOptions.EMPTY;\n }", "private void init(String... argNames) {\n\t\tfor (int i = 0; i < argNames.length; i++) {\n\t\t\tString name = argNames[i];\n\t\t\t\n\t\t\tString value = System.getProperty(name);\n\t\t\tif (value == null) {\n\t\t\t\tvalue = System.getenv(name);\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\targs.put(name, new Argument(name));\n\t\t\t\t\n\t\t\t} else { \n\t\t\t\targs.put(name, new Argument(name, value));\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\trequireMoreArgument(args);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Options() {\n init();\n }", "public List<String> getOptions() {\n List<String> options = new ArrayList<String>();\n if (!showWarnings) {\n options.add(\"-nowarn\");\n }\n addStringOption(options, \"-source\", source);\n addStringOption(options, \"-target\", target);\n addStringOption(options, \"--release\", release);\n addStringOption(options, \"-encoding\", encoding);\n return options;\n }", "@Test\n public void defaultValueTest() {\n String[] commandLine = new String[0];\n\n parsingEngine.addArgumentSource( DefaultValueArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n DefaultValueArgProvider argProvider = new DefaultValueArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 42, \"Default value is not correctly initialized\");\n\n // Then try to override it.\n commandLine = new String[] { \"--value\", \"27\" };\n\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 27, \"Default value is not correctly initialized\");\n }", "public Hashtable<String, Object> getOptions() {\n return options;\n }", "private HashMap initCommonOpts() {\n HashMap _opts = new HashMap();\n \n _opts.put(\"help\", \n new Option(\"h\", \"help\", false, \"Get help.\")\n );\n _opts.put(\"version\",\n new Option(\"v\", \"version\", false, \"Print version number and exit.\")\n );\n _opts.put(\"system\",\n OptionBuilder\n .withLongOpt( \"system\" )\n .withDescription(\"Use the given filename or system identifier to find the DTD. \" +\n \"This could be a relative \" +\n \"pathname, if the DTD exists in a file on your system, or an HTTP URL. \" +\n \"The '-s' switch is optional. \" +\n \"Note that if a catalog is in use, what looks like a filename might \" +\n \"resolve to something else entirely.\")\n .hasArg()\n .withArgName(\"system-id\")\n .create('s')\n );\n _opts.put(\"doc\",\n OptionBuilder\n .withLongOpt( \"doc\" )\n .withDescription(\"Specify an XML document used to find the DTD. This could be just a \\\"stub\\\" \" +\n \"file, that contains nothing other than the doctype declaration and a root element. \" +\n \"This file doesn't need to be valid according to the DTD.\")\n .hasArg()\n .withArgName(\"xml-file\")\n .create('d')\n );\n _opts.put(\"public\",\n OptionBuilder\n .withLongOpt( \"public\" )\n .withDescription(\"Use the given public identifier to find the DTD. This would be used in \" +\n \"conjunction with an OASIS catalog file.\")\n .hasArg()\n .withArgName(\"public-id\")\n .create('p')\n );\n _opts.put(\"catalog\",\n OptionBuilder\n .withLongOpt( \"catalog\" )\n .withDescription(\"Specify a file to use as the OASIS catalog, to resolve system and \" +\n \"public identifiers.\")\n .hasArg()\n .withArgName(\"catalog-file\")\n .create('c')\n );\n _opts.put(\"title\",\n OptionBuilder\n .withLongOpt( \"title\" )\n .withDescription(\"Specify the title of this DTD.\")\n .hasArg()\n .withArgName(\"dtd-title\")\n .create('t')\n );\n _opts.put(\"roots\",\n OptionBuilder\n .withLongOpt(\"roots\")\n .withDescription(\"Specify the set of possible root elements for documents conforming \" +\n \"to this DTD.\")\n .hasArg()\n .withArgName(\"roots\")\n .create('r')\n );\n _opts.put(\"docproc\",\n OptionBuilder\n .withLongOpt(\"docproc\")\n .withDescription(\"Command to use to process structured comments. This command should \" +\n \"take its input on stdin, and produce valid XHTML on stdout.\")\n .hasArg()\n .withArgName(\"cmd\")\n .create()\n );\n _opts.put(\"markdown\",\n OptionBuilder\n .withLongOpt(\"markdown\")\n .withDescription(\"Causes structured comments to be processed as Markdown. \" +\n \"Requires pandoc to be installed on the system, and accessible to this process. \" +\n \"Same as \\\"--docproc pandoc\\\". If you want to supply your own Markdown \" +\n \"processor, or any other processor, use the --docproc option.\")\n .create('m')\n );\n _opts.put(\"param\",\n OptionBuilder\n .withLongOpt(\"param\")\n .hasArgs(2)\n .withValueSeparator()\n .withDescription(\"Parameter name & value to pass to the XSLT. You can use multiple \" +\n \"instances of this option.\")\n .withArgName( \"param=value\" )\n .create('P')\n );\n\n /* \n The 'q' here is a hack to get around some weird behavior that I can't figure out.\n If the 'q' is omitted, this option just doesn't work.\n */\n _opts.put(\"debug\",\n OptionBuilder\n .withLongOpt(\"debug\")\n .withDescription(\"Turns on debugging.\")\n .create('q')\n );\n\n return _opts;\n }", "public String[][] getOptions() {\r\n return options;\r\n }", "public List<String> getDefaultOptionsDir() {\n return defaultOptionsDir;\n }", "public Options initOptions() {\n\n\t\tOptions privateOptions = new Options();\n\n\t\t//Algorithm options\n\t\t//Option algorithm = new Option(\"a\", \"algorithm\", true, \"Specify the algorithm to use during the alignment\");\n\t\t//algorithm.setArgName(\"mem | aln | bwasw\");\n\n\t\t//options.addOption(algorithm);\n\n\t\tOptionGroup algorithm = new OptionGroup();\n\n\t\tOption mem = new Option(\"m\",\"mem\", false,\"The MEM algorithm will be used\");\n\t\talgorithm.addOption(mem);\n\n\t\tOption aln = new Option(\"a\",\"aln\", false,\"The ALN algorithm will be used\");\n\t\talgorithm.addOption(aln);\n\n\t\tOption bwasw = new Option(\"b\", \"bwasw\", false, \"The bwasw algorithm will be used\");\n\t\talgorithm.addOption(bwasw);\n\n\t\tprivateOptions.addOptionGroup(algorithm);\n\n\t\t//Paired or single reads\n\t\t//Option reads = new Option(\"r\", \"reads\", true, \"Type of reads to use during alignment\");\n\t\t//reads.setArgName(\"paired | single\");\n\n\t\t//options.addOption(reads);\n\t\tOptionGroup reads = new OptionGroup();\n\n\t\tOption paired = new Option(\"p\", \"paired\", false, \"Paired reads will be used as input FASTQ reads\");\n\t\treads.addOption(paired);\n\n\t\tOption single = new Option(\"s\", \"single\", false, \"Single reads will be used as input FASTQ reads\");\n\t\treads.addOption(single);\n\n\t\tprivateOptions.addOptionGroup(reads);\n\n\t\t// Options to BWA\n\t\tOptionGroup bwaOptionsGroup = new OptionGroup();\n\t\tOption bwaArgs = new Option(\"w\", \"bwa\", true, \"Arguments passed directly to BWA\");\n\t\tbwaArgs.setArgName(\"\\\"BWA arguments\\\"\");\n\n\t\tbwaOptionsGroup.addOption(bwaArgs);\n\n\t\tprivateOptions.addOptionGroup(bwaOptionsGroup);\n\n\t\t//Index\n\t\tOptionGroup indexGroup = new OptionGroup();\n\t\tOption index = new Option(\"i\", \"index\", true, \"Prefix for the index created by bwa to use - setIndexPath(string)\");\n\t\tindex.setArgName(\"Index prefix\");\n\t\tindex.setRequired(true);\n\n\t\tindexGroup.addOption(index);\n\n\t\tprivateOptions.addOptionGroup(indexGroup);\n\n\t\t//Partition number\n\t\tOptionGroup sparkGroup = new OptionGroup();\n\t\tOption partitions = new Option(\"n\", \"partitions\", true,\n\t\t\t\t\"Number of partitions to divide input - setPartitionNumber(int)\");\n\t\tpartitions.setArgName(\"Number of partitions\");\n\n\t\tsparkGroup.addOption(partitions);\n\n\t\tprivateOptions.addOptionGroup(sparkGroup);\n\n\n\t\tOptionGroup reducerGroup = new OptionGroup();\n\t\tOption reducer = new Option(\"r\", \"reducer\", false, \"The program is going to merge all the final results in a reducer phase\");\n\n\t\treducerGroup.addOption(reducer);\n\n\t\tprivateOptions.addOptionGroup(reducerGroup);\n\n\t\t/* OptionGroup sorting = new OptionGroup();\n\n\t\tOption hdfs = new Option(\"f\", \"hdfs\", false, \"The HDFS is used to perform the input FASTQ reads sort\");\n\t\tsorting.addOption(hdfs);\n\n\t\tOption spark = new Option(\"k\", \"spark\", false, \"the Spark engine is used to perform the input FASTQ reads sort\");\n\t\tsorting.addOption(spark);\n\n\t\tprivateOptions.addOptionGroup(sorting);\n\t\t*/\n\t\t// Help\n\t\tOptionGroup helpGroup = new OptionGroup();\n\t\tOption help = new Option(\"h\", \"help\", false, \"Shows this help\");\n\n\t\thelpGroup.addOption(help);\n\n\t\tprivateOptions.addOptionGroup(helpGroup);\n\n\t\treturn privateOptions;\n\t}", "@Override\n\tpublic String[] getOptions() {\n\t\treturn null;\n\t}", "private String[] getFrameworkOptions()\n {\n // TODO check out if this should not be a platform start parameter\n // TODO what the hack are framework options?\n String[] options = new String[0];\n final String property = System.getProperty( \"FRAMEWORK_OPTS\" );\n if( property != null )\n {\n options = property.split( \" \" );\n }\n return options;\n }", "public Iterator getOptions() {\n synchronized (options) {\n return Collections.unmodifiableList(new ArrayList(options)).iterator();\n }\n }", "@VisibleForTesting\n public List<String> getCompilerOptions() throws CommandLineExpansionException {\n return compileCommandLine.getCompilerOptions(/*overwrittenVariables=*/ null);\n }", "public static Options prepareOptions() {\n Options options = new Options();\n\n options.addOption(\"f\", \"forceDeleteIndex\", false,\n \"Force delete index if index already exists.\");\n options.addOption(\"h\", \"help\", false, \"Show this help information and exit.\");\n options.addOption(\"r\", \"realTime\", false, \"Keep for backwards compabitlity. No Effect.\");\n options.addOption(\"t\", \"terminology\", true, \"The terminology (ex: ncit_20.02d) to load.\");\n options.addOption(\"d\", \"directory\", true, \"Load concepts from the given directory\");\n options.addOption(\"xc\", \"skipConcepts\", false,\n \"Skip loading concepts, just clean stale terminologies, metadata, and update latest flags\");\n options.addOption(\"xm\", \"skipMetadata\", false,\n \"Skip loading metadata, just clean stale terminologies concepts, and update latest flags\");\n options.addOption(\"xl\", \"skipLoad\", false,\n \"Skip loading data, just clean stale terminologies and update latest flags\");\n options.addOption(\"xr\", \"report\", false, \"Compute and return a report instead of loading data\");\n\n return options;\n }", "private static Options getOptions() {\n\t\tOptions options = new Options();\n\t\toptions.addOption(OptGenMode, \"generate\", false,\n\t\t\t\t\"generate private key sharing\");\n\t\toptions.addOption(\"h\", \"help\", false, \"Print help.\");\n\t\toptions.addOption(OptionBuilder.withType(Integer.class)\n\t\t\t\t.withLongOpt(\"shares\")\n\t\t\t\t.withDescription(\"number of shares to generate\").hasArg()\n\t\t\t\t.withArgName(\"int\").create(OptShares));\n\t\toptions.addOption(OptionBuilder.withType(Integer.class)\n\t\t\t\t.withLongOpt(\"threshold\")\n\t\t\t\t.withDescription(\"number of requires shares\").hasArg()\n\t\t\t\t.withArgName(\"int\").create(OptThreshold));\n\t\treturn options;\n\n\t}", "public synchronized Iterator<String> getAllOptions() {\n\t\tSet<String> names = optionTable.keySet();\n\t\tIterator<String> itr = names.iterator();\n\t\treturn itr;\n\t}", "public String[] getOptions() {\n return m_Classifier.getOptions();\n }", "Optional<String[]> arguments();", "public List<Opt> getOptions() {\n\t\treturn options;\n\t}", "public GbossValueSet getOptions() {\n return BigrGbossData.getValueSetAlphabetized(ArtsConstants.VALUE_SET_PROCEDURE_HIERARCHY);\n }", "public Collection<String> recognizedOptions()\n {\n // We default to null for backward compatibility sake\n return null;\n }", "private static Options createOptions() {\n \n \t\tOptions options = new Options();\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the input file / directory\");\n \t\tOptionBuilder.isRequired(true);\n \t\toptions.addOption(OptionBuilder.create(\"input\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"int\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"minimum size of file in MB to split (Default: \" + MIN_FILE_SIZE + \" MB)\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"minsize\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the ignore list file\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"ignore\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the output directory\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"output\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the osmosis script template\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"template\"));\n \t\t\n \t\treturn options;\n \t\t\n \t}", "public String getOptions() {\n return this.options;\n }", "protected Set<ValidOption> usageOptions() {\n Set<ValidOption> opts = new LinkedHashSet<ValidOption>();\n addOption(opts, \"printprompt\", '\\0', \"BOOLEAN\", false,\n Boolean.toString(programOpts.isInteractive()));\n opts.addAll(commandOpts);\n opts.remove(printPromptOption);\n return opts;\n }", "protected abstract void initializeOptions(Options options);", "public ArrayList<String> getOptionValues() {\n return optionValues;\n }", "public static Options createOptions() {\n Options options = new Options();\n options.addOption(Option.builder(\"i\").required(true).longOpt(\"inputFile\").hasArg(true)\n .argName(\"PATH\").desc(\"this command specifies the path to the file \"\n + \"containing queries to be inputted into the tool. It is therefore mandatory\")\n .build());\n options.addOption(Option.builder(\"o\").longOpt(\"outputFile\").hasArg(true).argName(\"PATH\")\n .desc(\"this command specifies the path to the file that the tool can write \"\n + \"its results to. If not specified, the tool will simply print results\"\n + \"on the console. It is therefore optional\").build());\n options.addOption(Option.builder(\"l\").longOpt(\"limit\").hasArg(true).argName(\"INTEGER\")\n .desc(\"this command specifies the path to an integer that the tools takes \"\n + \"as a limit for the number of errors to be explored, thereby controlling\"\n + \"the runtime. It is therefore optional\").build());\n return options;\n }", "public static Vector getAllOptions() {\n\t\tVector allOptions = new Vector();\n\t\tallOptions.add(MaxHitsOption.DEFAULT_NUM_HITS);\n\t\tallOptions.add(new MaxHitsOption(20));\n\t\tallOptions.add(new MaxHitsOption(50));\n\t\tallOptions.add(new MaxHitsOption(100));\n\t\tallOptions.add(new MaxHitsOption(500));\n\t\tallOptions.add(new MaxHitsOption(1000));\n\t\tallOptions.add(new MaxHitsOption(5000));\n\t\tallOptions.add(new MaxHitsOption(Integer.MAX_VALUE));\n\n\t\treturn allOptions;\n\t}", "java.util.Map<String, String>\n getOptionsMap();", "java.util.Map<String, String>\n getOptionsMap();", "java.util.Map<String, String>\n getOptionsMap();", "@Override\n @SuppressWarnings(\"static-access\")\n public void setJCLIOptions() {\n Option Help = new Option(\"h\", \"help\", false, \"Show Help.\");\n this.jcOptions.addOption(Help);\n this.jcOptions.addOption(OptionBuilder.withLongOpt(\"file\").withDescription(\"File to Convert\").isRequired(false).hasArg().create(\"f\"));\n //this.jcOptions.addOption(OptionBuilder.withLongOpt(\"outputfile\").withDescription(\"Output File\").isRequired(false).hasArg().create(\"of\"));\n OptionGroup jcGroup = new OptionGroup();\n jcGroup.addOption(OptionBuilder.withLongOpt(\"texttobinary\").withDescription(\"Convert text to Binary\").create(\"ttb\"));\n jcGroup.addOption(OptionBuilder.withLongOpt(\"binarytotext\").withDescription(\"Convert binary to text\").create(\"btt\"));\n this.jcOptions.addOptionGroup(jcGroup);\n }", "public void initialize() {\n // Get our home directory\n String homeStr = System.getProperty(\"DTDANALYZER_HOME\");\n if (homeStr == null) homeStr = \".\";\n home = new File(homeStr);\n\n // Read the package properties file\n Properties props = new Properties();\n try {\n props.load(new FileInputStream( new File(homeStr, \"app.properties\") ));\n version = props.getProperty(\"version\");\n buildtime = props.getProperty(\"buildtime\");\n } \n catch (IOException e) {\n System.err.println(\n \"Warning: failed to read app.properties file. This should exist in \" +\n \"the DtdAnalyzer installation directory.\"\n );\n }\n\n // Merge the common and custom options into activeOpts. Custom ones with the same\n // name will override the common ones.\n for (int i = 0; i < optList.length; ++i) {\n String optName = optList[i];\n //System.err.println(\" option \" + optName);\n Option opt = (Option) customOpts.get(optName);\n if (opt == null) opt = (Option) commonOpts.get(optList[i]);\n if (opt == null) {\n System.err.println(\"Strange, undefined command line option '\" + optName +\n \"'. This should never \" +\n \"happen; please create an issue on GitHub.\");\n System.exit(1);\n }\n \n activeOpts.addOption(opt);\n }\n\n // Set System properties for parsing and transforming\n if ( System.getProperty(App.SAX_DRIVER_PROPERTY) == null )\n System.setProperty(App.SAX_DRIVER_PROPERTY, App.SAX_DRIVER_DEFAULT);\n\n if ( System.getProperty(App.TRANSFORMER_FACTORY_PROPERTY) == null )\n System.setProperty(App.TRANSFORMER_FACTORY_PROPERTY, App.TRANSFORMER_FACTORY_DEFAULT);\n\n // Initialize all of the dtd specifiers\n dtdSpecifiers = new DtdSpecifier[numDtds];\n for (int i = 0; i < numDtds; ++i) {\n dtdSpecifiers[i] = new DtdSpecifier();\n }\n numDtdsFound = 0;\n numTitlesFound = 0;\n \n // Parse the command line arguments\n CommandLineParser clp = new PosixParser();\n try {\n line = clp.parse( activeOpts, args );\n\n // Loop through the given command-line options, in the order they were given.\n Option[] lineOpts = line.getOptions();\n for (int i = 0; i < lineOpts.length; ++i) {\n Option opt = lineOpts[i];\n String optName = opt.getLongOpt();\n\n if (!optHandler.handleOption(opt)) {\n // The application didn't know what to do with it, so it\n // must be a common opt, for us to handle.\n handleOption(opt);\n }\n }\n\n \n // Now loop through any left-over arguments, and if we still\n // expect dtd specifiers, then use them up. If there's one extra, and \n // wantOutput is true, then we'll use that for the output filename.\n String[] rest = line.getArgs();\n for (int i = 0; i < rest.length; ++i) {\n //System.err.println(\"looking at \" + rest[i] + \", numDtdsFound is \" + numDtdsFound +\n // \", numDtds is \" + numDtds + \", wantOutput is \" + wantOutput);\n if (numDtdsFound < numDtds) {\n // Use this to initialize a dtd; assume it is a system id.\n dtdSpecifiers[numDtdsFound].idType = 's';\n dtdSpecifiers[numDtdsFound].idValue = rest[i];\n numDtdsFound++;\n }\n else if (wantOutput && output == null) {\n // Use this to initialize the output\n output = new StreamResult(new File(rest[i]));\n }\n else {\n usageError(\"Too many arguments\");\n }\n }\n\n // If we still don't have all the input dtds specified, complain.\n if (numDtdsFound < numDtds) {\n usageError(\"Expected at least \" + numDtds + \" DTD specifier\" + \n (numDtds > 1 ? \"s\" : \"\") + \"!\");\n }\n\n // Default output is to write to standard out\n if (wantOutput && output == null) {\n output = new StreamResult(System.out);\n }\n\n // Validate each dtd specifier object. This also causes dummy XML documents\n // to be created for -s or -p specifiers.\n for (int i = 0; i < numDtds; ++i) {\n dtdSpecifiers[i].validate();\n }\n\n // If no --xslt option was specified, then set the transformer to the\n // identity transformer\n if (xslt == null) {\n try {\n // If no xslt was specified, use the identity transformer\n TransformerFactory f = TransformerFactory.newInstance();\n xslt = f.newTransformer();\n xslt.setOutputProperty(OutputKeys.INDENT, \"yes\");\n }\n catch (TransformerConfigurationException e) {\n System.err.println(\"Error configuring xslt transformer: \" + e.getMessage());\n System.exit(1);\n }\n }\n \n\n }\n catch( ParseException exp ) {\n usageError(exp.getMessage());\n }\n }", "Map<String, Connector.Argument> connectorArguments(LaunchingConnector connector, String cmdLine) {\n Map<String, Connector.Argument> arguments = connector.defaultArguments();\n Connector.Argument mainArg = arguments.get(\"main\");\n if (mainArg == null) {\n throw new Error(\"Bad launching connector\");\n }\n mainArg.setValue(cmdLine);\n return arguments;\n }", "public String getOptionsAsString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (!runtimeKeys.get(i))\n buf.append(key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (runtimeKeys.get(i))\n buf.append(\"* \" + key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}", "public Properties getCommandLineProperties()\n {\n return commandLineProps;\n }", "public List<String> getExtraOpts() {\r\n \t\treturn extraOpts;\r\n \t}", "void initialize(int options) {\n\n\t}", "public\n void setPropertiesDefaults(String argv[])\n {\n if (argv == null)\n return;\n\n for (int i = 0; i < argv.length; i++)\n {\n try {\n defaults.load(new StringBufferInputStream(argv[i]));\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }\n }", "public static void main(String[] args) {\n OptionParser parser = new OptionParser();\n parser.accepts(\"myProp\").withRequiredArg();\n OptionSet options = parser.parse(args);\n\n boolean myProp = options.hasArgument(\"myProp\");\n System.out.println(myProp);\n Object myProp1 = options.valueOf(\"myProp\");\n System.out.println(myProp1);\n }", "String getOption();", "public static Options getOptions() {\n return OPTIONS;\n }", "public void initDefaultValues() {\n }", "go.micro.runtime.RuntimeOuterClass.ReadOptions getOptions();", "@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }", "@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }", "@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }", "protected CLOptionDescriptor[] createCLOptions()\n {\n //TODO: localise\n final CLOptionDescriptor options[] = new CLOptionDescriptor[ 13 ];\n\n options[0] =\n new CLOptionDescriptor( \"help\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n HELP_OPT,\n \"display this help message\",\n INFO_OPT_INCOMPAT );\n \n options[1] =\n new CLOptionDescriptor( \"file\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n FILE_OPT,\n \"the build file.\" );\n\n options[2] =\n new CLOptionDescriptor( \"log-level\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LOG_LEVEL_OPT,\n \"the verbosity level at which to log messages. \" +\n \"(DEBUG|INFO|WARN|ERROR|FATAL_ERROR)\",\n LOG_OPT_INCOMPAT );\n\n options[3] =\n new CLOptionDescriptor( \"quiet\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n QUIET_OPT,\n \"equivelent to --log-level=FATAL_ERROR\",\n LOG_OPT_INCOMPAT );\n\n options[4] =\n new CLOptionDescriptor( \"verbose\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERBOSE_OPT,\n \"equivelent to --log-level=INFO\",\n LOG_OPT_INCOMPAT );\n\n options[5] =\n new CLOptionDescriptor( \"listener\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LISTENER_OPT,\n \"the listener for log events.\" );\n\n options[6] =\n new CLOptionDescriptor( \"version\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERSION_OPT,\n \"display version\",\n INFO_OPT_INCOMPAT );\n\n options[7] =\n new CLOptionDescriptor( \"bin-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n BIN_DIR_OPT,\n \"the listener for log events.\" );\n\n options[8] =\n new CLOptionDescriptor( \"lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LIB_DIR_OPT,\n \"the lib directory to scan for jars/zip files.\" );\n\n options[9] =\n new CLOptionDescriptor( \"task-lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n TASKLIB_DIR_OPT,\n \"the task lib directory to scan for .tsk files.\" );\n options[10] =\n new CLOptionDescriptor( \"incremental\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n INCREMENTAL_OPT,\n \"Run in incremental mode\" );\n options[11] =\n new CLOptionDescriptor( \"ant-home\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n HOME_DIR_OPT,\n \"Specify ant home directory\" );\n options[12] =\n new CLOptionDescriptor( \"define\",\n CLOptionDescriptor.ARGUMENTS_REQUIRED_2,\n DEFINE_OPT,\n \"Define a variable (ie -Dfoo=var)\" );\n return options;\n }", "private static TestgenOptions parseTestgenOptions(String[] args) {\n OptionsParser parser = OptionsParser.newOptionsParser(TestgenOptions.class);\n parser.parseAndExitUponError(args);\n return parser.getOptions(TestgenOptions.class);\n }", "public Object[] getInitArgs(String[] input){\n Object result[] = new Object[input.length];\n for (int i = 0; i < input.length; i++){\n if (isNumeric(input[i])){\n result[i] = Integer.parseInt(input[i]);\n }else{\n result[i] = input[i];\n }\n }\n return result;\n }", "@Override\n\tpublic Properties getOptions() {\n\t\treturn options;\n\t}", "public Map<String, String> getArgList() {\n return argMap;\n }", "go.micro.runtime.RuntimeOuterClass.ListOptionsOrBuilder getOptionsOrBuilder();", "public Enumeration listOptions(){\n\n Vector newVector = new Vector(2);\n\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of attempts of generalisation.\\n\",\n\t\t\t\t \"G\", \n\t\t\t\t 1, \n\t\t\t\t \"-G <value>\"));\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of folder for computing the mutual information.\\n\",\n\t\t\t\t \"I\", \n\t\t\t\t 1, \n\t\t\t\t \"-I <value>\"));\n\n return newVector.elements();\n }", "@Override\n public Enumeration<Option> listOptions() {\n Vector<Option> result = new Vector<Option>();\n\n result.add(new Option(\"\", \"\", 0,\n \"\\nOptions specific to model building and evaluation:\"));\n\n result.add(new Option(\"\\tMLlib classifier to build and evaluate\", \"W\", 1,\n \"-W <MLlib classifier and options>\"));\n\n result\n .add(new Option(\n \"\\tSpecify a filter to pre-process the data \"\n + \"with.\\n\\tThe filter must be a StreamableFilter, meaning that the output\"\n + \"\\n\\tformat produced by the filter must be able to be determined\"\n + \"\\n\\tdirectly from the input data format. This option may be supplied\"\n + \"\\n\\tmultiple times in order to apply more than one filter.\",\n \"filter\", 1, \"-filter <filter name and options>\"));\n\n result.add(new Option(\n \"\\tSeparate data source for loading a test set. Set either this or\\n\\t\"\n + \"folds for a cross-validation (note that setting folds\\n\\t\"\n + \"to 1 will perform testing on training)\", \"test-set-data-source\", 1,\n \"-test-set-data-source <spec>\"));\n\n result.add(new Option(\"\\tNumber of folds for cross-validation. Set either \"\n + \"this or -test-set-data-source for a separate test set\", \"folds\", 1,\n \"-folds <integer>\"));\n\n result.add(new Option(\n \"\\tCompute AUC and AUPRC. Note that this requires individual\\n\\t\"\n + \"predictions to be retained - specify a fraction of\\n\\t\"\n + \"predictions to sample (e.g. 0.5) in order to save resources.\",\n \"auc\", 1, \"-auc <fraction of predictions to sample>\"));\n result.add(new Option(\"\\tOptional sub-directory of <output-dir>/eval \"\n + \"in which to store results.\", \"output-subdir\", 1,\n \"-output-subdir <directory name>\"));\n\n result.add(new Option(\"\\tClass index (1-based) or class attribute name \"\n + \"(default = last attribute).\", \"class\", 1, \"-class <index or name>\"));\n\n result.add(new Option(\n \"\\tCreate data splits with the order of the input instances\\n\\t\"\n + \"shuffled randomly. Also stratifies the data if the class\\n\\t\"\n + \"is nominal. Works in conjunction with -num-splits; can\\n\\t\"\n + \"alternatively use -num-instances-per-slice.\", \"randomize\", 0,\n \"-randomize\"));\n\n result.add(new Option(\"\", \"\", 0,\n \"\\nOptions specific to data randomization/stratification:\"));\n RandomizedDataSparkJob tempRJob = new RandomizedDataSparkJob();\n Enumeration<Option> randOpts = tempRJob.listOptions();\n while (randOpts.hasMoreElements()) {\n result.add(randOpts.nextElement());\n }\n\n return result.elements();\n }", "final String[] args() {\n return args;\n }", "public LsOptions getOptions() {\n return options;\n }", "protected static List<String> options(String[] args) {\n List<String> options = new ArrayList<>(args.length);\n for (String arg : args) {\n if (arg.equals(\"--\")) {\n break;\n } else if (arg.startsWith(\"-\")) {\n options.add(arg);\n }\n }\n return options;\n }", "private static Properties getOptions(TunnelController controller) {\n if (controller == null) return null;\n String opts = controller.getClientOptions();\n StringTokenizer tok = new StringTokenizer(opts);\n Properties props = new Properties();\n while (tok.hasMoreTokens()) {\n String pair = tok.nextToken();\n int eq = pair.indexOf('=');\n if ( (eq <= 0) || (eq >= pair.length()) )\n continue;\n String key = pair.substring(0, eq);\n String val = pair.substring(eq+1);\n props.setProperty(key, val);\n }\n return props;\n }", "public int getOptions() {\n\t\treturn this.options;\n\t}", "@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }", "@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }" ]
[ "0.64236706", "0.61485326", "0.6135612", "0.6085663", "0.6064771", "0.59173846", "0.5914324", "0.58734953", "0.5870174", "0.5838329", "0.5761183", "0.5696484", "0.56822884", "0.5646541", "0.56385267", "0.5596742", "0.55631703", "0.5547502", "0.55425525", "0.5531316", "0.5517845", "0.5488648", "0.54880905", "0.5455783", "0.5452876", "0.5447216", "0.5443157", "0.54397875", "0.540028", "0.53928816", "0.5362112", "0.53431934", "0.53395075", "0.53261673", "0.53030735", "0.52953905", "0.5293907", "0.5274074", "0.52740735", "0.52565944", "0.523847", "0.52376974", "0.5223658", "0.52202404", "0.5197024", "0.51794654", "0.5178074", "0.51758766", "0.5155945", "0.51553375", "0.51474154", "0.5135504", "0.5131276", "0.512514", "0.51034737", "0.5103201", "0.5091021", "0.5089122", "0.5079828", "0.50669", "0.5060268", "0.50594974", "0.5057831", "0.50554043", "0.50547975", "0.5026924", "0.50268215", "0.50268215", "0.50268215", "0.50257146", "0.5005711", "0.5005466", "0.50034356", "0.49994087", "0.4984704", "0.4981334", "0.49787283", "0.49649104", "0.49595356", "0.4958462", "0.4945724", "0.49422866", "0.49316365", "0.49316365", "0.49316365", "0.49297956", "0.49241173", "0.49177977", "0.4916927", "0.49128982", "0.49124846", "0.49049485", "0.49035874", "0.48997572", "0.48993996", "0.4897721", "0.48912904", "0.48856947", "0.4881973", "0.4881973" ]
0.77998143
0
Created by JokerWan on 2017/12/11. WeChat: wjc398556712 Function:
public interface IMoiveListView extends IWanBaseView{ void onLoading(); void onLoadSucess(MoiveListResponse moiveListResponse); void onLoadFail(String msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "public void mo55254a() {\n }", "public void mo63047b(String str) {\n String str2;\n String str3;\n String str4;\n String str5;\n super.mo63047b(str);\n if (C25352e.m83221d(this.f77546j)) {\n this.f89203a.mo65916c();\n C24961b e = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play_over\").mo65283e(\"video\");\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n e.mo65271b((long) video.getVideoLength()).mo65270a(mo75261ab());\n this.f89214bh++;\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74936f = this.f89214bh;\n if (this.f89214bh >= this.f89215bi) {\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n if (!a2.f74934d) {\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme2.getAwemeRawAd();\n if (awemeRawAd != null) {\n str3 = awemeRawAd.getWebUrl();\n } else {\n str3 = null;\n }\n if (TextUtils.isEmpty(str3)) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str4 = \"\";\n } else {\n str4 = \"video\";\n }\n b.mo65283e(str4).mo65270a(mo75261ab());\n return;\n } else if (mo75314al()) {\n mo75311ai();\n return;\n } else {\n this.f89215bi++;\n C24961b b2 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str5 = \"\";\n } else {\n str5 = \"video\";\n }\n b2.mo65283e(str5).mo65270a(mo75261ab());\n return;\n }\n }\n }\n C24961b b3 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str2 = \"\";\n } else {\n str2 = \"video\";\n }\n b3.mo65283e(str2).mo65270a(mo75261ab());\n }\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "protected void mo6255a() {\n }", "public void mo6081a() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void skystonePos4() {\n }", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public final void mo51373a() {\n }", "public static final java.lang.String m133282a(com.p280ss.android.ugc.aweme.draft.model.C27311c r1) {\n /*\n java.lang.String r0 = \"draft\"\n kotlin.jvm.internal.C7573i.m23587b(r1, r0)\n boolean r0 = r1.mo70215ad()\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.shortvideo.edit.model.EditPreviewInfo r1 = r1.mo70214ac()\n if (r1 == 0) goto L_0x0017\n java.lang.String r1 = r1.getDraftDir()\n if (r1 != 0) goto L_0x0019\n L_0x0017:\n java.lang.String r1 = \"\"\n L_0x0019:\n return r1\n L_0x001a:\n com.ss.android.ugc.aweme.photomovie.PhotoMovieContext r0 = r1.f72034c\n boolean r0 = com.p280ss.android.ugc.aweme.storage.p1640b.C41902b.m133264a(r0)\n if (r0 == 0) goto L_0x002b\n com.ss.android.ugc.aweme.draft.model.b r1 = r1.f72031S\n java.lang.String r1 = r1.f71951O\n if (r1 != 0) goto L_0x002a\n java.lang.String r1 = \"\"\n L_0x002a:\n return r1\n L_0x002b:\n com.ss.android.ugc.aweme.draft.model.b r1 = r1.f72031S\n java.lang.String r1 = r1.f71951O\n java.lang.String r1 = com.p280ss.android.ugc.aweme.shortvideo.WorkSpace.Workspace.m122803a(r1)\n if (r1 != 0) goto L_0x0037\n java.lang.String r1 = \"\"\n L_0x0037:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.storage.p1640b.C41911c.m133282a(com.ss.android.ugc.aweme.draft.model.c):java.lang.String\");\n }", "@Override\n public void perish() {\n \n }", "public void skystonePos6() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo9848a() {\n }", "private static String[] m19261a(long[] jArr, long[] jArr2) {\n AppMethodBeat.m2504i(18986);\n String[] strArr;\n if (jArr2 == null || jArr2.length < 4) {\n strArr = new String[]{ShareConstants.WEB_DIALOG_PARAM_MESSAGE, \"msgId <= \" + jArr[0], \"ImgInfo2\", \"id <= \" + jArr[1], \"videoinfo2\", \"rowid <= \" + jArr[2], \"EmojiInfo\", \"rowid <= \" + jArr[3], \"conversation\", null, \"rconversation\", null};\n AppMethodBeat.m2505o(18986);\n return strArr;\n }\n strArr = new String[12];\n strArr[0] = ShareConstants.WEB_DIALOG_PARAM_MESSAGE;\n strArr[1] = String.format(\"msgId > %d AND msgId <= %d\", new Object[]{Long.valueOf(jArr2[0]), Long.valueOf(jArr[0])});\n strArr[2] = \"ImgInfo2\";\n strArr[3] = String.format(\"id > %d AND id <= %d\", new Object[]{Long.valueOf(jArr2[1]), Long.valueOf(jArr[1])});\n strArr[4] = \"videoinfo2\";\n strArr[5] = String.format(\"rowid > %d AND rowid <= %d\", new Object[]{Long.valueOf(jArr2[2]), Long.valueOf(jArr[2])});\n strArr[6] = \"EmojiInfo\";\n strArr[7] = String.format(\"rowid > %d AND rowid <= %d\", new Object[]{Long.valueOf(jArr2[3]), Long.valueOf(jArr[3])});\n strArr[8] = \"conversation\";\n strArr[9] = null;\n strArr[10] = \"rconversation\";\n strArr[11] = null;\n AppMethodBeat.m2505o(18986);\n return strArr;\n }", "abstract String mo1748c();", "public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }", "public abstract String mo9239aw();", "private static byte[] m2537c(Context context) {\n Throwable th;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n try {\n Utils.m2512a(byteArrayOutputStream, \"1.2.12.5\");\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2443q(context));\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2435i(context));\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2432f(context));\n Utils.m2512a(byteArrayOutputStream, Build.MANUFACTURER);\n Utils.m2512a(byteArrayOutputStream, Build.MODEL);\n Utils.m2512a(byteArrayOutputStream, Build.DEVICE);\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2444r(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2384c(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2385d(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2387f(context));\n byteArrayOutputStream.write(new byte[]{(byte) 0});\n bArr = byteArrayOutputStream.toByteArray();\n try {\n byteArrayOutputStream.close();\n } catch (Throwable th2) {\n th = th2;\n th.printStackTrace();\n return bArr;\n }\n } catch (Throwable th3) {\n th = th3;\n }\n return bArr;\n }", "public void mo12628c() {\n }", "private static String m33067a(String str, long j, int i, String str2, String str3, int i2, int i3, int i4) {\n AppMethodBeat.m2504i(135624);\n C30065b c30065b = new C30065b();\n c30065b.field_fileFullPath = str;\n c30065b.field_appId = str2;\n c30065b.field_sdkVer = (long) i;\n c30065b.field_mediaSvrId = str3;\n c30065b.field_totalLen = (long) i2;\n c30065b.field_status = 101;\n c30065b.field_isUpload = false;\n c30065b.field_createTime = C5046bo.anU();\n c30065b.field_lastModifyTime = C5046bo.anT();\n c30065b.field_msgInfoId = j;\n c30065b.field_netTimes = 0;\n c30065b.field_type = (long) i3;\n C4990ab.m7417i(\"MicroMsg.AppMsgLogic\", \"summerbig initDownloadAttach ret[%b], rowid[%d], field_totalLen[%d], type[%d], isLargeFile[%d], destFile[%s], stack[%s]\", Boolean.valueOf(C34832a.aUq().mo10101b((C4925c) c30065b)), Long.valueOf(c30065b.xDa), Long.valueOf(c30065b.field_totalLen), Long.valueOf(c30065b.field_type), Integer.valueOf(i4), str, C5046bo.dpG());\n AppMethodBeat.m2505o(135624);\n return str3;\n }", "private static String m23463a() {\n return \"\";\n }", "private void poetries() {\n\n\t}", "public abstract String mo8770a();", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "String[] chiediScommessa();", "void mo57278c();", "public String cargarDatos()\r\n/* 514: */ {\r\n/* 515:540 */ return null;\r\n/* 516: */ }", "public final void mo75263ad() {\n String str;\n super.mo75263ad();\n if (C25352e.m83313X(this.f77546j)) {\n if (C6399b.m19944t()) {\n if (!C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) && C25371n.m83443a(mo75261ab())) {\n C25371n.m83471b(mo75261ab(), C25352e.m83305P(this.f77546j));\n }\n } else if (!DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f77546j);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75512a(\"result_ad\", aweme2.getAwemeRawAd(), false);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }\n }\n m110463ax();\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) || DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"click\");\n if (C25352e.m83313X(this.f77546j)) {\n str = \"download_button\";\n } else {\n str = \"more_button\";\n }\n b.mo65283e(str).mo65270a(mo75261ab());\n }\n }", "String getDefaultCardLast4();", "private byte[] gapEncode (List<Integer> list) {\n\t if (list == null || list.size() == 0) {\n\t return null;\n }\n\t\tIterator<Integer> p = list.iterator();\n\t\tInteger docId = popNextOrNull(p);\n\t\tbyte[] firDocId = vBNumber(docId);\n\t\tbyte[] bytes = new byte[VBNUM_SIZE * list.size()];\n int index;\n for (index = 0; index < firDocId.length; index++) {\n bytes[index] = firDocId[index];\n }\n\n\t while (docId != null) {\n\t Integer nextDocId = popNextOrNull(p);\n\t if (nextDocId == null) {\n\t break;\n }\n\t byte[] gap = vBNumber(nextDocId - docId);\n\t for (int i = 0; i < gap.length; i++) {\n\t bytes[index] = gap[i];\n\t index++;\n }\n\t docId = nextDocId;\n }\n\n byte[] result = new byte[index];\n for (int i = 0; i < index; i++) {\n result[i] = bytes[i];\n }\n\n\n\n /*System.out.println(\"......gap encode inside......\");\n\n for (byte t : result) {\n for (int i = 0; i < Byte.SIZE; i++) {\n int n = t & (1 << (7 - i));\n n = n >> (7 - i);\n System.out.print(n);\n }\n System.out.println();\n }*/\n\n return result;\n\t}", "public void skystonePos3() {\n }", "private void m7136b(String str) {\n String str2;\n C1588d dVar = new C1588d(getApplicationContext(), new C1576b(this));\n JSONObject jSONObject = null;\n try {\n JSONObject jSONObject2 = new JSONObject(str);\n str2 = jSONObject2.getString(C1584a.f7161e);\n try {\n if (!TextUtils.isEmpty(str2)) {\n JSONObject jSONObject3 = jSONObject2.getJSONObject(\"param\");\n if (jSONObject3 instanceof JSONObject) {\n jSONObject = jSONObject3;\n }\n String string = jSONObject2.getString(C1584a.f7163g);\n String string2 = jSONObject2.getString(C1584a.f7160d);\n C1584a aVar = new C1584a(\"call\");\n aVar.f7166j = string2;\n aVar.f7167k = string;\n aVar.f7169m = jSONObject;\n aVar.f7165i = str2;\n dVar.mo14464a(aVar);\n }\n } catch (Exception unused) {\n if (TextUtils.isEmpty(str2)) {\n }\n }\n } catch (Exception unused2) {\n str2 = null;\n if (TextUtils.isEmpty(str2)) {\n try {\n dVar.mo14465a(str2, C1584a.EnumC1585a.f7174d);\n } catch (JSONException unused3) {\n }\n }\n }\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public final void mo3856d() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0550gu.m1820b(str, sb.toString());\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.stopBluetoothSco();\n }\n }", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public void skystonePos5() {\n }", "public static void listing5_14() {\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public int mo33388a(boolean z, String str) {\n ArrayList arrayList;\n String str2 = \"TpnsChannel\";\n long currentTimeMillis = System.currentTimeMillis();\n if (currentTimeMillis - f23262D > 120000 || z) {\n f23262D = currentTimeMillis;\n Context f = C6973b.m29776f();\n if (f != null && !C7056i.m30194b(f.getPackageName())) {\n if (str == null) {\n arrayList = C6871c.m29327a().mo33023d(f);\n } else {\n arrayList = C6871c.m29327a().mo33019c(f, str);\n }\n if (arrayList != null && arrayList.size() > 0) {\n boolean z2 = XGPushConfig.enableDebug;\n String str3 = Constants.ServiceLogTag;\n if (z2) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action -> trySendCachedMsgIntent with CachedMsgList size = \");\n sb.append(arrayList.size());\n C6864a.m29298c(str3, sb.toString());\n }\n ArrayList arrayList2 = new ArrayList();\n for (int i = 0; i < arrayList.size(); i++) {\n CachedMessageIntent cachedMessageIntent = (CachedMessageIntent) arrayList.get(i);\n try {\n String decrypt = Rijndael.decrypt(cachedMessageIntent.intent);\n if (C7056i.m30194b(decrypt)) {\n arrayList2.add(cachedMessageIntent);\n } else {\n Intent parseUri = Intent.parseUri(decrypt, 1);\n String str4 = parseUri.getPackage();\n parseUri.getLongExtra(MessageKey.MSG_CREATE_MULTIPKG, 0);\n if (!C7056i.m30193b(C6973b.m29776f(), str4, parseUri.getLongExtra(\"accId\", 0))) {\n arrayList2.add(cachedMessageIntent);\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str4);\n sb2.append(\" is uninstalled , discard the msg and report to the server\");\n C6864a.m29308i(str2, sb2.toString());\n C6982c.m29815a().mo33317a(str4);\n C6871c.m29327a().mo33017b(C6973b.m29776f(), str4, new ArrayList<>());\n } else {\n RegisterEntity registerInfoByPkgName = CacheManager.getRegisterInfoByPkgName(str4);\n if (registerInfoByPkgName == null || registerInfoByPkgName.state <= 0) {\n long longExtra = parseUri.getLongExtra(MessageKey.MSG_ID, 0);\n parseUri.getLongExtra(MessageKey.MSG_SERVER_TIME, 0);\n parseUri.getStringExtra(MessageKey.MSG_DATE);\n if (!C6860a.m29254a(C6973b.m29776f(), parseUri.getPackage(), parseUri)) {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"ProviderUtils.sendMsgByPkgName error msgId = \");\n sb3.append(longExtra);\n sb3.append(\" appPkgName = \");\n sb3.append(str4);\n C6864a.m29308i(str3, sb3.toString());\n } else {\n arrayList2.add(cachedMessageIntent);\n C6987a.m29846a().mo33339b(C6973b.m29776f(), parseUri);\n }\n }\n }\n }\n } catch (Exception e) {\n C6864a.m29302d(str2, \"\", e);\n }\n }\n StringBuilder sb4 = new StringBuilder();\n sb4.append(\"sendedList.size() = \");\n sb4.append(arrayList2.size());\n C6864a.m29298c(str3, sb4.toString());\n if (arrayList2.size() > 0) {\n C6871c.m29327a().mo33013a(f, (List<CachedMessageIntent>) arrayList2, arrayList);\n }\n return arrayList.size();\n }\n }\n }\n return 0;\n }", "public static void main(String[] args) {\n\t\tMap<String, Object> testMap = new HashMap<>();\n\t\ttestMap.put(\"userAccount\", \"10000\");\n\t\ttestMap.put(\"where\", \"1=1 and Mobile='15507599162'\");\n\t\ttestMap.put(\"pageIndex\", 0);\n\t\ttestMap.put(\"pageSize\", 10);\n\t\ttestMap.put(\"orderBy\", \"\");\n\t\ttestMap.put(\"cardId\", \"desc\");\n\t\tOpenApiClient apiClient = new OpenApiClient(\"C2549D33134942FB94E936205AA57AA8\", \"I0AAQY\");\n\t\tJsonObject jsonObject = apiClient.CallHttpPost(\"Get_MembersPagedV2\", testMap);\n\n\n\t\tint status = jsonObject.get(\"status\").getAsInt();\n\t\tJsonArray array = jsonObject.get(\"data\").getAsJsonArray();\n\t\tfor(int i=0; i<array.size(); i++){\n\t\t\tSystem.out.println(\" i = \" + i + \" value = \" + array.get(i));\n\t\t\tJsonObject object = array.get(i).getAsJsonObject();\n\t\t\tSystem.out.println(\" ---------->> guid = \" + object.get(\"Guid\").getAsString());\n\t\t}\n\n\t\t BigInteger b = new BigInteger(\"-1888832\");\n b = b.abs();\n System.out.println(b.toString());\n BigInteger bs = new BigInteger(\"1888832\");\n bs = bs.abs();\n System.out.println(bs.toString());\n\t\t//System.out.println(getOrderNo());\n\t\tSystem.out.println(getCommonOrderNumber(Const.System_Module_Enum.LogisticsWebSystem,1));\n\t}", "zzang mo29839S() throws RemoteException;", "static void feladat9() {\n\t}", "private void m50366E() {\n }", "void mo67924c();", "static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "public void mo1531a() {\n }", "public abstract void mo70713b();", "public abstract void mo56925d();", "public abstract String mo9751p();", "public void mo12930a() {\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "void mo60893b();", "void mo88524c();", "public abstract String mo9238av();", "@Override\n\tprotected String wavAccueil() {\n\t\treturn null;\n\t}", "public String cargarDatos()\r\n/* 109: */ {\r\n/* 110:119 */ return null;\r\n/* 111: */ }", "static void feladat4() {\n\t}", "private void m10265b(String str) {\n if (!TextUtils.isEmpty(str)) {\n final ArrayList arrayList = new ArrayList();\n boolean a = C1849a.m9641a();\n StringBuilder stringBuilder = new StringBuilder(a ? \"http://maps.google.cn/maps/api/elevation/json?path=\" : \"https://maps.googleapis.com/maps/api/elevation/json?path=\");\n stringBuilder.append(str).append(\"&samples=\").append(this.f8993u);\n if (!a) {\n stringBuilder.append(\"&key=AIzaSyC6rtQRpblQN3RWVE3OCK_c8q4QhWVSnfg\");\n }\n this.f8996x.m13745a(new JsonObjectRequest(stringBuilder.toString(), null, new Listener<JSONObject>(this) {\n /* renamed from: b */\n final /* synthetic */ C1998a f8964b;\n\n public /* synthetic */ void onResponse(Object obj) {\n m10245a((JSONObject) obj);\n }\n\n /* renamed from: a */\n public void m10245a(JSONObject jSONObject) {\n if (\"OK\".equals(jSONObject.optString(\"status\"))) {\n JSONArray optJSONArray = jSONObject.optJSONArray(\"results\");\n for (int i = 0; i < optJSONArray.length(); i++) {\n try {\n arrayList.add(Double.valueOf(((JSONObject) optJSONArray.get(i)).optDouble(\"elevation\")));\n } catch (JSONException e) {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", e.getMessage());\n }\n }\n this.f8964b.f8976d.setMaxAltitude(((Double) Collections.max(arrayList)).doubleValue());\n this.f8964b.f8973a.mo3315b(arrayList);\n } else if (\"INVALID_REQUEST\".equals(jSONObject.optString(\"status\"))) {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", this.f8964b.f8974b.getString(C1373R.string.route_elevation_activity_error));\n this.f8964b.m10259a(this.f8964b.f8990r);\n } else {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", this.f8964b.f8974b.getString(C1373R.string.route_elevation_activity_error));\n this.f8964b.m10259a(this.f8964b.f8990r);\n }\n }\n }, new C19945(this)), this.f8974b);\n }\n }", "Room mo12151c();", "public void skystonePos2() {\n }", "public final void mo118723c(String str) {\n EventMessage abVar;\n C32569u.m150519b(str, C6969H.m41409d(\"G7A97C737AC37\"));\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"link api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d(\"G658ADB11FF31BB20\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, link api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }", "public abstract void mo53562a(C18796a c18796a);", "private stendhal() {\n\t}", "public static CardGiftInfo m84652a(C15317ao c15317ao) {\n LinkedList linkedList;\n AppMethodBeat.m2504i(87788);\n CardGiftInfo cardGiftInfo = new CardGiftInfo();\n cardGiftInfo.toUserName = c15317ao.vBE;\n cardGiftInfo.cKE = c15317ao.vBF;\n cardGiftInfo.kcl = c15317ao.vBG;\n cardGiftInfo.kcm = c15317ao.content;\n cardGiftInfo.kcn = c15317ao.vBH;\n cardGiftInfo.kco = c15317ao.vBI;\n cardGiftInfo.kcp = c15317ao.vBJ;\n cardGiftInfo.kcq = c15317ao.vBK;\n cardGiftInfo.kcs = c15317ao.vBM;\n cardGiftInfo.kcr = c15317ao.vBL;\n cardGiftInfo.kct = c15317ao.vBN;\n cardGiftInfo.kcu = c15317ao.vBO;\n cardGiftInfo.kcv = c15317ao.kcU;\n cardGiftInfo.kcw = c15317ao.kcV;\n cardGiftInfo.kcx = c15317ao.vBP;\n cardGiftInfo.color = c15317ao.color;\n cardGiftInfo.kcy = c15317ao.vBQ;\n cardGiftInfo.kcz = c15317ao.vBR;\n cardGiftInfo.kcA = c15317ao.vBS;\n cardGiftInfo.kcB = c15317ao.vBT;\n cardGiftInfo.kcC = c15317ao.vBU;\n cardGiftInfo.kcD = c15317ao.vBV;\n cardGiftInfo.kcE = c15317ao.vBW;\n cardGiftInfo.kcF = c15317ao.vBX;\n cardGiftInfo.kcG = c15317ao.vBY;\n cardGiftInfo.kcH = c15317ao.vBZ;\n cardGiftInfo.kcI = c15317ao.vCa;\n cardGiftInfo.kcJ = c15317ao.vCb;\n cardGiftInfo.kcK = c15317ao.vCc;\n cardGiftInfo.kcL = c15317ao.vCd;\n cardGiftInfo.kcM = c15317ao.kbU;\n cardGiftInfo.kcN = c15317ao.vCe;\n Iterator it = c15317ao.kcO.iterator();\n while (it.hasNext()) {\n C7250ap c7250ap = (C7250ap) it.next();\n linkedList = cardGiftInfo.kcO;\n AcceptedCardItem acceptedCardItem = new AcceptedCardItem();\n acceptedCardItem.kcV = c7250ap.kcV;\n acceptedCardItem.kcU = c7250ap.kcU;\n linkedList.add(acceptedCardItem);\n }\n it = c15317ao.kcP.iterator();\n while (it.hasNext()) {\n C35902aq c35902aq = (C35902aq) it.next();\n linkedList = cardGiftInfo.kcP;\n AccepterItem accepterItem = new AccepterItem();\n accepterItem.kcV = c35902aq.kcV;\n accepterItem.kcU = c35902aq.kcU;\n accepterItem.kcX = c35902aq.kcX;\n accepterItem.kcW = c35902aq.kcW;\n linkedList.add(accepterItem);\n }\n cardGiftInfo.kcQ = c15317ao.kcQ;\n cardGiftInfo.kcR = c15317ao.kcR;\n cardGiftInfo.kcS = c15317ao.kcS;\n cardGiftInfo.kcT = c15317ao.kcT;\n AppMethodBeat.m2505o(87788);\n return cardGiftInfo;\n }", "public static String create_detail_list_like(String str,String publicKey) throws Exception\n {\n\n String detail_list_like=\"\";\n //定义第一次分割符\n String reg = \"[|]\";\n //声明map将String数组中的内容按照key=value放到map中\n Map<Integer, String> data=new HashMap<Integer, String>();\n //将获取的批量付款到银行卡交易列别按照|进行分割,放到数组中\n String[] arys=str.split(reg);\n String arys1=\"\";\n int i=0;\n\n //将获取String数组放到map中\n for(String item:arys)\n {\n data.put(i,item);\n i++;\n }\n Iterator s=data.entrySet().iterator();\n String data2=\"\";\n while(s.hasNext()){//只遍历一次,速度快\n @SuppressWarnings(\"rawtypes\")\n Map.Entry e=(Map.Entry)s.next();\n String regs=\"\\\\^\";\n String split=(String) e.getValue();\n String [] splitarray=split.split(regs);\n int b=0;\n\n for(String item1:splitarray)\n {\n if(b==1||b==2||b==3){\n if(item1!=\"\"&&item1!=null){\n item1=YaColPayRSAUtil.encryptByPublicKey(item1,publicKey);\n data2=data2+\"^\"+item1;\n }else\n {\n break;\n }\n }else\n {\n if(b==0){\n data2=data2+\"|\"+item1;\n }else{\n data2=data2+\"^\"+item1;\n }\n }\n\n b++;\n }\n }\n detail_list_like=data2.substring(1);\n return detail_list_like;\n }", "public void mo34874a(String str) {\n Class<C9780c> cls = C9780c.class;\n boolean[] a = m45645a();\n try {\n C9780c.m45630a(this.f25962b, System.currentTimeMillis(), this.f25961a);\n a[1] = true;\n InstabugSDKLogger.m46622d(cls, \"Features fetched successfully\");\n a[2] = true;\n JSONObject jSONObject = new JSONObject(str);\n a[3] = true;\n boolean optBoolean = jSONObject.optBoolean(\"crash_reporting\", true);\n a[4] = true;\n this.f25962b.mo34866a(Feature.CRASH_REPORTING, optBoolean);\n a[5] = true;\n boolean optBoolean2 = jSONObject.optBoolean(\"push_notifications\", true);\n a[6] = true;\n this.f25962b.mo34866a(Feature.PUSH_NOTIFICATION, optBoolean2);\n a[7] = true;\n boolean optBoolean3 = jSONObject.optBoolean(\"white_label\", true);\n a[8] = true;\n this.f25962b.mo34866a(Feature.WHITE_LABELING, optBoolean3);\n a[9] = true;\n boolean optBoolean4 = jSONObject.optBoolean(\"in_app_messaging\", true);\n a[10] = true;\n this.f25962b.mo34866a(Feature.IN_APP_MESSAGING, optBoolean4);\n a[11] = true;\n boolean optBoolean5 = jSONObject.optBoolean(\"multiple_attachments\", true);\n a[12] = true;\n this.f25962b.mo34866a(Feature.MULTIPLE_ATTACHMENTS, optBoolean5);\n String str2 = com.instabug.library.model.State.KEY_USER_STEPS;\n a[13] = true;\n boolean optBoolean6 = jSONObject.optBoolean(str2, true);\n a[14] = true;\n this.f25962b.mo34866a(Feature.TRACK_USER_STEPS, optBoolean6);\n a[15] = true;\n boolean optBoolean7 = jSONObject.optBoolean(\"repro_steps\", true);\n a[16] = true;\n this.f25962b.mo34866a(Feature.REPRO_STEPS, optBoolean7);\n String str3 = com.instabug.library.model.State.KEY_CONSOLE_LOG;\n a[17] = true;\n boolean optBoolean8 = jSONObject.optBoolean(str3, true);\n a[18] = true;\n this.f25962b.mo34866a(Feature.CONSOLE_LOGS, optBoolean8);\n a[19] = true;\n boolean optBoolean9 = jSONObject.optBoolean(\"ibg_log\", true);\n a[20] = true;\n this.f25962b.mo34866a(Feature.INSTABUG_LOGS, optBoolean9);\n a[21] = true;\n boolean optBoolean10 = jSONObject.optBoolean(com.instabug.library.model.State.KEY_USER_DATA, true);\n a[22] = true;\n this.f25962b.mo34866a(Feature.USER_DATA, optBoolean10);\n a[23] = true;\n boolean optBoolean11 = jSONObject.optBoolean(\"surveys\", true);\n a[24] = true;\n this.f25962b.mo34866a(Feature.SURVEYS, optBoolean11);\n String str4 = BugEntry.COLUMN_VIEW_HIERARCHY;\n a[25] = true;\n boolean optBoolean12 = jSONObject.optBoolean(str4, true);\n a[26] = true;\n this.f25962b.mo34866a(Feature.VIEW_HIERARCHY, optBoolean12);\n a[27] = true;\n boolean optBoolean13 = jSONObject.optBoolean(\"user_events\", true);\n a[28] = true;\n this.f25962b.mo34866a(Feature.USER_EVENTS, optBoolean13);\n a[29] = true;\n boolean optBoolean14 = jSONObject.optBoolean(\"disclaimer_text\", false);\n a[30] = true;\n this.f25962b.mo34866a(Feature.DISCLAIMER, optBoolean14);\n a[31] = true;\n boolean optBoolean15 = jSONObject.optBoolean(com.instabug.library.model.State.KEY_SESSIONS_PROFILER, true);\n a[32] = true;\n this.f25962b.mo34866a(Feature.SESSION_PROFILER, optBoolean15);\n a[33] = true;\n boolean optBoolean16 = jSONObject.optBoolean(\"feature_requests\", true);\n a[34] = true;\n this.f25962b.mo34866a(Feature.FEATURE_REQUESTS, optBoolean16);\n a[35] = true;\n boolean optBoolean17 = jSONObject.optBoolean(\"vp_customizations\", false);\n a[36] = true;\n this.f25962b.mo34866a(Feature.VP_CUSTOMIZATION, optBoolean17);\n a[37] = true;\n SDKCoreEventPublisher.post(new SDKCoreEvent(\"features\", Feature.VALUE_FETCHED));\n a[38] = true;\n } catch (JSONException e) {\n a[39] = true;\n InstabugSDKLogger.m46624e(cls, \"Something went wrong while parsing fetching features request's response\", e);\n a[40] = true;\n }\n a[41] = true;\n }", "protected static char[][] update_Board(){\n return null;\n }", "void mo1290a(String str) {\n JSONObject jSONObject;\n C0568g.m2441a(this.a, System.currentTimeMillis());\n try {\n jSONObject = new JSONObject(str);\n jSONObject = jSONObject.has(\"lbsInfo\") ? jSONObject.optJSONObject(\"lbsInfo\") : null;\n } catch (JSONException e) {\n jSONObject = null;\n }\n if (jSONObject != null) {\n Object a = C0568g.m2439a(this.a, jSONObject);\n if (this.f1790d != null && !TextUtils.isEmpty(a)) {\n this.f1790d.m2436a(0, a);\n this.f1790d = null;\n }\n }\n }", "@Test\n public void listalgobycodeanddate() { ArrayList<String> arr = new ArrayList<>();\n// arr.add(\"ptm.ax\");\n// arr.add(\"csr.ax\");\n//\n String codes = \"ptm.ax , csr.ax\";\n String arr[] =codes.split(\",\");\n\n Iterable<TechTechstr> data = techStrRepo.findAll( QTechTechstr.techTechstr.code.in(arr)\n // .and(QTechTechstr.techTechstr.date.eq (LocalDate.now().minusDays(2) ))\n .and(QTechTechstr.techTechstr.date.eq (LocalDate.parse(\"2018-12-14\") ) )\n\n\n\n ,new QSort(QTechTechstr.techTechstr.code.asc() ));\n JsonArray mainArray = new JsonArray();\n\n data.forEach((a)->{\n JsonObject firstObject = new JsonObject();\n\n String mode = nodeService.getMode((int)a.getMode() );\n if (! mode.isEmpty()){\n firstObject.addProperty(\"code\",a.getCode() ) ;\n firstObject.addProperty(\"mode\",mode ) ;\n mainArray.add(firstObject);\n\n\n }\n\n// firstObject.addProperty(\"mode\",nodeService.getMode((int)a.getMode() ) ) ;\n // System.out.println(\"-----x-----\" + a);\n\n\n });\n\n\n\n System.out.println(\"-----x-----\" + mainArray);\n\n// algoContoller.getcodetech(\"AOG.AX\");\n\n\n }", "String getCpushares();", "private static String processInquire(String content) {\n\t\tString myWaza = \"fold \\n\";\n\t\tString[] playerInfoFront = content.split(\"\\n\");\n\t\tBoolean isAllin = false;//前面是否有人allin\n\t\tint maxJetton = 80;\t\t\n\t\tint frontNum = playerInfoFront.length;//前面的人数,第一圈结束会把自己放到最后一行\n\t\tint nums = Player.getNums();//总人数\n\t\n\t\t//根据Inquire更新player的状态\n\t\tfor(int i = 0; i < frontNum - 1;i++){\n\t\t\tString[] onePlayer = playerInfoFront[i].split(\" \");\n\t\t\t//onePlayer[0]即Pid\n\t\t\t\n\t\t\tfor(int j = 0; j < nums; j++){\n\t\t\t\tif(onePlayer[0].equals(players[j].getPid() + \"\")){\n\t\t\t\t\tplayers[j].setJetton(Integer.parseInt(onePlayer[1]));\n\t\t\t\t\tplayers[j].setMoney(Integer.parseInt(onePlayer[2]));\n\t\t\t\t\tplayers[j].setBet(Integer.parseInt(onePlayer[3]));\n\t\t\t\t\tplayers[j].setAction(onePlayer[4]);\n\t\t\t\t\tif(onePlayer[4].equals(\"all_in \\n\")){\n\t\t\t\t\t\tisAllin = true;\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Integer.parseInt(onePlayer[1]) > maxJetton)\n\t\t\t\t\t\tmaxJetton = Integer.parseInt(onePlayer[1]);\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\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif(Card.getNums() == 2){\n\t\t\t//pre-flop 0,1两张手牌\n\t\t\tmyWaza = actionBaseHold(cards, nums, players, maxJetton);\n\t\t}else if(Card.getNums() == 5){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//flop-round 0,1两张手牌 2,3,4三张翻牌\n\t\t\tmyWaza = actionBaseFlop(cards, nums, players, maxJetton);\n\t\t\t/*\n\t\t\tif(getWinRate() < 0.5){\n\t\t\t\tmyWaza = \"fold \\n\";\n\t\t\t}else if(getWinRate() >= 0.5 && getWinRate() < 0.8){\n\t\t\t\tmyWaza = \"call \\n\";\n\t\t\t}else{\n\t\t\t\tmyWaza = \"all_in \\n\";\n\t\t\t}*/\t\n\t\t}else if(Card.getNums() == 6){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//turn-round 0,1两张手牌 2,3,4三张翻牌,5一张转牌\n\t\t}else{\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//river-found 0,1两张手牌 2,3,4三张翻牌,5一张转牌,6一张河牌\n\t\t}\n\t\t\n\t\treturn myWaza;\n\t}", "public abstract void mo6549b();", "static void feladat7() {\n\t}", "public String reveal1() {\n // Note: You do NOT have to write this method.\n \n \n return null;\n }", "public final void mo3855c() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0279ch.m1117n(sb, str, 100);\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.startBluetoothSco();\n }\n }", "public String call() {\n String str = \"\";\n boolean z = false;\n int i = 0;\n for (MediaModel mediaModel : this.f81056a) {\n if (mediaModel.isVideo()) {\n C30954u.m100738a(this.f81057b, mediaModel);\n } else {\n str = C30954u.m100737a(this.f81057b, mediaModel, this.f81058c);\n i++;\n }\n }\n if (str.length() > 0) {\n z = true;\n }\n if (!z || i <= 1) {\n return str;\n }\n String string = C6399b.m19921a().getString(R.string.bi7);\n C7573i.m23582a((Object) string, \"AppContextManager.getApp…im_compress_failed_multi)\");\n return string;\n }", "public void mo21877s() {\n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "public final void mo84806a(Context context, String str) {\n try {\n List b = m106812b(this.f86088h.mo103177a(str).f109095a.isRead());\n C25673a c = m106813c();\n c.setItems(b);\n C28503s.m93679a(c);\n String a = m106807a(b, str);\n int b2 = m106811b(b, str);\n C7195s a2 = C7195s.m22438a();\n StringBuilder sb = new StringBuilder(\"aweme://aweme/detail/\");\n sb.append(a);\n a2.mo18682a(C7203u.m22460a(sb.toString()).mo18694a(\"refer\", \"toplist_friend\").mo18694a(\"video_from\", \"from_window_following\").mo18693a(\"profile_enterprise_type\", b2).mo18695a());\n } catch (Exception e) {\n C6921a.m21554a(e);\n }\n }", "public static void main(String[] args) throws IOException {\n List<LinkCommentDTO> linkCommentDTOs = new ArrayList<>();\n ObjectMapper mapper = new ObjectMapper();\n try {\n linkCommentDTOs = mapper.readValue(new File(\"D:\\\\linkAsahy.json\"), new TypeReference<List<LinkCommentDTO>>(){});\n } catch (IOException e) {\n e.printStackTrace();\n }\n// String sessionId = getSessionId(\"[email protected]\",\"pKnTAb\");\n linkCommentDTOs.forEach(linkCommentDTO -> {\n boolean linkNotDie = linkCommentDTO.rapidgator_net.stream().allMatch(s -> isNotDie(s));\n if(linkNotDie) {\n linkCommentDTO.rapidgator_net.stream().forEach(s -> {\n// String[] data = s.split(\"\\\\[|\\\\]\");\n// data = Stream.of(data).distinct().toArray(String[]::new);\n// Pattern p = Pattern.compile(\"\\\\w+-\\\\d+\");\n// for (String link : data) {\n// if(link.startsWith(\"http://ra\") || link.startsWith(\"http://rg\")) {\n// if(!p.matcher(link).find()) {\n// link = link + \"/\" + linkCommentDTO.code_video;\n// }\n System.out.println(s);\n\n// }\n// }\n });\n }\n });\n }", "public synchronized void mo24424Qv() {\n char c;\n try {\n Context applicationContext = VivaBaseApplication.m8749FZ().getApplicationContext();\n int i = 3 >> 1;\n if (applicationContext == null) {\n String str = \"ort_ebionof_kfcyepr_\";\n if (!AppPreferencesSetting.getInstance().getAppSettingBoolean(\"pref_root_config_key\", false)) {\n C5523b.logException(new C5526d(\" rootconfig firstrun state not work aa!\"));\n }\n this.bEA = true;\n return;\n }\n C4059d.m10105cr(applicationContext);\n if (!ApplicationBase.biq) {\n new C8150d().mo33232R(applicationContext, false);\n }\n String str2 = \"_mhdshbaswesop_o\";\n DataRefreshValidateUtil.recordDataRefreshTime(\"splash_show_mode\");\n if (!this.bEC) {\n C4386g.m11041QJ();\n C4386g.m11042QK();\n if (!TextUtils.isEmpty(BaseSocialNotify.getActiveNetworkName(applicationContext))) {\n DiskLruCache.clearCache(applicationContext, null, 43200000);\n }\n m10993cR(applicationContext);\n m10990a(applicationContext, C4681i.m12184Gp().mo25016Gr());\n if (C3569a.m8772FK()) {\n m10992cQ(applicationContext);\n }\n m10994cS(applicationContext);\n if (C3869e.m9526Hj()) {\n C3869e.m9528by(applicationContext);\n }\n C3742b.m9111II().mo23180K(applicationContext, C8113b.aES());\n m10991bR(C3742b.m9111II().mo23153JU());\n if (C3569a.m8773FL()) {\n String str3 = \"fptli_gtt_ayurponpaye_te_ytkes\";\n if (AppPreferencesSetting.getInstance().getAppSettingInt(\"pref_key_setting_autoplay_type\", -1) == -1) {\n AppPreferencesSetting.getInstance().setAppSettingInt(\"pref_key_setting_autoplay_type\", AppPreferencesSetting.getInstance().getAppSettingBoolean(\"pref_auto_play\", true) ? 1 : 0);\n }\n }\n C8049f.aBf().mo33076A(Boolean.valueOf(C3742b.m9111II().mo23167Jn()));\n }\n this.bEC = true;\n this.bEA = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n }\n }" ]
[ "0.5305196", "0.5239564", "0.51265174", "0.51265174", "0.51265174", "0.51265174", "0.51265174", "0.51265174", "0.51265174", "0.510489", "0.50601983", "0.50168777", "0.5002818", "0.5001412", "0.49542314", "0.49412072", "0.4920589", "0.48921242", "0.4886839", "0.48863116", "0.48748517", "0.48404494", "0.48164847", "0.48150295", "0.48132855", "0.47995698", "0.47932827", "0.4776103", "0.47730246", "0.47679248", "0.47354054", "0.47241837", "0.4712116", "0.47036257", "0.46932337", "0.46848935", "0.4679331", "0.46782935", "0.46751237", "0.4674055", "0.46667594", "0.46635753", "0.46585673", "0.46512455", "0.4648534", "0.4647306", "0.4643148", "0.46361947", "0.4635029", "0.46293643", "0.46285188", "0.46276498", "0.4627199", "0.46264645", "0.4623192", "0.46209857", "0.46195772", "0.46172068", "0.46158552", "0.46085262", "0.46021143", "0.45996597", "0.45943227", "0.45927086", "0.45860863", "0.4585551", "0.4584348", "0.45834613", "0.45819956", "0.4581923", "0.4579787", "0.45676008", "0.4565954", "0.45611086", "0.45596847", "0.4556847", "0.45522648", "0.45488194", "0.45466906", "0.45462745", "0.45454726", "0.45403874", "0.45390034", "0.45374978", "0.45333976", "0.4528308", "0.4524602", "0.45208365", "0.4518732", "0.4516425", "0.45163625", "0.45157132", "0.4515319", "0.45144364", "0.45141855", "0.45138535", "0.45118982", "0.45118982", "0.45105785", "0.4508432", "0.45046046" ]
0.0
-1
To change body of implemented methods use File | Settings | File Templates.
@Override public void pause() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void method() {\n\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}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\r\n\tpublic void method1() {\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void method() {\n\t\tSystem.out.println(\"这是第三个实现\");\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "public void mo97908d() {\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\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "public void mo21825b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void method_202() {}", "@Override\n\tpublic void yürü() {\n\n\t}", "@Override\n\tpublic void type() {\n\t\t\n\t}", "@Override\r\n public void salir() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo21793R() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void mo55254a() {\n }", "public void foo() {\r\n\t}", "@Override\n\tpublic void e() {\n\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "public void method(){}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void update() {\n }", "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\n\tpublic void name1() {\n\t\t\n\t}", "@Override\n public void feedingHerb() {\n\n }", "public void mo4359a() {\n }", "public void m23075a() {\n }", "@Override\n public void author()\n {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }" ]
[ "0.7432435", "0.73870134", "0.7378721", "0.7340958", "0.733551", "0.7325809", "0.7303214", "0.7303214", "0.7287421", "0.72616535", "0.7222961", "0.7222961", "0.71841073", "0.71720046", "0.71163124", "0.71061647", "0.70781916", "0.70430636", "0.7009758", "0.69948745", "0.6986917", "0.6974051", "0.6932968", "0.69069594", "0.688805", "0.6872649", "0.6861598", "0.6860173", "0.684855", "0.6842523", "0.68351454", "0.6805208", "0.68040043", "0.6796995", "0.67959756", "0.6789186", "0.67826164", "0.6741897", "0.6708725", "0.6704555", "0.66892356", "0.66722834", "0.6666448", "0.6643213", "0.66408855", "0.66348594", "0.6633946", "0.66307425", "0.6629127", "0.6621947", "0.661767", "0.6617191", "0.6609188", "0.6608269", "0.6608269", "0.6602136", "0.6588745", "0.6588745", "0.65877265", "0.65853757", "0.65819323", "0.6580265", "0.6580083", "0.6570823", "0.65504754", "0.65501356", "0.654767", "0.6546116", "0.6541828", "0.6531495", "0.6526359", "0.65253997", "0.65253997", "0.65253997", "0.6524063", "0.6515653", "0.6513643", "0.6512119", "0.6511494", "0.6511163", "0.65107465", "0.65097266", "0.6508472", "0.65024114", "0.6496513", "0.6494249", "0.6493074", "0.64918303", "0.6489009", "0.64856714", "0.64844036", "0.6478579", "0.64741194", "0.6473587", "0.64634794", "0.6459859", "0.6456112", "0.64538425", "0.64538425", "0.64538425", "0.64538425" ]
0.0
-1
Constructeur vide de la classe API
public API() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public api() {}", "API createAPI();", "private APIClient() {\n }", "private ParkingLotApi()\r\n {\r\n }", "public APIOperation()\n {\n super();\n }", "public ApiResponse() {\n }", "private Api() {\n // Implement a method to build your retrofit\n buildRetrofit(BASE_URL);\n }", "private ApiUrlCreator() {\n }", "public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}", "public ReservationApi()\r\n {\r\n }", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "private ApiConfig() {\n }", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "public ApiError()\n\t{\n\n\t}", "private WAPIHelper() { }", "public AlpacaAPI() {\n this(AlpacaProperties.API_VERSION_VALUE, AlpacaProperties.KEY_ID_VALUE,\n AlpacaProperties.SECRET_VALUE, AlpacaProperties.BASE_ACCOUNT_URL_VALUE,\n AlpacaProperties.BASE_DATA_URL_VALUE);\n }", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "public KorisniciREST() {\n }", "public ApiProject() {\n super();\n }", "private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"[email protected]\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }", "ResourceAPI createResourceAPI();", "public TestServerApi()\r\n\t{\r\n\t\t\r\n\t}", "public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n //Form an API to receive a token\n kedronService = retrofit.create(IKedronService.class);\n }", "protected ApiActivityBase() {\n super();\n }", "private MApi() {}", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "private Aliyun() {\n\t\tsuper();\n\t}", "@Inject\n public MachineMonkeyRestApiImpl() {\n }", "private LoginApi() {\n }", "public ApiBuilder() \n\t{\n\t\tthis._data = new LinkedHashMap<String,Object>();\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public BasicResponse() {\n }", "private RestClient() {\n }", "public RestClient(){\n }", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "public API getApi()\n\t{\n\t\treturn new API(this);\n\t}", "private ApiInfo apiInfo() {\n\t\treturn new ApiInfo(\"Langton ant app\", \"rest api for langton ant app\", version, null,\n\t\t\t\tnew Contact(\"leclerc\", \"N/A\", \"[email protected]\"), null, null, Collections.EMPTY_LIST);\n\t}", "private Request() {}", "private Request() {}", "public Curso() {\r\n }", "public TurnoVOClient() {\r\n }", "public Example() {\n this.api = new MetaMapApiImpl();\n }", "public RestService() {\r\n \r\n }", "protected ContactsResource(XingApi api) {\n super(api);\n }", "public SessionManager(API api) {\n _api = api;\n }", "private Response() {}", "private Response() {}", "private MeteoRESTResource(String id) {\n this.id = id;\n }", "private Response() {\n initFields();\n }", "public GetMembersREST() {\n }", "private TwitterAPI(){\n\t\t\n\t}", "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}", "public AlpacaAPI(String apiVersion) {\n this(apiVersion, AlpacaProperties.KEY_ID_VALUE, AlpacaProperties.SECRET_VALUE,\n AlpacaProperties.BASE_ACCOUNT_URL_VALUE, AlpacaProperties.BASE_DATA_URL_VALUE);\n }", "public Libro() {\r\n }", "public RequestUpdateCancha() {\n }", "public YelpAPI() {\n\t\tgetAccessToken();\n\t}", "private RestUtil() {\n\t}", "public BittrexApi() {\n this.apiKey = config.getVariable(\"BITTREX_API_KEY\");\n this.secretKey = config.getVariable(\"BITTREX_SECRET_KEY\");\n }", "public RestService() {\r\n }", "public UpdateTrackingResp() {\n }", "private ApiInfo apiInfo() {\n Contact contact = new Contact(\"Hanchuanjun\", \"\", \"[email protected]\");\n ApiInfo apiInfo = new ApiInfo(\n \"GEHC SmartX SSO-OAuth模块api\",\n \"GEHC SmartX SSO-OAuth模块服务api\",\n \"v0.0.1\",\n \"初始化版本\",\n contact,\n \"\",\n \"\");\n return apiInfo;\n }", "private CassandraIoSDK(APIConnection apiConnection, String apiUrl){\n\t\tthis.apiConnection = apiConnection;\n\t\tthis.apiUrl = apiUrl;\n\t}", "private ApiInfo getApiInfo()\n {\n Contact contact = new Contact(\"Melchior Vrolijk\", \"\",\"[email protected]\");\n\n return new ApiInfo(\n \"Spring boot secure API documentation\",\n \"This is the demo spring boot secure api project documentation\",\n \"1.0\",\"\",contact,\n \"\",\"\",Collections.emptyList());\n }", "private ApiInfo apiInfo() {\n return new ApiInfo(\n \"ORDER REST API\",\n \"Springboot + Mysql + REST API aplicación basada en Ordenes, productos y Monedas.\",\n \"0.1\",\n \"All rights otorged\",\n new Contact(\"Ing. Andrés Pesántez\", \"www.javadesarrrollo.com\", \"[email protected]\"),\n \"API license\",\n \"http://www.google.es\",\n Collections.emptyList());\n }", "public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }", "protected RestClient() {\n }", "public XCRI_CAPRestService() {\n }", "public interface OMCAPI {\n String AUTH_HEADER = \"Authorization\";\n\n @FormUrlEncoded\n @POST(OMCConst.API_TOKEN_AUTH)\n Call<Token> getToken(@Field(\"username\") String username, @Field(\"password\") String password);\n\n @POST(OMCConst.API_POST_COMMAND)\n Call<Command> postCommand(@Header(AUTH_HEADER) String header, @Body Command command);\n\n @DELETE(OMCConst.API_DELETE_COMMAND)\n Call<ResponseBody> deleteCommand(@Header(AUTH_HEADER) String header, @Path(\"pk\") long pk);\n\n @GET(OMCConst.API_GET_COMMANDS)\n Call<List<Command>> getCommands(@Header(AUTH_HEADER) String header);\n\n @GET(OMCConst.API_GET_COMMAND)\n Call<Command> getCommand(@Header(AUTH_HEADER) String header, @Path(\"pk\") String pk);\n\n @FormUrlEncoded\n @POST(OMCConst.API_POST_NEW_USER)\n Call<Token> postNewUser(@Field(\"username\") String username, @Field(\"email\") String email, @Field(\"password\") String password);\n}", "public interface IOpenWeatherAPI {\n String ENDPOINT = \"http://api.openweathermap.org/\";\n\n String KEY_OPEN_WEATHER_API = \"0d664d5c76a364c4e18b207ac25a0ef4\";\n\n //******** 5 DÍAS/8 HORAS *******\n //@GET(\"/data/2.5/forecast\")\n //Call<RootPredicciones> getPredicciones(@Query(\"lat\") String latitud, @Query(\"lon\") String longitud);//Información meteorológica de 5 días de la latitud y longitud\n\n\n //******** Actual ***********\n @GET(\"data/2.5/weather\")\n Call<Prediccion> getPrediccionActual(@Query(\"lat\") String latitud, @Query(\"lon\") String longitud);//Información meteorológica actual de la latitud y longitud\n}", "private HttpClient() {\n\t}", "public interface TvApi {\n\n /*\n 获取电视节目表\n */\n @POST(\"getProgram\")\n Call<TvShowData> getProgram(@Query(\"code\") String code, @Query(\"date\") String date, @Query(\"key\") String key);\n\n /*\n 获取频道类型列表\n */\n @POST(\"getCategory\")\n Call<TvTypeData> getCategory(@Query(\"key\") String key);\n\n /*\n\n */\n @POST(\"getChannel\")\n Call<TvChannelData> getChannel(@Query(\"pId\") String pId, @Query(\"key\") String key);\n}", "public VKApiPrice() {\n\n }", "public ClaseJson() {\n }", "private Request() {\n initFields();\n }", "public BoletajeResource() {\n }", "public TboFlightSearchRequest() {\n}", "public interface LocationApi {\n\n @GET(\"/json/\")\n Call<Location> getLoc();\n\n class Builder extends ApiBuilder<LocationApi> {\n\n public LocationApi build() {\n return build(LocationApi.class);\n }\n\n }\n}", "public Response(){\n\t\t// nothing needed\n\t}", "@SuppressWarnings(\"unused\")\n public abstract T getApi();", "private ApiInfo apiInfo() {\n return new ApiInfoBuilder()\n .title(title)\n .description(description)\n .termsOfServiceUrl(serviceUrl)\n .license(license)\n .licenseUrl(licenseUrl)\n .version(version)\n .build();\n }", "public TarefaResource() {\r\n }", "private BaseDatos() {\n }", "private static VbxService getApiInstance() {\n HttpLoggingInterceptor logger = new HttpLoggingInterceptor();\n logger.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n Interceptor setAcceptType = new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request();\n Request typedRequest = request\n .newBuilder()\n .header(\"Accept\", \"application/json\")\n .build();\n return chain.proceed(typedRequest);\n }\n };\n\n Interceptor setAuthorization = new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request();\n if(email != null && password != null) {\n String auth = Base64.encodeToString((email + \":\" + password).getBytes(), Base64.NO_WRAP);\n Request typedRequest = request\n .newBuilder()\n .header(\"Authorization\", String.format(\"Basic %s\", auth))\n .build();\n return chain.proceed(typedRequest);\n }\n return chain.proceed(request);\n }\n };\n\n OkHttpClient apiClient = new OkHttpClient.Builder()\n .addInterceptor(logger)\n .addInterceptor(setAcceptType)\n .addInterceptor(setAuthorization)\n .build();\n\n return new Retrofit.Builder()\n .baseUrl(endpoint)\n .client(apiClient)\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create())\n .addConverterFactory(GsonConverterFactory.create())\n .build()\n .create(VbxService.class);\n }", "public interface Api {\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"anslogsave\")\n Call<ResponseBody> anslogsave(@Body RequestBody anslog);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotlogsave\")\n Call<ResponseBody> robotlogsave(@Body RequestBody robotlogsave);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotstatsave\")\n Call<ResponseBody> robotstatsave(@Body RequestBody robotstatsave);\n\n @FormUrlEncoded\n @POST(\"borr\")\n Call<String> borr(@Field(\"title\")String title,\n @Field(\"inflag\")int inflag);\n @FormUrlEncoded\n @POST(\"guide\")\n Call<String> guide(@Field(\"title\")String title);\n @FormUrlEncoded\n @POST(\"\")\n Call<String> baidu();\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"data\")\n Call<ResponseBody> upCewen(@Body RequestBody upCewen);\n\n @GET(\"doc_list?\")\n Call<String> search(@Query(\"search_txt\")String search);\n}", "public UBERequest() {\r\n }", "public AuthorizationJson() {\n }", "public interface ApiInterface {\n @GET(\"kontak\")\n Call<KontakModel> getKontak();\n\n @FormUrlEncoded\n @POST(\"kontak\")\n Call<KontakModel> postKontak(@Field(\"nama\") String nama,\n @Field(\"nomor\") String nomor);\n @FormUrlEncoded\n @PUT(\"kontak\")\n Call<KontakModel> putKontak(@Field(\"id\") String id,\n @Field(\"nama\") String nama,\n @Field(\"nomor\") String nomor);\n @FormUrlEncoded\n @HTTP(method = \"DELETE\", path = \"kontak\", hasBody = true)\n Call<KontakModel> deleteKontak(@Field(\"id\") String id);\n\n @FormUrlEncoded\n @POST(\"user\")\n Call<UserModel> postLogin(@Field(\"username\") String username,\n @Field(\"password\") String password);\n}", "public VKApiItem() {\n\n }", "public interface WebApiInterface {\n\n @GET(\"alunos\")\n Call<List<Aluno>> getAlunos();\n\n @GET(\"alunos/{id}\")\n Call<Aluno> getAluno(\n @Query(\"id\") String matricula\n );\n\n @FormUrlEncoded\n @POST(\"alunos\")\n Call<String> postCriar(\n @Field(\"aluno\") Aluno aluno\n );\n\n @FormUrlEncoded\n @PUT(\"alunos/{matricula}\")\n Call<String> putAtualizar(\n @Query(\"matricula\") String id,\n @Field(\"aluno\") Aluno aluno\n );\n\n @DELETE(\"alunos/{id}\")\n Call<Aluno> deleteAluno(\n @Query(\"id\") String matricula\n );\n}", "public interface ApiInterface {\n\n @GET(\"{poblacion}.xml\")\n Call<Escrutinio_sitio> getPoblacionData(@Path(\"poblacion\") String poblacion);\n\n }", "private Globals(){\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //Creem el Retrofit\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(API_URL)\n .client(client)\n .addConverterFactory(ScalarsConverterFactory.create())\n .addConverterFactory(JacksonConverterFactory.create())\n .build();\n\n serveiRetrofit = retrofit.create(RetrofitAPI.class);\n }", "public Apis getApi() {\n //logging requests and responses in verbose\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //build retrofit object\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://srishti-systems.info/projects/ForteBank/api/\")\n .addConverterFactory(GsonConverterFactory.create())\n .client(client).build();\n\n //connect api class with this builder\n\n Apis apis = retrofit.create(Apis.class);\n return apis;\n }", "public CarroResource() {\r\n }", "public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private Resource() {}", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public interface BruceApi {\n\n\tString ENDPOINT = \"http://gank.avosapps.com/api\";\n\n\t@GET(\"/data/福利/\" + BruceFactory.pageSize + \"/{page}\")\n\tvoid getListData(@Path(\"page\") int page, Callback<FuliList> response);\n\n\t@GET(\"/day/{year}/{month}/{day}\")\n\tvoid getDataSet(@Path(\"year\") int year, @Path(\"month\") int month, @Path(\"day\") int day,Callback<DataSet> response);\n\n\t@GET(\"/day/{year}/{month}/{day}\")\n\tObservable<DataSet> getDataObservable(@Path(\"year\")int year,@Path(\"month\")int month,@Path(\"day\")int day);\n\n\t//但如果我们想获得JSON字符串,Callback的泛型里就不能写POJO类了,要写Response(retrofit.client包下)\n\t@GET(\"/data/福利/\" + BruceFactory.pageSize + \"/{page}\")\n\tvoid getResponseData(@Path(\"page\") int page, Callback<Response> response);\n\n\n}", "public CalccustoRequest()\r\n\t{\r\n\t}", "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n newsdetailHttpService = retrofit.create(GetNewsDetailService.NewsDetailHttpService.class);\n }" ]
[ "0.8560586", "0.7942637", "0.79022783", "0.77500665", "0.7717204", "0.7707666", "0.7640253", "0.7628716", "0.760355", "0.75858474", "0.7568101", "0.74011725", "0.7386108", "0.72787344", "0.7238391", "0.7179376", "0.70934737", "0.7037934", "0.70006585", "0.6997346", "0.69773763", "0.6964751", "0.69406265", "0.69124246", "0.6907809", "0.6898369", "0.6864327", "0.68471843", "0.6823263", "0.68113655", "0.6729134", "0.6704555", "0.6695587", "0.6675419", "0.66690856", "0.66685945", "0.6664793", "0.66579473", "0.66579473", "0.66524667", "0.6648059", "0.66129535", "0.66072303", "0.6592759", "0.6582561", "0.6582383", "0.6582383", "0.6569132", "0.6568696", "0.65572286", "0.65569574", "0.6552607", "0.65426564", "0.6528738", "0.6514969", "0.65078914", "0.64989704", "0.64869785", "0.64814687", "0.6473597", "0.6467771", "0.64570165", "0.6430065", "0.6428853", "0.6427218", "0.6426639", "0.6422499", "0.6421074", "0.6393621", "0.6384985", "0.63671815", "0.63632965", "0.6356607", "0.63529444", "0.63513947", "0.63452965", "0.6344912", "0.634369", "0.63424927", "0.63392484", "0.633169", "0.6331009", "0.63308895", "0.63287", "0.6325738", "0.6320871", "0.63181436", "0.6313347", "0.631062", "0.63063437", "0.6306255", "0.6302454", "0.6301648", "0.62921387", "0.6289984", "0.6289106", "0.6288871", "0.62866163", "0.6284255", "0.62831473" ]
0.8687287
0
Create richcontent label used in FreeMind&FreePlane (version 1.0.1)
@SuppressWarnings("unused") public Element getRichcontent(String content) { Element root = DocumentHelper.createElement("richcontent").addAttribute("TYPE", "NOTE"); Element html = root.addElement("html"); Element head = html.addElement("head"); Element body = html.addElement("body"); // 根据换行符 split 内容,每行对应一个 <p> String[] lines = content.split(Utils.CUSTOM_FEEDLINE); for (String line : lines) { body.addElement("p").addText(line); } return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLabel();", "String getLabel();", "String getLabel();", "private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }", "public String getLabelText();", "public abstract String getLabelText();", "public java.lang.String getLabel();", "private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }", "@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}", "public static ComponentBuilder<?, ?> createCustomTitleComponent(String label) {\n\n StyleBuilder bold12CenteredStyle = stl.style(boldStyle).setFontSize(12);\n StyleBuilder bold16CenteredStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0));\n //StyleBuilder italicStyle = stl.style(rootStyle).italic();\n ComponentBuilder<?, ?> logoComponent = cmp.verticalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 60),\n cmp.text(label).setStyle(bold16CenteredStyle).setHorizontalAlignment(HorizontalAlignment.CENTER) \n );\n return logoComponent;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "private Widget getLabel(String text, final List defList) {\n Image newField = getNewFieldButton(defList);\n\n HorizontalPanel h = new HorizontalPanel();\n h.add(new SmallLabel(text)); h.add(newField);\n return h;\n\t}", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();", "private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n titleLbl.setLayoutY(125);\n return titleLbl;\n }", "public abstract String getLabel();", "String addLabel(String label);", "Label getLabel();", "Label getLabel();", "Label getLabel();", "private Label createLabel(String text, int offset) {\n\t\tLabel label = new Label(text);\n\t\t//label.setFont(Font.font(40));\n\t\tlabel.setTextFill(Color.YELLOW);\n\t\tlabel.getTransforms().add(new Rotate(-50, 300, 400, 20, Rotate.X_AXIS));\n\t\tlabel.setLayoutX(canvas.getWidth() / 2);\n\t\tlabel.setLayoutY(canvas.getHeight() / 2 + offset);\n\t\tlabel.setId(\"chooseFile\");\n\t\t\n\t\treturn label;\n\n\t}", "com.microsoft.schemas.xrm._2011.contracts.Label addNewDescription();", "private JLabel makeLabel(String title, boolean h1) {\n JLabel label = new JLabel(title);\n if (h1 == true) {//if the label is to be a title\n label.setForeground(themeColor);\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 48));\n } else {\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 25));\n label.setForeground(Color.white);\n }\n return label;\n\n }", "public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}", "private Label createScoreLabel(){\n Label text;\n Label.LabelStyle textStyle;\n BitmapFont font = new BitmapFont();\n\n textStyle = new Label.LabelStyle();\n textStyle.font = font;\n\n text = new Label(\"Score:\",textStyle);\n text.setAlignment(Align.center);\n text.setFontScale(2f*scale,2f*scale);\n text.setPosition(stage.getViewport().getCamera().viewportWidth * 0.5f,\n stage.getViewport().getCamera().viewportHeight * 0.70f);\n return text;\n }", "private Label addNewLabel() {\n getElement().getChildren().forEach(e -> getElement().removeChild(e));\n // Create and add a new slotted label\n Label label = new Label();\n label.getElement().setAttribute(\"slot\", \"label\");\n this.getElement().appendChild(label.getElement());\n return label;\n }", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public CustomLabel(String text){\n setHorizontalAlignment(JLabel.LEFT);\n Font font = new Font(\"Bold\", Font.BOLD, 20);\n setFont(font);\n setText(\" \" + text);\n }", "private JLabel getLabelIntro() {\r\n\t\tif (labelIntro == null) {\r\n\t\t\tlabelIntro = new JLabel();\r\n\t\t\tlabelIntro.setFont(new Font(\"Verdana\",Font.BOLD,40));\r\n\t\t\tlabelIntro.setForeground(Color.WHITE);\r\n\t\t\tlabelIntro.setText(\"Musical Memory\");\r\n\t\t\tlabelIntro.setBounds(new Rectangle(140, 50, 497, 219));\r\n\t\t}\r\n\t\treturn labelIntro;\r\n\t}", "private RLabel getVersionLabel() {\n if (versionLabel == null) {\n versionLabel = new RLabel();\n versionLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productVersion\\\") %>\");\n versionLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n versionLabel.setName(\"versionLabel\");\n }\n return versionLabel;\n }", "private void createLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(\n WritableFont.TIMES, 10, WritableFont.BOLD, true,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n// addCaption(sheet, 3, 0, mExcelObject.getHourActivity()); // ชั่วโมง\n\n // Write a few headers\n// addCaption(sheet, 0, 0, \"ชื่อกิจกรรม \"+mExcelObject.getActivityName()); // ชื่อกิจกรรม\n// addCaption(sheet, 1, 0, \"วันที่จัด \"+mExcelObject.getTimeStart()); // วันที่จัด\n// addCaption(sheet, 2, 0, \"สถานที่่่ \"+mExcelObject.getLocationName()); // สถานที่\n\n\n\n\n\n addCaption(sheet, 0, 1, \"ลำดับ\");\n addCaption(sheet, 1, 1, \"ชื่อผู้ปกครอง\");\n addCaption(sheet, 2, 1, \"ชื่อเด็กนักเรียน\");\n //addCaption(sheet, 3, 1, \"ระดับชั้น\");\n // addCaption(sheet, 4, 1, \"เวลามารับ\");\n\n\n\n\n\n }", "public abstract void addLabel(String str);", "private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "private RLabel getBuildLabel() {\n if (buildLabel == null) {\n buildLabel = new RLabel();\n buildLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productBuild\\\") %>\");\n buildLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n buildLabel.setName(\"buildLabel\");\n }\n return buildLabel;\n }", "public Field label(String label);", "private void createLabel(String title, int row, int col, int fontsize) {\n \tLabel label1 = new Label(title);\n \tlabel1.setFont(Font.font(myResources.getString(\"font\"), \n \t\t\tFontWeight.EXTRA_BOLD, FontPosture.ITALIC, fontsize));\n \tlabel1.setTextFill(Color.RED);\n \tstartScreen.add(label1, row, col);\n }", "private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "private String getLabelNodeAvl(){\n return concatLabel(this.root);\n }", "@Override\n public String getLabel() {\n return label;\n }", "void addLabel(Object newLabel);", "void addLabel(Object newLabel);", "private String getLabelsHTML(Resource concept) {\n\t\tString html = \"\";\n\t\tMap<String,String> prefLabs = getPrefLabels(concept); \n\t\tMap<String,SortedSet<String>> altLabs = getAltLabels(concept); \n\t\t\n\n\t\n\t\tSet<String> Languages = new HashSet<String>();\n\t\tLanguages.addAll(prefLabs.keySet());\n\t\tLanguages.addAll(altLabs.keySet());\n\t\tboolean empty = true;\n\t\t\n\t\tfor(String lang: Languages) {\n\t\t\thtml += \"<img src= \\\"\" + imagepath + lang + \".png\\\" alt= \\\"\" + lang + \".png\\\" alt= \\\"\" + lang + \"\\\">\";\n\t\t\tString prefLab = prefLabs.get(lang);\n\t\t\tif(prefLab != null) {\n\t\t\t\thtml +=\t\" <b>\" + prefLab + \"</b>\";\n\t\t\t\tempty = false;\n\t\t\t}\n\t\t\tSortedSet<String> sortedlabels = altLabs.get(lang);\n\t\t\tif(sortedlabels != null) {\n\t\t\t\tfor(String alt:sortedlabels) {\n\t\t\t\t\tif(!empty) {\n\t\t\t\t\t\thtml += \", \";\n\t\t\t\t\t}\n\t\t\t\t\thtml += \"<em>\" + alt + \"</em>\";\n\t\t\t\t\tempty = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\thtml += \"<br/>\";\n\t\t}\n\t\n\t\treturn html;\n\t}", "private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }", "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "public abstract Code addLabel(String label);", "String nameLabel();", "com.google.ads.googleads.v6.resources.Label getLabel();", "public String getLabel(){\n return label;\n }", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}", "private JLabel createButtonDescription() {\r\n JLabel buttonDescription = new JLabel(\"Result\");\r\n buttonDescription.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n buttonDescription.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n buttonDescription.setText(\"Play again?\");\r\n buttonDescription.setFont(new Font(null, Font.PLAIN, 20));\r\n return buttonDescription;\r\n }", "public void createLabels()\n {\n title = new JLabel(\"Game Over\");\n title.setForeground(Color.RED);\n title.setFont(new Font(title.getFont().getName(), Font.PLAIN, 42));\n title.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n roundLabel = new JLabel(\"CPU was infected on round \"+roundLost);\n roundLabel.setForeground(Color.RED);\n roundLabel.setFont(new Font(title.getFont().getName(), Font.PLAIN, 18));\n roundLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}", "protected void createSimpleLabel(String name, String content, AlignmentLocation horz, AlignmentLocation vert, \n\t\t\tString parentZoneName) {\n\t\tnew Label(name, content, Color.WHITE, 30f, horz, vert, parentZoneName, this);\n\t}", "protected JLabel createComponent(String text, Icon image)\n {\n return new JLabel(text, image, SwingConstants.RIGHT);\n }", "private GLabel makeLabel(String labelString, GRect labelRect) {\r\n\t\tGLabel label = new GLabel(labelString);\r\n\t\tint labelXPadding = ((int) labelRect.getWidth() - (int) label.getWidth()) / 2;\r\n\t\tint labelYPadding = ((int) labelRect.getHeight() + (int) label.getAscent()) / 2;\r\n\t\tlabel.setLocation(labelRect.getX() + labelXPadding, labelRect.getY() + labelYPadding);\r\n\t\treturn label;\r\n\t}", "public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}", "public String getLabel()\n { \n return label;\n }", "String buildLabelFromType(String type);", "private Resource labelResource(Resource resource, String labelText) {\n // create parts\n Property labelProperty = model.createProperty(ProvOntology.getRDFSLabelFullURI());\n Literal label = model.createLiteral(labelText);\n // add the label to the resource\n resource.addLiteral(labelProperty, label);\n // provide the resource to the caller for method-chaining\n return resource;\n }", "private RLabel getCopyrightLabel() {\n if (copyrightLabel == null) {\n copyrightLabel = new RLabel();\n copyrightLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productCopyright\\\") %>\");\n copyrightLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n copyrightLabel.setName(\"copyrightLabel\");\n }\n return copyrightLabel;\n }", "@Override\r\n public void build(GraphicsConfiguration gc) {\n\r\n RWTLabel startLabel = new RWTLabel();\r\n startLabel.setString(\"10年後・・・\");\r\n startLabel.setColor(Color.black);\r\n startLabel.setRelativePosition(0.05f, 0.3f);\r\n Font f = new Font(\"\", Font.PLAIN, 20);\r\n startLabel.setFont(f);\r\n addWidget(startLabel);\r\n\r\n RWTLabel scenario1Label = new RWTLabel();\r\n scenario1Label.setString(\"ヤヲ・二・ナッタ「よく来たね~」\");\r\n scenario1Label.setColor(Color.black);\r\n scenario1Label.setRelativePosition(0.05f, 0.5f);\r\n Font a = new Font(\"\", Font.PLAIN, 20);\r\n scenario1Label.setFont(a);\r\n addWidget(scenario1Label);\r\n\r\n RWTLabel scenario2Label = new RWTLabel();\r\n scenario2Label.setString(\"「僕を倒したら最強のマフィアだよ~⤴」\");\r\n scenario2Label.setColor(Color.black);\r\n scenario2Label.setRelativePosition(0.05f, 0.7f);\r\n Font b = new Font(\"\", Font.PLAIN, 20);\r\n scenario2Label.setFont(b);\r\n addWidget(scenario2Label);\r\n\r\n repaint();\r\n }", "private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}", "private Label initChildLabel(Pane container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "public JLabel addLabel(String texte) {\n JLabel label = new JLabel(texte);\n simplePanel.add(label);\n return label;\n }", "com.microsoft.schemas.xrm._2011.contracts.Label getDescription();", "private RLabel getIconLabel() {\n if (iconLabel == null) {\n iconLabel = new RLabel();\n iconLabel.setStyle(\"border-all\");\n iconLabel.setIconUri(\"<%=ivy.cms.cr(\\\"/Icons/Large/error\\\")%>\");\n iconLabel.setStyleProperties(\"{/anchor \\\"NORTHWEST\\\"}\");\n iconLabel.setName(\"iconLabel\");\n }\n return iconLabel;\n }", "private void setupSpellHereLabel(){\n\t\tJLabel spell_here_text = new JLabel(\"SPELL HERE\");\n\t\tspell_here_text.setFont(new Font(\"Arial\", Font.BOLD, 45));\n\t\tspell_here_text.setForeground(new Color(254, 157, 79));\n\t\tadd(spell_here_text);\n\t\tspell_here_text.setBounds(32, 484, 332, 74);\n\t\tspell_here_text.setOpaque(false);\n\t}", "DatasetLabel getLabel();", "private void createGrpLabel() {\n\n\t\tgrpLabel = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpLabel.setText(\"Preview of Label\");\n\t\tgrpLabel.setBounds(new Rectangle(390, 40, 310, 230));\n\t\tgrpLabel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcanvasLabel = new Canvas(grpLabel, SWT.NONE);\n\t\tcanvasLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 18,\n\t\t\t\t285, 200));\n\t\tcanvasLabel.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcreateCanvasBorders();\n\n\t\tlblCanvasPharmName = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmName.setText(\"Facility Name\");\n\t\tlblCanvasPharmName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmName.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmName.setBounds(5, 6, 273, 20);\n\t\tlblCanvasPharmName\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmName.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasPharmacist = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmacist.setText(\"Pharmacist\");\n\t\tlblCanvasPharmacist\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmacist.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmacist.setBounds(5, 27, 273, 20);\n\t\tlblCanvasPharmacist.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmacist.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasAddress = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasAddress.setText(\"Physical Address\");\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasAddress\n\t\t.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tlblCanvasAddress.setBounds(5, 49, 273, 20);\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasAddress.setAlignment(SWT.CENTER);\n\n\t}", "public abstract String getManipulatorLinkLabel();", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \": \\\"\" + getLabel() + \"\\\"\";\n\t}", "public UMLFragmentLabelFigure(String prefix, String text)\r\n {\r\n this();\r\n\r\n LabelFigure boldLabel = new LabelFigure(prefix, Commons4EclipseFonts\r\n .getFont(Commons4EclipseFonts.FONT_DEFAULT_BOLD));\r\n addLabel(boldLabel);\r\n\r\n LabelFigure textLabel = new LabelFigure(text, Commons4EclipseFonts\r\n .getFont(Commons4EclipseFonts.FONT_DEFAULT_NORMAL));\r\n addLabel(textLabel);\r\n }", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public String getLabel() {\n return label;\n }", "private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}", "private Label createAdventureLabel(ClientPlayerAdventureState cpa)\n\t{\n\t\tLabel l;\n\t\tif(cpa.isRealLifeAdventure()) {\n\t\t\tl = new Label(\"[P] \" + cpa.getAdventureDescription(), SkinPicker.getSkinPicker().getCrewSkin());\n\t\t} else {\n\t\t\tl = new Label(cpa.getAdventureDescription(), SkinPicker.getSkinPicker().getCrewSkin());\n\t\t}\n\t\tl.setWrap(true);\n\t if (cpa.getAdventureState() == AdventureStateEnum.COMPLETED)\n\t\t{\n\t\t\tl.setColor(Color.GREEN);\n\t\t}\n\t else if (cpa.getQuestState() == QuestStateEnum.EXPIRED)\n {\n l.setColor(Color.BLACK);\n }\n\t\telse\n\t\t{\n\t\t\tl.setColor(Color.valueOf(blue_hex));\n\t\t}\n\t\treturn l;\n\t}", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "public String getLabel()\n {\n return label;\n }", "private void _initLabels() \n {\n _lblName = _createNewLabel( \"Mother Teres@ Practice Management System\");\n _lblVersion = _createNewLabel(\"Version 1.0.1 (Beta)\");\n _lblAuthor = _createNewLabel( \"Company: Valkyrie Systems\" );\n _lblRealAuthor = _createNewLabel( \"Author: Hein Badenhorst\" );\n _lblDate = _createNewLabel( \"Build Date:\" );\n _lblRealDate = _createNewLabel( \"31 October 2010\");\n }", "private FormComponentLabel addLabeled( String id, FormComponent<?> component ) {\n component.setOutputMarkupId( true );\n FormComponentLabel result = new FormComponentLabel( id, component );\n add( result );\n add( component );\n addIssuesAnnotation( component, getFlow(), component.getId() );\n return result;\n }", "@Override\n public java.lang.String getLabelToDisplay() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.LABEL_TO_DISPLAY_);\n return (java.lang.String)retnValue;\n }", "String getVersionLabel();", "String getLabel() {\n return label;\n }", "private RLabel getJavaProductLabel() {\n if (javaProductLabel == null) {\n javaProductLabel = new RLabel();\n javaProductLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/javaProduct\\\") %>\");\n javaProductLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n javaProductLabel.setName(\"javaProductLabel\");\n }\n return javaProductLabel;\n }", "private void criaLabel(String nome, int eixoY) {\r\n\t\tJLabel nova = new JLabel(nome);\r\n\t\tnova.setFont(new Font(\"Arial\", Font.PLAIN, 14));\r\n\t\tnova.setForeground(Color.BLACK);\r\n\t\tnova.setBounds(28, eixoY, 70, 14);\r\n\t\tpainelPrincipal.add(nova);\r\n\t}", "public String getLabel()\n {\n return label;\n }", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "public static HorizontalLayoutContainer FuncLabelToolItem(String textHtml) {\n\t\tSafeHtml labelHtml = SafeHtmlUtils.fromTrustedString(\"<left><font color='#909090' style='font-size:24px;font-weight:bold;'>\"+ textHtml +\"</font>\");\r\n\t\tLabelToolItem labelToolItem = new LabelToolItem(labelHtml);\r\n//\t\tlabelToolItem.setSize(\"200\", \"130\");\r\n//\t\tlabelToolItem.setLayoutData(new Margins(200, 0, 0, 0));\r\n\r\n\t\tHorizontalLayoutContainer hlc = new HorizontalLayoutContainer();\r\n\t\tHorizontalLayoutData hld = new HorizontalLayoutData();\r\n\t\tMargins margins = new Margins();\r\n\t\tmargins.setTop(60);\r\n\t\thld.setMargins(margins);\r\n\t\thlc.setWidth(210);\r\n\t\thlc.setHeight(134);\r\n\t\thlc.add(labelToolItem, hld);\r\n\t\t\r\n\t\treturn hlc;\r\n\t}", "void createLabelToken( String name, int id );", "public Label getLabel(Element element) {\r\n return new ElementLabel(contact, element, format);\r\n }", "public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }", "private RLabel getJavaVersionLabel() {\n if (javaVersionLabel == null) {\n javaVersionLabel = new RLabel();\n javaVersionLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/javaVersion\\\") %>\");\n javaVersionLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n javaVersionLabel.setName(\"javaVersionLabel\");\n }\n return javaVersionLabel;\n }" ]
[ "0.6817336", "0.67372274", "0.67372274", "0.671616", "0.66496396", "0.662767", "0.6619123", "0.6580045", "0.6571894", "0.646562", "0.64328337", "0.64328337", "0.64328337", "0.64328337", "0.6414773", "0.639451", "0.63887435", "0.63504034", "0.634088", "0.6315841", "0.62518", "0.62518", "0.62518", "0.62248874", "0.62054145", "0.61595416", "0.6159083", "0.6109054", "0.6084401", "0.6079438", "0.6065342", "0.6052641", "0.6050009", "0.60380715", "0.6037546", "0.60370237", "0.603199", "0.60296273", "0.6014402", "0.6009292", "0.6007825", "0.5978323", "0.5971675", "0.5964095", "0.5964095", "0.5959363", "0.59493864", "0.5911534", "0.5910779", "0.5901686", "0.5895802", "0.58887607", "0.58884484", "0.5883655", "0.5878739", "0.5874717", "0.58733517", "0.5859843", "0.5840465", "0.583669", "0.58315617", "0.5826174", "0.5821107", "0.58197665", "0.58161443", "0.5810352", "0.5808445", "0.58067715", "0.580426", "0.5793195", "0.5784874", "0.5781531", "0.57717615", "0.5771133", "0.57396907", "0.5729925", "0.572413", "0.5723909", "0.5714508", "0.57085526", "0.5700846", "0.5699895", "0.5699714", "0.5698452", "0.56936955", "0.56843626", "0.56766516", "0.5665643", "0.565939", "0.56469166", "0.5644641", "0.5644567", "0.5642315", "0.56415623", "0.56415623", "0.56415623", "0.5638773", "0.5638532", "0.56360626", "0.5632248", "0.5630084" ]
0.0
-1
/ Method to check whether google service is available or not Important method to make google api project robust
public boolean googleServiceCheck() { int isServiceAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if (isServiceAvailable == ConnectionResult.SUCCESS) { return true; } else if (GooglePlayServicesUtil.isUserRecoverableError(isServiceAvailable)) { Dialog dialog = GooglePlayServicesUtil.getErrorDialog(isServiceAvailable, this, GPS_ERROR_DIALOG_REQUEST); dialog.show(); } else { Toast.makeText(this, "Can't connect to Google Play Service", Toast.LENGTH_SHORT).show(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkGooglePlayServices() {\n\t\tint status = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (D) {\n\t\t\tif (status == ConnectionResult.SUCCESS) {\n\t\t\t\t// Success! Do what you want\n\t\t\t\tLog.i(TAG, \"Google Play Services all good\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_MISSING) {\n\t\t\t\tLog.e(TAG, \"Google Play Services not in place\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED) {\n\t\t\t\tLog.e(TAG, \"Google Play Serivices outdated\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_DISABLED) {\n\t\t\t\tLog.e(TAG, \"Google Plauy Services disabled\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_INVALID) {\n\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\"Google Play Serivices invalid but wtf does that mean?\");\n\t\t\t} else {\n\t\t\t\tLog.e(TAG, \"No way this is gonna happen\");\n\t\t\t}\n\t\t}\n\t}", "private void checkGooglePlayServiceSDK() {\n //To change body of created methods use File | Settings | File Templates.\n final int googlePlayServicesAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n Log.i(TAG, \"googlePlayServicesAvailable:\" + googlePlayServicesAvailable);\n\n switch (googlePlayServicesAvailable) {\n case ConnectionResult.SERVICE_MISSING:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n break;\n case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_SERVICE_UPDATE_REQUIRED);\n break;\n case ConnectionResult.SERVICE_DISABLED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_DISABLED);\n break;\n case ConnectionResult.SERVICE_INVALID:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_INVALID);\n break;\n }\n }", "private boolean isGooglePlayServicesAvailable() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == status) {\n return true;\n } else {\n GooglePlayServicesUtil.getErrorDialog(status, this, 0).show();\n return false;\n }\n }", "public static boolean hasGooglePlayServices() {\n\t\tboolean isAvailable = false;\n\t\tint statusCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext);\n\t\tif (statusCode == ConnectionResult.SUCCESS) {\n\t\t\tisAvailable = true;\n\t\t} else {\n\t\t\tisAvailable = false;\n\t\t}\n\t\treturn isAvailable;\n\t}", "private boolean isGooglePlayServicesAvailable() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\r\n // If Google Play services is available\r\n if (ConnectionResult.SUCCESS == resultCode) {\r\n // In debug mode, log the status\r\n Log.d(\"Location Updates\", \"Google Play services is available.\");\r\n return true;\r\n } else {\r\n // Get the error dialog from Google Play services\r\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog( resultCode,\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n\r\n // If Google Play services can provide an error dialog\r\n if (errorDialog != null) {\r\n // Create a new DialogFragment for the error dialog\r\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\r\n errorFragment.setDialog(errorDialog);\r\n errorFragment.show(getFragmentManager(), \"Location Updates\");\r\n }\r\n\r\n return false;\r\n }\r\n }", "boolean hasIsGoogleCn();", "@java.lang.Override\n public boolean hasGoogleService() {\n return stepInfoCase_ == 24;\n }", "public boolean googleServicesAvailable() {\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\n int isAvailable = api.isGooglePlayServicesAvailable(this);\n\n if (isAvailable == ConnectionResult.SUCCESS) {\n return true;\n } else if (api.isUserResolvableError(isAvailable)) {\n Dialog dialog = api.getErrorDialog(this, isAvailable, 0);\n dialog.show();\n } else {\n Toast.makeText(this, \"Can't connect to play services\", Toast.LENGTH_LONG).show();\n }\n return false;\n }", "private boolean servicesAvailable() {\n int resultCode = GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == resultCode) {\n log(\"Google Play services is available\");\n return true;\n } else {\n log(\"Google Play services is not available\");\n showErrorDialog(resultCode);\n return false;\n }\n }", "@java.lang.Override\n public boolean hasGoogleService() {\n return stepInfoCase_ == 24;\n }", "private boolean isGooglePlayServicesAvailable() {\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(\"Location Updates\", \"Google Play services is available.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Get the error dialog from Google Play services\n\t\t\tDialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t// If Google Play services can provide an error dialog\n\t\t\tif (errorDialog != null) {\n\t\t\t\t// Create a new DialogFragment for the error dialog\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(errorDialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), \"Location Updates\");\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean CheckGooglePlayServices() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int available = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (available != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(available)) {\n googleApiAvailability.getErrorDialog(this, available,0).show();\n }\n return false;\n }\n return true;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n\n return connectionStatusCode == ConnectionResult.SUCCESS;\n\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean checkGooglePlayServices() {\n int code = GooglePlayServicesUtil.isGooglePlayServicesAvailable(mActivity);\n if (code != ConnectionResult.SUCCESS) {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(code, mActivity, Constants.RequestCode.HANDLE_GMS,\n new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialogInterface) {\n mActivity.finish();\n }\n });\n if (dialog != null) {\n dialog.show();\n }\n\n return false;\n }\n\n return true;\n }", "int isPlayServicesAvailable() {\n if (mGoogleApiAvailability_class != null) {\n String errorMsg;\n Throwable throwable;\n try {\n Method getInstance_method = mGoogleApiAvailability_class.getDeclaredMethod(\"getInstance\");\n Object googleApiAvailabilityInstance = getInstance_method.invoke(null);\n\n Method isPlayServicesAvailable_method = mGoogleApiAvailability_class.getDeclaredMethod(\n \"isGooglePlayServicesAvailable\", Context.class);\n Integer result = (Integer) isPlayServicesAvailable_method.invoke(googleApiAvailabilityInstance, mContext);\n Log.d(TAG, \"isPlayServicesAvailable(): isGooglePlayServicesAvailable returned: \" + result);\n switch (result) {\n case 0:\n //success\n return PLAY_SERVICES_AVAILABLE;\n case 2:\n //version update required\n return PLAY_SERVICES_SERVICE_VERSION_UPDATE_REQUIRED;\n default:\n //everything else\n return PLAY_SERVICES_UNAVAILABLE;\n }\n } catch (NoSuchMethodException e) {\n // in this case,\n errorMsg = \"isPlayServicesAvailable(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"isPlayServicesAvailable(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n return PLAY_SERVICES_MAGNET_VERSION_INCOMPATIBILITY;\n } else {\n return PLAY_SERVICES_UNAVAILABLE;\n }\n }", "public boolean checkGooglePlayServices() {\r\n // Retrieve an instance of the GoogleApiAvailability object\r\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\r\n\r\n // Check whether the device includes GooglePlayServices\r\n int resultCode = api.isGooglePlayServicesAvailable(this);\r\n if (resultCode == ConnectionResult.SUCCESS) {\r\n // If it does, return true\r\n return true;\r\n } else if (api.isUserResolvableError(resultCode)) {\r\n // If Google Play Services are available to download to the user, show the error Dialog\r\n api.showErrorDialogFragment(this, resultCode, 9000);\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean isGooglePlayServicesAvailable() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n return connectionStatusCode == ConnectionResult.SUCCESS;\r\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "public boolean isGooglePlayServicesAvailable() {\n final int connectionStatusCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n if (GooglePlayServicesUtil.isUserRecoverableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n return false;\n } else if (connectionStatusCode != ConnectionResult.SUCCESS ) {\n return false;\n }\n return true;\n }", "private boolean supportsGooglePlayServices() {\n return GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) ==\n ConnectionResult.SUCCESS;\n }", "private boolean supportsGooglePlayServices() {\n return GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) ==\n ConnectionResult.SUCCESS;\n }", "public boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(status)) {\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n }\n return false;\n }\n return true;\n }", "public boolean isGooglePlayAvailable() {\n GoogleApiAvailability api= GoogleApiAvailability.getInstance();\n int isAvailable= api.isGooglePlayServicesAvailable(this);\n\n if (isAvailable == ConnectionResult.SUCCESS) {\n return true;\n }else if (api.isUserResolvableError(isAvailable)){\n Dialog dialog= api.getErrorDialog(this, isAvailable, 0);\n dialog.show();\n }else {\n Toast.makeText(this,\"Can't connect to Play Services\",Toast.LENGTH_LONG).show();\n }\n return false;\n }", "private boolean isServiceOk(){\n Log.d(TAG, \"isServiceOk: checking google service version\");\n\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(FormularioCurso.this);\n\n if (available == ConnectionResult.SUCCESS){\n //Everything is fine and the user can make map request\n return true;\n } else if(GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n //an error ocured but we can resolt it\n Log.d(TAG, \"isServiceOk: an error occures but we can fix it\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(FormularioCurso.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n }else{\n Toast.makeText(this, \"You can't make map request\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "public boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(context, resultCode,\n PLAY_SERVICES_REQUEST).show();\n PrintLog.e(TAG, \"checkPlayServices yes hai\");\n } else {\n PrintLog.e(TAG, \"checkPlayServices No hai\");\n Toast.makeText(context, \"This device is not supported.\", Toast.LENGTH_LONG).show();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(getActivity(), resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Toast.makeText(getActivity(), \"This device is not supported by Google Play Services.\", Toast.LENGTH_SHORT).show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }", "public boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(map_actvity,resultCode,\n PLAY_SERVICES_REQUEST).show();\n } else {\n showToast(\"This device is not supported.\");\n }\n return false;\n }\n return true;\n }", "public boolean isGoogleServicesWorking() {\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);\n if (available == ConnectionResult.SUCCESS) {\n return true;\n } else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)) {\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(this, available, ERROR_DIALOG_REQ);\n dialog.show();\n } else {\n Toast.makeText(this, \"You can't make map requests\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "private boolean servicesOK() {\n GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\n int result = googleAPI.isGooglePlayServicesAvailable(this);\n if (result != ConnectionResult.SUCCESS) {\n if (googleAPI.isUserResolvableError(result)) {\n }\n return false;\n }\n return true;\n }", "private boolean servicesConnected(Activity activity) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n // Google Play services was not available for some reason.\n // resultCode holds the error code.\n } else {\n // Get the error dialog from Google Play services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, activity, LocationFailureHandler.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n \terrorDialog.show();\n } else {\n }\n return false;\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n Log.d(Util.TAG_GOOGLE, \"\" + connectionStatusCode);\n // showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private boolean checkPlayServices() {\r\n\t\tGoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n\t\tint resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\r\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\r\n\t\t\tif (apiAvailability.isUserResolvableError(resultCode)) {\r\n\t\t\t\tapiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\r\n\t\t\t\t\t\t.show();\r\n\t\t\t} else {\r\n\t\t\t\tLog.i(TAG, \"This device is not supported.\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean checkPlayServices()\n {\n\tint resultCode=-5000;\n\ttry {\n\t\tresultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\tif (resultCode != ConnectionResult.SUCCESS)\n\t{\n\t if (GooglePlayServicesUtil.isUserRecoverableError(resultCode))\n\t {\n\t \tLog.i(Globals.TAG, \"dialog gorunecek\");\n\t \tGooglePlayServicesUtil.getErrorDialog(resultCode, this, PLAY_SERVICES_RESOLUTION_REQUEST).show();\n\t \tLog.i(Globals.TAG, \"dialog kapandi\");\n\t }\n\t else\n\t {\n\t\t\tLog.i(Globals.TAG, \"This device is not supported.\");\n\t\t\tint RQS_GooglePlayServices = 1;\n\t\t\t GooglePlayServicesUtil.getErrorDialog(resultCode, this, RQS_GooglePlayServices);\n\t\t\tfinish();\n\t }\n\t return false;\n\t}\n\treturn true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(), \"This device is not supported.\", Toast.LENGTH_LONG).show();\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(getContext());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, getActivity(),\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }", "boolean getIsGoogleCn();", "private void acquireGooglePlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\r\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\r\n }\r\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(\"Location Updates\",\n \"Google Play services is available.\");\n // Continue\n return true;\n // Google Play services was not available for some reason.\n // resultCode holds the error code.\n } else {\n return false;\n }\n }", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n\n // In debug mode, log the status\n Log.d(GeofenceUtils.APPTAG, getString(R.string.play_services_available));\n\n // Continue\n return true;\n\n // Google Play services was not available for some reason\n } else {\n\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), GeofenceUtils.APPTAG);\n }\n return false;\n }\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(mContext);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, (Activity)mContext,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(mContext,\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n Log.i(TAG, \"checkPlayServices \" + resultCode);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "public boolean checkPlayServices(Activity a) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(a);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, a,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n }\n return false;\n }\n return true;\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(context);\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\n\t\t\tif (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n\t\t\t\tGooglePlayServicesUtil.getErrorDialog(resultCode, context,\n\t\t\t\t\t\tPLAY_SERVICES_RESOLUTION_REQUEST).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\"This device is not supported.\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n // Google Play services was not available for some reason\n } else {\n return false;\n }\n }", "private boolean servicesConnected() {\n\t\tint resultCode =\n\t\t\t\tGooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\n\n\t\t\t// Continue\n\t\t\treturn true;\n\t\t\t// Google Play services was not available for some reason\n\t\t} else {\n\t\t\t// Display an error dialog\n\t\t\tDialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n\t\t\tif (dialog != null) {\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(dialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), LocationUtils.APPTAG);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(\"LoginActivity\", \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "public static boolean checkPlayServices(Context context) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, (Activity) context, resultCode);\n } else {\n Log.i(TAG, \"This device is not supported.\");\n }\n return false;\n }\n return true;\n }", "private boolean servicesConnected() {\n\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(ClientSideUtils.APPTAG, getString(R.string.play_services_available));\n return true;\n \n } else {\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), ClientSideUtils.APPTAG);\n }\n return false;\n }\n }", "private boolean isEnablePlayService() {\n GoogleApiAvailability mGoogleAPI = GoogleApiAvailability.getInstance();\n int mResultCodeAPI = mGoogleAPI.isGooglePlayServicesAvailable(this);\n if(mResultCodeAPI!= ConnectionResult.SUCCESS) {\n if (mGoogleAPI.isUserResolvableError(mResultCodeAPI)) {\n mGoogleAPI.getErrorDialog(this, mResultCodeAPI, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n // device not support Google Play Services\n finish();\n }\n return false;\n }\n\n return true;\n }", "private boolean servicesConnected() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(this);\n\t\tif (resultCode == ConnectionResult.SUCCESS) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(TAG, \"Google Play services is available.\");\n\t\t\tmGooglePlayServicesAvailable = true;\n\t\t} else {\n\t\t\tLog.e(TAG, \"could not connect to Google Play services, error \"\n\t\t\t\t\t+ String.valueOf(resultCode));\n\t\t\tmGooglePlayServicesAvailable = false;\n\t\t}\n\t\treturn mGooglePlayServicesAvailable;\n\t}", "public boolean servicesConnected() {\n\t\t// Check that Google Play services is available\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\n\t\t\t// Continue\n\t\t\treturn true;\n\t\t\t// Google Play services was not available for some reason\n\t\t} else {\n\t\t\t// Display an error dialog\n\t\t\tDialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n\t\t\tif (dialog != null) {\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(dialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), LocationUtils.APPTAG);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "public void checkGplayServices(){\n Log.d(TAG, \"checkGplayServices: To check for token!\");\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n Toast.makeText(getApplicationContext(), \"Google Play Service is not install/enabled in this device!\", Toast.LENGTH_LONG).show();\n GooglePlayServicesUtil.showErrorNotification(resultCode, getApplicationContext());\n\n } else {\n Toast.makeText(getApplicationContext(), \"This device does not support for Google Play Service!\", Toast.LENGTH_LONG).show();\n }\n } else {\n Intent intent1;\n if(SharedPreferencesManage.getInstance().getToken()==null) {\n intent1 = new Intent(this, GCMRegistrationIntentService.class);\n startService(intent1);\n Log.d(TAG, \"user to be registered start service\");\n }else\n Log.d(TAG, \"already registered user with token: \"+SharedPreferencesManage.getInstance().getToken());\n\n }\n }", "int isGcmAvailable() {\n if (mGoogleCloudMessaging_class != null) {\n return PLAY_SERVICES_AVAILABLE;\n }\n return PLAY_SERVICES_UNAVAILABLE;\n }", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "private boolean servicesConnected() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n }\n else {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), Constants.APPTAG);\n }\n return false;\n }\n }", "boolean hasGoogleAds();", "private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }", "public boolean getIsGoogleCn() {\n return isGoogleCn_;\n }", "public boolean getIsGoogleCn() {\n return isGoogleCn_;\n }", "public static boolean isGoogleCloud(String url) {\n return url.contains(GS_HOST);\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "boolean hasThirdPartyAppAnalytics();", "private void checkForCarServiceConnection() {\r\n synchronized (mLock) {\r\n if (mCarService != null) {\r\n return;\r\n }\r\n }\r\n IBinder iBinder = ServiceManager.checkService(\"car_service\");\r\n if (iBinder != null) {\r\n if (DBG) {\r\n Slog.d(TAG, \"Car service found through ServiceManager:\" + iBinder);\r\n }\r\n handleCarServiceConnection(iBinder);\r\n }\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }", "public boolean isGoogleMapsInstalled()\n {\n try\n {\n ApplicationInfo info = getPackageManager().getApplicationInfo(\"com.google.android.apps.maps\", 0 );\n return true;\n }\n catch(PackageManager.NameNotFoundException e)\n {\n return false;\n }\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public interface IGoogleServices {\n void signIn();\n void signOut();\n void changeUser();\n boolean isConnected();\n boolean isConnecting();\n}", "void checkForAccServices();", "public static boolean isServiceAvailable(Context context, String intentAction) {\n return new EmailServiceProxy(context, intentAction, null).test();\n }", "public boolean isGooglePageLoaded() throws Exception {\n\n\t\tWebElement icoGoogleSearch = driver.findElement(By\n\t\t\t\t.cssSelector(\"#hplogo\"));\n\t\tWebElement txtGoogleSearchField = driver.findElement(By\n\t\t\t\t.cssSelector(\"#lst-ib\"));\n\t\tWebElement btnGoogleSearch = driver.findElement(By\n\t\t\t\t.cssSelector(\"[value~=Google]\"));\n\t\tWebElement btnGoogleImFeelingLucky = driver.findElement(By\n\t\t\t\t.cssSelector(\"[value~=Feeling]\"));\n\t\tint count = 0;\n\n\t\twhile (!icoGoogleSearch.isDisplayed() || count == 5) {\n\t\t\tThread.sleep(1000);\n\t\t\tcount++;\n\t\t}\n\n\t\tif (!icoGoogleSearch.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Google Search Logo is not displayed\");\n\t\tif (!txtGoogleSearchField.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Google Search Text Field is not displayed\");\n\t\tif (!btnGoogleSearch.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Google Search Button is not displayed\");\n\t\tif (!btnGoogleImFeelingLucky.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"I'm Feeling Lucky button is not displayed\");\n\n\t\treturn true;\n\t}", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean isApiAvailable(String string) {\n URL url;\n try {\n url = new URL(apiAddress + string);\n } catch (MalformedURLException e) {\n System.out.println(e);\n return false;\n }\n try {\n con = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n System.out.println(e);\n return false;\n }\n try {\n con.connect();\n if (con.getResponseCode() == 200) {\n con.disconnect();\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n System.out.println(e);\n return false;\n }\n }", "Object getService(String serviceName, boolean checkExistence);", "@Override\n public StabilityResult check() {\n boolean serviceStability = false;\n int count = 0;\n int count1 = 0;\n int count2 = 0;\n while (!serviceStability && count < attempts) {\n try {\n // We use the getAllServiceReferences method to ignore classloading issues. Anyway, we are not using\n // the service, just counting them.\n ServiceReference[] refs = context.getAllServiceReferences(null, null);\n count1 = refs.length;\n grace();\n refs = context.getAllServiceReferences(null, null);\n count2 = refs.length;\n serviceStability = count1 == count2;\n } catch (Exception e) {\n LOGGER.warn(\"An exception was thrown while checking the service stability\", e);\n serviceStability = false;\n // Nothing to do, while recheck the condition\n }\n count++;\n }\n\n if (count == attempts) {\n LOGGER.error(\"Service stability has not been reached after {} tries ({} != {})\", attempts, count1, count2);\n return StabilityResult.unstable(\"Cannot reach the service stability\");\n }\n return StabilityResult.stable();\n }", "protected void SetupGoogleServices()\n {\n if (mGoogleApiClient == null)\n {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n }", "private boolean serviceIsAvailable(String urlStr) {\r\n\r\n\t\tint respCode = 0;\r\n\t\tURL url;\r\n\t\tint testingTimeout = 3000;\r\n\t\t\r\n\t\ttry {\r\n\t\t\turl = new URL(urlStr);\r\n\r\n\t\t\tHttpURLConnection huc = (HttpURLConnection) url.openConnection();\r\n\t\t\thuc.setRequestMethod(\"POST\");\r\n\r\n\t\t\t/*\r\n\t\t\t * Time out set to 3 seconds, checked at 4 seconds, response should\r\n\t\t\t * be almost instant so this can be hardcoded in this method.\r\n\t\t\t */\r\n\t\t\thuc.setConnectTimeout(testingTimeout);\r\n\t\t\thuc.setReadTimeout(testingTimeout + 1000);\r\n\t\t\thuc.connect();\r\n\t\t\t\r\n\t\t\trespCode = huc.getResponseCode();\r\n\r\n\t\t\tif (this.debug) {\r\n\t\t\t\tprintln(\"Response code from \" + urlStr + \" is \" + respCode);\r\n\t\t\t}\r\n\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tprintln(\"MalformedURLException from \" + urlStr\r\n\t\t\t\t\t+ \" : Response code is \" + respCode);\r\n\t\t\treturn false;\r\n\t\t} catch (SocketTimeoutException s) {\r\n\t\t\tprintln(\"Timeout occurred when checking availability of Speech Synthesis service at...\\n\"\r\n\t\t\t\t\t+ urlStr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tprintln(\"IOException (other than Connection Timeout) from \" + urlStr\r\n\t\t\t\t\t+ \" is \" + respCode);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (respCode == 200) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "boolean hasServiceName();", "boolean hasServiceName();", "public boolean isServiceReady();", "public boolean hasIsGoogleCn() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public static void loadService() {\n Optional<EconomyService> optService = Sponge.getServiceManager().provide(EconomyService.class);\n if(optService.isPresent()) {\n service = optService.get();\n isLoaded = true;\n } else {\n isLoaded = false;\n }\n }" ]
[ "0.78387505", "0.78170156", "0.765277", "0.7579894", "0.7522217", "0.7512399", "0.75080836", "0.74950236", "0.74912035", "0.74675894", "0.74397725", "0.74154425", "0.7402175", "0.7349814", "0.7349814", "0.73488426", "0.73479235", "0.7344112", "0.733308", "0.73309904", "0.7289658", "0.72741693", "0.724341", "0.724341", "0.7192883", "0.7184211", "0.7171005", "0.7166402", "0.7125696", "0.7087495", "0.7087246", "0.7064091", "0.6991602", "0.69900453", "0.69675773", "0.6966974", "0.6946223", "0.6944955", "0.6942417", "0.69206244", "0.69144934", "0.69144934", "0.69144934", "0.69063026", "0.68915033", "0.68902797", "0.6886599", "0.68829304", "0.68821895", "0.6874136", "0.6871503", "0.68603337", "0.68603337", "0.68584347", "0.6832254", "0.6762571", "0.6756011", "0.6717998", "0.6677794", "0.66294193", "0.66120964", "0.6607041", "0.66048294", "0.6586629", "0.65672606", "0.65672606", "0.65672606", "0.65672606", "0.65672606", "0.6560817", "0.6336795", "0.60943043", "0.60727894", "0.6016663", "0.60015154", "0.5907429", "0.5889426", "0.5842506", "0.5840935", "0.582901", "0.58132976", "0.58132976", "0.58132976", "0.5793861", "0.578474", "0.57763356", "0.5773282", "0.5761604", "0.5761604", "0.5761604", "0.5728185", "0.57267684", "0.57029426", "0.5695164", "0.56809", "0.56739396", "0.56739396", "0.5654339", "0.5611265", "0.5611048" ]
0.7643756
3
Do a null check to confirm that we have not already instantiated the map.
private boolean isMap() { if (mMap == null) { // Try to obtain the map from the MapFragment. mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); // Check if we were successful in obtaining the map. if (mMap != null) { mMap.setOnMapClickListener(this); mMap.setOnMarkerClickListener(this); } } return (mMap != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map1)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\tsetUpMap();\n\t\t\t}\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "public void setInstanceOfMapForTesting(){\n instanceOfMap = null;\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n mMap.setOnMarkerDragListener(this);\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "public Map() {\n\t\t//intially empty\n\t}", "private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }", "private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\tlogger.info(\"map is null\");\n\t\t\tlogger.debug(\"maps is null\");\n\t\t\tSystem.out.println(\"map is null\");\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\taddMarker(markerLatLng);\n\t\t\t\t \n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\t\n\t\t\t// Creating an instance of MarkerOptions\n addMarker(markerLatLng);\n \n\t\t\n\t\t}\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n\t\t\t\t\tsetUpMap();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n }\n }", "private void setUpMapIfNeeded() {\n if ( googleMap == null) {\r\n\r\n // Try to obtain the map from the SupportMapFragment.\r\n googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.routesMap)).getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (googleMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapView2))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap( lat, longi, \"ISS/ NUS\");\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n setUpMap();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "@SuppressLint(\"NewApi\")\n\tprivate GoogleMap setUpMapIfNeeded() {\n\t\tif (googleMap == null) {\n\n\t\t\tgoogleMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (googleMap != null) {\n\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n\t\t\t}\n\t\t}\n\t\treturn googleMap;\n\t}", "private void initilizeMap() {\n\t\tif (googleMap == null) {\n\t\t\tgoogleMap = ((MapFragment) getFragmentManager().findFragmentById(\n\t\t\t\t\tR.id.map)).getMap();\n\n\t\t\tif (googleMap == null) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean onLocalMapNotFound() {\n // non implementato\n return false;\n }", "private boolean checkReady() {\n if (mMap == null) {\n Toast.makeText(this, \"Map not ready!\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }", "public void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.location_map)).getMap();\n MapsInitializer.initialize(getActivity().getApplicationContext());\n // Check if we were successful in obtaining the map.\n if (mMap != null)\n setUpMap();\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Log.i(TAG, \"Yes, we have a google map...\");\n setUpMap();\n } else {\n // means that Google Service is not available\n form.dispatchErrorOccurredEvent(this, \"setUpMapIfNeeded\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n }\n\n }\n }", "@Test\n public void initializeTest()\n {\n assertEquals(0, map.size());\n }", "@Test\n\tvoid testVerticesAndEdgesIntanceVariableNotNull() {\n\t\tAssertions.assertNotNull(map);\n\n\t}", "public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n SupportMapFragment mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));\n mapFragment.getMapAsync(this);\n mMap = mapFragment.getMap();\n\n }\n }", "private void setUpMapIfNeeded() {\r\n if (map == null) {\r\n SupportMapFragment smf = null;\r\n smf = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\r\n\r\n if (smf != null) {\r\n map = smf.getMap();\r\n if (map != null) {\r\n map.setMyLocationEnabled(true);\r\n }\r\n }\r\n }\r\n }", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}", "@Test\n public void test1 ()\n {\n MyMap m = new MyMap();\n assertEquals(0, m.size());\n assertNull(m.get(\"a\"));\n }", "public void testNormalPutNullValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutNullValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\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 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}", "public MapManager() {\n myList = null;\n scrabbleList = null;\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n\n if (mMap == null) {\n Log.e(TAG, \"Can not find map\");\n return false;\n }\n\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n\n if (bCurrentPos!= null)\n bCurrentPos.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n goCurrentLocation(mMap);\n }\n });\n\n return true;\n\n }", "@Override\n /***** Sets up the map if it is possible to do so *****/\n public boolean setUpMapIfNeeded() {\n super.setUpMapIfNeeded();\n if (mMap != null) {\n //Shows history popover on marker clicks\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n showPopup(getContentFromMarker(marker), marker.getTitle());\n return true;\n }\n });\n return true;\n } else {\n return false;\n }\n }", "public abstract void createMap();", "boolean hasSimpleMap();", "@Before\n public void initialize()\n {\n map = new MapAdapter();\n }", "@Test\n\tvoid testEdgesNull() {\n\t\tmap.put(\"Boston\", null);\n\t\tAssertions.assertNull(map.get(\"Boston\"));\n\n\t}", "@Test\n @DisplayName(\"nothing happens when attempting to add a null entry\")\n void nothingHappensWhenAddingANewEntry() {\n assertThat(identityMap.add((JsonObject) null), is(nullValue()));\n }", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }", "public Map() {\n\n\t\t}", "@Override\n public MapLocation getMap() {\n return null;\n }", "protected MapImpl() {\n }", "public boolean isEmpty() {\n return map.isEmpty();\n }", "MAP createMAP();", "@Test\n public void fillMapIdAndCoordinateWithAttributeNull() {\n //Given\n \n String pathnameCityPlanXml = \"./ressources/fichiersTestXml/petitPlanMissingAttribute.xml\";\n Reseau resNoTronconValid = parser.parseCityPlan(pathnameCityPlanXml);\n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resNoTronconValid);\n \n // Then\n \n assertNotNull(map);\n assertNull(map.getMapId());\n assertNull(map.getCoordinates());\n \n }", "public static java.util.Map singletonMap(java.lang.Object arg0, java.lang.Object arg1)\n { return null; }", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}", "public static java.util.Map synchronizedMap(java.util.Map arg0)\n { return null; }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "public boolean isEmpty() {\n return map.isEmpty();\n }", "public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }", "@Test\n public void testCreateHazardousMap2() {\n Map safeMap = safeCreator.createMap('s',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "protected WumpusMap() {\n\t\t\n\t}", "public boolean isEmpty( Map<?, ?> map ){\n if( map == null || map.isEmpty() ){\n return true;\n }\n return false;\n }", "@Before\n public void setUp() throws Exception {\n labRat = (LinkedMap) makeEmptyMap();\n }", "public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public static <K, V> Reference2ObjectMap<K, V> emptyMap() {\n/* 178 */ return EMPTY_MAP;\n/* */ }", "public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}", "@Test\n\tvoid testEdgesNotNull() {\n\t\tmap.put(\"Boston\", new LinkedHashSet<String>());\n\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\n\t}", "public final synchronized boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "private void createMapView() {\n try {\n if (null == mMap) {\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\n\n /**\n * If the map is still null after attempted initialisation,\n * show an error to the user\n */\n if (null == mMap) {\n Toast.makeText(getApplicationContext(),\n \"Error creating map\", Toast.LENGTH_SHORT).show();\n }\n }\n } catch (NullPointerException exception) {\n Log.e(\"mapApp\", exception.toString());\n }\n }", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "public MapTile() {}", "private void intializeMap() {\n\n if (googleMap == null) {\n\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n // getPlacesMarkers();\n }\n }", "@Test\n public void fillMapIdAndCoordinateWithBaliseMissing() {\n //Given\n String pathnameXml = \"./ressources/fichiersTestXml/petitPlanMissingBalise.xml\";\n Reseau resAttributeNull = parser.parseCityPlan(pathnameXml);\n assertNotNull(resAttributeNull);\n assertNull(resAttributeNull.getNoeud());\n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resAttributeNull);\n \n // Then\n \n assertNotNull(map);\n assertNull(map.getMapId());\n assertNull(map.getCoordinates());\n }", "private void initMap() {\n Log.wtf(TAG, \"initMap() has been instantiated\");\n\n Log.d(TAG, \"initMap: initializing the map...\");\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n mMapView.getMapAsync(this);\n }", "public boolean isEmpty(){\n\t\tfor(int i = 0; i < hashMap.length; i++){\n\t\t\tif(hashMap[i]!=null){\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true);\n\t}", "public boolean isNativeMaps() {\n return internalNative != null;\n }", "private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }", "public static java.util.Map unmodifiableMap(java.util.Map arg0)\n { return null; }", "@Test\n public void test_ProcessedMapExists() {\n try {\n Class<?> clazz = Class.forName(ENV_PROCESSED_MAP_NAME);\n Method method = clazz.getDeclaredMethod(ENV_PROCESSED_MAP_METHOD);\n method.setAccessible(true);\n HashMap<String, String> mappings = (HashMap<String, String>) method.invoke(null);\n\n Assert.assertEquals(\"There are only 3 keys, so something went wrong\", 3, mappings.size());\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(ex.getMessage());\n }\n }" ]
[ "0.69568175", "0.6915876", "0.6832689", "0.68302405", "0.6786305", "0.6772652", "0.6723438", "0.6688605", "0.6675291", "0.6675291", "0.6675291", "0.6673194", "0.6642337", "0.6601276", "0.6580171", "0.65744424", "0.6564725", "0.654965", "0.65412354", "0.65252334", "0.6511209", "0.6490219", "0.64743656", "0.6454601", "0.6450936", "0.6415084", "0.63987607", "0.63925695", "0.63625556", "0.6349032", "0.63417757", "0.63344115", "0.632737", "0.6315528", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6297381", "0.6296189", "0.6285966", "0.6274561", "0.6219325", "0.6204657", "0.62041134", "0.6197506", "0.61537606", "0.6142864", "0.6142747", "0.6104478", "0.6093418", "0.6080186", "0.60577613", "0.60467166", "0.60457605", "0.6042248", "0.60386604", "0.60191256", "0.601365", "0.59852874", "0.5984616", "0.5935201", "0.5933561", "0.5922064", "0.59192836", "0.59192836", "0.58986515", "0.58939046", "0.58874863", "0.58837134", "0.5878953", "0.5867612", "0.58632", "0.58625865", "0.5854192", "0.58525646", "0.58269686", "0.58262575", "0.58206743", "0.5819078", "0.58078665", "0.57966685", "0.5781831", "0.5777901", "0.5773196", "0.57661253", "0.5737168", "0.57315314", "0.5723986", "0.5706779", "0.5705096", "0.568951", "0.56856537" ]
0.0
-1
Initial Condition for map => Go to current location
private void setUpMap() throws IOException { // Get last location which means current location lastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); if (lastKnownLocation != null) { // shift view to current location LatLng latlng = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude()); Geocoder geocoder = new Geocoder(this); adminArea = geocoder.getFromLocation(latlng.latitude, latlng.longitude, 1).get(0).getAdminArea(); CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latlng, 12); mMap.moveCamera(update); } else { Toast.makeText(this, "Current Location is not Available", Toast.LENGTH_SHORT).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n\n if (mMap == null) {\n Log.e(TAG, \"Can not find map\");\n return false;\n }\n\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n\n if (bCurrentPos!= null)\n bCurrentPos.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n goCurrentLocation(mMap);\n }\n });\n\n return true;\n\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n getLocationPermission();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n if (mMap != null) {\n requestLocation();\n }\n }", "public void goToEntry() {\n this.step(GameMap.instance().getEntryTile());\n }", "private void positionMapAtStart(List<LatLng> path) {\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(new LatLng(path.get(0).latitude, path.get(0).longitude))\n .bearing(0f)\n .tilt(45f)\n .zoom(15f)\n .build();\n\n mGoogleMap.moveCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }", "public static void movePlayerToStartingLocation(Map map) {\n movePlayer(map, 2, 2); // or instead of 0,0 you can select a different starting location\r\n }", "public void goToLocation (Locator checkpoint) { //Patrolling Guard and Stationary Guard\r\n\t\tVector2i start = new Vector2i((int)(creature.getXlocation()/Tile.TILEWIDTH), (int)(creature.getYlocation()/Tile.TILEHEIGHT));\r\n\t\tint destx = (int)(checkpoint.getX()/Tile.TILEWIDTH);\r\n\t\tint desty = (int)(checkpoint.getY()/Tile.TILEHEIGHT);\r\n\t\tif (!checkCollision(destx, desty)) {\r\n\t\tVector2i destination = new Vector2i(destx, desty);\r\n\t\tpath = pf.findPath(start, destination);\r\n\t\tfollowPath(path);\r\n\t\t}\r\n\t\tarrive();\r\n\t}", "private void animateToFirstPlace() {\n\n if (mMap != null && PlaceContent.nearby().size() > 0) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(PlaceContent.nearby().get(0).getLocation().latLng(), 15.0f));\n }\n }", "private void inputLocation() {\n// boolean googleMapExist= (ConnectionResult.SUCCESS==GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext));\n//\n// if(googleMapExist) {\n// org.wowtalk.Log.w(\"google map exist\");\n// Intent mapIntent = new Intent(mContext, PickLocActivity.class);\n// mapIntent.putExtra(\"auto_loc\", true);\n// mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n// } else {\n //org.wowtalk.Log.w(\"google map not exist\");\n Intent mapIntent = new Intent(mContext, PickLocActivityWithAMap.class);\n mapIntent.putExtra(\"auto_loc\", true);\n mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n //}\n }", "public void moveTheMap() {\n \t if(streetLevelFragment != null && map != null){\n \t\t map.setCenter(streetLevelFragment.getStreetLevelModel().getPosition(), MapAnimation.LINEAR, map.getZoomLevel(), streetLevelFragment.getStreetLevelModel().getHeading(), 0);\n \t }\n }", "public void setWhereToGo() {\n\t\tfloat diffZ=mApplications.get(CurIndex).getZ() - Constants.displayedPlace;\r\n\t\tif( Math.abs(diffZ) < Constants.threshold)\r\n\t\t{\r\n\t\t\tif(diffZ >=0)\r\n\t\t\t\tgoTo(Constants.TO_BACKWARD_CENTER);\r\n\t\t\telse\r\n\t\t\t\tgoTo(Constants.TO_FORWARD_CENTER);\r\n\t\t}\r\n\t\telse if( diffZ >= 0) // go to disappeared place\r\n\t\t{\r\n\t\t\tgoTo(Constants.TO_FRONT);\r\n\t\t}\r\n\t\telse if( diffZ < 0) // go to origin place\r\n\t\t{\r\n\t\t\tgoTo(Constants.TO_BACK);\r\n\t\t}\r\n\t}", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n final LatLng update = getLastKnownLocation();\n if (update != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(update, 11.0f)));\n }\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n mIsNeedLocationUpdate = false;\n moveToLocation(latLng, false);\n }\n\n });\n\n }\n }\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 returnDriverLocationstoMaps() {\n }", "protected void startMap(){\n Intent activityChangeIntent = new Intent(MainActivity.this, MapActivity.class);\n startActivity(activityChangeIntent);\n }", "@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n\n // get the runner's path (serialized)\n String latLng = getIntent().getStringExtra(Session.LAT_LNG_EXTRA);\n List<LatLng> path = Session.getPathLatLng(latLng);\n\n if (path.size() < 2) {\n return;\n }\n\n addMarkers(path);\n addPolyLines(path);\n\n // set the center map fab here\n mCenterMapFab.setOnClickListener(view -> positionMapAtStart(path));\n\n positionMapAtStart(path);\n }", "private void trySupplyCurrentActivity(){\n // Provides the current activity to the mMapView when a callback is requested.\n mMapView.setOnSupplyCurrentActivityListener(new MapView.OnSupplyCurrentActivityListener() {\n @Override\n public Activity onSupplyCurrentActivity() {\n return MapActivity.this;\n }\n });\n }", "public void setMapPosition() {\n\t\txmap = levelState.getx();\n\t\tymap = levelState.gety();\n\t}", "void gettingBackToInitial(){\n robot.setDrivetrainPosition(-hittingMineralDistance, \"translation\", 1.0);\n }", "@Override\n public void onCameraIdle() {\n double CameraLat = GMap.getCameraPosition().target.latitude;\n double CameraLong = GMap.getCameraPosition().target.longitude;\n if (CameraLat <= 13.647080 || CameraLat >= 13.655056) {\n GMap.animateCamera(CameraUpdateFactory.newLatLng(mapbounds.getCenter()));\n }\n if (CameraLong <= 100.490774 || CameraLong >= 100.497254) {\n GMap.animateCamera(CameraUpdateFactory.newLatLng(mapbounds.getCenter()));\n }\n\n }", "@Override\n protected void setUpMap() {\n super.setUpMap();\n // For showing a move to my location button and a blue\n // dot to show user's location\n MainActivity mainActivity = (MainActivity) getActivity();\n mMap.setMyLocationEnabled(mainActivity.checkIfGPSEnabled());\n }", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n // The user has not granted permission.\n Log.i(TAG, \"The user did not grant location permission.\");\n\n // Add a default marker, because the user hasn't selected a place.\n mMap.addMarker(new MarkerOptions()\n .title(getString(R.string.default_info_title))\n .position(mDefaultLocation)\n .snippet(getString(R.string.default_info_snippet)));\n\n // Prompt the user for permission.\n getLocationPermission();\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng startingMarker;\n if (location == null) {\n\n /* Check if the fine and course locations are denied.*/\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n String[] permissions = new String[1];\n permissions[0] = Manifest.permission.ACCESS_FINE_LOCATION;\n ActivityCompat.requestPermissions(this, permissions, 1);\n return;\n }\n mMap.setMyLocationEnabled(true);\n startingMarker = getCurrentLocation();\n } else {\n startingMarker = new LatLng(location.latitude, location.longitude);\n\n }\n if (mapMode.equals(\"selection\") || mapMode.equals(\"view\")) {\n currentMarker = mMap.addMarker(new MarkerOptions().position(startingMarker).title(\"Selected record location\"));\n } else if (mapMode.equals(\"viewAll\")) {\n ArrayList<Condition> conditions = userAccountListController.getUserAccountList().getAccountOfInterest().getConditionList().getConditions();\n for (int j =0; j< conditions.size(); j++) {\n ArrayList<Record> records = recordListController.loadRecords(conditions.get(j));\n for (int i = 0; i < records.size(); i++) {\n Record record = records.get(i);\n if (record.getGeoLocation() != null) {\n Double latitude = record.getGeoLocation().getLatitude();\n Double longitude = record.getGeoLocation().getLongitude();\n startingMarker = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(startingMarker).title(record.getTitle()));\n\n }\n }\n }\n\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLng(startingMarker));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(startingMarker, 11));\n if (mapMode.equals(\"selection\")) {\n mMap.setOnMapClickListener(this);\n mMap.setOnMarkerClickListener(this);\n }\n }", "private void setCurrentLocation() {\n foundLocation = false;\n //Ignore the red line - we check for permissions before this function is called\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n googleMap.setMyLocationEnabled(true);\n FusedLocationProviderClient mFusedLocationProviderClient = LocationServices\n .getFusedLocationProviderClient(getActivity());\n //Ignore the red line - we check for permissions before this function is called\n Task<Location> lastLocation = mFusedLocationProviderClient.getLastLocation();\n lastLocation.addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n Location location = task.getResult();\n if (location == null) {\n locationControlTask = new LocationControl();\n locationControlTask.execute(getActivity());\n } else {\n LatLng currentLatLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(currentLatLng,\n DEFAULT_ZOOM);\n googleMap.moveCamera(update);\n foundLocation = true;\n }\n }\n });\n }", "private void setLocation() {\n switch (getKey()) {\n case UP:\n this.y_location = -136.8 - 6;\n this.y_tile = -1;\n this.positive = false;\n break;\n case DOWN:\n this.y_location = 136.8 + 6;\n this.y_tile = 1;\n break;\n case LEFT:\n this.x_location = -140.6 - 6;\n this.x_tile = -1;\n this.positive = false;\n break;\n case RIGHT:\n this.x_location = 140.6 + 6;\n this.x_tile = 1;\n break;\n default:\n break;\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }", "private void navToPoint(Unit unit){\n\t\tMapLocation currentLocation = unit.location().mapLocation();\n\t\tMapLocation locationToTest;\n\t\tMapLocation targetLocation = orderStack.peek().getLocation();\n\t\tlong smallestDist=1000000000; //arbitrary large number\n\t\tlong temp;\n\t\tDirection closestDirection=null;\n\t\tint i=1;\n\t\t\n\t\tif(gc.isMoveReady(unitID)){\n\t\t\t//first find the direction that moves us closer to the target\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tif (debug) System.out.println(\"this (\"+dir.name()+\") is the \"+i+\"th direction to check, should get to 9\");\n\t\t\t\tlocationToTest=currentLocation.add(dir);\n\t\t\t\t//make sure it is on the map and is passable\n\t\t\t\tif (debug){\n\t\t\t\t\tSystem.out.println(\"testing this location: \"+locationToTest);\n\t\t\t\t\tSystem.out.println(\"valid move? \"+gc.canMove(unitID, dir));\n\t\t\t\t}\n\t\t\t\tif(gc.canMove(unitID, dir)){\n\t\t\t\t\tif (debug)System.out.println(\"we can indeed move there...\");\n\t\t\t\t\t//make sure the location hasn't already been visited\n\t\t\t\t\tif(!pastLocations.contains(locationToTest)){\n\t\t\t\t\t\tif (debug)System.out.println(\"not been there recently...\");\n\t\t\t\t\t\t//at this point its a valid location to test, check its distance\n\t\t\t\t\t\ttemp = locationToTest.distanceSquaredTo(targetLocation);\n\t\t\t\t\t\tif (debug)System.out.println(\"distance :\"+temp);\n\t\t\t\t\t\tif (temp<smallestDist){\n\t\t\t\t\t\t\tif (debug)System.out.println(\"new closest!\");\n\t\t\t\t\t\t\t//new closest point, update accordingly\n\t\t\t\t\t\t\tsmallestDist=temp;\n\t\t\t\t\t\t\tclosestDirection=dir;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}//end of for-each loop\n\t\t}//end move ready if.\n\t\t\n\t\t//actual movement and maintenance of places recently visited\n\t\tif(closestDirection!=null){\n\t\t\tif (debug){\n\t\t\t\tSystem.out.println(\"found a closest direction, calling navInDirection()\");\n\t\t\t\tSystem.out.println(\"heading \"+closestDirection.name());\n\t\t\t}\n\t\t\tmoveInDirection(closestDirection, unit);\n\t\t\tcleanUpAfterMove(unit);\n\t\t}else{\n\t\t\t//can't get any closer\n\t\t\tif (debug) System.out.println(\"can't get closer, erasing past locations\");\n\t\t\tpastLocations.clear();\n\t\t}\n\t\t\n\t\t//have we arrived close enough?\n\t\tif(unit.location().mapLocation().distanceSquaredTo(targetLocation)<=howCloseToDestination){\n\t\t\t//atTargetLocation=true;\n\t\t\t\n\t\t\t//if order was a MOVE order, it is complete, go ahead and pop it off the stack\n\t\t\tif(orderStack.peek().getType().equals(OrderType.MOVE)){\n\t\t\t\torderStack.pop();\n\t\t\t}\n\t\t\tif (debug) System.out.println(\"Unit \"+unit.id()+\" arrived at destination.\");\n\t\t}\n\t\t\n\t\t;\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n public String topLevel(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n System.out.println(\"***** Been redirected to fetch page / - will render default map from here!\");\r\n String mapName = env.getProperty(\"default.map\");\r\n if (mapName.startsWith(\"/restricted/\")) {\r\n /* Ensure that a top-level restricted map always shows the login page when redirected - Polarcode bug 23/04/2018 */\r\n return(\"redirect:\" + mapName); \r\n } else {\r\n return(renderPage(request, model, \"map\", env.getProperty(\"default.map\"), null, null, false));\r\n } \r\n }", "public int askMap();", "public void switchToMap()\n {\n feedbackLabel.setVisible(false);\n d.setVisible(false);\n a.setText(destinations[0].getName());\n b.setText(destinations[1].getName());\n c.setText(destinations[2].getName());\n currentClue=destinations[0].getRandClue();\n questionLabel.setText(currentClue);\n atQuestionStage=false;\n shuffleButtons();\n questionLabel.setBounds(650-questionLabel.getPreferredSize().width,120,600,30);\n mapImageLabel.setVisible(true);\n mapImageLabel.repaint();\n revalidate();\n }", "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(Utils.hasLength(item.getGeoReferencia())){\n \t\t\t\t\tString urlString = \"http://maps.google.com/maps?q=\" + item.getGeoReferencia() + \"&near=Madrid,Espa�a\";\n \t\t\t\t\tIntent browserIntent = new Intent(\"android.intent.action.VIEW\", \n \t\t\t\t\t\t\tUri.parse(urlString ));\n \t\t\t\t\tstartActivity(browserIntent);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}", "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "private void moveToCurrentLocation() {\n \t\tGPSFilterLocationRetriever retriever = new GPSFilterLocationRetriever( new Criteria() );\n \t\tLocation loc = retriever.getLocation( this );\n \n \t\tif ( loc == null ) {\n \t\t\t// User turned off GPS, send it to device location settings.\n \t\t\tIntent i = new Intent( android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS );\n \t\t\tthis.startActivity( i );\n \t\t} else {\n \t\t\t// First move to the last known location..\n \t\t\tthis.moveCameraToLocation( loc, false );\n \n \t\t\t// Check if location fix is out dated, if it is, request a new location, ONCE.\n \t\t\tlong elapsedTime = System.currentTimeMillis() - loc.getTime();\n \t\t\tif ( elapsedTime > MAX_LOCATION_FIX_AGE ) {\n \t\t\t\t// Therefore, we request a single fix.\n \t\t\t\tretriever.requestSingleUpdate( this, new LocationAdapter() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void onLocationChanged( Location loc ) {\n \t\t\t\t\t\tmoveCameraToLocation( loc, true );\n \t\t\t\t\t}\n \t\t\t\t} );\n \t\t\t}\n \t\t}\n \t}", "private void navigateToMoodHistoryMapFragment() {\n // open nav drawer\n solo.clickOnImageButton(0);\n\n // get maps item\n String label = rule.getActivity().getString(R.string.mood_history_map_label);\n\n // navigate to follow request\n assertTrue(solo.waitForText(label, 1, 2000));\n solo.clickOnText(label);\n }", "@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if (checkPermissions()) {\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n mMap.addMarker(new MarkerOptions().position(currLocation).title(\"Current Location\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currLocation));\r\n getLastLocation();\r\n }", "private void setUpMap() {\n mMap.setMyLocationEnabled(true);\n }", "private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "private void toggleGoToMapBtn() {\n boolean isShow = isValidLocationFound();\n NodeUtil.setNodeVisibility(this.gotoGeoMapBtn, isShow);\n }", "@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }", "@Override\n public void onCameraIdle() {\n Location centerLocation = new Location(\"\");\n LatLng midLatLng = this.map.getCameraPosition().target;\n centerLocation.setLatitude(midLatLng.latitude);\n centerLocation.setLongitude(midLatLng.longitude);\n hitNeighboursApi(centerLocation);\n HomeActivity activity = (HomeActivity) getActivity();\n activity.setmRequestLocation(midLatLng);\n requestedLocation.setText(\"\"+centerLocation.getLatitude()+\",\"+centerLocation.getLongitude());\n\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapView2))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap( lat, longi, \"ISS/ NUS\");\n }\n }\n }", "public void gotoMap(double lat, double lng) {\n if (map == null)\n return;\n\n //do not animate if already there\n if (!(lat == targetLat && lng == targetLng)) {\n targetLat = lat;\n targetLng = lng;\n\n //convert to LatLng\n LatLng coordinate = new LatLng(lat, lng);\n\n // Save current zoom\n float originalZoom = map.getCameraPosition().zoom;\n\n // Move temporarily camera zoom\n map.moveCamera(CameraUpdateFactory.zoomTo(13));\n\n //get display height\n Display display = getActivity().getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n //offset\n Point pointInScreen = map.getProjection().toScreenLocation(coordinate);\n Point newPoint = new Point();\n newPoint.x = pointInScreen.x;\n newPoint.y = pointInScreen.y + (int) (size.y / 4.5f);\n LatLng newCenterLatLng = map.getProjection().fromScreenLocation(newPoint);\n\n // Restore original zoom\n map.moveCamera(CameraUpdateFactory.zoomTo(originalZoom));\n\n //animate\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(newCenterLatLng, 13));\n }\n }", "private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\r\n\t}", "@Override\n /***** Sets up the map if it is possible to do so *****/\n public boolean setUpMapIfNeeded() {\n super.setUpMapIfNeeded();\n if (mMap != null) {\n //Shows history popover on marker clicks\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n showPopup(getContentFromMarker(marker), marker.getTitle());\n return true;\n }\n });\n return true;\n } else {\n return false;\n }\n }", "public void myLocationClick() {\n\n //Set the initial camera position to the current location\n GridPoint gridPoint = myGridPoint();\n float mpp = 1;\n\n if (gridPoint != null) {\n\n CameraPosition cameraPosition = new CameraPosition(gridPoint, mpp);\n mMap.moveCamera(cameraPosition, true);\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n\n }\n\n }", "private void resumeRoadView() {\n m_map.setCenter(PositioningManager.getInstance().getPosition().getCoordinate(), Map\n .Animation.BOW, m_lastZoomLevelInRoadViewMode, Map.MOVE_PRESERVE_ORIENTATION,\n 80);\n // do not start RoadView and its listener until the map movement is complete.\n m_returningToRoadViewMode = true;\n }", "private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map1)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\tsetUpMap();\n\t\t\t}\n\t\t}\n\t}", "private void moveToNewMap(GameWorldNode node) {\n\t\tresetValues();\n\t\tvisit(node);\n\t\tif (node.getNodeCode() == 29999) {\n\t\t\tcurrentImage.addAction(moveBy(0, 500, 3));\n\t\t\tcurrentImageGhost.addAction(moveBy(0, 500, 3));\n\t\t\tthis.addAction(sequence(delay(2), new Action() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.MAP_CODE, 1);\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.NODE_CODE, 30000);\n\t\t\t\t\tshowScreen(ScreenEnum.LOAD_GAME);\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}));\t\n\t\t}\n\t\telse {\n\t\t\tcurrentImage.addAction(moveBy(0, -500, 3));\n\t\t\tcurrentImageGhost.addAction(moveBy(0, -500, 3));\n\t\t\tthis.addAction(sequence(delay(2), new Action() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.MAP_CODE, 0);\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.NODE_CODE, 3000);\n\t\t\t\t\tshowScreen(ScreenEnum.LOAD_GAME);\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}));\t\n\t\t}\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap)\n {\n map = googleMap;\n // if permission not granted, stop\n if(ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_DENIED)\n {\n Toast.makeText(this, \"Location permission not granted!\", Toast.LENGTH_SHORT).show();\n return;\n }\n else\n {\n // automatically set initial location\n double lat = Double.longBitsToDouble(sharedPrefs.getLong(\"Latitude\", 0));\n double lon = Double.longBitsToDouble(sharedPrefs.getLong(\"Longitude\", 0));\n if(lat == 0 && lon == 0)\n goToMyLocation(false);\n else\n goToLocation(lat, lon);\n\n // when tapping on the screen\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener()\n {\n @Override\n public void onMapClick(LatLng latLng)\n {\n map.animateCamera(CameraUpdateFactory.newCameraPosition(\n new CameraPosition.Builder().target(latLng).zoom(16).bearing(0).build()));\n placeMarker(latLng);\n updateScrambleLocation(latLng);\n }\n });\n\n // clicking on my location button\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener()\n {\n @Override\n public boolean onMyLocationButtonClick()\n {\n goToMyLocation(true);\n return false;\n }\n });\n }\n\n }", "private void setStart()\n {\n for(int i = 0; i < cities.size(); i++)\n System.out.println(\"Location: \"+i+\" \"+cities.get(i).getSourceName());\n \n System.out.println(\"Which city would you like to start at? Enter the location number\"); \n computePaths(cities.get(input.nextInt()));\n printMenu(); \n }", "private void setUpMapIfNeeded() {\n if ( googleMap == null) {\r\n\r\n // Try to obtain the map from the SupportMapFragment.\r\n googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.routesMap)).getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (googleMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mGoogleMap != null) {\n if (checkPermission()) {\n mGoogleMap.setMyLocationEnabled(true);\n }\n // Check if we were successful in obtaining the map.\n if (mMapView != null) {\n\n mGoogleMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n mGoogleMap.addMarker(new MarkerOptions().position(new LatLng(location.getLatitude(), location.getLongitude())).title(\"It's Me!\"));\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 10));\n }\n });\n\n }\n }\n }", "public Actor getLocation(Location currentLocation, GameMap map) {\n Map<Actor, Location> dinosaursList = new HashMap<>();\n dinosaursList = getAllActors(map);\n Location minimalLocation = null;\n\n for (Map.Entry<Actor, Location> spot: dinosaursList.entrySet()) {\n Actor actor = spot.getValue().getActor();\n int x = spot.getValue().x();\n int y = spot.getValue().y();\n Location there = map.at(x,y);\n if (actor instanceof Dinosaur) {\n if (currentLocation != there) {\n if (minimalLocation == null) {\n minimalLocation = there;\n } else if (super.distance(currentLocation, there) < super.distance(currentLocation, minimalLocation)) {\n minimalLocation = there;\n }\n }\n }\n }\n\n return map.getActorAt(minimalLocation);\n }", "private void setUpMapIfNeeded() {\r\n if (map == null) {\r\n SupportMapFragment smf = null;\r\n smf = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\r\n\r\n if (smf != null) {\r\n map = smf.getMap();\r\n if (map != null) {\r\n map.setMyLocationEnabled(true);\r\n }\r\n }\r\n }\r\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "private void onOpenMapButtonClicked() {\n\n // Create a new intent to start an map activity\n Intent mapIntent =\n new Intent(DetailActivity.this, MapsActivity.class);\n if (mMapDestination != null && mMapDestination.getLocation() != null &&\n mMapDestination.getRadius() >= 0) {\n MapDestination mapDestination =\n new MapDestination(mMapDestination.getLatitude(),\n mMapDestination.getLongitude(), mMapDestination.getLocation(),\n mMapDestination.getRadius());\n mapIntent.putExtra(Constants.EXTRA_ALARM_DESTINATION, mapDestination);\n }\n startActivityForResult(mapIntent, MAP_REQUEST_CODE);\n\n }", "@Override\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\n\t}", "@Override\n public MapLocation getMap() {\n return null;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n }\n LatLng latLng = new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions markerOptions = new MarkerOptions().position(latLng).title(\"You are Here\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.pin1));\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16));\n if (CurrentMark!=null)\n CurrentMark.remove();\n CurrentMark=googleMap.addMarker(markerOptions);\n intial();\n\n }", "public void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.location_map)).getMap();\n MapsInitializer.initialize(getActivity().getApplicationContext());\n // Check if we were successful in obtaining the map.\n if (mMap != null)\n setUpMap();\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void startMapCreater() {\n\t\tNavigator navi = new Navigator(pilot);\n\t\tnavi.addWaypoint(0,0);\n\t\tnavi.addWaypoint(0,5000);\n\t\tBehavior forward = new Forward(navi);\n\t\tBehavior ultrasonic = new UltrasonicSensor(ultrasonicSensorAdaptor,pilot, sonicWheel,dis,dos,navi);\n\t\tBehavior stopEverything = new StopRobot(Button.ESCAPE);\n\t\tBehavior[] behaiverArray = {forward, ultrasonic, stopEverything};\n\t\tarb = new Arbitrator(behaiverArray);\n\t\t\n\t arb.go();\n\t\t\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mGeocoder = new Geocoder(this, Locale.getDefault());\n\n updateScreenLoc(movement[0]);\n\n loadCrimes(movement[0]);\n //Start MockLocationManager and inject first point\n turnOnLocationManager();\n updateLocation(movement[0]);\n updateRadiusCircle();\n\n\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.map_minus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomOut());\n break;\n case R.id.map_plus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomIn());\n break;\n case R.id.locate_current_rl:\n mLocation = AllOnlineApp.getCurrentLocation();\n if (false/*mLocation != null*/) {\n LatLng cenpt = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n } else {\n LatLng cenpt = new LatLng(GlobalParam.getInstance().get_lat(), GlobalParam.getInstance().get_lng());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n }\n break;\n default:\n break;\n }\n }", "@Override\n\t\tpublic void onMapStatusChangeStart(MapStatus arg0) {\n\n\t\t}", "public boolean stepOn(Player player) {\n //System.out.println(\"Nem léphetsz rá a MapElementre.\");\n return false;\n }", "@Override\r\n\tpublic void onLocationChange(Location loc) {\n\t\tuser.setRelativePosition(loc.getX(), loc.getY());\r\n\t\tmap.addStep(new PointF(loc.getX(),loc.getY()));\r\n\t\tmessageHandler.sendEmptyMessage(MESSAGE_REFRESH);\r\n\t}", "public void doGoToLocation(Structure structure)\n\t{\n\t\tif(vehicle.currentLocation != null)\n\t\t{\n\t\t\tx = (int)vehicle.currentLocation.getParkingLocation().getX();\n\t\t\ty = (int)vehicle.currentLocation.getParkingLocation().getY();\n\t\t}\n\t\tdestination = structure;\n\t\tdestX = (int)destination.getParkingLocation().getX();\n\t\tdestY = (int)destination.getParkingLocation().getY();\n\t\tfired = false;\n\t\tpresent = true;\n\n\t\tcurrent = new Point(x/CityPanel.GRID_SIZE,y/CityPanel.GRID_SIZE);\n\t\tnext = current;\n\t\t\t\t\n\t\tfindPath();\n\t}", "public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}", "@Override\n public void goToNextScreen(Home.HomeTo presenter) {\n toMapsState = new MapState();\n toMapsState.shop = presenter.getShop();\n\n Context view = presenter.getManagedContext();\n if (view != null) {\n Log.d(TAG, \"calling startingMapsScreen()\");\n view.startActivity(new Intent(view, MapsView.class));\n Log.d(TAG, \"calling destroyView()\");\n presenter.destroyView();\n }\n }", "@Override\n\t\t\tpublic boolean onMyLocationButtonClick() {\n\t\t\t\tsupportClassObj.fitInMap(parentActivity.getItinerary(), googlemap, parentActivity);\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tint mapIndex = getFloorIndexByName(mMyLocationFloor);\n\t\t\tif (mapIndex > -1) {\n\t\t\t\tsetCheckAt(mapIndex);\n\t\t\t}\n\t\t}", "public MapLocation senseLocationOf(GameObject o) throws GameActionException;", "private void look() {\n try {\n Location playerPosition = FireSwamp.getPlayer().getPlayerPosition();\n Map gameMap = FireSwamp.getCurrentGame().getGameMap();\n this.console.println(MapControl.checkLook(playerPosition, gameMap));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private IPoint2D updateGoalPoint(IPoint2D loc, ArenaMap map, double lookAhead) {\n\t\tIPoint2D tmp = map.lastPointInRange(loc, lookAhead, true);\n\t\tRobot.managedPrinter.println(getClass(), \"next goal point: \" + tmp);\n\t\tif (tmp != null) {\n\t\t\ttmp.toDashboard(\"Goal point\");\n\t\t\tNetworkTable.getTable(\"motion\").putNumber(\"pointIdx\", ((IndexedPoint2D) tmp).getIndex());\n\t\t}\n\t\treturn tmp;\n\t}", "private void restoreCurrentLocation(){\n if(globalCurrentLocation==null){\n return;\n }\n if(currentLocation==null){\n Bitmap icon = ((BitmapDrawable)userImage.getDrawable()).getBitmap();\n Bitmap smallIcon = Bitmap.createScaledBitmap(icon,100,100,false);//Sony xperia mini 40x40\n MarkerOptions markerOptions = new MarkerOptions().position(globalCurrentLocation).title(\"Me\").icon(BitmapDescriptorFactory.fromBitmap(smallIcon));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(globalCurrentLocation,15));\n\n currentLocation = mMap.addMarker(markerOptions);\n markerOnClick.put(currentLocation,new MyMarker(user.getId(),true));\n }\n }", "void mapChosen(int map);", "public static void intro(){\n System.out.println(\"Welcome to Maze Runner!\");\n System.out.println(\"Here is your current position:\");\n myMap.printMap();\n\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 0);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "void castMaze(Tile currentMap, int prevDirection) {\n int y = currentMap.getPosition().getY();\n int x = currentMap.getPosition().getX();\n\n map[(2 * y) + 1][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n if (currentMap.getPathDirection()[0] && prevDirection != 1) {\n map[(2 * y)][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y - 1][x], 0);\n }\n if (currentMap.getPathDirection()[1] && prevDirection != 0) {\n map[(2 * y) + 2][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y + 1][x], 1);\n }\n if (currentMap.getPathDirection()[2] && prevDirection != 3) {\n map[(2 * y) + 1][(2 * x) + 2].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y][x + 1], 2);\n }\n if (currentMap.getPathDirection()[3] && prevDirection != 2) {\n map[(2 * y) + 1][(2 * x)].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y][x - 1], 3);\n }\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "@Override\n protected void checkLocation() {\n // nothing\n }", "@Override\n public void onCameraIdle() {\n LatLng midLatLng = mMap.getCameraPosition().target;\n draggedMarker.setPosition(midLatLng);\n }", "@Override\r\n public boolean onTap(GeoPoint arg0, MapView arg1) {\n if(getMyLocation()!=null){\r\n int size = 30;\r\n Point out=new Point();\r\n mMapView.getProjection().toPixels(getMyLocation(), out); \r\n Rect rect = new Rect(out.x-size,out.y-size,out.x+size,out.y+size);\r\n mMapView.getProjection().toPixels(arg0, out);\r\n if(rect.contains(out.x, out.y)){\r\n //Log.e(\"MyLocation\", \"click my location \");\r\n mPopView.setVisibility(View.GONE);\r\n MapView.LayoutParams params = (MapView.LayoutParams) mPopView.getLayoutParams();\r\n params.x = 0;// Y轴偏移\r\n params.y = -5;// Y轴偏移\r\n GeoPoint point = getMyLocation().e();\r\n params.point = point;\r\n //mMapCtrl.animateTo(point);\r\n mMapView.updateViewLayout(mPopView, params);\r\n mPopView.setVisibility(View.VISIBLE);\r\n }else{\r\n mPopView.setVisibility(View.GONE) ; \r\n }\r\n }\r\n return super.onTap(arg0, arg1);\r\n }", "private void searchmap() {\n String location = \"475 Dien bien phu\";\n //lcSearch;\n\n if (location != null && !location.equals(\"\")) {\n List<Address> lstAddress = null;\n try {\n lstAddress = geocoder.getFromLocationName(location, 1);\n System.out.print(lstAddress);\n if (lstAddress != null) {\n double lat = lstAddress.get(0).getLatitude();\n double lng = lstAddress.get(0).getLongitude();\n LatLng latLng = new LatLng(lat, lng);\n goToMaps(latLng);\n } else {\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }", "void doHome()\n\t{\n\t\ttry\n\t\t{\n\t\t\tLocation l = getCurrentLocation();\n\t\t\tSourceFile file = l.getFile();\n\t\t\tint module = file.getId();\n\t\t\tint line = l.getLine();\n\n\t\t\t// now set it\n setListingPosition(module, line);\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"currentLocationUnknown\")); //$NON-NLS-1$\n\t\t}\n\t}" ]
[ "0.6713797", "0.64883703", "0.6459152", "0.63981694", "0.637653", "0.6352116", "0.615505", "0.6090695", "0.5984768", "0.59510845", "0.5944102", "0.5934607", "0.5917185", "0.58928096", "0.58748174", "0.5871467", "0.5862369", "0.5820972", "0.5795414", "0.57812697", "0.57662946", "0.5763957", "0.5746381", "0.5744856", "0.57447654", "0.5736318", "0.5729119", "0.57222724", "0.5717914", "0.5717088", "0.5704507", "0.570139", "0.57001215", "0.5693923", "0.568697", "0.56867045", "0.5682449", "0.56814677", "0.56797993", "0.56789905", "0.56786627", "0.5675365", "0.56692183", "0.56691885", "0.5662", "0.5638505", "0.5636018", "0.5632952", "0.5632818", "0.5628836", "0.562764", "0.5609597", "0.55864596", "0.5581614", "0.55724585", "0.5571818", "0.55708", "0.5560963", "0.5553102", "0.55489826", "0.5532024", "0.55319935", "0.5518718", "0.55148226", "0.5514427", "0.5514369", "0.55127656", "0.55014867", "0.55003893", "0.54986984", "0.54934454", "0.5490736", "0.54878163", "0.5487785", "0.547994", "0.54755986", "0.547347", "0.546972", "0.54667765", "0.54658365", "0.5464113", "0.54589754", "0.54589355", "0.54577136", "0.54563296", "0.54563296", "0.54563296", "0.5454524", "0.54505086", "0.5445941", "0.5440998", "0.54408664", "0.5433828", "0.54331654", "0.5431886", "0.5423843", "0.54222643", "0.541822", "0.5412013", "0.54116774" ]
0.62677693
6
This method is used to create markerOptions for an given address
public MarkerOptions getMarkerOptions(Address address) { if (address != null) { LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude()); String addressLine = ""; for (int j = 0; j < address.getMaxAddressLineIndex(); j++) { addressLine = addressLine + address.getAddressLine(j); } String addressText = String.format( addressLine, address.getLocality(), address.getCountryName()); return new MarkerOptions() .title(address.getAddressLine(0)) .position(latLng) .snippet(addressText); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addMarkerByAddress(String addr, DialogInterface dialog)\n {\n try {\n Geocoder selected_place_geocoder = new Geocoder(MarkerActivity.this);\n List<Address> address;\n\n address = selected_place_geocoder.getFromLocationName(addr, 5);\n\n if (address != null && address.size() > 0)\n {\n Address found = address.get(0);\n\n // add marker\n map.addMarker(new MarkerOptions().position(new LatLng(found.getLatitude(), found.getLongitude())));\n\n // close dialog\n dialog.dismiss();\n }\n else {\n Toast.makeText(this, \"Your address is not found, please try another keyword.\", Toast.LENGTH_SHORT).show();\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this, \"Error when trying to find your address location, please try again.\", Toast.LENGTH_SHORT).show();\n }\n }", "public void loadMarkerOptions();", "private void createMarker(LatLng position) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(position);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.note_position));\n // set up marker\n locationMarker = googleMap.addMarker(markerOptions);\n locationMarker.setDraggable(true);\n locationMarker.showInfoWindow();\n }", "private Marker createMarker(final int a, final String id1, String lat, String lng, final String title) {\n\n mMarkerMap.put(marker, a);\n mMarkerMap1.put(marker, title);\n\n Log.e(\"Data\", \"\" + lat + \"-->>>>\" + lng + \"--->>\" + title);\n\n if (a == 999999999) {\n\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title)\n .anchor(0.5f, 0.5f));\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Hospitals\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.hosp);\n\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Fire_stations\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.fire11515);\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Police Stations\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.police55);\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n }\n\n marker.showInfoWindow();\n\n return marker;\n\n }", "HandlebarsKnotOptions setAddress(String address) {\n this.address = address;\n return this;\n }", "private void initialiseMap(LatLng location, String address) {\n try {\n this.googleMap.addMarker(\n new MarkerOptions().position(location).title(address));\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLng(location));\n this.googleMap.moveCamera(CameraUpdateFactory.zoomTo(16));\n\n Log.d(TAG, \"Map initialised successfully.\");\n } catch (IllegalArgumentException e) {\n Log.w(TAG, \"Cannot initialise map on null location.\", e);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n Address address = geo.getFromLocationName(location.getAddress(),1).get(0);\n\n LatLng position= new LatLng(address.getLatitude(),address.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position)\n .title(location.getTitle()));\n googleMap.setMinZoomPreference(12);\n googleMap.setMaxZoomPreference(15);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch(IndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }", "private void addMarker(MapboxMap mapboxMap) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n IconFactory iconFactory = IconFactory.getInstance(LocateDoctorActivity.this);\n Icon icon = iconFactory.fromResource(R.drawable.mapquest_icon);\n\n markerOptions.position(new com.mapbox.mapboxsdk.geometry.LatLng(Double.parseDouble(selectedLat), Double.parseDouble(selectedLong)));\n markerOptions.snippet(\"Selected Location\");\n markerOptions.setIcon(icon);\n mapboxMap.addMarker(markerOptions);\n }", "private void addPlaceLocationMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n mMap.clear();\n markerOptions.title(\"Current Position\");\n markerOptions.getPosition();\n markerOptions.title(locationName);\n mMap.addMarker(markerOptions);\n }", "private void addMarkerOnMap(double latitude, double longitude) {\n try {\n //System.out.println(\"LAT::: \" + latitude);\n //System.out.println(\"LONG::: \" + longitude);\n mCurrentLocationLat = latitude;\n mCurrentLocationLongitude = longitude;\n if (markerOptions == null)\n markerOptions = new MarkerOptions();\n\n // Creating a LatLng object for the current / new location\n LatLng currentLatLng = new LatLng(latitude, longitude);\n markerOptions.position(currentLatLng).icon(BitmapDescriptorFactory.defaultMarker()).title(\"Current Location\");\n\n if (mapMarker != null)\n mapMarker.remove();\n\n mapMarker = mMap.addMarker(markerOptions);\n\n// if (dlBean.getAddress() != null) {\n// if (!dlBean.getAddress().equals(\"No Location Found\") && !dlBean.getAddress().equals(\"No Address returned\") && !dlBean.getAddress().equals(\"No Network To Get Address\"))\n// mapMarker.setTitle(dlBean.getAddress());\n// }\n\n // Showing the current location in Google Map by Zooming it\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLatLng, 15));\n\n for (TripsheetSOList saleOrder : tripSheetSOList) {\n AgentLatLong agentLatLong = new AgentLatLong();\n double distance;\n\n // We are calculating distance b/w current location and agent location if lat long are not empty\n if (saleOrder.getmTripshetSOAgentLatitude() != null && !saleOrder.getmTripshetSOAgentLatitude().equals(\"\") && saleOrder.getmTripshetSOAgentLongitude() != null && !saleOrder.getmTripshetSOAgentLongitude().equals(\"\")) {\n double agentLatitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLatitude());\n double agentLongitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLongitude());\n\n distance = getDistanceBetweenLocationsInMeters(mCurrentLocationLat, mCurrentLocationLongitude, agentLatitude, agentLongitude);\n\n agentLatLong.setAgentName(saleOrder.getmTripshetSOAgentFirstName());\n agentLatLong.setLatitude(agentLatitude);\n agentLatLong.setLongitude(agentLongitude);\n agentLatLong.setDistance(distance);\n\n agentsLatLongList.add(agentLatLong);\n\n } else {\n distance = 0.0;\n }\n\n saleOrder.setDistance(Math.round(distance / 1000));\n }\n\n // Sorting by distance in descending order i.e. nearest destination\n Collections.sort(agentsLatLongList, new Comparator<AgentLatLong>() {\n @Override\n public int compare(AgentLatLong o1, AgentLatLong o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n Collections.sort(tripSheetSOList, new Comparator<TripsheetSOList>() {\n @Override\n public int compare(TripsheetSOList o1, TripsheetSOList o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n // to update distance value in list after getting current location details.\n if (mTripsheetSOAdapter != null) {\n mTripsheetSOAdapter.setAllSaleOrdersList(tripSheetSOList);\n mTripsheetSOAdapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private MarkerOptions makeMarkerAt( LatLng point ) {\n \t\treturn new MarkerOptions().flat( true ).draggable( true ).position( point );\n \t}", "private void markerForGeofence(LatLng latLng)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (geoFenceMarker != null)\n {\n geoFenceMarker.remove();\n }\n\n\n geoFenceMarker = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n\n }", "@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }", "public void onMapSearch(View view) {\n\n EditText locationSearch = (EditText) findViewById(R.id.arrival);\n String location = locationSearch.getText().toString();\n List<Address>addressList = null;\n\n if (location != null || !location.equals(\"\")) {\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n\n } catch (IOException e) {\n Toast.makeText(this,\"Destination not found\",Toast.LENGTH_SHORT).show();\n\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n MarkerPoints.add(latLng);\n Toast.makeText(MapsActivity.this,\"added position 2 \"+MarkerPoints.size(),Toast.LENGTH_SHORT).show();\n\n mMap.addMarker(new MarkerOptions().position(latLng).draggable(true).title(location+\" (\"+address.getLatitude()+\",\"+address.getLongitude()+\")\").icon(BitmapDescriptorFactory.fromResource(R.drawable.flag)));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16));\n //listClients.add(new Client(R.drawable.flag,\"Nasser\",\"client2 requesting cab\",100,address.getLatitude(), address.getLongitude()));\n //Toast.makeText(MapsActivity.this,\"client attended at \"+\" (\"+address.getLatitude()+\",\"+address.getLongitude()+\")\",Toast.LENGTH_SHORT).show();\n\n\n\n /* if (MarkerPoints.size() > 2) {\n // MarkerPoints.clear();\n mMap.clear();\n }*/\n\n\n // Checks, whether start and end locations are captured\n if (MarkerPoints.size() >= 2) {\n LatLng origin = MarkerPoints.get(0);\n LatLng dest = MarkerPoints.get(MarkerPoints.size()-1);\n\n // Getting URL to the Google Directions API\n String url = getUrl(origin, dest);\n Log.d(\"onMapClick\", url.toString());\n FetchUrl FetchUrl = new FetchUrl();\n\n // Start downloading json data from Google Directions API\n FetchUrl.execute(url);\n //move map camera\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(origin));\n //mMap.animateCamera(CameraUpdateFactory.zoomTo(11));\n\n build_retrofit_and_get_response(\"driving\");\n\n final View mapView = getSupportFragmentManager().findFragmentById(R.id.map).getView();\n if (mapView.getViewTreeObserver().isAlive()) {\n mapView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @SuppressLint(\"NewApi\")\n @Override\n public void onGlobalLayout() {\n LatLngBounds.Builder bld = new LatLngBounds.Builder();\n for (int i = 0; i < MarkerPoints.size(); i++) {\n LatLng ll = new LatLng(MarkerPoints.get(i).latitude, MarkerPoints.get(i).longitude);\n bld.include(ll);\n }\n LatLngBounds bounds = bld.build();\n mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 70));\n mapView.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n\n }\n });\n }\n }\n\n }\n }", "public void markerCreator(List<Employee>employeeArray) {\n\n employeeArrayforData= employeeArray;\n List<MarkerOptions> markers = new ArrayList<MarkerOptions>();\n for (int i = 0; i < employeeArray.size(); i++) {\n if(employeeArray.get(i).lastLocation.isEmpty())\n continue;\n// markers.add((new MarkerOptions()\n// .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation.replace(\": (\",\":(\")),\n// LatLong.getLongt(employeeArray.get(i).lastLocation.replace(\": (\",\":(\"))))\n// .title(employeeArray.get(i).name)));\n// updateMyMarkers(markers);\n Log.i(\"****\",employeeArray.get(i).lastLocation);\n Log.i(\"****\",\"hi\");\n if (employeeArray.get(i).online)\n\n {\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\",\"+employeeArray.get(i).email\n )).alpha(0.9f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_green)));\n\n }\n else{\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\"\"+employeeArray.get(i).email\n )).alpha(0.1f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_red)));\n }\n\n updateMyMarkers(markers);\n }\n }", "Builder setAddress(String address);", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n for(int i=0; i<coordinatesStringList.length; i+=2){\n pont = new LatLng(Double.parseDouble(coordinatesStringList[i]), Double.parseDouble(coordinatesStringList[i+1]));\n latLngList.add(pont);\n MarkerOptions markerOptions=new MarkerOptions();\n mMap.addMarker(new MarkerOptions().position(pont).title(\"Marker in Sydney\").icon(BitmapDescriptorFactory.fromResource(R.drawable.pin)));\n\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n// Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n// ArrayList<String> addresses = geocoder.getFromLocation(marker.getPosition().latitude(), marker.getPosition().longitude(), 1); //1 num of possible location returned\n// String address = addresses.get(0).getAddressLine(0); //0 to obtain first possible address\n// String city = addresses.get(0).getLocality();\n// String state = addresses.get(0).getAdminArea();\n// String country = addresses.get(0).getCountryName();\n// String postalCode = addresses.get(0).getPostalCode();\n// //create your custom title\n// String title = address +\"-\"+city+\"-\"+state;\n// marker.setTitle(title);\n// marker.showInfoWindow();\n// return true;\n// }\n// });\n }\n\n\n PolylineOptions polylineOptions = new PolylineOptions();\n\n// Create polyline options with existing LatLng ArrayList\n polylineOptions.addAll(latLngList);\n polylineOptions\n .width(5)\n .color(Color.RED);\n\n// Adding multiple points in map using polyline and arraylist\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.addPolyline(polylineOptions);\n }", "@Override\n public void onPlaceSelected(Place place) {\n latLng = place.getLatLng();\n locationName = place.getName().toString();\n locationAddress = place.getAddress().toString();\n Log.i(TAG, \"Location:latitude: \" + place.getLatLng().latitude);\n Log.i(TAG, \"Location:Address: \" + place.getAddress());\n Log.i(TAG, \"Location:Web: \" + place.getWebsiteUri());\n Log.i(TAG, \"Location:Place: \" + place.getName());\n mMap.addMarker(new MarkerOptions().position(latLng).title(locationName).snippet(locationAddress)).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_map, menu);\n /*MenuItem searchItem = menu.findItem(R.id.action_search);\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n Log.d(TAG, \"SearchItem: \" + searchItem.toString());\n searchView = (SearchView) searchItem.getActionView();\n Geocoder g = new Geocoder(this, Locale.getDefault());\n LatLng lt = new LatLng(41.651841, -4.728340);\n final HashMap<String, LatLng> addressNames = new HashMap<>();\n try {\n List<Address> listAddress = g.getFromLocation(lt.latitude, lt.longitude, 1000);\n for (int i=0;i<listAddress.size();i++){\n Log.d(TAG, \"list size: \" + listAddress.size());\n String address = listAddress.get(i).getAddressLine(0);\n Log.d(TAG, address);\n LatLng location = new LatLng(listAddress.get(i).getLatitude(),listAddress.get(i).getLongitude());\n int position = address.indexOf(\",\");\n if (position!=-1){\n addressNames.put(address.substring(0,position).toUpperCase(), location);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (searchView != null){\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n Log.i(\"onQueryTextSubmit\", query);\n if (addressNames.containsKey(query.toUpperCase())){\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(addressNames.get(query.toUpperCase()), 16));\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n Log.i(\"onQueryTextCahnge\", newText);\n return true;\n }\n });\n }*/\n\n return super.onCreateOptionsMenu(menu);\n }", "public void setUpMapOnClick() {\n mMap.setOnMapClickListener(new OnMapClickListener() {\n @Override\n public void onMapClick(LatLng loc) {\n // Hiding the keyboard when tab on map.\n// new MapsUtil.GetAddressByLatLng(new IMaps() {\n// @Override\n// public void processFinished(Object obj) {\n// String address = (String) obj;\n// if (!address.isEmpty()) {\n// // Set marker's title\n// if (txtFromIsSelected) {\n// txtFrom.setText(address);\n// } else {\n// if (txtToIsSelected) {\n// txtTo.setText(address);\n// }\n// }\n// }\n// }\n// }).execute(loc);\n if (txtFromIsSelected) {\n txtFrom.setText(getCompleteAddressString(loc.latitude, loc.longitude));\n } else {\n if (txtToIsSelected) {\n txtTo.setText(getCompleteAddressString(loc.latitude, loc.longitude));\n }\n }\n closeKeyboard();\n selectFromMap = true;\n if (txtFromIsSelected) {\n if (circle != null) {\n circle.remove();\n// mMap.clear();\n }\n startLocation = loc;\n setStartMarker();\n circle = mMap.addCircle(new CircleOptions()\n .center(startLocation)\n .radius(3000)\n .strokeWidth(0.5f)\n .strokeColor(Color.rgb(0, 136, 255))\n .fillColor(Color.argb(20, 0, 136, 255)));\n txtFrom.setDropDownHeight(0);\n } else {\n if (txtToIsSelected) {\n endLocation = loc;\n setEndMarker();\n txtTo.setDropDownHeight(0);\n }\n }\n // Get address by latlng async\n\n }\n });\n }", "private void addRouteMArkers()\n {\n //routeMarker.add(new MarkerOptions().position(new LatLng(geo1Dub,geo2Dub)));\n\n }", "@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n //Set position of market\n\n\n //markerOptions.position(latLng);\n markerOptions.position(defaultLocation);\n //set title marker\n markerOptions.title(defaultLocation.latitude + \": \" + defaultLocation.longitude);\n\n //removeall markers\n // googleMap.clear();\n //Animating to zoom the marker\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n defaultLocation, 10\n ));\n //Add marker on map\n googleMap.addMarker(markerOptions);\n\n\n\n }", "public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }", "void addMarkers() {\n\n Map<String, ProductDetailsCartItem> restaurantGeolocations = new HashMap<>();\n for (UserProductsItem userProductsItem : userProductsItemList) {\n for (ProductDetailsCartItem productDetailsCartItem : userProductsItem.getCartDetails()) {\n ProductDetailsCartItem restaurantDetails = new ProductDetailsCartItem(productDetailsCartItem.getRestaurantGeolocation(), productDetailsCartItem.getRestaurantAddress());\n restaurantGeolocations.put(productDetailsCartItem.getRestaurantName(), restaurantDetails);\n\n }\n }\n restaurantListServices.removeElements();\n LatLng position = new LatLng(0, 0);\n String address = \"\";\n int restaurantPosition = 0;\n for (HashMap.Entry<String, ProductDetailsCartItem> restaurantDetails : restaurantGeolocations.entrySet()) {\n try {\n String geolocation = restaurantDetails.getValue().getRestaurantGeolocation();\n address = restaurantDetails.getValue().getRestaurantAddress();\n String[] lat_long = geolocation.split(\",\");\n\n double lat = Double.parseDouble(lat_long[0]);\n double lng = Double.parseDouble(lat_long[1]);\n position = new LatLng(lat, lng);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n } finally {\n MarkerOptions mo = new MarkerOptions().position(position).title(restaurantDetails.getKey());\n mo.visible(true);\n // mo.flat(true);\n mo.snippet(address);\n\n Marker marker = googleMap.addMarker(mo);\n marker.showInfoWindow();\n // polylineOptions.add(position);\n RestaurantMapItem restaurantMapItem = new RestaurantMapItem(restaurantDetails.getKey(), restaurantDetails.getValue().getRestaurantAddress(), ++restaurantPosition, position, marker);\n restaurantListServices.addRestaurant(restaurantMapItem);\n\n }\n }\n\n UiSettings settings = googleMap.getUiSettings();\n settings.setMapToolbarEnabled(true);\n settings.setMyLocationButtonEnabled(true);\n settings.setCompassEnabled(true);\n googleMap.setContentDescription(\"restaurants\");\n googleMap.setTrafficEnabled(true);\n\n\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(position, 12));\n\n googleMap.setOnMyLocationButtonClickListener(this);\n googleMap.setOnMyLocationClickListener(this);\n\n checkPermissions();\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n googleMap.setMyLocationEnabled(true);\n\n restaurantListViewAdapter.notifyDataSetChanged();\n /*if (mMutablePolyline != null) {\n mMutablePolyline.remove();\n }\n mMutablePolyline = googleMap.addPolyline(polylineOptions);\n*/\n }", "@Override\n public void onMapLongClick(LatLng latLng) {\n mMap.clear();\n\n //Adding a new marker to the current pressed position we are also making the draggable true\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(true).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n// Toast.makeText(this, \"longitude=\" + latLng.longitude + \"latitude=\" + latLng.latitude, Toast.LENGTH_LONG).show();\n String msg = latLng.longitude + \", \" + latLng.latitude;\n// marker_address_tv.setText(msg);\n setAddressInTVFromLatlong(latLng.latitude, latLng.longitude);\n\n }", "protected LatLng getLatLng(String address) {\n String add = Uri.encode(address);\n String uri = \"https://maps.googleapis.com/maps/api/geocode/json?address=\"\n + add + \"&\" + \"key=AIzaSyCjSClgIE-DZ4BULjj9L_qu2hQ9Vzi8osg\";\n\n HttpGet httpGet = new HttpGet(uri);\n\n HttpClient client = new DefaultHttpClient();\n HttpResponse response;\n StringBuilder stringBuilder = new StringBuilder();\n\n try {\n response = client.execute(httpGet);\n HttpEntity entity = response.getEntity();\n\n InputStream stream = entity.getContent();\n\n int byteData;\n while ((byteData = stream.read()) != -1) {\n stringBuilder.append((char) byteData);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n double lat = 0.0, lng = 0.0;\n\n JSONObject jsonObject;\n try {\n jsonObject = new JSONObject(stringBuilder.toString());\n lat = ((JSONArray) jsonObject.get(\"results\")).getJSONObject(0)\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lat\");\n lng = ((JSONArray) jsonObject.get(\"results\")).getJSONObject(0)\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lng\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n LatLng latLngAddress = new LatLng(lat,lng);\n currentLocation = latLngAddress;\n return latLngAddress;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n Intent intent = getIntent();\n double lat = intent.getDoubleExtra(\"Lat\",10);\n double lon = intent.getDoubleExtra(\"Long\",10);\n\n Log.i(\"lat\", String.valueOf(lat));\n LatLng userLocation = new LatLng(lat ,lon);\n\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(userLocation).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation,15));\n\n LatLngBounds boundary = new LatLngBounds(new LatLng(lat, lon), new LatLng(lat , lon));\n builder1.setLatLngBounds(boundary);\n try {\n startActivityForResult(builder1.build(this),PLACE_PICKER_REQUEST);\n }catch (Exception e ){\n return ;\n }\n\n\n }", "public void initGoogleMaps(){\n\n double lat = getIntent().getDoubleExtra(\"lat\", 0);\n double lng = getIntent().getDoubleExtra(\"lng\", 0);\n LatLng latLng = new LatLng(lat, lng);\n\n MapFragment mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.map);\n GoogleMap googleMap = mapFragment.getMap();\n //googleMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(25.017273, 121.542012)));\n //googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));\n\n\n MarkerOptions markerOptions = new MarkerOptions().position(latLng).title(\"here\");\n googleMap.addMarker(markerOptions);\n\n }", "private void SetMarkerOnMap(Double latitude,Double longitude,float color)\n {\n //Place location marker\n LatLng latLng = new LatLng(latitude, longitude);\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n String addressOfLocation = GetAddressFromLatLng(latitude, longitude);\n markerOptions.title(addressOfLocation+\"\");\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(color));\n map.addMarker(markerOptions);\n //move map camera\n map.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n map.animateCamera(CameraUpdateFactory.zoomTo(12));\n\n }", "private void addGreenMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\r\n markerOptions.position(latLng);\r\n //markerOptions.title(dt.format(newDate));\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n mMap.addMarker(markerOptions);\r\n }", "private void addMarker() {\n /** Make sure that the map has been initialised **/\n LatLng lt = new LatLng(58.722599, -103.798828);\n float focus = 1f;\n if (null != mMap) {\n ArrayList<EarthQuake> earthQuakes = (ArrayList<EarthQuake>) getIntent().getSerializableExtra(\"quakeArrayList\");\n getIntent().removeExtra(\"quakeArrayList\");\n int position = getIntent().getIntExtra(\"position\", 0);\n if (earthQuakes != null) {\n if(position==0) {\n for (int i = 0; i < earthQuakes.size(); i++) {\n mMap.addMarker(\n new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(i).getDateTime() + \"\\n\" + earthQuakes.get(i).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(i).getLat(), earthQuakes.get(i).getLon()))\n );\n }\n }else if(position>0){\n lt=new LatLng(earthQuakes.get(position).getLat(),earthQuakes.get(position).getLon());\n mMap.addMarker( new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(position).getDateTime() + \"\\n\" + earthQuakes.get(position).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(position).getLat(), earthQuakes.get(position).getLon())));\n focus=4f;\n\n }\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(lt, focus));\n\n }\n }", "public void onClick(DialogInterface dialog,int id) {\n LatLng newlatlng = getLatLngFromAddress(userInput.getText().toString());\n if (newlatlng != null) {\n startLocation = newlatlng;\n MarkerOptions marker = new MarkerOptions()\n .position(startLocation)\n .title(\"Start\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n markers.add(marker);\n mMap.addMarker(marker);\n zoomMap();\n getEndLocation();\n } else\n {\n TextView alertTxtView = findViewById(R.id.alertTxtView);\n alertTxtView.setText(\"Could not find address\");\n }\n }", "private void markerForGeofence(LatLng latLng,int indexPos)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (GEO_FENCE_MARKER[indexPos] != null)\n {\n //geoFenceMarker.remove();\n }\n\n\n GEO_FENCE_MARKER[indexPos] = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n startGeofence(indexPos);\n }", "public void onClick(DialogInterface dialog,int id) {\n LatLng newlatlng = getLatLngFromAddress(userInput.getText().toString());\n if (newlatlng != null) {\n endLocation = newlatlng;\n MarkerOptions marker = new MarkerOptions()\n .position(endLocation)\n .title(\"End\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n markers.add(marker);\n mMap.addMarker(marker);\n zoomMap();\n } else\n {\n TextView alertTxtView = findViewById(R.id.alertTxtView);\n alertTxtView.setText(\"Could not find address\");\n }\n }", "@Override\n protected void onBeforeClusterItemRendered(Parking item, MarkerOptions markerOptions) {\n markerOptions.title(item.getAddress());\n markerOptions.snippet(item.getCity() + \" \" + item.getState() + \" \" + item.getPostalCode());\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n }", "public void onSearch(View view){\n List<Address> addressList = null;\n EditText location_tf = (EditText) findViewById(R.id.TFaddress);\n String location = location_tf.getText().toString();\n if(location!=null || location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n marker = mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,17));\n\n }\n\n }", "ServiceBindingOptions withMarker(Class<? extends Annotation>... marker);", "@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\t\n\t\t\t\tmLatitude = location.getLatitude();\n\t\t\t\tmLongitude = location.getLongitude();\n\t\t\t\t\n\t\t\t\t LatLng point = new LatLng(mLatitude, mLongitude);\n\t\t\t\t\n\t\t\t\t try {\n\t\t\t\t \taddresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n\t\t\t\t } catch (IOException e) {\n\t\t\t\t \t// TODO Auto-generated catch block\n\t\t\t\t \te.printStackTrace();\n\t\t\t\t }\n\t\t\t\t MarkerOptions maker= new MarkerOptions().position(point);\n\n\t\t\t\t address = addresses.get(0).getAddressLine(0);\n\t\t\t\t if(address==null)\n\t\t\t\t {\n\t\t\t\t\t maker.title(\"My Location\");\n\t\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\tmaker.title(\"\"+address);\n\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t String type = mPlaceType;\n\t\t\t StringBuilder sb = new StringBuilder(\"https://maps.googleapis.com/maps/api/place/nearbysearch/json?\");\n\t\t\t sb.append(\"location=\"+mLatitude+\",\"+mLongitude);\n\t\t\t sb.append(\"&radius=1500\");\n\t\t\t sb.append(\"&types=\"+type);\n\t\t\t sb.append(\"&sensor=true\");\n\t\t\t sb.append(\"&key=AIzaSyAwZSGS1kZG7_UuqxqHH3MdO1hbwB2cjag\"); \n\t\t\t PlacesTask placesTask = new PlacesTask(); \n\t\t\t placesTask.execute(sb.toString());\n\t\t\t \n\t\t\t \n\t\t\t if(zoomm)\n\t\t\t {\n\t\t\t \t googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition(point, 15, 30, 0)));\n\t\t\t \t zoomm=false;\n\t\t\t }\n\t\t\t\t\n\t\t\t}", "private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat.size()-1);\n\n View eView = exampleLayoutRenderable.getView();\n TextView finalDistance = findViewById(R.id.textView4);\n\n\n // An example \"onRender\" event, called every frame\n // Updates the layout with the markers distance\n layoutLocationMarker.setRenderEvent(new LocationNodeRender() {\n @Override\n public void render(LocationNode node) {\n View eView = exampleLayoutRenderable.getView();\n\n TextView distanceTextView = eView.findViewById(R.id.textView2);\n distanceTextView.setText(node.getDistance() + \"m\");\n }\n });\n // Adding the marker\n locationScene.mLocationMarkers.add(layoutLocationMarker);\n\n }", "public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }", "@Override\n\t\tpublic Builder address(final Address address) {\n\t\t\tthis.map.put(ADDRESS, address);\n\t\t\tthis.previous = ADDRESS;\n\t\t\treturn builder();\n\t\t}", "public static AddNewAddressFragment newInstance(int addressid, Boolean editFlag) {\n AddNewAddressFragment fragment = new AddNewAddressFragment();\n Bundle args = new Bundle();\n args.putInt(\"addressid\", addressid);\n args.putBoolean(\"editFlag\", editFlag);\n fragment.setArguments(args);\n return fragment;\n }", "private void addDestination(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n\n\n }", "public StreetAddress() {}", "public boolean createMarker(ArrayList<LocationsData>datas) {\n\n boolean isNotEmpty= true;\n if (isNotEmpty) {\n placesMarker= placesMap.addMarker(new MarkerOptions()\n .position(new LatLng(datas.get(0).locationLatitude,datas.get(0).locationLongitude))\n .title(datas.get(0).locationName));\n placesMarker.showInfoWindow();\n placesMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Log.i(\"Places Marker\",marker.getTitle()+\"\\n\"+places.toString());\n\n LocationsData data= new LocationsData();\n data.set_id(places.get(0).get_id());\n data.setImage_path(places.get(0).getImage_path());\n data.setLocationName(places.get(0).getLocationName());\n data.setLocationLatitude(places.get(0).getLocationLatitude());\n data.setLocationLongitude(places.get(0).getLocationLongitude());\n data.setLocationProducts(places.get(0).getLocationProducts());\n\n Intent i= new Intent(MainActivity.this,PlaceDetailsActivity.class);\n i.putExtra(\"places\",data);\n startActivity(i);\n\n Log.i(\"Intent\",i.toString());\n Log.i(\"onMarkerClick\",\"Successfull, Title: \"+marker.getTitle());\n Log.i(\"Getting Item Id\",String.valueOf(places.get(0).get_id()));\n return false;\n }\n });\n }else {\n isNotEmpty=false;\n }\n return isNotEmpty;\n }", "private void createMarkers(Bundle savedInstanceState) {\n List<MarkerDTO> markerDTOs = null;\n // add the OverlayItem to the ArrayItemizedOverlay\n ArrayList<DescribedMarker> markers = null;\n if (savedInstanceState != null) {\n markerDTOs = savedInstanceState.getParcelableArrayList(MapsActivity.PARAMETERS.MARKERS);\n markers = MarkerUtils.markerDTO2DescribedMarkers(this, markerDTOs);\n } else {\n markerDTOs = getIntent().getParcelableArrayListExtra(MapsActivity.PARAMETERS.MARKERS);\n markers = MarkerUtils.markerDTO2DescribedMarkers(this, markerDTOs);\n // retrieve geopoint if missing\n if (getIntent().getExtras() == null) {\n return;\n }\n featureIdField = getIntent().getExtras().getString(PARAMETERS.FEATURE_ID_FIELD);\n if (featureIdField == null) {\n featureIdField = FEATURE_DEFAULT_ID;\n }\n if (!MarkerUtils.assignFeaturesFromDb(markers, featureIdField)) {\n Toast.makeText(this, R.string.error_unable_getfeature_db, Toast.LENGTH_LONG).show();\n canConfirm = false;\n // TODO dialog : download features for this area?\n }\n }\n // create an ItemizedOverlay with the default marker\n overlayManager.getMarkerOverlay().getOverlayItems().addAll(markers);\n }", "public String GetAddressFromLatLng(Double latitude,Double longitude)\n {\n //Geocoder geocoder = null;\n List<Address> addresses;\n String address = \"\";\n //Geocoder geocoder = new Geocoder(HomeMapsActivity.this, Locale.getDefault());\n\n// Geocoder geocoder = CustomApplication.geoCoder;\n try {\n addresses = CustomApplication.geoCoder.getFromLocation(latitude, longitude, 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName(); // Only if available else return NULL\n } catch (IOException e) {\n e.printStackTrace();\n }\n Log.i(TAG, \"GetAddressFromLatLng: \"+address);\n\n return address;\n }", "Address createAddress();", "public BsAddressExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "public Address createAddress(String address);", "public void initMapMarkers() {\n\t\tmyMarkersCollection = new MapMarkersCollection();\n\t\tMapMarkerBuilder myLocMarkerBuilder = new MapMarkerBuilder();\n\t\tmyLocMarkerBuilder.setMarkerId(MARKER_ID_MY_LOCATION);\n\t\tmyLocMarkerBuilder.setIsAccuracyCircleSupported(true);\n\t\tmyLocMarkerBuilder.setAccuracyCircleBaseColor(new FColorRGB(32/255f, 173/255f, 229/255f));\n\t\tmyLocMarkerBuilder.setBaseOrder(-206000);\n\t\tmyLocMarkerBuilder.setIsHidden(true);\n\t\tBitmap myLocationBitmap = OsmandResources.getBitmap(\"map_pedestrian_location\");\n\t\tif (myLocationBitmap != null) {\n\t\t\tmyLocMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With(\n\t\t\t\t\tmyLocationBitmap.getWidth(), myLocationBitmap.getHeight(),\n\t\t\t\t\tSampleUtils.getBitmapAsByteArray(myLocationBitmap)));\n\t\t}\n\t\tmyLocationMarker = myLocMarkerBuilder.buildAndAddToCollection(myMarkersCollection);\n\n\t\tmapView.addSymbolsProvider(myMarkersCollection);\n\n\t\t// Create context pin marker\n\t\tcontextPinMarkersCollection = new MapMarkersCollection();\n\t\tMapMarkerBuilder contextMarkerBuilder = new MapMarkerBuilder();\n\t\tcontextMarkerBuilder.setMarkerId(MARKER_ID_CONTEXT_PIN);\n\t\tcontextMarkerBuilder.setIsAccuracyCircleSupported(false);\n\t\tcontextMarkerBuilder.setBaseOrder(-210000);\n\t\tcontextMarkerBuilder.setIsHidden(true);\n\t\tBitmap pinBitmap = OsmandResources.getBitmap(\"map_pin_context_menu\");\n\t\tif (pinBitmap != null) {\n\t\t\tcontextMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With(\n\t\t\t\t\tpinBitmap.getWidth(), pinBitmap.getHeight(),\n\t\t\t\t\tSampleUtils.getBitmapAsByteArray(pinBitmap)));\n\t\t\tcontextMarkerBuilder.setPinIconVerticalAlignment(MapMarker.PinIconVerticalAlignment.Top);\n\t\t\tcontextMarkerBuilder.setPinIconHorisontalAlignment(MapMarker.PinIconHorisontalAlignment.CenterHorizontal);\n\t\t}\n\t\tcontextPinMarker = contextMarkerBuilder.buildAndAddToCollection(contextPinMarkersCollection);\n\n\t\tmapView.addSymbolsProvider(contextPinMarkersCollection);\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n MapAddress durban= new MapAddress(\"Gordon Rajapogal: Durban Teen Challenge\",\"Afrique du Sud\",\"Durban\",\"Newlands East\",-29.777830,30.988298,\"5/7 Marlin Grov Newlands East Durban\",0,\"0833448430\");\n MapAddress nigeria= new MapAddress(\"BETLAADA ADULT & TEEN CHALLENGE\",\"Nigeria\",\"Ibadan\",\"\",7.323658, 3.898848,\"42A UNIQUE ESTATE, SANYO , IBADAN, NIGERIA\",0,\"+234-810-508-7705\");\n MapAddress ghana= new MapAddress(\"Teen Challenge, Ghana.\",\"Ghana\",\"Koforidua\",\"Eastern Region\",6.065691, -0.252336,\"Hse No. 193A, Adweso, Koforidua, Eastern Region, Ghana.\",0,\"+233243841230\");\n MapAddress nairo= new MapAddress(\"Teen Challenge Kenya\",\"Kenya\",\"Nairobi\",\"Kiambu\",-1.197566, 36.845074,\"Mushroom Rd, Kiambu, Kenya\",0,\"+254 722 410751\");\n MapAddress nigeria_jos= new MapAddress(\"Teen Challenge Jos, Nigeria\",\"Nigeria\",\"Jos\",\"Plateu State\",9.897248, 8.896680,\" No 74 Liberty Boulevard Gwarandok, Jos Plateau State, Nigeria\",0,\"\");\n mMap.addMarker(new MarkerOptions().position(new LatLng(durban.getLat(),durban.getLng())).title(durban.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nigeria.getLat(),nigeria.getLng())).title(nigeria.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(ghana.getLat(),ghana.getLng())).title(ghana.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nairo.getLat(),nairo.getLng())).title(nairo.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nigeria_jos.getLat(),nigeria_jos.getLng())).title(nigeria_jos.getOrganisation()));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(durban.getLat(), durban.getLng())));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n List<Marker> markerList = new ArrayList<>();\n\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n// This displays the different map type styles\n// mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n// mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n// mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n\n mBoston = mMap.addMarker(new MarkerOptions()\n .position(BOSTON).title(\"Boston\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n mBoston.setTag(0);\n markerList.add(mBoston);\n\n mDallas = mMap.addMarker(new MarkerOptions()\n .position(DALLAS).title(\"Dallas\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE)));\n mBoston.setTag(0);\n markerList.add(mDallas);\n\n mNYC = mMap.addMarker(new MarkerOptions()\n .position(NYC).title(\"NYC\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n mBoston.setTag(0);\n markerList.add(mNYC);\n\n mMap.setOnMarkerClickListener(this);\n\n for(Marker m : markerList){\n LatLng latLng = new LatLng(m.getPosition().latitude, m.getPosition().longitude);\n mMap.addMarker(new MarkerOptions().position(latLng));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n }\n\n\n\n // Add a marker in Sydney and move the camera\n LatLng boston = new LatLng(42.3140089, -71.2504676);\n mMap.addMarker(new MarkerOptions().position(boston).title(\"Marker in Boston\"));\n// To change the marker color\n// mMap.addMarker(new MarkerOptions().position(boston).title(\"Marker in Boston\")\n// .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(boston));\n// To enter the Zoom on the map\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(boston, 20));\n }", "private void getLocationFromAddress(Context context, String address) {\n Geocoder coder = new Geocoder(context);\n List<Address> coderResults;\n\n LatLng result = null;\n try {\n coderResults = coder.getFromLocationName(address, 2);\n if (coderResults == null) {\n Log.d(TAG, \"Failed to convert address to LatLng.\");\n Log.d(TAG, \"Address: \" + address);\n return;\n }\n\n Address location = coderResults.get(0);\n initialiseMap(\n new LatLng(location.getLatitude(), location.getLongitude()),\n address\n );\n } catch (IOException e) {\n //\n }\n }", "private void setupMarkers() {\n \t\tGPSFilterPolygon polygon = this.area.getPolygon();\n \n \t\tif ( polygon != null ) {\n \t\t\tfinal LatLngBounds.Builder builder = LatLngBounds.builder();\n \n \t\t\t// Put markers for each edge.\n \t\t\tfor ( GPSLatLng pos : polygon.getPoints() ) {\n \t\t\t\tLatLng point = this.convertLatLng( pos );\n \n \t\t\t\tbuilder.include( point );\n \n \t\t\t\tthis.addMarker( point );\n \t\t\t}\n \n \t\t\t// Add listener that moves camera so that all markers are in users view.\n \t\t\tthis.googleMap.setOnCameraChangeListener( new OnCameraChangeListener() {\n \t\t\t\t@Override\n \t\t\t\tpublic void onCameraChange( CameraPosition arg0 ) {\n \t\t\t\t\t// Move camera.\n \t\t\t\t\tmoveCameraToPolygon( builder, false );\n \n \t\t\t\t\t// Remove listener to prevent position reset on camera move.\n \t\t\t\t\tgoogleMap.setOnCameraChangeListener( null );\n \t\t\t\t}\n \t\t\t} );\n \n \t\t\tthis.updateGuiPolygon();\n \t\t}\n \t}", "public Marker addMarker(BaseMarkerOptions baseMarkerOptions, MapboxMap mapboxMap2) {\n return this.markers.addBy(baseMarkerOptions, mapboxMap2);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n MarkerOptions markerOptions = new MarkerOptions();\n Log.d(\"Lat\", String.valueOf(clickedBook.getLat()));\n Log.d(\"Lon\", String.valueOf(clickedBook.getLon()));\n markerOptions.position(new LatLng(clickedBook.getLat(), clickedBook.getLon()));\n\n markerOptions.title(Address);\n mMap.clear();\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n new LatLng(clickedBook.getLat(), clickedBook.getLon()), 16f);\n mMap.animateCamera(location);\n mMap.addMarker(markerOptions);\n Log.d(\"status\", \"success\");\n }", "@Override\n public void onMapClick(LatLng latLng) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);\n //Set the title of the dialog.\n builder.setTitle(\"Create a new Marker\");\n\n final LatLng markerPoint = latLng;\n\n // Set up the input\n final EditText input = new EditText(MapsActivity.this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n\n // Set up the buttons\n builder.setPositiveButton(\"Create\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Create a new marker with the Latitude and Longitude of the click event.\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Cancel\n dialog.cancel();\n }\n });\n\n builder.show();\n\n }", "@SuppressLint(\"NewApi\")\n @Override\n public void onPlaceSelected(@NonNull final Place place) {\n Log.i(\"ssd\", \"Place: \" + place.getName() + \", \" + place.getId());\n\n final LatLng latLng = place.getLatLng();\n name = place.getName();\n lat= Objects.requireNonNull(place.getLatLng()).latitude;\n longt= Objects.requireNonNull(place.getLatLng()).longitude;\n\n Log.i(\"la\", String.valueOf(latLng));\n\n final MarkerOptions markerOptions = new MarkerOptions();\n\n Toast.makeText(getApplicationContext(), String.valueOf(place.getLatLng()), Toast.LENGTH_LONG).show();\n // Setting the position for the marker\n markerOptions.position(Objects.requireNonNull(place.getLatLng()));\n\n // Setting the title for the marker.\n // This will be displayed on taping the marker\n markerOptions.title(name);\n\n // Clears the previously touched position\n mMap.clear();\n\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n // Animating to the touched position\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }\n });\n\n\n Log.i(\"lt\", String.valueOf(Objects.requireNonNull(place.getLatLng()).latitude));\n }", "@Override\n public void onMapClick(LatLng latLng) {\n map.addMarker(new MarkerOptions().position(latLng));\n }", "public void placeMarker(String zone_name,String risk_level, String latitude, String longitude,String description,String markertime){\n double latitudeNumericVal = Double.valueOf(latitude);\n double longitudeNumericVal = Double.valueOf(longitude);\n\n String timePosted = markertime.substring(0,16);\n\n LatLng coordinates = new LatLng(latitudeNumericVal,longitudeNumericVal);\n System.out.println(\"RISK LEVELS ARE: \" + risk_level);\n if(risk_level.contains(\"Low\")){\n CircleOptions circleOptions = new CircleOptions();\n circleOptions.center(coordinates);\n circleOptions.radius(250);\n circleOptions.strokeColor(Color.parseColor(\"#e0ee20\"));\n circleOptions.fillColor(Color.parseColor(\"#20e0ee20\"));\n circleOptions.strokeWidth(3f);\n // Adding the circle to the GoogleMap\n mMap.addCircle(circleOptions);\n final MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name);\n // MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name).icon(BitmapDescriptorFactory.fromResource(R.drawable.yellowradius));\n dangerMarker.snippet(\"Low Danger:\\n\" + description + \"\\n\" + timePosted);\n mMap.addMarker(dangerMarker);\n }\n\n if (risk_level.contains(\"Medium\")) {\n CircleOptions circleOptions = new CircleOptions();\n circleOptions.center(coordinates);\n circleOptions.radius(500);\n circleOptions.strokeColor(Color.parseColor(\"#FF9700\"));\n circleOptions.fillColor(Color.parseColor(\"#20FF9700\"));\n circleOptions.strokeWidth(3f);\n\n // Adding the circle to the GoogleMap\n mMap.addCircle(circleOptions);\n\n MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name);\n\n dangerMarker.snippet(\"Medium Danger:\\n\" + description + \"\\n\" + timePosted);\n // dangerMarker.visible(false);\n mMap.addMarker(dangerMarker);\n }\n\n if(risk_level.contains(\"High\")) {\n CircleOptions circleOptions = new CircleOptions();\n circleOptions.center(coordinates);\n circleOptions.radius(750);\n circleOptions.strokeColor(Color.parseColor(\"#cc0000\"));\n circleOptions.fillColor(Color.parseColor(\"#20cc0000\"));\n circleOptions.strokeWidth(3f);\n\n mMap.addCircle(circleOptions);\n\n MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name);\n\n dangerMarker.snippet(\"High Danger:\\n\" + description + \"\\n\" + timePosted);\n\n mMap.addMarker(dangerMarker);\n\n /**\n * Check current Date and see if any of the high danger zones were posted within the hour\n */\n Date currentDate = new Date();\n String currentDateString = currentDate.toString();\n\n String markerHourComparator = markertime.substring(11,14);\n if(currentDateString.contains(markerHourComparator)) {\n displayHighDZDialog(markertime,latitudeNumericVal,longitudeNumericVal);\n }\n\n System.out.println(markerHourComparator);\n //Toast.makeText(MapsActivity.this, \"High Danger Zone Added!\", Toast.LENGTH_LONG).show();\n }\n\n }", "private void addMarker(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .setIcon(icon)\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n }", "@Override\n public void onMapLongClick(LatLng latLng) {\n String markerName = mTextField.getText().toString();\n\n // check if a marker name is set\n if(markerName.isEmpty()) {\n markerName = \"Marker\" + Integer.toString(numberOfMarkers);\n }\n\n // add marker\n Marker marker = mMap.addMarker(\n new MarkerOptions()\n .position(latLng)\n .title(markerName)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED))\n );\n\n // add halo\n Circle halo = mMap.addCircle(new CircleOptions()\n .center(latLng)\n .radius(100.0)\n .strokeColor(Color.RED)\n .visible(false)\n );\n\n // add marker and halo to tracked markers\n mMarkerHalos.put(marker, halo);\n\n // lat and long to separate values\n double markerLat = latLng.latitude;\n double markerLong = latLng.longitude;\n\n // save marker to shared preferences\n Set<String> positionSet = new HashSet<String>();\n positionSet.add(Double.toString(markerLat));\n positionSet.add(Double.toString(markerLong));\n mPrefEditor.putStringSet(markerName, positionSet);\n mPrefEditor.apply();\n\n // clear text field\n mTextField.setText(\"\");\n\n // increase marker counter\n ++numberOfMarkers;\n }", "private void onContactAddressClicked() {\n Uri geoLocation = Uri.parse(\"geo:0,0?q=\" +\n Uri.encode(this.contact.getStreet()) + \", \" +\n Uri.encode(Integer.toString(this.contact.getZip())) + \" \" +\n Uri.encode(this.contact.getCity()) + \", \" +\n Uri.encode(this.contact.getCanton())\n );\n Log.d(\"ShowContactActivity\", \"Parsed URI for Maps: \" + geoLocation.toString());\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(geoLocation);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void addDoctorsMarkers(MapboxMap mapboxMap, List<HashMap<String, String>> nearbyDoctorsData) {\n\n for (int i = 0; i < nearbyDoctorsData.size(); i++) {\n\n MarkerOptions markerOptions = new MarkerOptions();\n\n markerOptions.position(new com.mapbox.mapboxsdk.geometry.LatLng(\n Double.parseDouble(nearbyDoctorsData.get(i).get(\"lat\")),\n Double.parseDouble(nearbyDoctorsData.get(i).get(\"lng\")))\n );\n markerOptions.snippet(nearbyDoctorsData.get(i).get(\"name\"));\n mapboxMap.addMarker(markerOptions);\n\n }\n\n }", "private void showMarker() {\n\n if (myMarker == null) {\n MarkerOptions options = new MarkerOptions();//1 option co 2 thu k thieu vi tri ,hinh anh\n options.position(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));//vi tri kinh do vi do,no tra ve vi tri cuoi cung gps nhan dc ,neu\n options.title(\"dung123\");\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n //newu chua co thif sedc sinh ra bang cach add\n googleMap.addMarker(options);\n// myMarker.setTag(\"Hello\");//co the truyen doi tuig vao duoi window marker getTag\n } else {\n myMarker.setPosition(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));\n }\n }", "private void setUpMarkerLayer() {\n map.addLayer( new SymbolLayer( MARKER_LAYER_ID, geojsonSourceId ).withProperties( iconImage( MARKER_IMAGE_ID ), iconAllowOverlap( false )));\n }", "@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }", "@Override\n public void onAddressClicked(int position) {\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n String[] xy = new String[]{\"37.221900\",\"127.18800\",\"37.221804\",\"127.186695\",\"37.220000\",\"127.186666\"};\n\n ArrayList<LatLng> loc=new ArrayList<LatLng>();\n\n int count = 1;\n for (int i=0;i<xy.length;i++){\n\n double tmp = Double.parseDouble(xy[i]);\n double tmp2 = Double.parseDouble(xy[++i]);\n\n\n LatLng latLng = new LatLng(tmp, tmp2);\n\n loc.add(latLng);\n\n\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Pin\"+count).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pin_purple)));\n count++;\n }\n\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc.get(loc.size()-1)));\n\n\n// // 서울 위치\n// LatLng seoul = new LatLng(37.566535, 126.97796919);\n// mMap.addMarker(new MarkerOptions().position(seoul).title(\"Marker in Seoul\"));\n//\n// // 명지대 위치 추가\n// LatLng MJU = new LatLng(37.221804, 127.186695);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU)\n// .title(\"명지대\"));\n//\n// //핀 연결 확인용 좌표 추가\n// LatLng MJU2 = new LatLng(37.220000, 127.186666);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU2)\n// .title(\"명지대2\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(MJU2));\n\n // 카메라 줌\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n\n // 인포 윈도우 클릭시 전화 걸기 -> 뭔가 게시물 쓸때 쓸수있을거 같아서 남겨둠\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:0312365043\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //arraylist 다시 배열에 넣는거 아직 않마 까먹ㅇ멋어ㅏ\n LatLng[] line = {\n loc.get(0),loc.get(1),loc.get(2)\n };\n //좌표끼리 선 긋기 좌표가 추가 될때마다 새로운 선을 만들어야 하나.. 아니면 그냥 좌표하나씩 추가해야하나 고민\n //일단 좌표에 들어온 순서로 선이 그어짐 -> 시간별로 추가할수 있도록 해야 함\n\n\n //좌표 두개마다 각각의 polyline을 생성해야 각각 화살표로 나올수 있음\n //for문 사용해서 polyline 만들어보기\n// for(int i=0; i<line.length;){\n// Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add( line[i], line[++i]\n// ) .width(10)\n//\n// .geodesic(true));\n//\n//\n// }\n\n\n Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n .clickable(true)\n .add( line\n ) .width(10)\n\n .geodesic(true));\n\n polyline1.setEndCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_arrow), 15));\n polyline1.setStartCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_circle), 15));\n\n\n\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n\n\n }", "private void addMarker(HashMap<String, GeofenceInfoContent[]> geofenceToAdd){\n System.gc();\n MainActivity mainActivity = (MainActivity) getActivity();\n\n for(Map.Entry<String, GeofenceInfoContent[]> e : geofenceToAdd.entrySet()){\n if(!currentGeofencesInfoMap.containsKey(e.getKey())) {\n currentGeofencesInfoMap.put(e.getKey(), e.getValue());\n geofenceNamesBeingQueriedForInfo.remove(e.getKey());\n String curGeofenceName = e.getKey();\n GeofenceObjectContent geofence = mainActivity.getGeofenceMonitor().curGeofencesMap.get(curGeofenceName);\n Bitmap markerIcon = BitmapFactory.decodeResource(getResources(), R.drawable.basic_map_marker);\n LatLng position = new LatLng(geofence.getGeofence().getLocation().getLat(), geofence.getGeofence().getLocation().getLng());\n BitmapDescriptor icon = BitmapDescriptorFactory.fromBitmap(markerIcon);\n MarkerOptions geofenceMarkerOptions = new MarkerOptions()\n .position(position)\n .title(curGeofenceName)\n .icon(icon);\n Marker curGeofenceMarker = mMap.addMarker(geofenceMarkerOptions);\n currentGeofenceMarkers.add(curGeofenceMarker);\n }\n }\n }", "public DatadogBuilder address(InetSocketAddress address) {\n this.address = address;\n return this;\n }", "@Override\n protected MarkerItem doInBackground(MarkerItem... locationName) {\n Geocoder geocoder = new Geocoder(getBaseContext());\n List<Address> addresses = null;\n MarkerItem name = locationName[0];\n try {\n // Getting a maximum of 1 Address that matches the input text\n addresses = geocoder.getFromLocationName(name.getAddress(), 1);\n if (addresses != null && addresses.size() >= 1) {\n name.setPlaceItem(addresses.get(0));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return name;\n }", "public void addAddress(String Address, Coord coord);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if(requestCode == LOCATION_REQUEST && resultCode == RESULT_OK){\n PlaceOfInterest fromAdd = (PlaceOfInterest) data.getSerializableExtra(\"Place\");\n LatLng newLatLong = new LatLng(fromAdd.getLatitude(), fromAdd.getLongitude());\n MarkerOptions placeMarker = new MarkerOptions().position(newLatLong).title(fromAdd.getName())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW));\n if(fromAdd.getPicture() != null){\n Log.d(TAG, \"getPicture was not null\");\n int height = 100;\n int width = 100;\n Bitmap picture = ByteConvertor.convertToBitmap(fromAdd.getPicture());\n BitmapDrawable d = new BitmapDrawable(getResources(), picture);\n Bitmap smallMarker = Bitmap.createScaledBitmap(d.getBitmap(), width, height, false);\n\n placeMarker.icon(BitmapDescriptorFactory.fromBitmap(smallMarker));\n }\n places.add(fromAdd);\n mMap.addMarker(placeMarker);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(newLatLong));\n }\n }", "public void setAddress(String address) { this.address = address; }", "private void searchAddress() {\n CommomUtils.hideKeyboard(MainActivity.this, etAddress);\n\n //Check if the address was informed\n if (etAddress.getText().toString().equals(\"\")) {\n Toast.makeText(MainActivity.this, R.string.activity_main_search_address_validation, Toast.LENGTH_SHORT).show();\n return;\n }\n\n lvResult.setVisibility(View.GONE);\n showProgress();\n\n //Call the api for searching the address\n GoogleMapsService service = ServiceGenerator.createService(GoogleMapsService.class, getString(R.string.google_maps_api_base_url));\n service.getGeocoding(etAddress.getText().toString(), true, new Callback<GeocodingResult>() {\n @Override\n public void success(GeocodingResult googleGeocodingResult, Response response) {\n hideProgress();\n geocodingResult = googleGeocodingResult;\n\n if (geocodingResult.getResults().size() > 0) {\n loadResult();\n } else {\n Toast.makeText(MainActivity.this, R.string.activity_main_search_no_results_found, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n hideProgress();\n Toast.makeText(MainActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public View getInfoContents(Marker marker) {\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(place.getAddress());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(place.getLatLng().latitude + \",\" + place.getLatLng().longitude);\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", place.getAddress());\n intent.putExtra(\"place_selection\", place_selection_flag);\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }", "public void setAddressType(String addressType) {\n this.addressType = addressType;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "private void plottingMarkers(){\r\n if (nameList.size()==0) {\r\n }\r\n else {\r\n for (int i = 0; i < nameList.size(); i++) {\r\n Loc2LatLng = new LatLng(Double.parseDouble(latList.get(i)), Double.parseDouble(lngList.get(i)));\r\n MarkerOptions markerSavedLocations = new MarkerOptions();\r\n markerSavedLocations.title(nameList.get(i));\r\n markerSavedLocations.position(Loc2LatLng);\r\n map.addMarker(markerSavedLocations);\r\n }\r\n }\r\n }", "protected BsAddressExample(BsAddressExample example) {\r\n\t\tthis.orderByClause = example.orderByClause;\r\n\t\tthis.oredCriteria = example.oredCriteria;\r\n\t}", "@Override\n public void onPlaceSelected(Place place) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(place.getLatLng().latitude,\n place.getLatLng().longitude), mMap.getCameraPosition().zoom));\n\n addMarkerAtPoi(place);\n }", "public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n final LatLng latLng = new LatLng(latitude, longitude);\n mMap.addCircle(new CircleOptions()\n .center(latLng)\n .radius(75)\n .strokeWidth(2f));\n CameraUpdate center=\n CameraUpdateFactory.newLatLng(latLng);\n CameraUpdate zoom=CameraUpdateFactory.zoomTo(21);\n\n mMap.moveCamera(center);\n mMap.animateCamera(zoom);\n Marker mark= mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .title(\"I'm here...\")\n .snippet(\"Its My Location\")\n .rotation((float) -15.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n Tmarker=mMap.addMarker(new MarkerOptions()\n .snippet(tuition_id)\n .rotation((float)12.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE))\n .position(new LatLng(lat,lan)));\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n if(marker!=null) {\n marker.remove();\n }\n marker=mMap.addMarker(new MarkerOptions()\n .snippet(\"My Home\")\n .rotation((float)0.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .position(latLng));\n }\n });\n\n//.fillColor(0x55ffff99));\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n }", "private void setDropOffLocation(){\n \t\t// Defines the AutoCompleteTextView with the dropoff address\n \t\tacDropoff = (AutoCompleteTextView)findViewById(R.id.dropoffText);\n \t\t//Controls if the user has entered an address\n \t\tif(!acDropoff.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the given address\n \t\t\tGeoPoint dropoffGeo = GeoHelper.getGeoPoint(acDropoff.getText().toString());\n \t\t\t// Gets the MapLocation from the given GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(dropoffGeo);\n \t\t\t// Finds the dropoff location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\t\n \t\t\t// Controls if the user has entered a NEW address\n \t\t\tif(dropoffPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayDropoffThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayDropoffThumb);\n \t\t\t\t\toverlayDropoffThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no pickup point is specified, we add the dropoff point to the map.\n \t\t\t\tif(pickupPoint == null){\n \t\t\t\t\tdropoffPoint = temp;\n \t\t\t\t\toverlayDropoffThumb = drawThumb(dropoffPoint, false);\n \t\t\t\t}else{ // If a pickup point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the dropoff point is after the pickup point.\n \t\t\t\t\tif(l.indexOf(temp) > l.indexOf(pickupPoint)){\n \t\t\t\t\t\t//makeToast(\"The droppoff point has to be after the pickup point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The droppoff point has to be after the pickup point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\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\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the dropoff point to the map by drawing a cross\n \t\t\t\t\t\tdropoffPoint = temp;\n \t\t\t\t\t\toverlayDropoffThumb = drawThumb(dropoffPoint, false);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a dropoff address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a dropoff address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}", "public Marker createMarker(double latitude, double longitude, final String storeImg, String name, String description, String contact_number, String opening_time, String closing_time_store, ArrayList<Store_img_item> store_img_items, ArrayList<StoreItem> store_item) {\n this.name = name;\n this.contact_number = contact_number;\n this.opening_time_store = opening_time;\n this.closing_time_store = closing_time_store;\n this.store_img_item = store_img_items;\n\n //Log.e(\"store\", String.valueOf(store_item.size()));\n store_img_item = new ArrayList<>();\n mMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .snippet(description)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.c_marker))\n .title(name));\n mMarker.setTag(store_img_items);\n //store_img_item = (ArrayList<Store_img_item>) mMarker.getTag();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 15));\n\n return mMarker;\n }", "private void initiateSearch(LatLng latLng) {\n mMap.clear();\n mLatLng = latLng;\n mLocation.setLatitude(latLng.latitude);\n mLocation.setLongitude(latLng.longitude);\n\n searchMarker = mMap.addMarker(new MarkerOptions()\n .position(latLng));\n\n int zoomNumber = (int) (15-(0.0003)*Parameters.radius);\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(latLng).zoom(zoomNumber).build();\n\n mMap.animateCamera(CameraUpdateFactory\n .newCameraPosition(cameraPosition));\n\n try {\n new JsonParser().execute(mLocation);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onMapLongClick(@NonNull LatLng point) {\n latitude = String.valueOf(point.getLatitude());\n longitude = String.valueOf(point.getLongitude());\n mapboxMap.addMarker(new MarkerOptions()\n .position(point)\n .title(\"New Maintenance Form\")\n .snippet(\"Click to add site\")\n );\n\n\n }", "public void setAddress(String address) {\n this.address = address;\n }", "@Override\n\t\tpublic Builder shippingAddress(final Address address) {\n\t\t\tthis.map.put(SHIPPING_ADDRESS, address);\n\t\t\tthis.previous = SHIPPING_ADDRESS;\n\t\t\treturn builder();\n\t\t}", "private void xxx() {\n LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(westfieldNJ).title(\"Westfield, New Jersey\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(westfieldNJ));\n\n }", "public void displayMorton(TextView selectedCoord, MarkerOptions markerOptions, DecimalFormat formater) {\n selectedCoord.setText(\"Selected Park: 41.9427° N, -70.6805° W\");\n locationImage.setImageResource(R.drawable.morton);\n markerOptions\n .position(arrayList.get(2))\n .title(\"Morton Park:\\n\" + formater.format(arrayList.get(2).latitude) + \"° N\" + \", \" + formater.format(arrayList.get(2).longitude) + \"° W\");\n //Zoom the Marker\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(arrayList.get(2), 15));\n //Add Marker On Map\n gMap.addMarker(markerOptions);\n }", "private void setUpMap() {\n // Crear all map elements\n mGoogleMap.clear();\n // Set map type\n mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n // If we cant find the location now, we call a Network Provider location\n if (mLocation != null) {\n // Create a LatLng object for the current location\n LatLng latLng = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n // Show the current location in Google Map\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n // Draw the first circle in the map\n mCircleOptions = new CircleOptions().fillColor(0x5500ff00).strokeWidth(0l);\n // Zoom in the Google Map\n mGoogleMap.animateCamera(CameraUpdateFactory.zoomTo(15));\n\n // Zoom in the Google Map\n //icon = BitmapDescriptorFactory.fromResource(R.drawable.logo2);\n\n // Creation and settings of Marker Options\n mMarkerOptions = new MarkerOptions().position(latLng).title(\"You are here!\");//.icon(icon);\n // Creation and addition to the map of the Marker\n mMarker = mGoogleMap.addMarker(mMarkerOptions);\n // set the initial map radius and draw the circle\n drawCircle(RADIUS);\n }\n }", "public Address() {\n \t\n }", "abstract public Address createAddress(String addr);", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n googleMap.setBuildingsEnabled(false);\n\n LatLng ncf = new LatLng(27.3848206, -82.5587668);\n //mMap.addMarker(new MarkerOptions().position(ncf).title(\"Marker in NCF\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(ncf));\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(ncf, 18));\n\n BitmapDescriptor marker = BitmapDescriptorFactory.fromResource(R.mipmap.red_marker);\n\n mBP1 = mMap.addMarker(new MarkerOptions().position(BP1).title(\"Out or Order\").icon(marker));\n mBP2 = mMap.addMarker(new MarkerOptions().position(BP2).icon(marker));\n mBP3 = mMap.addMarker(new MarkerOptions().position(BP3).icon(marker));\n mBP4 = mMap.addMarker(new MarkerOptions().position(BP4).icon(marker));\n mBP5 = mMap.addMarker(new MarkerOptions().position(BP5).icon(marker));\n mBP7 = mMap.addMarker(new MarkerOptions().position(BP7).icon(marker));\n mBP8 = mMap.addMarker(new MarkerOptions().position(BP8).icon(marker));\n mBP9 = mMap.addMarker(new MarkerOptions().position(BP9).icon(marker));\n mBP10 = mMap.addMarker(new MarkerOptions().position(BP10).icon(marker));\n mBP11 = mMap.addMarker(new MarkerOptions().position(BP11).icon(marker));\n mBP12 = mMap.addMarker(new MarkerOptions().position(BP12).icon(marker));\n mBP14 = mMap.addMarker(new MarkerOptions().position(BP14).icon(marker));\n mBP21 = mMap.addMarker(new MarkerOptions().position(BP21).icon(marker));\n mBP23 = mMap.addMarker(new MarkerOptions().position(BP23).icon(marker));\n mBP24 = mMap.addMarker(new MarkerOptions().position(BP24).icon(marker));\n mBP25 = mMap.addMarker(new MarkerOptions().position(BP25).icon(marker));\n mBP26 = mMap.addMarker(new MarkerOptions().position(BP26).icon(marker));\n mBP30 = mMap.addMarker(new MarkerOptions().position(BP30).icon(marker));\n mBP32 = mMap.addMarker(new MarkerOptions().position(BP32).icon(marker));\n mBP33 = mMap.addMarker(new MarkerOptions().position(BP33).icon(marker));\n\n }", "public void setAddress(String address)\n {\n this.address = address;\n }" ]
[ "0.65331334", "0.5869081", "0.58034635", "0.57351106", "0.5720307", "0.5697927", "0.5666107", "0.56599826", "0.56523645", "0.56129175", "0.5606781", "0.56027687", "0.5565312", "0.5563778", "0.5511737", "0.54809374", "0.5418853", "0.54153466", "0.5404117", "0.54030263", "0.53921473", "0.5380546", "0.53622055", "0.5360439", "0.53387666", "0.5314827", "0.5310105", "0.5300075", "0.5295725", "0.5293866", "0.5292494", "0.52856016", "0.5284171", "0.5275124", "0.52709913", "0.5265114", "0.52581286", "0.5241318", "0.52266824", "0.5215609", "0.5183675", "0.51802135", "0.5178021", "0.51719373", "0.51695216", "0.51599014", "0.5154853", "0.5125805", "0.5122002", "0.5121686", "0.5120039", "0.51189", "0.510289", "0.50969267", "0.50927824", "0.5087136", "0.5086416", "0.5083967", "0.50521696", "0.5040189", "0.5020837", "0.5003069", "0.500223", "0.49977696", "0.49958935", "0.4991301", "0.4990335", "0.49801296", "0.49798268", "0.49726582", "0.49628899", "0.49584463", "0.49518067", "0.4944988", "0.49441", "0.49440697", "0.49376333", "0.49338934", "0.4933427", "0.49291968", "0.49291968", "0.49291968", "0.49284244", "0.49273187", "0.49265268", "0.49127364", "0.49110302", "0.49059737", "0.49029022", "0.48989803", "0.4897829", "0.48925507", "0.4889604", "0.48839352", "0.48779052", "0.48750436", "0.4873763", "0.48729947", "0.48712155", "0.4870272" ]
0.80088913
0
Creating an instance of GeoCoder class
@Override protected List<Address> doInBackground(String... locationName) { Geocoder geocoder = new Geocoder(getBaseContext()); List<Address> addresses = null; try { // Getting a maximum of 10 Address that matches the input text addresses = geocoder.getFromLocationName(locationName[0], 10); } catch (IOException e) { e.printStackTrace(); } return addresses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static GeoCoderInterface createGeoCoder(){\n\t\tif (Config.default_geo_api.equals(OSM)){\n\t\t\t//TODO: implement\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}else if (Config.default_geo_api.equals(GOOGLE)){\n\t\t\treturn new GeoCoderGoogle();\n\t\t}else if (Config.default_geo_api.equals(GRAPHHOPPER)){\n\t\t\treturn new GeoCoderGraphhopper();\n\t\t}else{\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}\n\t}", "@Test\n public void test3() throws Exception {\n GeoCoder g = new GeoCoder();\n String zip = \"12028\";\n String state = \"New York\";\n String city = \"Buskirk\";\n String address = \"\";\n g = g.geoCoding(address, city, state, zip);\n }", "public GeocodingException() {\n\t}", "@Test\n public void test2() throws Exception {\n GeoCoder g = new GeoCoder();\n String country = \"Saint Clair\";\n String zip = \"35004\";\n String state = \"Alabama\";\n String city = \"Moody\";\n String address = \"\";\n g.geoCoding(address, city, state, zip);\n }", "private GeoUtil()\n\t{\n\t}", "public GeocodingGoogle() throws Exception{\n //lisdataFileRead();\n //findLocationNameFromApi();\n lisdataDBReadToGoogleAPIAccess();\n }", "Geq createGeq();", "@Test\n public void testLocation() throws Exception {\n GeoCoder g = new GeoCoder();\n String location = \"Eastern,NY\";\n g.geoCoding(location);\n }", "public MapContainer() {\n this(new OpenStreetMapProvider());\n }", "public DataGeocoderImpl() {\r\n\t\tmanager = DALLocator.getDataManager();\r\n\t}", "public MKMapView() {}", "public GeotiffDataSource() {}", "public interface GeocodeService {\n\n /**\n * Gets a list of possible {@link org.gbif.geocode.api.model.Location}s for coordinates.\n *\n * @return a list of Locations that fit the provided coordinates in no particular order\n */\n public List<Location> get(Double latitude, Double longitude, Double uncertaintyDegrees, Double uncertaintyMeters);\n\n /**\n * Gets a list of possible {@link org.gbif.geocode.api.model.Location}s for coordinates.\n *\n * @return a list of Locations that fit the provided coordinates in no particular order\n */\n public List<Location> get(Double latitude, Double longitude, Double uncertaintyDegrees, Double uncertaintyMeters, List<String> layers);\n\n /**\n * Gets a PNG bitmap suitable for using as a client-side cache/lookup table.\n */\n public byte[] bitmap();\n}", "private ZipCodes() {}", "public Location() {\n\t}", "public Location() {\n }", "public MyLocation() {}", "public Location() {\r\n \r\n }", "public void initMap() {\r\n\r\n\t\tproviders = new AbstractMapProvider[3];\t\r\n\t\tproviders[0] = new Microsoft.HybridProvider();\r\n\t\tproviders[1] = new Microsoft.RoadProvider();\r\n\t\tproviders[2] = new Microsoft.AerialProvider();\r\n\t\t/*\r\n\t\t * providers[3] = new Yahoo.AerialProvider(); providers[4] = new\r\n\t\t * Yahoo.RoadProvider(); providers[5] = new OpenStreetMapProvider();\r\n\t\t */\r\n\t\tcurrentProviderIndex = 0;\r\n\r\n\t\tmap = new InteractiveMap(this, providers[currentProviderIndex],\r\n\t\t\t\tUtilities.mapOffset.x, Utilities.mapOffset.y,\r\n\t\t\t\tUtilities.mapSize.x, Utilities.mapSize.y);\r\n\t\tmap.panTo(locationUSA);\r\n\t\tmap.setZoom(minZoom);\r\n\r\n\t\tupdateCoordinatesLimits();\r\n\t}", "public Region() { }", "public MapPanel() {\r\n\t\tthis(EarthFlat.class);\r\n\t}", "public GPS newInstace(@Nullable Bundle bundle){\n return new GPS();\n }", "public static GeoLocalization getInstance() {\n return geoLocInstance;\n }", "public Region() {\n }", "private LocationContract() {}", "public Country() {}", "public LocationData()\n {\n }", "Coordinate createCoordinate();", "private LocatorFactory() {\n }", "public PostalCodeDataBase()\n {\n codeToCityMap = new HashMap<String, Set<String>>();\n // additional instance variable(s) to be initialized in part (b)\n }", "public Map() {\n\n\t\t}", "Location createLocation();", "Location createLocation();", "Location createLocation();", "public Lat2() {\n initComponents();\n }", "private LocationService() {\n }", "public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new Random(56789);\n\t}", "public Population (Coordinate location){\n this.location = location;\n }", "public Location(String state, String city) {\n try {\n this.city = city;\n this.state = state;\n\n Table<String,String,Demographics> allDemographics = Demographics.load(state);\n\n // this still works even if only 1 city given,\n // because allDemographics will only contain that 1 city\n // we copy the Map returned by the Google Table.row since the implementing\n // class is not serializable\n this.demographics = new HashMap<String, Demographics>(allDemographics.row(state));\n\n if (city != null\n && demographics.values().stream().noneMatch(d -> d.city.equalsIgnoreCase(city))) {\n throw new Exception(\"The city \" + city\n + \" was not found in the demographics file for state \" + state + \".\");\n }\n\n long runningPopulation = 0;\n // linked to ensure consistent iteration order\n populationByCity = new LinkedHashMap<>();\n populationByCityId = new LinkedHashMap<>();\n // sort the demographics to ensure tests pass regardless of implementing class\n // for this.demographics, see comment above on non-serializability of Google Table.row\n ArrayList<Demographics> sortedDemographics =\n new ArrayList<Demographics>(this.demographics.values());\n Collections.sort(sortedDemographics);\n for (Demographics d : sortedDemographics) {\n long pop = d.population;\n runningPopulation += pop;\n if (populationByCity.containsKey(d.city)) {\n populationByCity.put(d.city, pop + populationByCity.get(d.city));\n } else {\n populationByCity.put(d.city, pop);\n }\n populationByCityId.put(d.id, pop);\n }\n\n totalPopulation = runningPopulation;\n } catch (Exception e) {\n System.err.println(\"ERROR: unable to load demographics\");\n e.printStackTrace();\n throw new ExceptionInInitializerError(e);\n }\n\n String filename = null;\n try {\n filename = Config.get(\"generate.geography.zipcodes.default_file\");\n String csv = Utilities.readResource(filename, true, true);\n List<? extends Map<String,String>> ziplist = SimpleCSV.parse(csv);\n\n zipCodes = new HashMap<>();\n for (Map<String,String> line : ziplist) {\n Place place = new Place(line);\n\n if (!place.sameState(state)) {\n continue;\n }\n\n if (!zipCodes.containsKey(place.name)) {\n zipCodes.put(place.name, new ArrayList<Place>());\n }\n zipCodes.get(place.name).add(place);\n }\n } catch (Exception e) {\n System.err.println(\"ERROR: unable to load zips csv: \" + filename);\n e.printStackTrace();\n throw new ExceptionInInitializerError(e);\n }\n\n socialDeterminantsOfHealth = new HashMap<String, Map<String, Double>>();\n try {\n filename = Config.get(\"generate.geography.sdoh.default_file\",\n \"geography/sdoh.csv\");\n String csv = Utilities.readResource(filename, true, true);\n List<? extends Map<String,String>> sdohList = SimpleCSV.parse(csv);\n\n for (Map<String,String> line : sdohList) {\n String lineState = line.remove(\"STATE\");\n if (!lineState.equalsIgnoreCase(state)) {\n continue;\n }\n line.remove(\"FIPS_CODE\");\n line.remove(\"COUNTY_CODE\");\n String county = line.remove(\"COUNTY\");\n line.remove(\"ST\");\n\n Map<String, Double> sdoh = new HashMap<String, Double>();\n for (String attribute : line.keySet()) {\n Double probability = Double.parseDouble(line.get(attribute));\n sdoh.put(attribute.toLowerCase(), probability);\n }\n\n socialDeterminantsOfHealth.put(county, sdoh);\n }\n } catch (Exception e) {\n System.err.println(\"WARNING: unable to load SDoH csv: \" + filename);\n e.printStackTrace();\n }\n\n if (!socialDeterminantsOfHealth.isEmpty()) {\n Map<String, Double> averages = new HashMap<String, Double>();\n for (String county : socialDeterminantsOfHealth.keySet()) {\n Map<String, Double> determinants = socialDeterminantsOfHealth.get(county);\n for (String determinant : determinants.keySet()) {\n Double probability = determinants.get(determinant);\n Double sum = averages.getOrDefault(determinant, 0.0);\n averages.put(determinant, probability + sum);\n }\n }\n for (String determinant : averages.keySet()) {\n Double probability = averages.get(determinant);\n averages.put(determinant, (probability / socialDeterminantsOfHealth.keySet().size()));\n }\n socialDeterminantsOfHealth.put(\"AVERAGE\", averages);\n }\n }", "MAP createMAP();", "public static Builder newBuilder() {\n return new AutoValue_GeoJsonFeature.Builder();\n }", "public static PoiFinderInterface createPoiFinder(){\n\t\tif (Config.default_poi_api.equals(OSM)){\n\t\t\t//TODO: implement\n\t\t\tDebugger.println(\"GeoFactory - unknown PoiFinderInterface: \" + Config.default_poi_api, 1);\n\t\t\treturn null;\n\t\t}else if (Config.default_poi_api.equals(GOOGLE)){\n\t\t\treturn new PoiFinderGoogle();\n\t\t}else if (Config.default_poi_api.equals(GRAPHHOPPER)){\n\t\t\treturn new PoiFinderGraphhopper();\n\t\t}else{\n\t\t\tDebugger.println(\"GeoFactory - unknown PoiFinderInterface: \" + Config.default_poi_api, 1);\n\t\t\treturn null;\n\t\t}\n\t}", "public Population (float longitude, float latitude){\n this.location = new Coordinate (longitude,latitude);\n }", "public Coordenada() {\n }", "protected MapImpl() {\n }", "public FactoryMapImpl()\n {\n super();\n }", "City(int 1_x_coordinate, int 1_y_coordinate, String name_coordinate){\n x_coordinate = 1_x_coordinate;\n y_coordinate = 1_y_coordinate;\n city_name = name_coordinate;\n }", "public interface GeoInterface {\n\t// infinity value\n\tstatic final double INF = Double.MAX_VALUE;\n\t// small number (less than this is consider as zero)\n\tstatic final double SMALL_NUM = 0.0001;\n\t\t\n\t// perimeter of the maximum area this application covers (map area)\n\t// grid/space dimensions\t\t //# Dataset\t\t\t\t\t//# Query \t\n\tfinal static double MIN_X = 52.0; // MinX: 52.99205499607079 // Min X: 375.7452259303738\n\tfinal static double MIN_Y = -21.0; // MinY: -20.08557496216634 // Min Y: 16.319751123918174\n\tfinal static double MAX_X = 717.0; // MaxX: 716.4193496072005 // Max X: 576.9230902330686\n\tfinal static double MAX_Y = 396.0; // MaxY: 395.5344310979076 // Max Y: 234.80924053063617\n\t\n\t// Earth radius (average) in meters\n\tstatic final int EARTH_RADIUS = 6371000;\n\t\n\t// pi\n\tstatic final double PI = Math.PI;\n}", "public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}", "public Surgeon() {\n }", "public ProductLocation() {\n }", "public MapTile() {}", "public MapController() {\r\n\t}", "public GoogleApiA() {}", "public Steganography() {}", "public Map(ArrayList<City> cities, ArrayList<PointOfInterest> points, ArrayList<Region> regions, int type, int length, int breadth) {\n\t\ttry { \n\t \t this.image = ImageIO.read(new File(\"map.jpg\"));\n\t \t\t} catch (IOException ex) {\n\t \t System.out.println(\"I could not find the image file.\");\n\t \t\t}\n\t \t\tthis.cities = cities;\n\t \t\tthis.points = points;\n\t \t\tthis.type = type;\n\t \t\tthis.regions = regions;\n\t \t\tthis.breadth = breadth;\n\t \t\tthis.length = length;\n \t}", "public GeoPoint(int latitude, int longitude) {\n this.latitude = latitude;\n this.longitude = longitude;\n checkRep();\n }", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "public Location(String store_name, String store_location, String address, String city, String state, String zip_code, double latitude, double longitude, String county)\n\t{\n super();\n this.store_name = store_name;\n this.store_location = store_location;\n this.address = address;\n this.city = city;\n this.state = state;\n this.zip_code = zip_code;\n this.latitude = latitude;\n this.longitude = longitude;\n this.county = county;\n }", "private void init(Bundle savedInstanceState) {\n googleApiClient = new GoogleApiClient.Builder(getContext())\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n geocoder = new Geocoder(getContext(), Locale.getDefault());\n }", "public Country (String instanceName)\n {\n name = instanceName;\n }", "private Geo getGeoForAddress(String address) {\n Address addr = daDataStandartization.cleanAddress(address);\n Geo geo = new Geo();\n geo.setLatitude(addr.getGeoLat());\n geo.setLongitude(addr.getGeoLon());\n return geo;\n }", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public LocationBuilder() {\n super(\"locations\");\n }", "public PointOfInterest() {\n }", "public MapOther() {\n }", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "public Address() {\n\t}", "public lat4() {\n initComponents();\n }", "public Address() {}", "public OperationFactory() {\n initMap();\n }", "private DistanceConverter() {\n }", "public RoadTest()\n {\n }", "private Mapper() {\n\n }", "public MapResult() {\n }", "public Address() {\n }", "public Address() {\n }", "public SeatLocation() {\n }", "public RadarMap() {\n initComponents();\n }", "public EncodingMap() {}", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }", "public ExplorerStrategy() {\n\t\tmap = new AIMap();\n\t}", "public static FeatureGroupMappingFactory init()\r\n {\r\n try\r\n {\r\n FeatureGroupMappingFactory theFeatureGroupMappingFactory = (FeatureGroupMappingFactory)EPackage.Registry.INSTANCE.getEFactory(FeatureGroupMappingPackage.eNS_URI);\r\n if (theFeatureGroupMappingFactory != null)\r\n {\r\n return theFeatureGroupMappingFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new FeatureGroupMappingFactoryImpl();\r\n }", "@SuppressWarnings(\"all\")\r\n\tpublic Map(String map, Location mapLocation){\r\n\t\tMapPreset preset = MapPreset.presets.get(map);\r\n\t\tif (preset != null){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tfinal World world = mapLocation.getWorld();\r\n\t\t\t\tfinal double x = mapLocation.getX();\r\n\t\t\t\tfinal double y = mapLocation.getY();\r\n\t\t\t\tfinal double z = mapLocation.getZ();\r\n\t\t\t\tfinal float pitch = mapLocation.getPitch();\r\n\t\t\t\tfinal float yaw = mapLocation.getYaw();\r\n\t\t\t\t\t\t\r\n\t\t\t\tfinal Float[] alliesBase = preset.getSpawnAllies();\r\n\t\t\t\tfinal Float[] axisBase = preset.getSpawnAxis();\r\n\t\t\t\t\r\n\t\t\t\tfinal Float[] bombA = preset.getBombA();\r\n\t\t\t\tfinal Float[] bombB = preset.getBombB();\r\n\t\t\t\t\r\n\t\t\t\tfinal Float[] domA = preset.getDomA();\r\n\t\t\t\tfinal Float[] domB = preset.getDomB();\r\n\t\t\t\tfinal Float[] domC = preset.getDomC();\r\n\t\t\t\t\r\n\t\t\t\tmainSpawn = mapLocation;\r\n\t\t\t\talliesSpawn = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + alliesBase[0], \r\n\t\t\t\t\t\ty + alliesBase[1], \r\n\t\t\t\t\t\tz + alliesBase[2],\r\n\t\t\t\t\t\talliesBase[3], \r\n\t\t\t\t\t\talliesBase[4]);\r\n\t\t\t\t\r\n\t\t\t\taxisSpawn = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + axisBase[0], \r\n\t\t\t\t\t\ty + axisBase[1], \r\n\t\t\t\t\t\tz + axisBase[2],\r\n\t\t\t\t\t\taxisBase[3], \r\n\t\t\t\t\t\taxisBase[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.bombA = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + bombA[0], \r\n\t\t\t\t\t\ty + bombA[1], \r\n\t\t\t\t\t\tz + bombA[2],\r\n\t\t\t\t\t\tbombA[3], \r\n\t\t\t\t\t\tbombA[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.bombB = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + bombB[0], \r\n\t\t\t\t\t\ty + bombB[1], \r\n\t\t\t\t\t\tz + bombB[2],\r\n\t\t\t\t\t\tbombB[3], \r\n\t\t\t\t\t\tbombB[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.domA = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + domA[0], \r\n\t\t\t\t\t\ty + domA[1], \r\n\t\t\t\t\t\tz + domA[2],\r\n\t\t\t\t\t\tdomA[3], \r\n\t\t\t\t\t\tdomA[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.domB = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + domB[0], \r\n\t\t\t\t\t\ty + domB[1], \r\n\t\t\t\t\t\tz + domB[2],\r\n\t\t\t\t\t\tdomB[3], \r\n\t\t\t\t\t\tdomB[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.domC = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + domC[0], \r\n\t\t\t\t\t\ty + domC[1], \r\n\t\t\t\t\t\tz + domC[2],\r\n\t\t\t\t\t\tdomC[3], \r\n\t\t\t\t\t\tdomC[4]);\r\n\t\t\t\t\r\n\t\t\t\tfor (Float[] spawnpoint : preset.getSpawnpoints()){\r\n\t\t\t\t\tspawnsList.add(new Location(\r\n\t\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\t\tx + spawnpoint[0], \r\n\t\t\t\t\t\t\ty + spawnpoint[1], \r\n\t\t\t\t\t\t\tz + spawnpoint[2], \r\n\t\t\t\t\t\t\tspawnpoint[3], \r\n\t\t\t\t\t\t\tspawnpoint[4]));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tmapID = maps.size()+1;\r\n\t\t\t\tmapName = map;\r\n\t\t\t\tmapAvailable.add(mapID);\r\n\t\t\t\tmaps.put(maps.size()+1, this);\r\n\t\t\t} catch (Exception e){\r\n\t\t\t\tFPSCaste.log(\"Something went wrong! disabling map: \" + map, Level.WARNING);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFPSCaste.log(\"Could not initialise the Map \" + map, Level.WARNING);\r\n\t\t}\r\n\t}", "@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 Aritmetica(){ }", "public abstract void createMap();", "public Geometrie(float x, float y) {\r\n\t\tsuper.position = new Punkt(x, y);\r\n\t\tdimension = new BoundingRechteck(x, y, 0, 0);\r\n\t}", "public static SolrGeocoder make_geocode(URL url, ObjectMapper json) throws Exception\n {\n SolrResponse rep = json.readValue(url, SolrResponse.class);\n return rep.response;\n }", "@Override\n protected Void doInBackground(Void... voids) {\n\n\n Geocoder gc = new Geocoder(MainActivity.this);\n\n Log.d(\"florianBurel\", \"gc - isPresent : \" + (gc.isPresent() ? \"YES\" : \"NO\"));\n\n try {\n List<Address> addresses = gc.getFromLocation(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude(), 1);\n\n Log.d(\"florianBurel\", addresses.size() + \" addresses found\");\n\n //city.setName(addresses.get(0).getLocality());\n\n } catch (IOException e) {\n city.setName(\"Unknown Location\");\n }\n\n\n\n\n return null;\n }", "public City(String map_file) throws FileNotFoundException {\r\n\t\tthis.map = new RoadMap(map_file);\r\n\t\tthis.size_w = map.sizeX;\r\n\t\tthis.size_h = map.sizeY;\r\n\t\tcity_squares = new Gridpanel[getSize_h()][getSize_w()];\r\n\t}", "public Egrga() {\r\n\t}", "public FeatureGroupMappingFactoryImpl()\r\n {\r\n super();\r\n }", "public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}", "public Example() {\n this.api = new MetaMapApiImpl();\n }", "public Geominas getGeominas(String geoCod) throws Exception;", "public City() {\n\t}", "public City() {\n\t}", "public ConnectedMap() {\n }", "public Map(PApplet p, String id, float x, float y, float width, float height, boolean useMask,\n \t\t\tboolean useDistortion, AbstractMapProvider provider) {\n \t\tthis.p = p;\n \n \t\tthis.id = id;\n \t\tthis.x = x;\n \t\tthis.y = y;\n \t\tthis.width = width;\n \t\tthis.height = height;\n \n \t\tthis.mapDisplay = MapDisplayFactory.getMapDisplay(p, id, x, y, width, height, useMask,\n \t\t\t\tuseDistortion, provider);\n \t\t\n \t\tpanCenterZoomTo(PRIME_MERIDIAN_EQUATOR_LOCATION, DEFAULT_ZOOM_LEVEL);\n \t}" ]
[ "0.73216057", "0.66273546", "0.6528163", "0.6527002", "0.64056563", "0.63441604", "0.6253275", "0.61861855", "0.6167473", "0.60236514", "0.6003445", "0.59400827", "0.59372705", "0.5871595", "0.5850761", "0.5837278", "0.58106935", "0.57839644", "0.5744116", "0.5670102", "0.558845", "0.5565693", "0.5553705", "0.55277896", "0.552679", "0.55201286", "0.54752475", "0.54747605", "0.54691666", "0.54661316", "0.545129", "0.5432687", "0.5432687", "0.5432687", "0.54288155", "0.54242057", "0.5392436", "0.53732383", "0.5358524", "0.53355896", "0.5322843", "0.5297623", "0.5295812", "0.52772135", "0.52631766", "0.52315784", "0.52256966", "0.5223717", "0.5218432", "0.5218065", "0.520458", "0.5196129", "0.5188508", "0.5181658", "0.5181522", "0.5180383", "0.5175442", "0.5171593", "0.51685107", "0.5166252", "0.5163212", "0.51625127", "0.5160865", "0.515603", "0.51522666", "0.5150176", "0.5122621", "0.5122442", "0.511624", "0.51144814", "0.5096954", "0.5094127", "0.5092233", "0.5084274", "0.50810146", "0.50785553", "0.50785553", "0.5074939", "0.5068108", "0.5065344", "0.5059065", "0.50585973", "0.5053145", "0.50459284", "0.5037651", "0.503758", "0.50323874", "0.5029017", "0.502364", "0.5022032", "0.50167", "0.5010394", "0.5007609", "0.5001176", "0.49952346", "0.4992451", "0.499184", "0.49847192", "0.49847192", "0.4981584", "0.49778196" ]
0.0
-1
Created by Administrator on 2018/1/27.
public interface SinaApiService { @GET("cgi-bin/pitu_open_access_for_youtu.fcg") Observable<MoveListBean> faceMerge(@Header("Authorization") String appSign, @Body RequestBody body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n public Date getCreated()\n {\n return null;\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "public static void created() {\n\t\t// TODO\n\t}", "CreationData creationData();", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private static void oneUserExample()\t{\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\n public void memoria() {\n \n }", "public void autoDetails() {\n\t\t\r\n\t}", "public contrustor(){\r\n\t}", "public final void mo51373a() {\n }", "public Pitonyak_09_02() {\r\n }", "private Rekenhulp()\n\t{\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 dormir() {\n\t\t\r\n\t}", "public Ludo() {\n this.status = \"Created\";\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private UsineJoueur() {}", "public void mo38117a() {\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}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "private Singletion3() {}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "protected Doodler() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void verarbeite() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public DateTime getCreationTime() {\n return created;\n }", "public Date getDateCreated(){return DATE_CREATED;}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "@Override\n public String toString() {\n return \"\";\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private DittaAutonoleggio(){\n \n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\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 public void save() {\n \n }", "@Override\n protected void getExras() {\n }", "private CreateDateUtils()\r\n\t{\r\n\t}", "UUID getCreatedUUID()\n {\n return conglomerateUUID;\n }", "@Override\n public void save()\n {\n \n }", "@Override\n protected void execute() {\n \n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "public DateTime getCreationTime() { return creationTime; }", "private Template() {\r\n\r\n }", "public Date getCreationTime()\n {\n return created;\n }", "private void AutoID() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "Consumable() {\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "private SingleTon() {\n\t}", "private EstabelecimentoTable() {\n\t\t\t}", "@Override\n public int describeContents() { return 0; }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public Date getCreated() {\n return created;\n }", "@Override\n protected void startUp() {\n }", "private Aliyun() {\n\t\tsuper();\n\t}", "@Override\n protected void execute() {\n \n }", "public abstract String getCreator();", "private RefereesInLeagueDBAccess() {\n\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public String getName() {\n return null;\n }", "@Override\n\tprotected void logic() {\n\n\t}" ]
[ "0.61521745", "0.593712", "0.5846531", "0.5806866", "0.57831645", "0.5763268", "0.57575345", "0.5703714", "0.5700674", "0.57006615", "0.56996095", "0.56731445", "0.56589705", "0.5625887", "0.5623783", "0.56149673", "0.5584452", "0.5582607", "0.55716187", "0.5563597", "0.55616885", "0.55540997", "0.5540416", "0.5535213", "0.552183", "0.55051893", "0.5503742", "0.55036175", "0.5503615", "0.5502501", "0.5495396", "0.54676807", "0.54629475", "0.54517204", "0.5449498", "0.54443914", "0.5430201", "0.5430201", "0.5423323", "0.5422518", "0.54197884", "0.54197884", "0.5411334", "0.5411165", "0.5409807", "0.5393206", "0.53814214", "0.5380959", "0.53767496", "0.5359346", "0.5349606", "0.5345793", "0.534079", "0.5335344", "0.5335344", "0.5335344", "0.5335344", "0.5335344", "0.5335344", "0.53350675", "0.53313607", "0.5327083", "0.53218323", "0.5314435", "0.53086305", "0.53079295", "0.53079295", "0.53079295", "0.53079295", "0.53079295", "0.53079295", "0.53079295", "0.53076756", "0.5301659", "0.5293333", "0.52931345", "0.5292687", "0.52786595", "0.52763283", "0.52707714", "0.5267434", "0.52631134", "0.52601236", "0.5256254", "0.5255569", "0.5255538", "0.5253649", "0.5249903", "0.5245181", "0.52363694", "0.5235978", "0.52342755", "0.52315205", "0.5229739", "0.5225443", "0.5212907", "0.5212565", "0.5206176", "0.5198918", "0.5198689", "0.51980174" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Map<Club,Map<String,List<Player>>> complexMap = PlayerDB.fetchAllPlayers().stream() .collect(Collectors.groupingBy(Player::getClub, Collectors.groupingBy(player -> { Player p = (Player)player; return p.getAge() <=33 ? "young": "old"; }))); //System.out.println(complexMap); Map<Club,Long> countKing = PlayerDB.fetchAllPlayers().stream() .collect(Collectors.groupingBy(Player::getClub, Collectors.counting())); System.out.println(countKing); }
{ "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
=========================================================== Constructors =========================================================== This constructs a type that references some bound variable.
public MTNamed(TypeGraph g, String name) { super(g); myName = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ReferenceBound(ReferenceType boundType) {\n this.boundType = boundType;\n }", "VariableRef createVariableRef();", "VarReference createVarReference();", "BoundObject(){}", "VarRef createVarRef();", "<C, PM> Variable<C, PM> createVariable();", "public static TypeReference newTypeParameterBoundReference(int sort, int paramIndex, int boundIndex) {\n/* 241 */ return new TypeReference(sort << 24 | paramIndex << 16 | boundIndex << 8);\n/* */ }", "public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {\n AnnotatedType referencedTypeVariable = getAnnotatedType();\n TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);\n return typeInstance;\n }", "Variable createVariable();", "Variable createVariable();", "ControlVariable createControlVariable();", "public org.python.types.Type __new__(org.python.types.Type cls);", "private ConsistentVariable(String name, Class<V> type, V initValue, long initVersion) {\n super(name, type);\n versionedValue = new AtomicReference<>(new VersionedValue<>(initVersion, initValue));\n }", "public ReferenceType(Name name) {\n super(name.line, name.byteOffset);\n this.name = name;\n }", "public abstract R createReference(T type, Object value);", "public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }", "public TypeRef(Type genericType) {\n if (genericType == null) {\n throw new IllegalArgumentException(\"Type must not be null\");\n }\n\n type_ = genericType;\n }", "public Variable(boolean vInitialized, boolean vFinal, Keywords.Type Vtype) {\n\t\tisInitialized = vInitialized;\n\t\tisFinal = vFinal;\n\t\ttype = Vtype;\n\t}", "HxType createReference(final String className);", "public /* synthetic */ Binding(TypeToken typeToken, Object obj, int i, j jVar) {\n this(typeToken, (i & 2) != 0 ? null : obj);\n }", "private ClassReference(Primitive primitive, String className, int arrayDimension) {\n\t\tthis.primitive = primitive;\n\t\tthis.className = className;\n\t\tthis.arrayDimension = arrayDimension;\n\t}", "HxType createReference(final HxType resolvedType);", "public Reference() {\n super();\n }", "public OCBase(OCInteger lenType)\r\n {\r\n this.lenType = lenType;\r\n }", "Binding<T> fixed();", "public abstract BoundType b();", "<C, PM> VariableExp<C, PM> createVariableExp();", "FieldRefType createFieldRefType();", "public Variable(String s, String in, String nom, int a, int b) {\n ident=new String(s);\n internal=new String(in);\n if (nom!=null) {name=new String(nom);} else {name=\"(Variable interne)\";}\n lowbound=a;\n highbound=b;\n noccur=0;\n \n \n }", "DynamicVariable createDynamicVariable();", "public LiveRef(int paramInt) {\n/* 74 */ this(new ObjID(), paramInt);\n/* */ }", "AliasVariable createAliasVariable();", "BType createBType();", "<T extends Binding> PhysicalWireDefinition generateBoundReference(LogicalBinding<T> binding) throws Fabric3Exception;", "VarAssignment createVarAssignment();", "Variable(String _var) {\n this._var = _var;\n }", "public interface Binding {\n\n /**\n * Get the declared type of the variable\n * @return the declared type\n */\n\n public SequenceType getRequiredType();\n\n /**\n * Evaluate the variable\n * @param context the XPath dynamic evaluation context\n * @return the result of evaluating the variable\n */\n\n public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException;\n\n /**\n * Indicate whether the binding is local or global. A global binding is one that has a fixed\n * value for the life of a query or transformation; any other binding is local.\n * @return true if the binding is global\n */\n\n public boolean isGlobal();\n\n /**\n * If this is a local variable held on the local stack frame, return the corresponding slot number.\n * In other cases, return -1.\n * @return the slot number on the local stack frame\n */\n\n public int getLocalSlotNumber();\n\n /**\n * Get the name of the variable\n * @return the name of the variable, as a structured QName\n */\n\n public StructuredQName getVariableQName();\n\n}", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "public abstract BoundType a();", "c(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "b(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public LiveRef(ObjID paramObjID, int paramInt) {\n/* 93 */ this(paramObjID, TCPEndpoint.getLocalEndpoint(paramInt), true);\n/* */ }", "public PhpVariableRef(String name, Location location, String scope) {\n\t\tsuper(name, location);\n\t\tthis.scope = scope;\n\t}", "public abstract Type createRangeType(ReferenceType bottom);", "public Type() {\n super();\n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "VariableExp createVariableExp();", "public Exp createBind(Expression exp, Variable var){\r\n if (var.getVariableList() != null){\r\n // bind (sql() as ())\r\n return createASTBind(exp, var);\r\n }\r\n else {\r\n return Binding.create(exp, var);\r\n }\r\n }", "public TypedValueHolderValueRef(TypedValue typedValue, SpelNodeImpl node) {\n this.typedValue = typedValue;\n this.node = node;\n }", "public ReocType() \r\n {\r\n super();\r\n }", "Type() {\n }", "public Variable(String name){\n this.name = name;\n }", "d(b bVar) {\n super(2);\n this.this$0 = bVar;\n }", "public Generic(){\n\t\tthis(null);\n\t}", "d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public ReferenceRange() {\n\t\tsuper();\n\t\tmRr = CDAFactory.eINSTANCE.createReferenceRange();\n\t\tmRr.setObservationRange(getObsR());\n\t\tmRr.setTypeCode(ActRelationshipType.REFV);\n\t\tthis.setInterpretationCode(ObservationInterpretation.NORMAL);\n\t}", "public Definition(String declaredName, PhotranTokenRef tokenRef, Classification classification, Visibility visibility, Type type)\n {\n this.classification = classification;\n \tthis.tokenRef = tokenRef;\n \tthis.declaredName = declaredName;\n \tthis.canonicalizedName = canonicalize(declaredName);\n this.visibility = visibility; //Visibility.INHERIT_FROM_SCOPE;\n this.type = type;\n this.arraySpec = null;\n }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public SimpleGeneric(T param) {\n this.objRef = param;\n }", "public GlobalVariable() {\n }", "public Scriptable construct(Context cx, Scriptable scope, Object[] args);", "public Object clone() { return new ReferenceType((Name) name.clone()); }", "ComponentRefType createComponentRefType();", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "ReferenceProperty createReferenceProperty();", "public PTypeSkel instanciate(PTypeSkel.InstanciationBindings iBindings) {\n PTypeSkel[] ps = new PTypeSkel[this.params.length];\n for (int i = 0; i < ps.length; i++) {\n ps[i] = this.params[i].instanciate(iBindings);\n }\n return create(this.defDictGetter, this.srcInfo, this.tconProps, this.ext, ps);\n// /* DEBUG */ PTypeRefSkel t = create(this.defDictGetter, this.srcInfo, this.tconProps, this.ext, ps);\n// /* DEBUG */ System.out.print(\"INSTANCIATE ! \"); System.out.print(this); System.out.print(\" => \"); System.out.println(t);\n// /* DEBUG */ return t;\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public VariablePrimitive(String nom) {\n\t\tsuper(nom, true);\n\t}", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "public Binding(TBTermVar var, ATerm val, boolean isFormal){\n\t\tthis.var = var;\n\t\tthis.val = val;\n\t\tthis.formal = isFormal;\n\t\tname = var.getVarName();\n\t}", "public BaseScope() {\n\t}", "protected Variable(final CharSequence name, final Term scope) {\n super(); \n setScope(scope, name);\n }", "@DataBoundConstructor\n public DynamicReferenceParameter(String name, String description, String randomName, Script script,\n String choiceType, String referencedParameters, Boolean omitValueField) {\n super(name, description, randomName, script, referencedParameters);\n this.choiceType = StringUtils.defaultIfBlank(choiceType, PARAMETER_TYPE_SINGLE_SELECT);\n this.omitValueField = BooleanUtils.toBooleanDefaultIfNull(omitValueField, Boolean.FALSE);\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "private cat.footoredo.mx.ir.Variable ref (Entity entity) {\n return new cat.footoredo.mx.ir.Variable(varType(entity.getType()), entity);\n }", "public VariableBinding formVarbind(MetaData mdata) {\n VariableBinding vbind = null;\n if (mdata.m_oidValue != null) {\n vbind = new VariableBinding(new OID(mdata.m_oid), castOidType(mdata.m_oidType, mdata.m_oidValue));\n }\n return vbind;\n }", "public Value(){}", "public TypeData(ClassData baseClass) {\n this.baseClass = baseClass;\n //this.restriction = \n }", "private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }", "public LocalObject() {}", "public abstract int getBindingVariable();", "public IVariable createInternalVariable(String name, IJavaType referencType) {\n IVariable var = new InterpreterVariable(name, referencType, fContext.getVM());\n fInternalVariables.put(name, var);\n return var;\n }", "public ActRuVariable(Name alias) {\n this(alias, ACT_RU_VARIABLE);\n }", "public VariableIF createVariable(VariableDecl decl);", "protected GEDCOMType() {/* intentionally empty block */}", "public ClassReference(CharBuffer descriptor) {\n\t\tPrimitive primitive;\n\t\tString className;\n\t\tint arrayDimension = 0;\n\t\tchar chr;\n\t\t//array dimensions are indicated by '['s at the beginning of the descriptor\n\t\twhile ((chr = descriptor.get()) == '[') {\n\t\t\tarrayDimension++;\n\t\t}\n\t\t//then the class type of the descriptor is specified by the next character \n\t\tswitch (chr) {\n\t\tcase 'B':\n\t\t\tprimitive = Primitive.BYTE;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tprimitive = Primitive.CHAR;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tprimitive = Primitive.DOUBLE;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'F':\n\t\t\tprimitive = Primitive.FLOAT;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'I':\n\t\t\tprimitive = Primitive.INT;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'J':\n\t\t\tprimitive = Primitive.LONG;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'L':\n\t\t\t//objects have their name following the 'L', terminated by a semicolon\n\t\t\tStringBuilder temp = new StringBuilder();\n\t\t\twhile ((chr = descriptor.get()) != ';') {\n\t\t\t\ttemp.append(chr);\n\t\t\t}\n\t\t\t//the JVM uses '/' instead of '.' for package/class separation\n\t\t\tclassName = temp.toString().replace('/', '.');\n\t\t\tprimitive = Primitive.REFERENCE;\n\t\t\tbreak;\n\t\tcase 'S':\n\t\t\tprimitive = Primitive.SHORT;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'V':\n\t\t\tprimitive = Primitive.VOID;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tcase 'Z':\n\t\t\tprimitive = Primitive.BOOLEAN;\n\t\t\tclassName = primitive.name;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new ClassFormatException(\"Invalid class type in descriptor!\");\n\t\t}\n\t\t//this annoys me, but constructor calls can only be the first operation of a constructor, so we have to manually set things\n\t\tthis.primitive = primitive;\n\t\tthis.className = className;\n\t\tthis.arrayDimension = arrayDimension;\n\t}", "BParameterTyping createBParameterTyping();", "public static TypeReference newTypeArgumentReference(int sort, int argIndex) {\n/* 320 */ return new TypeReference(sort << 24 | argIndex);\n/* */ }", "a(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "public static TypeReference newFormalParameterReference(int paramIndex) {\n/* 268 */ return new TypeReference(0x16000000 | paramIndex << 16);\n/* */ }", "public Obj(ObjKind kind, String name, Type type) {\n this.kind = kind;\n this.name = name;\n this.type = type;\n\n\n\n if(kind==ObjKind.PROC||kind==ObjKind.TYPE){\n localScope=new Scope();\n nPars=0;\n }\n }", "public static TypeReference newTypeParameterReference(int sort, int paramIndex) {\n/* 222 */ return new TypeReference(sort << 24 | paramIndex << 16);\n/* */ }", "public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }", "public ScopeDefinition$declareNewDefinition$beanDefinition$1(T t) {\n super(2);\n this.$instance = t;\n }", "public TypeCheck() {\n\tsuper();\n\tinst = this;\n\tnew rcc.tc.PrepTypeDeclaration();\n }", "ConceptType createConceptType();", "protected JvmParameterizedTypeReference newTypeRef(EObject context, Class<?> type) {\n\t\tTypeReferences typeRefs = getTypeReferences();\n\t\treturn newTypeRef(context, type.getName(), typeRefs.getTypeForName(type, context));\n\t}", "public DoubleBoundedRangeModel()\n {\n this(0.0, 0.0, 0.0, 1.0, 10);\n }", "public RngObject() {\n\t\t\n\t}" ]
[ "0.6762461", "0.6428096", "0.63611174", "0.61810786", "0.61236435", "0.60389966", "0.5986646", "0.5909779", "0.5889544", "0.5889544", "0.58036315", "0.5784744", "0.5773827", "0.5732125", "0.56778127", "0.56707805", "0.56219554", "0.5618333", "0.552008", "0.5484457", "0.54695374", "0.5465864", "0.5462605", "0.5455139", "0.54461163", "0.5441201", "0.5427592", "0.54252404", "0.54117453", "0.5407071", "0.5402211", "0.5398449", "0.5390816", "0.53843147", "0.53788537", "0.5345761", "0.53415436", "0.5297046", "0.5291747", "0.5284609", "0.5276403", "0.52708477", "0.5266425", "0.5235884", "0.5231287", "0.52214116", "0.52180314", "0.52064645", "0.5204756", "0.5190882", "0.51828516", "0.5176966", "0.51729214", "0.5172627", "0.5171166", "0.51675624", "0.5167205", "0.51547617", "0.5151098", "0.5149897", "0.514524", "0.5144289", "0.51393336", "0.51334965", "0.5123245", "0.5118663", "0.5117794", "0.5116312", "0.51101947", "0.51026696", "0.5101922", "0.50960094", "0.5092894", "0.50886893", "0.50709075", "0.506849", "0.5058675", "0.5032785", "0.5028411", "0.5026017", "0.50217205", "0.5017561", "0.50170064", "0.5013998", "0.5011417", "0.5002262", "0.5000022", "0.4994815", "0.499303", "0.49879277", "0.49843103", "0.49833983", "0.49822623", "0.4978618", "0.49736452", "0.49720663", "0.4960753", "0.49588394", "0.49537906", "0.4952415", "0.49498048" ]
0.0
-1
This method returns the object in string format.
@Override public final String toString() { return "'" + myName + "'"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "public String toString() { return stringify(this, true); }", "@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }", "public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "private String getObjectString()\n {\n String returnString = \"Objects:\\n\\t\";\n Set<String> keys = items.keySet();\n if(items.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String item : keys) {\n returnString += \" [\" + item + \"]\";\n }\n return returnString;\n }", "public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}", "public String toString() {\n\treturn createString(data);\n }", "String objectWrite();", "public String toString() {\n\t\treturn toString(true);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }", "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "public String toString() {\n\t\treturn toString(this);\n\t}", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Object [name = \" + name.get() + \", typ = \" + typ.get() + \"]\";\n\t}", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "public String toString() ;", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}", "@Override\r\n\tpublic String toString();", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToStringFK(\"Project\", getProject()));\n buffer.append(objectToStringFK(\"User\", getUser()));\n buffer.append(objectToString(\"Status\", getStatus()));\n buffer.append(objectToString(\"LastActivityDate\", getLastActivityDate()));\n buffer.append(objectToString(\"HasPiSeen\", getHasPiSeen()));\n buffer.append(objectToString(\"HasDpSeen\", getHasDpSeen()));\n buffer.append(objectToString(\"HasAdminSeen\", getHasAdminSeen()));\n buffer.append(objectToString(\"HasRequestorSeen\", getHasRequestorSeen()));\n buffer.append(objectToString(\"EmailStatus\", getEmailStatus()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "@Override\n\tpublic String toString();", "@Override\r\n public String toString();", "@Override\r\n String toString();", "public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}", "public String toString() {\n\t}", "@Override\n String toString();", "@Override\n String toString();", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}", "public String toString(){\n return XMLParser.parseObject(this);\n }", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor(GameObject object : this.objects) {\r\n\t\t\tsb.append(object.toString() + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "@Override public String toString();", "@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }", "@Override\n public String toString();", "@Override\n public String toString();", "public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String toString() {\n return toDisplayString();\n }", "@Override\n public String toString() {\n return string;\n }", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\n\tString toString();", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() {\n \t\treturn super.toString();\n \t}", "@Override\n String toString();", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "public String toString()\n\t{\n\t\tField[] fields = this.getClass().getDeclaredFields();\n\t\tint i, max = fields.length;\n\t\tString fieldName = \"\";\n\t\tString fieldType = \"\";\n\t\tString ret = \"\";\n\t\tString value = \"\";\n\t\tboolean skip = false;\n\t\tint j = 0;\n\t\tfor(i = 0; i < max; i++)\n\t\t{\n\t\t\tfieldName = fields[i].getName().toString();\n\t\t\tfieldType = fields[i].getType().toString();\n\t\t\tif(i == 0)\n\t\t\t{\n\t\t\t\tret += \"{\";\n\t\t\t}\n\t\t\tif(fieldType.equals(\"int\") || fieldType.equals(\"long\") || fieldType.equals(\"float\") || fieldType.equals(\"double\") || fieldType.equals(\"boolean\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = fields[i].get(this).toString();\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"0\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse if(fieldType.contains(\"String\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+Utility.escapeJSON((String) fields[i].get(this))+\"\\\"\";\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\tskip = true;\n\t\t\t}\n\t\t\tif(!skip)\n\t\t\t{\n\t\t\t\tif(j > 0)\n\t\t\t\t{\n\t\t\t\t\tret += \",\";\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tret += \"\\r\\n\\t\\\"\"+fieldName+\"\\\":\"+value;\n\t\t\t}\n\t\t\tif(i == max-1)\n\t\t\t{\n\t\t\t\tret += \"\\r\\n}\";\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }" ]
[ "0.8125192", "0.78207463", "0.7806203", "0.7758068", "0.7739807", "0.7739807", "0.7653607", "0.76421887", "0.761616", "0.75874317", "0.7577042", "0.75745255", "0.75743735", "0.7573358", "0.75708336", "0.75412136", "0.7534117", "0.74789816", "0.7454039", "0.7444489", "0.7428718", "0.74099046", "0.73884785", "0.73853475", "0.7375366", "0.7372405", "0.7369211", "0.7358462", "0.7358462", "0.7358462", "0.7354993", "0.7352925", "0.7339328", "0.73312664", "0.7319736", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7295306", "0.7292518", "0.7288475", "0.728822", "0.72821367", "0.72813404", "0.7277324", "0.7277324", "0.7275349", "0.7259104", "0.7251918", "0.72428936", "0.72370005", "0.72333336", "0.7226448", "0.7221048", "0.7220468", "0.7220468", "0.7212433", "0.72096944", "0.7208486", "0.7205688", "0.7184464", "0.7182836", "0.7180232", "0.71784943", "0.7178362", "0.71766454", "0.71766454", "0.71722215", "0.71705174", "0.7170059", "0.7166237", "0.71645445", "0.7154348", "0.7154348", "0.7144992", "0.7139171", "0.7137198", "0.713479", "0.71286464", "0.71269387", "0.7122822", "0.71217376", "0.7117598" ]
0.0
-1
For test in heroku
public List<TbUser> getAllUsers() { return userRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeClass\n\tpublic void setUp() {\n\t\tapp = app.get(ApplicationSourcesRepo.getFirefoxHerokuApplication());\n\n\t}", "private static int getHerokuAssignedPort() {\n return 4567;\n }", "@Test\n public void testProcessWebhook() {\n // TODO: test ProcessWebhook\n }", "@Test\n\tpublic void testCreatePostLive() throws Exception\n\t{\n\t}", "@Test\n\n public void updateWebHook() {\n }", "public void testGitHub() {\n\t}", "@Test\n void simpleBddTest(){\n given()\n .baseUri(\"https://reqres.in/api\")\n .basePath(\"/users?page=2\")\n\n //когда система\n .when().get()\n\n .then().statusCode(200)\n .and().header(\"Content-Type\", \"application/json; charset=utf-8\");\n }", "@Test\n public void testHmacSha1() throws Exception {\n\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "@Test\r\n\tpublic void smokeTest() throws Exception {\r\n\t\tcheckSite();\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tdriver.get(\"http://lit-bayou-7912.herokuapp.com/\");\r\n\t}", "@Test\n public void testCheckout() throws Exception {\n }", "@Before\n public void setUp() {\n RestAssured.baseURI = \"https://fakerestapi.azurewebsites.net\";\n }", "static void coverage()\n {\n new ServletUtils();\n }", "@Before\r\n\t\tpublic void setUp() throws Exception {\r\n\t\t\tdriver.get(\"http://lit-bayou-7912.herokuapp.com\");\r\n\t\t}", "@Test\n public void gatewayUrlTest() {\n // TODO: test gatewayUrl\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tlib.addAll(\"Mushroom_Publishing.txt\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t RestAssured.baseURI = \"https://rahulshettyacademy.com\";\n\t\t String response = given().queryParam(\"key\", \"qaclick123\")\n\t .header(\"Content-Type\",\"application/json\")\n\t\t.body(PayLoad.addPlace())\n\t\t.when().post(\"maps/api/place/add/json\")\n\t\t.then().assertThat().statusCode(200)\n\t\t.body(\"scope\",equalTo(\"APP\")).header(\"server\",\"Apache/2.4.18 (Ubuntu)\")\n\t\t.extract().response().asString();\n\t\tSystem.out.println(response);\n\t \n\t //For parsing JSON we have JsonPath(class)\n\t\tJsonPath json = new JsonPath(response);\n\t\tString placeId = json.getString(\"place_id\");\n\t System.out.println(placeId);\n\t \n \n \n\t}", "@Test\n public void breweryTest() {\n // TODO: test brewery\n }", "@Test\n public void chefServerUrlTest() {\n // TODO: test chefServerUrl\n }", "@Test\n public void whatsappFeeTest() {\n // TODO: test whatsappFee\n }", "@Test\n public void sendingGcm() throws Exception {\n\n\n }", "@Test\n\tpublic void testRegistBlog() {\n\t}", "@Test\r\n\tpublic void client() {\n\t}", "@Test\n public void hetTweetTest() throws Exception {\n Context appContext = InstrumentationRegistry.getTargetContext();\n String tweetStr = AssetsUtils.ReadAssetTxtContent(appContext, Constants.ASSET_TWEETS_PATH);\n\n OkHttpClient client=new OkHttpClient();\n Request request = new Request.Builder().url(Constants.TWEETS_URL).build();\n String tweetRequestStr=\"\";\n try(Response response=client.newCall(request).execute()){\n tweetRequestStr=response.body().string();\n }\n assertEquals(tweetStr,tweetRequestStr);\n }", "@Before\n public void setUp() {\n DB.sql2o = new Sql2o(\"jdbc:postgresql://localhost:5432/hair_salon_test\", \"alexander\", \"1234\");\n }", "@Test(priority = 1)\r\n\tpublic void setup() {\n\t\tResponse res = get(\"http://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22\");\r\n\t\tint rescode = res.getStatusCode();\r\n\t\tSystem.out.println(\"Api response code \" + rescode);\r\n\t}", "private MockarooPingHelper(){}", "@Test\n public void appVersionTest() {\n // TODO: test appVersion\n }", "@Test\n public void testWhatsAppUsageAggregation() {\n // TODO: test WhatsAppUsageAggregation\n }", "@BeforeClass\n public static void setup() {\n getDatabase(\"mandarin\");\n }", "protected void setupLocal() {}", "public static void setUp() {\n RequestFactory.defaultFactory = new RequestFactory() {\n @Override\n public Request createRequest(\n String httpMethod,\n String apiMethod,\n RequestType type,\n Map<String, Object> params) {\n return new RequestHelper(httpMethod, apiMethod, type, params);\n }\n };\n RequestSender.setInstance(new ImmediateRequestSender());\n\n if (BuildConfig.DEBUG) {\n Leanplum.setAppIdForDevelopmentMode(APP_ID, DEVELOPMENT_KEY);\n } else {\n Leanplum.setAppIdForProductionMode(APP_ID, PRODUCTION_KEY);\n }\n Leanplum.setDeviceId(\"leanplum-unit-test-20527411-BF1E-4E84-91AE-2E98CBCF30AF\");\n Leanplum.setApiConnectionSettings(API_HOST_NAME, \"api\", API_SSL);\n Leanplum.setSocketConnectionSettings(SOCKET_HOST_NAME, SOCKET_PORT);\n Leanplum.setLogLevel(Log.Level.DEBUG);\n }", "@Before\n public void setup() {\n }", "@Test\n public void simpleGet(){\n when()\n .get(\"http:://34.223.219.142:1212/ords/hr/employees\")\n .then().statusCode(200);\n\n }", "static int getHerokuAssignedPort() {\n ProcessBuilder processBuilder = new ProcessBuilder();\n if (processBuilder.environment().get(\"PORT\") != null) {\n return Integer.parseInt(processBuilder.environment().get(\"PORT\"));\n }\n return 4567; //Retorna el puerto por defecto en caso de no estar en Heroku.\n }", "public static void main(String[] args) {\n\r\n\t\tRestAssured.baseURI=\"https://www.boredapi.com/api/activity\";\r\n\t\tString getUserResponse=given()\r\n\t\t\t\t.when().get()\r\n\t\t\t\t.then().assertThat().log().all().statusCode(200).extract().response().asString();\r\n\t\tSystem.out.println(getUserResponse);\r\n\t\t\r\n\t\r\n\r\n}", "@Ignore //DKH\n @Test\n public void testMakePersistent() {\n }", "@Test\n void migrate() {\n }", "@Test\n public void testPuery(){\n }", "@Test\n public void Task3() {\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos/2\")\n .then()\n .statusCode(200)\n .contentType(ContentType.JSON)\n .body(\"title\",equalTo(\"quis ut nam facilis et officia qui\"))\n ;\n }", "@Test\r\npublic void baseDirectory() throws Exception{\r\n\taccessdata.setAppguid(\"shiv223acharya\");\r\n\tSystem.out.println(accessdata.getAppguid()); \r\n\t/*primaryService.setAppurl(\"NodeJS/Authentication_Template\");\r\n\t\r\n\tJSONObject json=new JSONObject();\r\n\t\r\n\taccessdata.setParentdirectory(\"\");\r\n\taccessdata.setHookObj(json);\r\n\taccessdata.setRunningapp(\"Drishya\");\r\n\taccessdata.setEndpoint(\"\");\r\n\taccessdata.setDomainguid(\"\");\r\n\taccessdata.setHost(\"\");\r\n\taccessdata.setEnv_json(json);\r\n\t\r\n\tfb.setClientID(\"468331803360754\");\r\n\tfb.setClientSecret(\"8fc8690146770e0a637adcc7293280cc\");\r\n\tGoogle.setClientID(\"625227390094-m47bnlnuaguvq3phn5t5kmp503fsiagd.apps.googleusercontent.com\");\r\n\tGoogle.setClientSecret(\"k0vpP0Tp5dP2oqXmcF9v10G8\");\r\n\tprimaryProviders.setFacebook(fb);\r\n\tprimaryProviders.setGoogle(Google);*/\r\n\tassertNotNull(generateApp.baseDirectory());\r\n}", "@Test\n public void serverStarts() {\n }", "public void testBidu(){\n\t}", "public test_SDURL() {\n super();\n }", "public static void main(String[] args){ \r\n\t\t /* PropertyConfigurator.configure(\"application.properties\");\r\n\t\t log.debug(\"Hello this is a debug message\"); \r\n\t log.info(\"Hello this is an info message\"); \r\n\t System.out.println(\"Hi..Cool\");\r\n\t URLTest u=new URLTest();\r\n\t u.sendGET();*/\r\n\t\t\r\n\t\t System.out.println(\"Hi..IMI\");\r\n\t }", "@Before\n public void setUp() throws Exception {\n channel = new Channel(\"Together4Ever\", \"The best channel\");\n }", "@Before\n public void setUp() throws Exception {\n\n }", "@Test\n public void whenEnvironmentIsWeb_thenUrlsShouldStartWithHttp() {\n String address = \"https://www.geeksforgeeks.org/run-levels-linux/\";\n assumingThat(!\"WEB\".equals(System.getenv(\"ENV\")),\n () -> {\n assertTrue(address.startsWith(\"http\"));\n });\n\n\n }", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "@BeforeClass\n public static void setup() {\n stall_till_cloudsize(1);\n }", "@Test\n public void versionTest() {\n // TODO: test version\n }", "static int getHerokuAssignedPort() {\n ProcessBuilder processBuilder = new ProcessBuilder();\n if (processBuilder.environment().get(\"PORT\") != null) {\n return Integer.parseInt(processBuilder.environment().get(\"PORT\"));\n }\n return 7000; //Retorna el puerto por defecto en caso de no estar en Heroku.\n }", "@Test\n public void testVideoMeta() {\n // TODO: test VideoMeta\n }", "@Before\n public void setUp() throws Exception {driver = new ChromeDriver();\n// baseUrl = \"https://www.google.com/\";\n// driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n// \n \n\t \n\t baseUrl = \"https://mern-crud.herokuapp.com\";\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/usr/bin/chromedriver\");\n\t\t\t\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\n }", "private JacobUtils() {}", "@BeforeAll\n public static void setUp(){\n baseURI = ConfigurationReader.getProperty(\"spartan.base_url\");\n basePath = \"/api\" ;\n }", "@Test\n public void request() throws Exception {\n\n\n }", "@Test\n public void testLocalClient()\n {\n generateEvents(\"local-client\");\n checkEvents(true, false);\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@BeforeClass\n public static void setUp(){\n RestAssured.baseURI = \"https://api.got.show/api/\";\n }", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "protected void onFirstUse() {}", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n public void checkoutTest() {\n\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "@Test\n public void videoMd5Test() {\n // TODO: test videoMd5\n }", "public void testGetHost() {\n }", "public void testSetHost() {\n }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Test\n public void getUserTest() throws Exception{\n Context appContext = InstrumentationRegistry.getTargetContext();\n String userStr= AssetsUtils.ReadAssetTxtContent(appContext, Constants.ASSET_USER_INFO_PATH);\n\n OkHttpClient client=new OkHttpClient();\n Request request = new Request.Builder().url(Constants.USER_INFO_URL).build();\n String userRequestStr=\"\";\n try(Response response=client.newCall(request).execute()){\n userRequestStr=response.body().string();\n }\n assertEquals(userStr,userRequestStr);\n }", "@Test\n\tpublic void testMain() {\n\t\tProjectManagerRestfulApiApp.main(new String[] {\n\t\t\t\t\"spring.profiles.active=test\"\n\t\t});\n\t}", "@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }", "@Before\n public void setUp() throws Exception {\n\n }", "@Override\n public void feedingHerb() {\n\n }", "@Test\n public void checkfileExist() {\n checkBlobExist(\"pause-amd64\",\"sha256:cf92024299791de93ad205151ab24e535c218bbea6465fd8f79c2611db913a50\");\n // try{\n// String info = httpUtils.head(url, new HashMap<>(), null);\n// logger.info(\"info:{}\", info);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n }", "@Test\r\n public void testGreeting02(){\r\n\r\n assertEquals(\"Hello SQS\", greets.greet(\"SQS\"));\r\n assertEquals(\"Hello TDD\", greets.greet(\"TDD\"));\r\n }", "public RemoteFilingTest() {\n }", "@Before\n public void setUp() {\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "public BazaarTests() {\r\n\t\tsuper();\r\n\t}", "@Test\n public void testDistClient()\n {\n generateEvents(\"dist-client-test\");\n checkEvents(true, false);\n }", "private StressTestHelper() {\n // Empty constructor.\n }", "@Test\n public void testProcess() throws Exception {\n }", "@Test\n public void contextLoads() throws Exception {\n }", "@Test\n public void statusTest() {\n // TODO: test status\n }", "@Test\n public void statusTest() {\n // TODO: test status\n }", "@Test\n void getGreeting() {\n System.out.println(controller.getGreeting());\n }", "@Before\n public void setUp () {\n }", "private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@BeforeAll\n public static void setUpClass() {\n emf = EMF_Creator.createEntityManagerFactoryForTest();\n\n //Set System property so the project executed by the Grizly-server wil use this same database\n EMF_Creator.startREST_TestWithDB();\n \n httpServer = startServer();\n\n //Setup RestAssured\n RestAssured.baseURI = SERVER_URL;\n RestAssured.port = SERVER_PORT;\n\n RestAssured.defaultParser = Parser.JSON;\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setBaseUri () {\n RestAssured.port = 8080;\n RestAssured.baseURI = \"http://localhost\";\n RestAssured.basePath = \"/v1\";\n }", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Test\r\n public void test() {\r\n Owner owner = new Owner();\r\n owner.setOauthToken(\"CAACEdEose0cBAMCKHcqSEOcS5O40e4co26HaL6YyEtM7PZAUlPSSDbIca80wF2w3G9B43ZCAx8vojAQKfeyk8ZAapSjv5ala0FPAawudbeNPpFMgyGCDmR0bEhNUuj9gbRjKHQqvVt28DUegx6uAVtMy5PYGhoFSYHstHBtt8Hby7wp2cIczDeZAiuoKe0L6qbGJnFRHqzO87pyZBEhPDpbAZBWjrtCyQZD\");\r\n owner.setFacebookID(\"1492826064306740\");\r\n\r\n MonitorRunner runner = new MonitorRunner(owner);\r\n //runner.run();\r\n }", "@Test\n @Deployment(resources = \"ex3a.bpmn\")\n public void testHappyPath() {\n Map<String, Object> variables = new HashMap<>();\n variables.put(\"approved\", true);\n // Start process with Java API and variables\n ProcessInstance processInstance = runtimeService().startProcessInstanceByKey(\"TwitterQAProcessEx3a\", variables);\n // Make assertions on the process instance\n assertThat(processInstance).isEnded();\n }", "@Test\n public void testAddPrizeNotification() throws Exception {\n }", "@Test\n public void thumbnailTest() {\n // TODO: test thumbnail\n }" ]
[ "0.60418165", "0.57077354", "0.569802", "0.5531007", "0.5517641", "0.54714084", "0.5386535", "0.5380009", "0.53124374", "0.52939236", "0.52938014", "0.5237233", "0.51962745", "0.5177817", "0.517194", "0.5168843", "0.514225", "0.5116577", "0.51058316", "0.51052123", "0.5103251", "0.508159", "0.50749093", "0.5063713", "0.5030587", "0.50239795", "0.5007994", "0.50076014", "0.5007056", "0.50008905", "0.49828297", "0.49791858", "0.49771455", "0.49752614", "0.49649358", "0.4953741", "0.49523997", "0.4952322", "0.49522197", "0.4952094", "0.49482417", "0.49436215", "0.4927168", "0.49225208", "0.49190053", "0.49148163", "0.49031147", "0.48985532", "0.48984742", "0.48963305", "0.48942813", "0.48934606", "0.48914093", "0.4891145", "0.48850667", "0.48832905", "0.48820284", "0.48799405", "0.48755422", "0.48732492", "0.48732492", "0.48732492", "0.48674747", "0.48548982", "0.48509294", "0.48502052", "0.48498094", "0.48454183", "0.48412433", "0.4836102", "0.48301592", "0.48262343", "0.48249346", "0.48188812", "0.48161256", "0.48063147", "0.4805943", "0.4799728", "0.47879845", "0.478525", "0.4783738", "0.47824362", "0.4781354", "0.47797212", "0.47750604", "0.47746038", "0.47731462", "0.47708178", "0.47708178", "0.47703514", "0.47668022", "0.47644594", "0.47632247", "0.47609463", "0.47609463", "0.47604245", "0.47577807", "0.47572148", "0.47542855", "0.4752194", "0.4750751" ]
0.0
-1
TODO Autogenerated method stub demo1();
public static void main(String[] args) throws InterruptedException { new Thread() { public void run() { for(int i = 0; i<10; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println(getName() + " : aaaaa"); } } }.start(); // new thread new Thread() { public void run() { for(int i = 0; i<10; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println(getName() + " : bbbbbbbb"); } } }.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void thisDemo() {\n\t}", "public static void demo() {\n\t\tlab_2_2_5();\n\n\t}", "public Demo() {\n\t\t\n\t}", "AbsDemo1()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"cons of AbsDemo1\");\r\n\t\t}", "public Demo3() {}", "public static void example1() {\n // moved to edu.jas.application.Examples\n }", "default void show1() {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {demo6();\r\n\t\t\r\n\t}", "@Test\n public void demo1(){\n }", "public static void main(String[] args) {\n com.abc.Demo d=new demo();\n Demo d1= new Demo1();\n \n\t}", "public static void main(String[] args) {\n\t\tDemo2 D=new Demo2();\r\n\t\t D.test();\r\n\t\tSystem.out.println(D.test());\r\n\t\r\n\r\n\t}", "void test() {\r\n\t\tSystem.out.println(\"test - DemoTest\");\r\n\t}", "protected static void demoMethod( ) {\n System.out.println(\"demoMethod for singleton\");\n }", "public static void main(String[] args) {\n Demo3 d1 = new Demo3();\n\n\n }", "public static void objectDemo() {\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n demo5();\n }", "void example1() {\n\t\t\n\t\tIndexedDataSource<Float64Member> data =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.DBL.construct(), 100);\n\n\t\tFloat64Member value = G.DBL.construct();\n\t\t\n\t\tGetV.fifth(data, value);\n\t\t\n\t\tvalue.setV(10101);\n\t\t\n\t\tSetV.eighteenth(data, value);\n\t}", "static void test1(){\n\t\n\t}", "Demo1Factory getDemo1Factory();", "private static void demo1() {\n m1();\n m2();\n }", "public static void main(String[] args) {\nsample1 obj=new sample1();\r\n\t}", "public static void example2() {\n // moved to edu.jas.application.Examples\n }", "public void mo97908d() {\n }", "void mo67920a();", "void mo5017a();", "public Example2() {\n\t\tSystem.out.println(\"Example2....\");\n\t}", "public static void main(String args[])\r\n {\r\n \r\n abc obj=new abc() \r\n {\r\n public void show()\r\n {\r\n System.out.println(\"In Demo1 show...!\");\r\n }\r\n \r\n };\r\n obj.show();\r\n \r\n }", "default void show1() {\n \tSystem.out.println(\"show default\");\n }", "public static void main(Demo args[])\n\t{\n\t\tEmployee1 employee=new Manager();\n\t\temployee.display();\n\t}", "void mo67924c();", "public static void main(String[] args) {\n\t\tdemointer d=new Exm1();\r\n\t\t//demointer d1=new Exm2();\r\n\t\t//Exm1 a=new Exm1();\r\n\t\tExample1 ex=new Example1();\r\n\t\tex.demo(d);\r\n\t\t\r\n\t}", "void mo67923b();", "void mo3311a();", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "void mo17013d();", "public static void main(String[] args) {\n\n\t\tDemoClass1 obj=new DemoClass1();\n\t//\tobj.add();\n\t\t\t\t\n\t}", "private test5() {\r\n\t\r\n\t}", "void mo57277b();", "public static void Method1_ret() {\r\n event_demo obj = new event_demo(98,\"a001\");\r\n System.out.print(\"Default value e.g = \"+obj.EVENT_NUMBER);\r\n System.out.println(\"\\tDefault value e.g = \"+obj.NO_OF_PEOPLE); }", "void mo37810a();", "void mo88521a();", "void mo12143a();", "public static void main(String[] args) {\n\t\tInterfacedemo2 obj1=new Interfacedemo2();\n\t\tobj1.display();\n\t\tobj1.show();\n\t}", "public void setDemo(java.lang.String demo) {\n this.demo = demo;\n }", "public void test5() {\n\t\t\n\t}", "public Demo2() {\n initComponents();\n }", "public void mo4359a() {\n }", "public void msg1()\r\n\t{\n\t\t\r\n\t}", "void mo10148a();", "public void mo55254a() {\n }", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public int test1()\n\t{\n\t\treturn 1;\n\t}", "public void mo9848a() {\n }", "public void mo21877s() {\n }", "public void mo5382o() {\n }", "private void test() {\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tsample3 obj1=new sample3();\r\n\t\tobj1.display1();\r\n\t\tobj1.display2();\r\n\t}", "private reg1() {\n }", "void mo54435d();", "@Override\n\tpublic void name1() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tDemo_1 tt = new Demo_1();\n\t\ttt.sayHello();\n\t\t\n\t\t//this is how you print variable unlikely than a method\n\t\tSystem.out.println(tt.nonStaticVar); \n\t\t\n\t\t//static method can be called in two different ways:\n\t\t\n\t\tsayHI(); //This is not a recommended practice. However method from other non static class needs to make object. \n\t\t\n\t\tDemo_1.sayHI(); //Calling static method in this way is regarded as the best practices, which indicates class name as well. \n\t\tSystem.out.println(Demo_1.staticVar);//Always do this way, which clearly shows original method. \n\t}", "public static void main(String[] args) {\n\t\tabc a1 = new abc();\r\n\t\ta1.name=\"jay\";\r\n\t\ta1.setId(2018);\r\n\t\tSystem.out.println(\"Name is : \"+a1.name+ \" \" + \"id is : \"+a1.getId());\r\n\t}", "static void method2(){\n StaticDemo staticDemo=new StaticDemo();\n System.out.println(staticDemo.name);\n staticDemo.method1();\n method3();\n\n }", "void mo41083a();", "void mo54405a();", "public static void main(String[] args) {\n demoClass();\n }", "public static void main(String[] args) {\n demoClass();\n }", "private zza.zza()\n\t\t{\n\t\t}", "void mo119581a();", "public void mo3376r() {\n }", "public String reveal1() {\n // Note: You do NOT have to write this method.\n \n \n return null;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"from the main of Demo5\");\r\n\t\tDemo6 x= new Demo6();\r\n\t\tx.m1();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tExam a = new Exam(); //객체 인스턴트 생성\n\t\n\t\ta.Ex1(); \t\t\t\t//부모클래스의 메소드를 활용\n\n\t}", "public static void main(String[] args) {\n Example ex1=new Example();\n ex1.fun1();\n System.out.println(\"x in main\"+ex1.x);\n }", "void mo17023d();", "void mo98969a();", "void mo84655a();", "void mo20141a();", "void mo2311a();", "private void test2(){\n\t}", "public void mo21825b() {\n }", "public void mo5248a() {\n }", "void mo57278c();", "void mo310e();", "void mo17012c();", "public void mo1400a() {\n }", "void mo105476a();", "public static void main(String[] args) {\n\t\tSample obj=new Sample();\r\n\t\tobj.display();\r\n\t\tobj.display1();\r\n\r\n\t}", "public static void hvitetest1w(){\r\n\t}", "void mo22249a();", "void mo28306a();", "public void mo21791P() {\n }", "public void mo21779D() {\n }", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n test2();\n }", "void mo57275a();", "void mo4833b();", "@Override\n\tpublic void show1() {\n\t\tSystem.out.println(\"This is show1\");\n\t}", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public void test() {\n\t}" ]
[ "0.7152979", "0.7044506", "0.68744934", "0.6765835", "0.6753763", "0.6740421", "0.66847736", "0.6663375", "0.66160524", "0.65937185", "0.65186757", "0.6404313", "0.64011663", "0.6360381", "0.63441217", "0.6324294", "0.6261234", "0.6232635", "0.6211599", "0.6208746", "0.6207365", "0.61876595", "0.61602414", "0.6155524", "0.61484337", "0.61335915", "0.6123668", "0.61187476", "0.6100539", "0.6092036", "0.6087739", "0.6065232", "0.6063961", "0.6062894", "0.60501903", "0.60461634", "0.60399616", "0.6038943", "0.60212046", "0.6012446", "0.60086304", "0.5997881", "0.59966683", "0.59816957", "0.598132", "0.5979961", "0.5979005", "0.59758145", "0.5972183", "0.5972127", "0.59682894", "0.5967605", "0.59668285", "0.59655017", "0.5960007", "0.59572417", "0.59545416", "0.5953692", "0.5950063", "0.5948604", "0.5947728", "0.59460336", "0.59439564", "0.5926068", "0.59221166", "0.591918", "0.5918108", "0.5917436", "0.5917436", "0.5916932", "0.59133697", "0.5911861", "0.5910243", "0.59084177", "0.59069055", "0.59017605", "0.5899414", "0.589908", "0.58989805", "0.5884161", "0.58824825", "0.5874334", "0.5869192", "0.58654976", "0.586105", "0.58608496", "0.5860618", "0.5856283", "0.58553773", "0.58494914", "0.5845856", "0.58357394", "0.58334476", "0.58327484", "0.583122", "0.58290637", "0.5827069", "0.58263963", "0.58250225", "0.5821564", "0.5817987" ]
0.0
-1
sirve para obtener el valor del vertice solamente que sea igual a null y agregara el vertice nuevo
private Vertice getVertex(String name) { Vertice v = (Vertice) vertices.get(name); if (v == null) { v = new Vertice(name); vertices.put(name, v); } return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vertice getvInicial() {\r\n return vInicial;\r\n }", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "protected Object calcRightNullRow()\n {\n return null;\n }", "public String getV(int nIndex) {\n\treturn null;\n}", "public Vertice GetExtremoInicial(){\r\n return this.Vi;\r\n }", "private NodoGrafo Vert2Nodo(int v) {\n\t\tNodoGrafo aux = origen;\n\t\twhile (aux != null && aux.nodo != v)\n\t\t\taux = aux.sigNodo;\t\t\n\t\treturn aux;\n\t}", "private Vertice<T> getHermano(Vertice<T> v){\n\tif(v.padre == null)\n\t return null;\n\tif(v.padre.derecho == v){\n\t if(v.padre.izquierdo == null)\n\t\treturn null;\n\t else\n\t\treturn v.padre.izquierdo;\n\t}else{\n\t if(v.padre.derecho == null)\n\t\treturn null;\n\t else\n\t\treturn v.padre.derecho;\n\t}\n }", "public Coordinates getVerHor();", "@Override\n\tVector calcUV(Vector hitPoint) {\n\t\treturn null;\n\t}", "public Vertice GetExtremoFinal(){\r\n return this.Vf;\r\n }", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "void removeVert(Pixel toRemove) {\n\n // is the given below this\n if (this.down == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n }\n }\n\n // is the given downright to this\n else if (this.downRight() == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n toRemove.left.up = toRemove.up;\n }\n if (toRemove.up != null) {\n toRemove.up.down = toRemove.left;\n }\n }\n\n //is the given downleft to this\n else if (this.downLeft() == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n }\n if (toRemove.right != null) {\n toRemove.right.up = toRemove.up;\n }\n if (toRemove.up != null) {\n toRemove.up.down = toRemove.right;\n }\n }\n // if the connections were incorrect\n else {\n throw new RuntimeException(\"Illegal vertical seam\");\n }\n }", "public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }", "@Test\n public void testNullPositionEquals(){\n assertFalse(Maze.position(0,0).equals(null));\n }", "@Override\r\n\tpublic Vector2f[] getVertices() {\n\t\treturn null;\r\n\t}", "Vertex getOtherVertex(Vertex v) {\n\t\t\tif(v.equals(_one)) return _two;\n\t\t\telse if(v.equals(_two)) return _one;\n\t\t\telse return null;\n\t\t}", "private void createNullVertex(int x, int y, DefaultGraphCell dad){\n\t\t\tDefaultGraphCell v = new DefaultGraphCell(\"\");\n\t\t\tnullnodes.add(v);\n\t\t\tDefaultPort port = new DefaultPort();\n\t\t\tv.add(port);\n\t\t\tport.setParent(v);\n\t\t\tint width = DEFAULT_NULL_SIZE.width;\n\t\t\tint height = DEFAULT_NULL_SIZE.height;\n\t\t\tGraphConstants.setBounds(v.getAttributes(), new\n\t\t\t\t\t Rectangle2D.Double(x-width/2,y,width,height));\n\t\t\tGraphConstants.setGradientColor(v.getAttributes(), Color.black);\n\t\t\tGraphConstants.setOpaque(v.getAttributes(), true);\n\t\t\tinsertEdge(getDefaultPort(dad), getDefaultPort(v));\n\t\t}", "private void cazaFantasma(Vertice<T> v){\n\tif(v.padre == null){\n\t if(v == this.raiz){\n\t\tthis.raiz = null;\n\t\treturn;\n\t }\n\t return;\n\t}else{\n\t Vertice<T> padre = v.padre;\n\t if(v == padre.izquierdo){\n\t\tif(v.hayIzquierdo()){\n\t\t padre.izquierdo = v.izquierdo;\n\t\t v.izquierdo.padre = padre;\n\t\t}else if(v.hayDerecho()){\n\t\t padre.izquierdo = v.derecho;\n\t\t v.derecho.padre = padre;\n\t\t}else{\n\t\t padre.izquierdo = null;\n\t\t}\t\t\n\t }else{\n\t\tif(v.hayIzquierdo()){\n\t\t padre.derecho = v.izquierdo;\n\t\t v.izquierdo.padre = padre;\n\t\t}else if(v.hayDerecho()){\n\t\t padre.derecho = v.derecho;\n\t\t v.derecho.padre = padre;\n\t\t}else{\n\t\t padre.derecho = null;\n\t\t}\n\t }\n\t}\n }", "public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }", "public int getVertexVal()\r\n\t{\r\n\t\treturn this.value;\r\n\t}", "default V get() {\n V item = orElseNull();\n if ( item == null )\n throw new IllegalArgumentException(\"No item at the targeted position!\");\n return item;\n }", "public int setNeighbourNull(TriangleElt3D element, ScalarOperator sop) {\n\n\t\tif (this.getNeighbour(0) != null\n\t\t\t\t&& this.getNeighbour(0).isGeometryEquivalent(element, sop)) {\n\t\t\tthis.setNeighbour(0, null);\n\t\t\treturn 0;\n\t\t}\n\t\tif (this.getNeighbour(1) != null\n\t\t\t\t&& this.getNeighbour(1).isGeometryEquivalent(element, sop)) {\n\t\t\tthis.setNeighbour(1, null);\n\t\t\treturn 1;\n\t\t}\n\t\tif (this.getNeighbour(2) != null\n\t\t\t\t&& this.getNeighbour(2).isGeometryEquivalent(element, sop)) {\n\t\t\tthis.setNeighbour(2, null);\n\t\t\treturn 2;\n\t\t}\n\n\t\treturn -1;\n\t}", "@Override\n\tpublic boolean contieneVertice(Ciudad c1) {\n\t\tif (Objects.nonNull(getVertice(c1))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic Point2D getUV(double xx, double yy, double zz) {\n\t\treturn null;\r\n\t}", "@Test public void nullCoorinate(){\n body.setBodyCoordinate(null);\n assertEquals(\"testing to see if its empty\", body.getBodyCoordinate(), null);\n }", "public void AgregarVertice(int v) {\n\t\tNodoGrafo aux = new NodoGrafo();\n\t\taux.nodo = v;\n\t\taux.arista = null;\n\t\taux.sigNodo = origen;\n\t\torigen = aux;\n\t}", "@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "public Arestas retiraAresta (int v1, int v2) {\n if (this.mat[v1][v2] == 0) \n return null; // Aresta nao existe\n else {\n Arestas aresta = new Arestas (v1, v2, this.mat[v1][v2]);\n this.mat[v1][v2] = 0; return aresta;\n // se a aresta existir eu vou atribuir o peso dela a 0(zero), isso significa\n // dizer que o vertice v1 não está ligado com v2\n }\n }", "public PosicionVertice[] getVertices(PosicionVertice rpv[]) {\n \n // inicializacion\n rpv = (rpv == null) ? new PosicionVertice[2] : rpv;\n for (int i=0; i<rpv.length; i++) {\n rpv[i] = (rpv[i] == null) ? new PosicionVertice() : rpv[i];\n }\n normaliza();\n \n switch(getOrientacion()) {\n case Este:\n rpv[0].setPos(getX(), getY()-1);\n rpv[0].setOrientacion(OrientacionVertice.Sur);\n rpv[1].setPos(getX()+1, getY());\n rpv[1].setOrientacion(OrientacionVertice.Norte);\n break;\n case NorEste:\n rpv[0].setPos(getX(), getY());\n rpv[0].setOrientacion(OrientacionVertice.Norte);\n rpv[1].setPos(getX(), getY()-1);\n rpv[1].setOrientacion(OrientacionVertice.Sur);\n break; \n case NorOeste:\n rpv[0].setPos(getX(), getY());\n rpv[0].setOrientacion(OrientacionVertice.Norte);\n rpv[1].setPos(getX()-1, getY());\n rpv[1].setOrientacion(OrientacionVertice.Sur);\n break; \n }\n return rpv;\n }", "public void setVerHor(Coordinates currentVerHor);", "public Vertice selectPickedModelVertice(){\n\t\tunselectAllVertices();\n\t\tVertice pickVertice = getPickedModelVertice();\n\t\tif(pickVertice != null){\n\t\t\tselectModelVertice(pickVertice);\n\t\t\treturn pickVertice;\n\t\t}\n\t\treturn null;\n\t}", "public Integer numUnknownVerts()\n\t{\n\t\tif (total_verts == null) return null;\n\t\treturn total_verts - nodes.size();\n\t}", "private void getVertex(int x, int y, Vector3f vertex) {\n\t\tfloat height = getRawHeightFieldValue(x, y);\n\n\t\tswitch (m_upAxis) {\n\t\tcase 0: {\n\t\t\tvertex.set(height - m_localOrigin.x, (-m_width / 2.0f) + x, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\t\tcase 1: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, height - m_localOrigin.y, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 2: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, (-m_length / 2.0f) + y, height - m_localOrigin.z);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\n\t\tvertex.x = vertex.x * m_localScaling.x;\n\t\tvertex.y = vertex.y * m_localScaling.y;\n\t\tvertex.z = vertex.z * m_localScaling.z;\n\t}", "public E get(int idx) {\n assert idx >= 0;\n \n if(v == array[idx]){\n\t\tv = array[idx];\n\t}\n\t\n\tif(array[idx] == null){\n\t\tv = null;\n\t}\n\treturn v;\n }", "@Override\r\n\tpublic Value interpret() {\n\t\treturn null;\r\n\t}", "default V getOrThrow() {\n return getOrThrow(\"null\");\n }", "@Test\r\n void test_insert_null_vertex() {\r\n graph.addVertex(null);\r\n vertices = graph.getAllVertices();\r\n \r\n if(vertices.contains(null))\r\n fail();\r\n if(vertices.size() != 0 ||graph.order() != 0) {\r\n fail();\r\n }\r\n\r\n }", "@Override\n\tpublic Position getPosition() {\n\t\treturn null;\n\t}", "public int other(int vertex) {\n if (vertex == v) return w;\n else if (vertex == w) return v;\n else throw new IllegalArgumentException(\"Illegal endpoint\");\n }", "@Override\n\tpublic Object hesseI(double[] point) {\n\t\treturn null;\n\t}", "public boolean inVerticalBlank();", "public int other(int vertex) {\n if (vertex == v) return w;\n else if (vertex == w) return v;\n else throw new IllegalArgumentException(\"Illegal endpoint\");\n }", "public Vertice getvTerminal() {\r\n return vTerminal;\r\n }", "public void calculaVertice(int _radio, double _giro){\r\n //npoints equivale a _lados\r\n for(int i = 0; i<npoints;i++){\r\n //asi se llama internamente a la primera array de las posiciones x\r\n xpoints[i] = (int)(x + _radio*Math.cos((2*Math.PI * i +_giro/40)/npoints));\r\n ypoints[i] = (int)(y + _radio*Math.sin((2*Math.PI * i +_giro/40)/npoints));\r\n }\r\n \r\n }", "private V isertNullKey(K key, V value) {\n return value;\n }", "@Test\r\n void remove_null() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(null);\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }", "double getVz() { return vel[2]; }", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "public Vertice getModelVertice(Vector3f _pos){\n\t\tint shortestIndex = -1;\n\t\tfloat shortestDistance = Float.MAX_VALUE;\n\t\tfloat dist = Float.MAX_VALUE;\n\t\tVertice pickVertice;\n\t\tfor(int i = 0; i < getModelVerticesCount(); i++){\n\t\t\tpickVertice = getModelVertice(i);\n\t\t\tdist = _pos.distance(pickVertice);\n\t\t\tif(dist < shortestDistance){\n\t\t\t\tshortestDistance = dist;\n\t\t\t\tshortestIndex = i;\n\t\t\t}\n\t\t}\n\t\treturn modelVertices.get(shortestIndex);\n\t}", "public void EliminarVertice(int v) {\n\t\tNodoGrafo aux = origen;\n\t\tif (origen.nodo == v) \n\t\t\torigen = origen.sigNodo;\t\t\t\n\t\twhile (aux != null){\n\t\t\t// remueve de aux todas las aristas hacia v\n\t\t\tthis.EliminarAristaNodo(aux, v);\n\t\t\tif (aux.sigNodo!= null && aux.sigNodo.nodo == v) {\n\t\t\t\t// Si el siguiente nodo de aux es v , lo elimina\n\t\t\t\taux.sigNodo = aux.sigNodo.sigNodo;\n\t\t\t}\n\t\t\taux = aux.sigNodo;\n\t\t}\t\t\n\t}", "public void Z_pos(MyInteger verPos, MyInteger horPos, ArrayList<ArrayList<Integer>> cur)\n {\n for (int i = 0; i < 3; i++)\n {\n for (int k = 0; k < 3; k++)\n {\n if (cur.get(i).get(k) == 0) {\n verPos.value = i;\n horPos.value = k;\n }\n }\n }\n }", "public ArrayList<Point> nullPoint() {\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\tfor (int r=0; r<rows(); r=r+1) {\n\t\t\tfor (int c=0; c<cols(); c=c+1) {\n\t\t\t\tPoint p = new Point(r,c);\n\t\t\t\tif(get(p)==null) {\n\t\t\t\t\tpoints.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn points;\n\t}", "@Override\n\tpublic Double getTo(int index) {\n\t\treturn null;\n\t}", "@Test\n public void testGetVertexIndex() throws GeoTessException {\n posLinear.set(8, new double[]{0., 0., -1.}, 6300.);\n assertEquals(11, posLinear.getVertexIndex());\n\n // set position to x, which does not coincide with a\n // model vertex.\n posLinear.set(8, x, R);\n assertEquals(-1, posLinear.getVertexIndex());\n }", "protected JTextField determineNull() {\r\n String t;\r\n\r\n try {\r\n t = rightSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return rightSideInput;\r\n }\r\n\r\n t = leftSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return leftSideInput;\r\n }\r\n\r\n t = topInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return topInput;\r\n }\r\n\r\n t = bottomInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return bottomInput;\r\n }\r\n\r\n t = frontInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return frontInput;\r\n }\r\n\r\n t = backInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return backInput;\r\n }\r\n\r\n return rightSideInput;\r\n } catch (NullPointerException npe) {\r\n MipavUtil.displayError(\"JDialogCropBoundaryParam reports: Unknown Error\");\r\n\r\n return rightSideInput; // gotta have some thing returned\r\n }\r\n }", "public int getvertex() {\n\t\treturn this.v;\n\t}", "@Override\n protected JsonNode _at(JsonPointer ptr) {\n return null;\n }", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Object getVertex(){\r\n return this.vertex;\r\n }", "public Coordinate() { row = col = -1; }", "void Death(){\r\n if (vie==0){\r\n this.plateau[this.x][this.y]='0';\r\n }\r\n }", "@Test\r\n void create_edge_between_null_vertexes() {\r\n graph.addEdge(null, \"B\");\r\n graph.addEdge(\"A\", null);\r\n graph.addEdge(null, null);\r\n vertices = graph.getAllVertices();\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!vertices.isEmpty() | !adjacentA.isEmpty() | !adjacentB.isEmpty()) {\r\n fail();\r\n } \r\n }", "private ProjectedVertex() {\n this.valid = false;\n this.edge = null;\n }", "public Vector getL(Point3D p){\n if (p.equals(_position)) {\n return null;\n }\n return p.subtract(_position).normalize();\n }", "private void balancearAgrega(Vertice<T> v){\n\tif(v == this.raiz){\n\t v.color = Color.NEGRO;\n\t return;\n\t}else if(v.padre.getColor() == Color.NEGRO){\n\t return;\n\t}\n\tVertice<T> abuelo = v.padre.padre;\n\tif(v.padre == abuelo.derecho){\n\t if(abuelo.izquierdo != null &&\n\t abuelo.izquierdo.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.izquierdo.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\t \n\t }else if(v.padre.izquierdo == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraDerecha(v.padre);\n\t\tbalancearAgrega(v2); \n\t }else if(v.padre.derecho == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraIzquierda(abuelo);\n\t }\n\t}else if(v.padre == abuelo.izquierdo){\n\t if(abuelo.derecho != null &&\n\t abuelo.derecho.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.derecho.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\n\t }else if(v.padre.derecho == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraIzquierda(v.padre);\n\t\tbalancearAgrega(v2); \n\t \n\t }else if(v.padre.izquierdo == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraDerecha(abuelo);\n\t }\n\t} \t\n\t\n }", "Vector getZeroVector();", "@Override\n\tpublic IDoubleVector getColumn(int j) throws OutOfBoundsException {\n\t\treturn null;\n\t}", "public Vertice getPickedModelVertice(){\n\t\tVertice pickVertice;\n\t\tfor(int i = 0; i < getModelVerticesCount(); i++){\n\t\t\tpickVertice = getModelVertice(i);\n\t\t\tif(pickVertice.isPicked){\n\t\t\t\treturn pickVertice;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Vec3d method_2833() {\n return this.field_1649;\n }", "public V hentStorste() {\n Node node = listehode.neste;\n\n if (node != null) {\n for (int i = 1; i < antall; i++) {\n node = node.neste;\n }\n return (V)node.verdi;\n } return null;\n }", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "void calcVertSeamInfo() {\n SeamInfo tr = null;\n SeamInfo tl = null;\n SeamInfo t = null;\n if (this.topRight() != null) {\n tr = topRight().seamInfo;\n }\n if (this.topLeft() != null) {\n tl = topLeft().seamInfo;\n }\n if (this.up != null) {\n t = up.seamInfo;\n }\n\n double min = Double.MAX_VALUE;\n SeamInfo cameFrom = null;\n\n if (tr != null && min > tr.totalWeight) {\n min = tr.totalWeight;\n cameFrom = tr;\n }\n if (tl != null && min > tl.totalWeight) {\n min = tl.totalWeight;\n cameFrom = tl;\n }\n if (t != null && min > t.totalWeight) {\n min = t.totalWeight;\n cameFrom = t;\n }\n\n // for top border cases\n if (cameFrom == null) {\n min = 0;\n }\n\n this.seamInfo = new SeamInfo(this, min + this.energy(), cameFrom, true);\n }", "private int findVertIndex(T vertLabel) {\n ArrayList<T> labelRow = matrix.get(0);\n int vertIndex;\n if ((vertIndex = labelRow.indexOf(vertLabel)) == -1) {\n // System.out.println(\"Error: Vertex '\" + vertLabel + \"' does not exist in the matrix\");\n return -1;\n }\n vertIndex += 1; //Add 1 to account for the label cell\n return vertIndex;\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "NullValue createNullValue();", "NullValue createNullValue();", "@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}", "public void getFloat4(int columnIndex, NullableFloat4Holder holder) {\n Float4Vector vector = (Float4Vector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "public E3DTexturedVertex getVertex(int index){\r\n if(index >= 0 && index < 3)\r\n return vertices[index];\r\n else\r\n return null;\r\n }", "@Override\r\n\tpublic vec2 get2(String ponits) {\n\t\treturn null;\r\n\t}", "@Test\n\tvoid testEdgesNull() {\n\t\tmap.put(\"Boston\", null);\n\t\tAssertions.assertNull(map.get(\"Boston\"));\n\n\t}", "public boolean isNull(int x, int y){\r\n\t\tif (_squares[(int)x/20][(int)y/20] == null){\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 Object getValueAt(int row, int col) {\n\t\t\tif ( nodes == null ) return null;\n\t\t\tif ( nodes.size() == 0 ) return null;\n\t\t\tif ( row > (nodes.size()-1 ) ) return null;\n\t\t\tif ( row < 0 )\n\t\t\t\treturn getColumnType(col);\n\t\t\trcNode n = null;\n\t\t\ttry {\n\t\t\t n = vnodes.elementAt(row) ;\n\t\t\t} catch(Exception ex) {\n\t\t\t n = null;\n\t\t\t}\n\t\t\tif ( n == null ) return null;\n\t\t\t//return node if column is negative\n\t\t\tif ( col==-1 )\n\t\t\t\treturn n;\n\t\t\tif ( col <0 )\n\t\t\t\treturn null;\n\t\t\t\n\t\t\tObject obj;\n\t\t\tString codename = getColumnCodeName(col);\n\t\t\tif ( codename.equals(\"Reflector\") ) return n==null?null:n.UnitName;\n\t\t\telse if ( codename.equals(\"Hostname\") ) return n==null || n.client==null?\"???\":n.client.hostName;\n\t\t\telse if ( codename.equals(\"Load\") ) {\n\t\t\t\tobj = n.haux.get(\"Load\");\n\t\t\t\tif ( obj == null )\n\t\t\t\t\treturn \"???\";\n\t\t\t\treturn \"\"+((DoubleContainer)obj).getValue();\n\t\t\t} else if ( codename.equals(\"Video\") ) {\n\t\t\t\tobj = n.haux.get(\"Video\");\n\t\t\t\tif ( obj == null )\n\t\t\t\t\treturn \"0\";\n\t\t\t\treturn \"\"+((int)((DoubleContainer)obj).getValue());\n\t\t\t} else if ( codename.equals(\"Audio\") ) {\n\t\t\t\tobj = n.haux.get(\"Audio\");\n\t\t\t\tif ( obj == null )\n\t\t\t\t\treturn \"0\";\n\t\t\t\treturn \"\"+((int)((DoubleContainer)obj).getValue());\n\t\t\t} else if ( codename.equals(\"MLVer\") ) return n==null || n.client==null?\"???\":n.client.mlVersion;\n if ( /* col == 2 */codename.equals(\"JavaVer\"))\n return getJavaVersion(n);\n\t\t\telse if ( codename.equals(\"ReflVer\") ) { \n\t\t\t\tString ver = (String) n.haux.get(\"ReflVersion\");\n\t\t\t\treturn (ver == null || ver.length() == 0 ? \"N/A\" : ver);\n\t\t\t}else if ( codename.equals(\"MLUptime\") )\n\t\t\t\treturn n.client.uptime;\n\t\t\telse if ( codename.equals(\"Group\") ) \n\t\t\t\treturn (n!=null && n.client!=null && n.client.mle !=null) ? n.client.mle.Group:\"???\";\n\t\t\treturn null;\n\t\t}", "default Integer getYOffset() {\n return null;\n }", "@Override\r\n\tpublic Color getVertexColor(E key) {\r\n\t\tif(containsVertex(key)) {\r\n\t\t\treturn vertices.get(key).getColor();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Line verif(boolean Free, int startx, int starty, int endx, int endy) {\n if (Free == true) {\n Line line1 = new Line(startx, starty, endx, endy);\n return line1;\n }\n return null;\n }", "float getEmpty();", "@Override \n public Vector getLocation() {\n return this.getR();\n }", "private Value get(Point2D p, Node x) {\n if (x == null) return null;\n if (x.p.equals(p)) return x.val;\n if ((x.vertical && p.x() < x.p.x()) || (!x.vertical && p.y() < x.p.y())) {\n return get(p, x.left);\n }\n else return get(p, x.right);\n }", "@Override\n\tpublic E get(int index) {\n\t\treturn null;\n\t}", "@java.lang.Override\n public boolean hasVector3Value() {\n return typeCase_ == 8;\n }", "public LlvmValue visit(ArrayLength n) {\n return null;\n }", "@Override\r\n\tpublic vec4 get4(String ponits) {\n\t\treturn null;\r\n\t}", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public int getVy() { return vy; }", "Vector getPos();", "public double getV() {\r\n\t\treturn v;\t\r\n\t\t}" ]
[ "0.6277861", "0.5865946", "0.5849105", "0.5786695", "0.5753876", "0.5748033", "0.5665221", "0.55881506", "0.5571586", "0.54980004", "0.5476544", "0.5458842", "0.54409486", "0.5438576", "0.54296464", "0.5420646", "0.5409006", "0.5366432", "0.53380203", "0.5305106", "0.5224192", "0.5220803", "0.5219215", "0.52007854", "0.5198345", "0.51883245", "0.5183705", "0.5183705", "0.5179192", "0.51752186", "0.51678157", "0.5166553", "0.51534027", "0.51438564", "0.51414984", "0.5139281", "0.5117496", "0.5114387", "0.5109241", "0.5106907", "0.5065878", "0.50628597", "0.5062644", "0.5055092", "0.50393647", "0.5028137", "0.50269055", "0.5020573", "0.5015242", "0.5014945", "0.50012314", "0.4991665", "0.4990976", "0.49900833", "0.49896944", "0.49889463", "0.49655423", "0.4944268", "0.4942873", "0.4939339", "0.49372867", "0.49350747", "0.49325478", "0.4921058", "0.49196577", "0.49171072", "0.4913703", "0.49086076", "0.490234", "0.49015546", "0.490057", "0.4899017", "0.4898301", "0.489713", "0.48924148", "0.48876545", "0.4886824", "0.48819897", "0.48685443", "0.48685443", "0.48678502", "0.4861274", "0.48574135", "0.4856163", "0.48549095", "0.48532936", "0.48517665", "0.48476845", "0.48441923", "0.48396462", "0.4838984", "0.48381358", "0.48371392", "0.48342672", "0.48300806", "0.48240736", "0.48211923", "0.48160887", "0.48144954", "0.48117933", "0.48102543" ]
0.0
-1
/ imprimo la ruta mas rapida para llegar al destino llamando al actual.previous que es el pais inicial despues le concateno una flecha para indicar quien es el siguiente concatenandole el actual.name que es el pais siguiente esto se cicla hasta que el pais siguiente o el actual.name sea igual al pais que se puso como destino, por lo que el siguiente se pondra como null y se acabara la condicional
public void printPath(Vertice c) { Vertice actual = c; if (actual.previous != null) { printPath(actual.previous); System.out.print(" --> "); System.out.print(actual.name); } if (actual.previous == null) { System.out.print(actual.name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private NetworkProfile getFinalDestination(NetworkProfile dst) {\n NetworkProfile fdst = null;\n// if (dst.isNameProfile()) {\n// //라우팅 스토어에서 검색\n// fdst = dst;\n// } else {\n fdst = dst;\n// }\n return fdst;\n }", "private static void esPalindromo(String palabraUsuario) {\n\t\tString primeraParte = \"\";\n\t\tString segundaParte = \"\";\n\t\tif (palabraUsuario.length() % 2 == 0) {// Es Par\n\t\t\tfor (int i = 0; i < palabraUsuario.length() / 2; i++) {//Recorro lo caracteres de la palabra introducida hasta la mitad\n\t\t\t\tprimeraParte += palabraUsuario.charAt(i); //Los meto en una cadena\n\t\t\t}\n\t\t\tfor (int i = palabraUsuario.length() / 2 - 1; i >= 0; i--) {//Recorro la mitad de la palabra introducida pero al reves\n\t\t\t\tsegundaParte += palabraUsuario.charAt(i);\n\t\t\t}\n\t\t\tString palabraCreada = primeraParte + segundaParte;// Creo una palabra a partir de la primera y segunda parte\n\t\t\tif (palabraCreada.equalsIgnoreCase(palabraUsuario))//Si la palabra que ha introducido es igual a la que he compuesto \n\t\t\t\tSystem.out.println(\"Es palindromo\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"No es palindromo\");\n\t\t} else {// Es impar\n\t\t\tfor (int i = 0; i < palabraUsuario.length() / 2 + 1; i++) {//Recorro lo caracteres de la palabra introducida un caracter mas de la mitad\n\t\t\t\tprimeraParte += palabraUsuario.charAt(i); // Los meto en una cadena\n\t\t\t}\n\t\t\tfor (int i = primeraParte.length() - 2; i >= 0; i--) {//Le doy i el valor de la longitud de la primera parte -2 porque es impar \n\t\t\t\tsegundaParte += primeraParte.charAt(i);\n\t\t\t}\n\t\t\tString palabraComprobar = primeraParte + segundaParte;\n\t\t\tif (palabraUsuario.equalsIgnoreCase(palabraComprobar)) {//Igual que antes\n\t\t\t\tSystem.out.println(\"Es un palindromo\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No es un palindromo\");\n\t\t\t}\n\t\t}\n\n\t}", "public static String EncontrarCamino(int Inicio, int[] Predecesor, Grafo Grafo, Double[] Costo){\n /*Inicializa las variables necesarias para el metodo*/\n int Pred = Predecesor[Inicio];\n String Camino = String.valueOf(Grafo.ListaVertices.get(Inicio).getId());\n int NumLados = 1;\n DecimalFormat numberFormat = new DecimalFormat(\"0.0#\");\n\n while(true){\n if(Pred!=Predecesor[Pred]){ //Si el predecesor del vertice no es el mismo\n Camino = String.valueOf(Grafo.ListaVertices.get(Pred).getId())+ \"->\"+Camino;\n Pred = Predecesor[Pred];\n NumLados++;\n }\n else{ //Si el predecesor del vertice es el mismo, entonces este vertice es\n break; //el vertice inicial del camino\n }\n }\n Camino = String.valueOf(Grafo.ListaVertices.get(Pred).getId())+ \"->\"+Camino; //Agrega el Vertice inicial a el String con el camino.\n Camino = \"Nodo \"+String.valueOf(Inicio)+\": \"+Camino+\" \"+\"\\t\"+String.valueOf(NumLados)+\" Lados\"+\" (Costo \"+String.valueOf(numberFormat.format(Costo[Inicio]))+\")\";\n return Camino;\n }", "public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }", "String getDest();", "public static String findDirection(XYLocation initial, XYLocation goingTo) {\n\t\tfloat goingToX = goingTo.getX();\n\t\tfloat goingToY = goingTo.getY();\n\t\tfloat initialX = initial.getX();\n\t\tfloat inititalY = initial.getY();\n\t\tfloat theta = (float) Math.atan2(goingToY - inititalY, goingToX - initialX);\n\t\t\n\t\tif (Math.abs(theta) <= oneEighthPI && Math.abs(theta) >= negOneEighthPI) {\n\t\t\t\treturn \"East\";\n\t\t\t} else if (theta > oneEighthPI && theta < threeEighthsPI) {\n\t\t\t\treturn \"SouthEast\";\n\t\t\t} else if (theta > negThreeEighthsPI && theta < negOneEighthPI) {\n\t\t\t\treturn \"NorthEast\";\n\t\t\t} else if (theta > threeEighthsPI && theta < fiveEighthsPI) {\n\t\t\t\treturn \"South\";\n\t\t\t} else if (theta > negFiveEighthsPI && theta < negThreeEighthsPI){\n\t\t\t\treturn \"North\";\n\t\t\t} else if (theta > fiveEighthsPI && theta < sevenEighthsPI) {\n\t\t\t\treturn \"SouthWest\";\n\t\t\t} else if (theta > negSevenEighthsPI && theta < negFiveEighthsPI) {\n\t\t\t\treturn \"NorthWest\";\n\t\t\t} else {\n\t\t\t\treturn \"West\";\n\t\t\t}\n\t}", "String getPrevious();", "public boolean hasPrevious() \n\t{\n\t\tboolean res = false;\n\t\tif(actual != null) {\n\n\t\t\tif(esUltimo && actual != null)\n\t\t\t\tres=true;\n\t\t\telse {\n\t\t\t\tres = actual.darAnterior() != null;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public void cambiarNombreDepartamento(String NombreAntiguo, String NombreNuevo) {\r\n\t\t// TODO Auto-generated method stub\r\n//se modifica el nombre del Dpto. en las 3 tablas de Departamentos\r\n\t\t\r\n//\t\tthis.controlador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreDepartamentoUsuario(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreNumerosDEPARTAMENTOs(NombreAntiguo, NombreNuevo);\r\n\t\tboolean esta=false;\r\n\t\tArrayList <String> aux=new ArrayList<String>();//Aqui meto los dos nombres que necesito, de esta forma no hace falta \r\n\t\taux.add(NombreAntiguo);\r\n\t\taux.add(NombreNuevo);\r\n\t\tint i=0;\r\n\t\twhile (i<departamentosJefe.size() && !esta){\r\n\t\t\tif (departamentosJefe.get(i).getNombreDepartamento().equals(NombreAntiguo)){\r\n\t\t\t\tdepartamentosJefe.get(i).setNombreDepartamento(NombreNuevo);\r\n\t\t\t\tmodifyCache(aux,\"NombreDepartamento\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (getEmpleadoActual().getRango() == 0){\r\n\t\t\tcontrolador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n\t\t}\r\n\t}", "public static String getTranslation(String original) {\n\t\tif (Options.getFrom() == Options.getTo())\n\t\t\treturn null;\n\t\tif (Options.getFrom() == Locale.GERMAN)\n\t\t\treturn getTranslation(original, \"german\");\n\t\telse if (Options.getFrom() == Locale.ENGLISH)\n\t\t\treturn getTranslation(original, \"english\");\n\t\telse\n\t\t\treturn null;\n\t}", "@Override\n protected GraphTraversal translateImpl(GraphTraversal traversal, PlanWithCost<Plan, PlanDetailedCost> plan, PlanOp planOp, TranslationContext context) {\n RelationFilterOp relationFilterOp = (RelationFilterOp) planOp;\n Optional<RelationOp> relationOp = PlanUtil.adjacentPrev(plan.getPlan(), relationFilterOp);\n if (!relationOp.isPresent()) {\n return traversal;\n }\n\n TraversalUtil.remove(traversal, TraversalUtil.lastConsecutiveSteps(traversal, HasStep.class));\n\n traversal = appendRelationAndPropertyGroup(\n traversal,\n relationOp.get().getAsgEbase().geteBase(),\n relationFilterOp.getAsgEbase().geteBase(),\n context.getOnt());\n\n return traversal;\n }", "public void add(String previous, String current, String next)\n\t{\n\t\t//assume the input is \"aaa bbb ccc aaa ddd\"\n\t\t// the map is :\n\t\t// aaa -> {bbb, ddd}\n\t\t// bbb -> {ccc}\n\t\t// aaa bbb -> {ccc}\n\t\t// bbb ccc -> {ddd}\n\t\t// ccc -> {ddd}\n\t\t// ccc aaa -> {ddd}\n\t\t// ddd -> {null}\n\t\t\n\t\t//it means the key is not just a string of \"XXX XXX\"(two words connected by one space),\n\t\t//but also a single word\n\t\t//because user will input one single word(but not two) as the prefix\n\t\t\n\t\t//one is nextSet of current\n\t\taddOneWord(current, next);\n\t\t\n\t\t//it is not the first time. add suffix to the nextSet of \"previous current\"\n\t\tif(previous != null)\n\t\t{\n\t\t\tString preAndCurrent = previous + \" \" + current;\n\t\t\t\n\t\t\taddOneWord(preAndCurrent, next);\n\t\t}\n\t}", "public void MovePrevious()\r\n {\r\n\r\n \t try{\r\n \t\t if(!rsTution.previous())rsTution.first();\r\n \t\t Display();\r\n\r\n\r\n \t }catch(SQLException sqle)\r\n \t {System.out.println(\"MovePrevious Error:\"+sqle);}\r\n }", "private Iterable<V> reconstructPath(V last, V from, HashMap<V, V> previous){\n LinkedList<V> ret = new LinkedList<>();\n ret.addFirst(last);\n while (!last.equals(from)){\n V prev = previous.get(last);\n ret.addFirst(prev);\n last = prev;\n }\n return ret;\n }", "public void corrigirNome(String nOrig, String nNovo) throws IOException {\r\n\t\tfor (VCI_cl_Utilizador u : listaUtilizadores) {\r\n\t\t\tif (u instanceof VCI_cl_Vendedor) {\r\n\t\t\t\tif (((VCI_cl_Vendedor) u).getNome().equals(nOrig)) {\r\n\t\t\t\t\t((VCI_cl_Vendedor) u).setNome(nNovo);\r\n\t\t\t\t\tgravarUtilizadores();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\n\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t }\n\t\t\n\t\t\n\t\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "@Basic\n\tpublic String getPrevMove() {\n\t\treturn prev_move;\n\t}", "public void Actualizar(contacto anterior, contacto actual)\n\t{\n\t\tfor(contacto c: misContactos)\n\t\t{\n\t\t\tif(anterior.getNombre().equals(c.getNombre()) && anterior.getTelefono().equals(c.getTelefono()))\n\t\t\t{\n\t\t\t\tc.setNombre(actual.getNombre());\n\t\t\t\tc.setTelefono(actual.getTelefono());\n\t\t\t\tc.setCorreo(actual.getCorreo());\n\t\t\t\tc.setTipoContacto(actual.getTipoContacto());\n\t\t\t\tc.setTipoLugar(actual.getTipoLugar());\n\t\t\t\tc.setTipoGrupo(actual.getTipoLugar());\n\t\t\t}\t\n\t\t}\n\t}", "Pagina getDestino();", "private void validaPosicaoDestino(Posicao orig, Posicao dest) {\n\t\tif (!tabuleiro.peca(orig).movimentoPossivel(dest)) {\n\t\t\tthrow new XadrezException(\"A peca escolhida não pode mover-se para a posicao destino\");\n\t\t}\n\t}", "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n {\n\n forwardName = this.getName();\n\n }\n\n // target\n if (forwardName == null)\n {\n\n forwardName = this.getTarget().getName();\n\n }\n\n // else\n if (forwardName == null)\n {\n\n forwardName = \"unknown\";\n\n }\n\n // return\n return forwardName;\n\n }", "public void agregarPlanPre(String nombre, String valor) throws ExPlan{\n\n\t\t\n\t\t\tPlan a = buscarPlan(nombre);\n\n\t\t\tif (a == null || (a != null && a instanceof PlanPostpago))\n\t\t\t{\t\n\t\t\t\tPlanPrepago p = new PlanPrepago(Long.parseLong(valor), nombre);\n\t\t\t\tplanes.add(p);\n\t\t\t\t\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow (new ExPlan(\"Plan prepago repetido\"));\n\t\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t}", "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}", "@Override\r\n\tpublic String toShortString() {\r\n\t\treturn \"->F: \" + destination;\r\n\t}", "public List<Carona> localizarCaronaRachada(String origem, String destino) {\r\n\t\tList<Carona> retorno = new LinkedList<Carona>();\r\n\t\t\r\n\t\tfor (Usuario usuarioTemp : listaDeUsuarios) {\r\n\t\t\tfor (Carona caronaTemp : usuarioTemp.getCaronas()) {\r\n\t\t\t\tif (caronaTemp.getTipoCarona().equals(TiposCarona.RACHADACOMUM) || caronaTemp.getTipoCarona().equals(TiposCarona.RACHADAESCAPADA) || caronaTemp.getTipoCarona().equals(TiposCarona.RACHADAMUNICIPAL)) {\r\n\t\t\t\t\tif(caronaTemp.getOrigem().equals(origem) && caronaTemp.getDestino().equals(destino)){\r\n\t\t\t\t\t\t\tretorno.add(caronaTemp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "@Override\n public void imprimir() {\n System.out.println(\"Vehiculos ordenados por precio mayor a menor:\");\n if(a1.precio>a2.precio && a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m1.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m2.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\"\"+m2.modelo);\n if(m1.precio >a2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n }else{\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(a2.precio>a1.precio && a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }else{\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(m1.precio>a2.precio && m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a2.precio >a1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >a1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n }else{ \n if(m2.precio>a2.precio && m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a2.precio >a1.precio && a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m1.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n } \n \n }\n\n }\n }\n }", "private String menorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoIzq().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn menorTurno(a.hijoIzq());\n\t}", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public String getSortingPrefix(User previousContact, User currentContact) {\n if (sortContactsByName) {\n if ((previousContact == null || previousContact.getName() == null) && currentContact != null) {\n return currentContact.getName().substring(0,1).toUpperCase();\n } else if (currentContact != null &&\n !(previousContact.getName().substring(0,1).equals(currentContact.getName().substring(0,1)))) {\n return currentContact.getName().substring(0,1).toUpperCase();\n }\n }\n //TODO: implement sort by country\n return null;\n }", "private static String getTransitionString(Transition expected) {\n\t\treturn expected.getFromState().getName()+\"-->\"+expected.getDescription()+\"-->\"+expected.getToState().getName();\n\t}", "public String getNewName(String oldName) {\n\t\t// return result of first matching rule\n\t\tIterator<RemapRule> iter = rules.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tString newName = iter.next().getNewName(oldName);\n\t\t\tif (newName != null) return newName;\n\t\t}\n\t\treturn oldName;\n\t}", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\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\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\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\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "public java.lang.String getDestination(){return this.destination;}", "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 source_to_dest_path(int source, int dest, int[] forward_dist_tab, int[] list_Prevoius_Node, ArrayList<Integer> del_router)\n\t{\n\t\tif(del_router != null && del_router.contains(dest))\n\t\t\tSystem.out.println(\"Router \"+ (dest+1) +\" is deleted\");\n\t\telse if(del_router != null && del_router.contains(source))\n\t\t\tSystem.out.println(\"Router \"+ (source+1) +\" is deleted\");\n\t\telse\n\t\t{\n\t\t\tint[] prevNodes_List = list_Prevoius_Node;\n\t\t\tint k = dest;\n\t\t\tString path = \"\" + (dest+1);\n\t\t\t\n\t\t\t//Check if node is reachable that if it is connected in the graph then only proceed further\n\t\t\tif(forward_dist_tab[dest] != INFINITE_DIST)\n\t\t\t{\n\t\t\t\twhile(prevNodes_List[k] != source)\n\t\t\t\t{\n\t\t\t\t\tpath += \" >- \" + (prevNodes_List[k] + 1);\n\t\t\t\t\tk = prevNodes_List[k];\n\t\t\t\t}\n\t\t\t\t//for source node\n\t\t\t\tpath += \" >- \" + (source+1);\n\t\t\t\t\n\t\t\t\t//Back traversal is done using the previous node list\n\t\t\t\tString disp_path= new StringBuilder(path).reverse().toString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nShortest distance from \"+ (source+1) +\" to \"+ (dest+1) +\":\");\n\t\t\t\tSystem.out.println(\"PATH: \"+ disp_path);\n\t\t\t\tSystem.out.println(\"COST: \" + forward_dist_tab[dest]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\nRouter \"+ (dest+1) +\" is dead or unreachable.\");\n\t\t\t}\n\t\t}\n\t}", "public void inputPrev() {\n --this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}", "private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}", "public static String meeting(String s) {\n\n String[] fullName = s.split(\";\");\n String[] firstName = new String[fullName.length];\n String[] lastName = new String[fullName.length];\n\n for (int i = 0; i < fullName.length; i++) {\n String[] nameSplit = fullName[i].split(\":\");\n firstName[i] = nameSplit[0];\n lastName[i] = nameSplit[1];\n }\n\n for (int i = 1; i < lastName.length; i++) {\n for (int j = i; j > 0; j--) {\n int order = lastName[j].toLowerCase().compareTo(lastName[j - 1].toLowerCase());\n if (order < 0) {\n String temp = lastName[j-1];\n lastName[j-1] = lastName[j];\n lastName[j] = temp;\n\n temp = firstName[j-1];\n firstName[j-1] = firstName[j];\n firstName[j] = temp;\n }\n else if (order == 0) {\n if (firstName[j].toLowerCase().compareTo(firstName[j-1].toLowerCase()) < 0) {\n String temp = lastName[j-1];\n lastName[j-1] = lastName[j];\n lastName[j] = temp;\n\n temp = firstName[j-1];\n firstName[j-1] = firstName[j];\n firstName[j] = temp;\n }\n }\n else {\n break;\n }\n }\n }\n String outputString = \"\";\n for (int i = 0; i < lastName.length; i++) {\n outputString += \"(\" + lastName[i].toUpperCase() + \", \" + firstName[i].toUpperCase() + \")\";\n }\n return outputString;\n }", "public static String getRelativePosition(double nextUserOrientDel){\n\t\tString direction = \"\";\n\t\tif (nextUserOrientDel > 0 && nextUserOrientDel < 20) {\n\t\t\tdirection = \"in front\"; //on the right\n\t\t} else if (nextUserOrientDel >= 20 && nextUserOrientDel < 60) {\n\t\t\tdirection = \"before right\";\n\t\t} else if (nextUserOrientDel >= 60 && nextUserOrientDel < 120) {\n\t\t\tdirection = \"alongside right\";\n\t\t} else if (nextUserOrientDel >= 120 && nextUserOrientDel < 160) {\n\t\t\tdirection = \"behind right\";\n\t\t} else if (nextUserOrientDel >= 160 && nextUserOrientDel <= 180){ \n\t\t\tdirection = \"behind\";\n\t\t} else if (nextUserOrientDel < 0 && nextUserOrientDel > -20) {\n\t\t\tdirection = \"in front\"; //on the left\n\t\t} else if (nextUserOrientDel <= -20 && nextUserOrientDel > -60) {\n\t\t\tdirection = \"before left\";\n\t\t} else if (nextUserOrientDel <= -60 && nextUserOrientDel > -120) {\n\t\t\tdirection = \"alongside left\";\n\t\t} else if (nextUserOrientDel <= -120 && nextUserOrientDel > -160) {\n\t\t\tdirection = \"behind left\";\n\t\t} else if (nextUserOrientDel <= -160 && nextUserOrientDel >= -180){ \n\t\t\tdirection = \"behind\";\n\t\t} \t\t\t\t\t\n\t\treturn direction;\n\t}", "private void backTrack(String start, AdjVertex end, Vertex parent){\r\n\t\tif(parent.name.compareToIgnoreCase(start) == 0){ \r\n\t\t\t//if we have found our way back to the start, then we print the result\r\n\t\t\tif(pathStack.isEmpty()){\r\n\t\t\t\tSystem.out.println(start + \" -- \" + end.name);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.print(start + \" -- \" + end.name);\r\n\t\t\t\twhile(!pathStack.isEmpty()){\r\n\t\t\t\t\tSystem.out.print(\" -- \" + pathStack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we still have to find our way back to the first person,\r\n\t\t//we push the end name into the stack, \r\n\t\telse{ \r\n\t\t\tpathStack.push(end.name);\r\n\t\t\tconnector(start, parent.name);\r\n\t\t}\r\n\t}", "public String dest() {\n\t\tif ((new File(destination)).exists()) {\n\t\t\tString destinationS = \"C:\\\\Users\\\\Sanja\\\\workspace\\\\hw6\\\\src\\\\com\\\\sourceit\\\\radchenko\\\\hw6\\\\\";\n\t\t\tint destinationF = 0;\n\t\t\tdo {\n\t\t\t\tdestinationF++;\n\t\t\t\tdestination1 = destinationS + destinationF + \".txt\";\n\t\t\t} while ((new File(destination)).exists() == (new File(destination1))\n\t\t\t\t\t.exists());\n\t\t\treturn destination1;\n\t\t} else {\n\t\t\tdestination1 = destination;\n\t\t}\n\t\treturn destination1;\n\t}", "public void movePrevious() throws CurrentNotSetException {\r\n\t\ttry {\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CurrentNotSetException();\r\n\t\t}\r\n\r\n\t}", "protected void addPositionBeforeBeaId(File srcFile,File destFile) throws IOException {\n FileReader fileReader=null;\n BufferedReader bufferedReader=null;\n FileWriter fileWriter1=null;\n\n try {\n fileReader=new FileReader(srcFile);\n bufferedReader=new BufferedReader(fileReader);\n fileWriter1=new FileWriter(destFile);\n\n String lastBeaid = \"\";\n String lastPosition = \"\";\n String line = bufferedReader.readLine();\n while (line != null && line.length()>0) {\n StringTokenizer stringTokenizer = new StringTokenizer(line, \";\");\n String newBeaId = stringTokenizer.nextToken();\n if (!lastBeaid.equals(newBeaId)) {\n lastBeaid = newBeaId;\n lastPosition = stringTokenizer.nextToken();\n }\n fileWriter1.write(lastPosition);\n fileWriter1.write(\";\");\n fileWriter1.write(line);\n fileWriter1.write(\"\\n\");\n line = bufferedReader.readLine();\n }\n } finally {\n CloseUtil.close(fileWriter1);\n CloseUtil.close(bufferedReader);\n }\n\n }", "private void backtrack(List<String> res, String current, int start, int end, int max) {\n\t\tif(current.length() == max*2) {\n\t\t\tres.add(current);\n\t\t}\n\t\t\n\t\tif(start < max) {\n\t\t\tbacktrack(res, current+\"(\", start+1, end, max);\n\t\t}\n\t\t\n\t\tif(end < start) {\n\t\t\tbacktrack(res, current+\")\", start, end+1, max);\n\t\t}\n\t}", "private static String sacarRuta(File[] ficheros, int indice, \n\t\t\tString texto) {\n\t\tString nombre = null;\n\t\tif (indice <= ficheros.length - 1) {\n\t\t\tif (practica6.Prueba1.\n\t\t\t\t\tesFicheroGrafico(ficheros[indice])) {\n\t\t\t\tif (ficheros[indice].getName().\n\t\t\t\t\t\tequalsIgnoreCase(texto)) {\n\t\t\t\t\treturn ficheros[indice].getPath();\n\t\t\t\t} else {\n\t\t\t\t\tindice++;\n\t\t\t\t\treturn sacarRuta(ficheros, indice, texto);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nombre;\n\t}", "public int movePlayer(CPositionEntity pInitialPosition, CPositionEntity pFinalPosition){\r\n int i = 0;\r\n int lReturnValue = MOVE_PLAYER_FAILURE_PLAYER_NOT_IN_SQUAD;\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries) {\r\n if (lPlayerEntry.getPosition().getName().equals(pInitialPosition.getName()) && lPlayerEntry.getPlayer() != null) {\r\n lReturnValue = MOVE_PLAYER_SUCCESS_NO_SWAP;\r\n }\r\n }\r\n\r\n /*\r\n * if we found the player we want to put in our squad\r\n * we go through every player of the squad\r\n */\r\n\r\n if (lReturnValue == MOVE_PLAYER_SUCCESS_NO_SWAP){\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries){\r\n if (lPlayerEntry.getPosition() != null){\r\n /*\r\n * if a player in the squad already has the position\r\n * where we want to put our passed player, we set his\r\n * position to the passed initial one (to swap him with the\r\n * player we want to move)\r\n */\r\n if (lPlayerEntry.getPosition().getName().equals(pFinalPosition.getName())){\r\n editPlayerPosition(i, pInitialPosition);\r\n lReturnValue = MOVE_PLAYER_SUCCESS_WITH_SWAP;\r\n }\r\n /*\r\n * when we finally find our passed player, we set\r\n * his position to the passed final one\r\n */\r\n else if (lPlayerEntry.getPosition().getName().equals(pInitialPosition.getName())) {\r\n editPlayerPosition(i, pFinalPosition);\r\n }\r\n }\r\n i++;\r\n }\r\n }\r\n return lReturnValue;\r\n }", "public T previous() {\r\n\t\t// aktu == null ist dann, wenn aktu einen schritt zuvor first war;\r\n\t\tif (aktu == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (first.equals(aktu)) {\r\n\t\t\t// wir sind am Ende, deswegen setzen wir aktu auf null (für die\r\n\t\t\t// Abfrage oberhalb) und geben den ersten Wert zurück;\r\n\t\t\taktu = null;\r\n\t\t\treturn (T) first.getData();\r\n\t\t} else if (first.equals(aktu.getPrevious())) {\r\n\t\t\t// überprüft, ob der Knoten vor dem aktuellen der letzte ist, dass\r\n\t\t\t// hat den Grund, dass beim letzten die Methode .getPrevios eine\r\n\t\t\t// NullPointerException wirft;\r\n\t\t\taktu = first;\r\n\t\t\treturn (T) first.getNext().getData();\r\n\t\t} else {\r\n\t\t\t// das ist der Standardfall solange der nicht beim vorletzten Knoten\r\n\t\t\t// angekommen ist.\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t\treturn (T) aktu.getNext().getData();\r\n\t\t}\r\n\r\n\t}", "public void setPrev(String prev){\n\t\tthis.prev = prev;\n\t}", "@Model \n\tprotected void setPrevMove(String prev_move) {\n\t\tassert((prev_move == \"\") || (prev_move == \"left\") || (prev_move == \"right\"));\n\t\t\n\t\tthis.prev_move = prev_move;\n\t}", "public static String mirrorZ(char start, int step) throws IllegalArgumentException {\r\n if ((start > 'Z') || (start < 'A')) {\r\n throw new IllegalArgumentException(\"must be an uppercase letter!\");\r\n }\r\n if (step <= 0) {\r\n throw new IllegalArgumentException(\"must be a non-negative step size!\");\r\n }\r\n String palindrome = \"\";\r\n // System.out.println(start);\r\n if (start == 'Z') {\r\n return \"Z\";\r\n }\r\n if (start + step > 'Z') {\r\n return start + \" \" + palindrome + start;\r\n }\r\n palindrome = start + \" \" + mirrorZ((char) (start + step), step) + \" \" + start;\r\n // System.out.println(palindrome);\r\n return palindrome;\r\n\r\n }", "String getPrevMoves() {\n return this.prevMoves;\n }", "String getOriginalName();", "public void actualizarPalabra(String ocultarRespuesta){\n String respuesta=\"\";\n \n for(int i=0;i<this.palabra.length();i++){\n if(!(this.palabra.toLowerCase().substring(i,i+1).equals(ocultarRespuesta.toLowerCase().substring(i,i+1)))&&\"-\".equals(this.palabra.substring(i, i+1))){\n respuesta+=ocultarRespuesta.substring(i,i+1);\n }\n if(!(this.palabra.toLowerCase().substring(i,i+1).equals(ocultarRespuesta.toLowerCase().substring(i,i+1)))&&\"-\".equals(ocultarRespuesta.substring(i, i+1))){\n respuesta+=this.palabra.substring(i,i+1);\n }\n if(this.palabra.toLowerCase().substring(i,i+1).equals(ocultarRespuesta.toLowerCase().substring(i,i+1))){\n respuesta+=ocultarRespuesta.substring(i, i+1);\n }\n }\n this.setPalabra(respuesta);\n }", "public static String mirrorZ(char start) throws IllegalArgumentException {\r\n if ((start > 'Z') || (start < 'A')) {\r\n throw new IllegalArgumentException(\"must be an uppercase letter!\");\r\n }\r\n String palindrome = \"\";\r\n // System.out.println(start);\r\n if (start == 'Z') {\r\n return \"Z\";\r\n }\r\n palindrome = start + \" \" + mirrorZ((char) (start + 1)) + \" \" + start;\r\n // System.out.println(palindrome);\r\n return palindrome;\r\n\r\n }", "String origin();", "public String getNewName(String oldName) {\n\t\t\t// test for a matching pattern\n\t\t\tPattern p = Pattern.compile(pattern);\n\t\t\tMatcher m = p.matcher(oldName);\n\t\t\tif (m.matches()) {\n\t\t\t\tswitch (remapType) {\n\t\t\t\tcase ADD_PREFIX: return opStr + oldName;\n\t\t\t\tcase ADD_SUFFIX: return oldName + opStr;\n\t\t\t\tcase REGEX_GROUPS:\n\t\t\t\t\tString newName = oldName;\n\t\t\t\t\tfor (int gidx=1; gidx<=m.groupCount(); gidx++)\n\t\t\t\t\t\tnewName = newName.replaceFirst(\"%\" + gidx, m.group(gidx));\n\t\t\t\t\treturn newName;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "private Boolean podeMover(Casa casa, Casa destino, Tabuleiro tabuleiro) {\n \n // variaveis para simplificar o codigo (Matheus)\n \n int x = destino.x;\n int y = destino.y; \n \n \n //Verifica se o destino está nas diagonais e horizontal e vertical (Matheus)\n //combinação dos movimetos do Bispo e da Torre\n \n if(casa.x == x && !this.pulouPeca(\"reta\",1, casa, destino, tabuleiro) ) {\n return true;\n }\n if(casa.y == y && !this.pulouPeca(\"reta\",2, casa, destino, tabuleiro)) {\n return true;\n }\n \n for(int i = -7; i <= 7; i++) { \n if( (casa.x + i == x && casa.y + i == y) && !this.pulouPeca(\"diagonal\",1, casa, destino, tabuleiro)){\n return true;\n }\n if( (casa.x + i == x && casa.y + (i * -1) == y) && !this.pulouPeca(\"diagonal\",2, casa, destino, tabuleiro)){\n return true;\n }\n }\n return false;\n \n \n }", "private void correctJumpPaths(Field origin, Field lastField, Field currentField) {\n Field [] neighbours = currentField.getNeighbours();\n Random random = new Random();\n for(int i = 0; i < neighbours.length; ++i) { // jump move validation\n if((neighbours[i] != null) && (neighbours[i].getPlayer() != null)) {\n Field nextField = neighbours[i].getNeighbours()[i];\n if(nextField != null && !nextField.equals(lastField) && nextField.getPlayer() == null) {\n if(valueOfMove(origin, nextField) >= valueOfMove(bestMove[0], bestMove[1])) {\n bestMove[0] = origin;\n bestMove[1] = nextField;\n } else if(valueOfMove(origin, nextField) == valueOfMove(bestMove[0], bestMove[1])) {\n if(random.nextBoolean()) {\n bestMove[0] = origin;\n bestMove[1] = nextField;\n }\n }\n //correctJumpPaths(origin, currentField, nextField);\n }\n }\n }\n }", "private void CQChangeStateVP(String origen, String destino) {\n if (!isReceipt()) {\n String sql = \"SELECT C_VALORPAGO_ID FROM C_VALORPAGO WHERE TIPO='P' AND STATE=? AND C_PAYMENT_ID=?\";\n\n try {\n\n PreparedStatement pstm = DB.prepareStatement(sql, get_TrxName());\n pstm.setString(1, origen);\n pstm.setInt(2, getC_Payment_ID());\n ResultSet rs = pstm.executeQuery();\n\n int C_VALORPAGO_ID;\n\n while (rs.next()) {\n C_VALORPAGO_ID = rs.getInt(1);\n MVALORPAGO payval = new MVALORPAGO(getCtx(), C_VALORPAGO_ID, get_TrxName());\n payval.setEstado(destino);\n payval.save(get_TrxName());\n }\n } catch (Exception e) {\n }\n }\n }", "public void insertFixup(ArvoreRB A,Node z){ \r\n \r\n while ( z.pai.cor == \"vermelho\"){ \r\n if (z.pai == z.pai.pai.esq) {\r\n Node y = z.pai.pai.dir; \r\n if (y.cor== \"vermelho\") {\r\n z.pai.cor = \"preto\";\r\n y.cor = \"preto\";\r\n z.pai.pai.cor = \"vermelho\";\r\n z = z.pai.pai;\r\n } else {\r\n if (z == z.pai.dir) {\r\n z = z.pai;\r\n rotacaoEsq(A,z);\r\n }\r\n z.pai.cor = \"preto\";\r\n z.pai.pai.cor = \"vermelho\";\r\n rotacaoDir(A,z.pai.pai);\r\n }\r\n }else {\r\n if (z.pai == z.pai.pai.dir) { \r\n Node y = z.pai.pai.esq;\r\n if (y.cor == \"vermelho\") {\r\n z.pai.cor = \"preto\";\r\n y.cor = \"preto\";\r\n z.pai.pai.cor = \"vermelho\";\r\n z = z.pai.pai; \r\n }\r\n else{\r\n if (z == z.pai.esq) {\r\n z = z.pai;\r\n rotacaoDir(A,z); \r\n }\r\n z.pai.cor = \"preto\";\r\n z.pai.pai.cor = \"vermelho\";\r\n rotacaoEsq(A,z.pai.pai);\r\n } \r\n \r\n } \r\n A.raiz.cor = \"preto\";\r\n } \r\n }\r\n }", "public static String mirrorA(char start, int step) throws IllegalArgumentException {\r\n if ((start > 'Z') || (start < 'A')) {\r\n throw new IllegalArgumentException(\"must be an uppercase letter!\");\r\n }\r\n if (step <= 0) {\r\n throw new IllegalArgumentException(\"must be a non-negative step size!\");\r\n }\r\n String palindrome = \"\";\r\n // System.out.println(start);\r\n if (start == 'A') {\r\n return \"A\";\r\n }\r\n if (start - step < 'A') {\r\n return start + \" \" + palindrome + start;\r\n }\r\n palindrome = start + \" \" + mirrorA((char) (start - step), step) + \" \" + start;\r\n // System.out.println(palindrome);\r\n return palindrome;\r\n\r\n }", "@Override\n\tpublic String problemHeader() {\n\t\treturn \"Reverse Last and First Names\";\n\t}", "public static String previousPermutation(String str) throws InvalidPreviousPermutationException{\n \tchar[] charArray = str.toCharArray();\n \tint len = charArray.length - 1;\n \tint i = len;\n\n \twhile(i>0 && charArray[i-1]<=charArray[i]){\n \t\ti--;\n \t}\n\n \tif(i<=0){\n \t\tthrow new InvalidPreviousPermutationException();\n \t}\n\n \tint j = i - 1;\n \twhile(j + 1<=len && charArray[j + 1]<=charArray[i - 1]){\n \t\tj++;\n \t}\n\n \tswap(charArray,i-1,j);\n\n \tString st = new String(charArray);\n \tString ans = st.substring(0,i);\n \tans += new StringBuilder(st.substring(i,st.length())).reverse().toString();\n \tans += st.substring(st.length());\n \treturn ans;\n }", "public String generaIDPortalEmpleo(EmpresaPorAutorizarVO vo){\n\t\tString idPortalEmpleo = \"\";\t\t\n\t\tint digitoVerificador = 1;\n\t\tFormat formatter = new SimpleDateFormat(\"yyMMdd\");\t\t\n\t\ttry {\n\t\t\tDomicilioVO domicilio = vo.getDomicilio();\n\t\t\tif(vo.getIdTipoPersona() == Constantes.TIPO_PERSONA.PERSONA_FISICA.getIdTipoPersona()){\n\t\t\t\t//Tipo de Persona Física\n\t\t\t\tif(vo.getApellido2().isEmpty()){\n\t\t\t\t\t//Primeras tres letras del apellido paterno\n\t\t\t\t\t//System.out.println(\"--original--strApellido1:\" + vo.getApellido1());\n\t\t\t\t\tString strApellido1 = convertAccents(vo.getApellido1());\n\t\t\t\t\t//System.out.println(\"--modificado--strApellido1:\" + strApellido1);\n\t\t\t\t\tidPortalEmpleo = idPortalEmpleo + strApellido1.substring(0, 3);\t\n\t\t\t\t} else {\n\t\t\t\t\t//Primeras dos letras del apellido paterno\n\t\t\t\t\t//Primera letra del apellido materno\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"--original--strApellido1:\" + vo.getApellido1());\n\t\t\t\t\tString strApellido1 = convertAccents(vo.getApellido1());\n\t\t\t\t\t//System.out.println(\"--modificado--strApellido1:\" + strApellido1);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"--original--strApellido2:\" + vo.getApellido2());\n\t\t\t\t\tString strApellido2 = convertAccents(vo.getApellido2());\n\t\t\t\t\t//System.out.println(\"--modificado--strApellido2:\" + strApellido2);\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tidPortalEmpleo = idPortalEmpleo + strApellido1.substring(0, 2);\n\t\t\t\t\tidPortalEmpleo = idPortalEmpleo + strApellido2.substring(0, 1);\n\t\t\t\t}\n\t\t\t\t//Primera letra del nombre\n\t\t\t\t//System.out.println(\"--original--strNombre:\" + vo.getNombre());\n\t\t\t\tString strNombre = convertAccents(vo.getNombre());\n\t\t\t\t//System.out.println(\"--modificado--strNombre:\" + strNombre);\t\t\t\t\t\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + strNombre.substring(0, 1);\n\t\t\t\t//Fecha de nacimiento en formato yymmdd\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + formatter.format(vo.getFechaNacimiento());\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\t//Tipo de Persona Moral\t\t\t\t\t\n\t\t\t\tString strRazonSocial = convertAccents(vo.getRazonSocial());\n\t\t\t\t//Primeras tres letras de razón social\n\t\t\t\t//COMENTAR EN PRODUCCION\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (strRazonSocial.length() < 3) \n\t\t\t\t\tstrRazonSocial = StringUtils.rightPad(strRazonSocial, 3, \"X\");\n\t\t\t\t/**/\t\t\n\t\t\t\t//TERMINA COMENTAR EN PRODUCCION\t\t\t\t\n\t\t\t\t//\n\t\t\t\t//System.out.println(\"--modificado--strRazonSocial:\" + strRazonSocial);\t\t\t\t\t\t\t\t\t\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + strRazonSocial.substring(0, 3);\t\n\t\t\t\t//Fecha de acta en formato yymmdd\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + formatter.format(vo.getFechaActa());\n\t\t\t}\n\t\t\tidPortalEmpleo = idPortalEmpleo + domicilio.getCodigoPostal();\t\t\t\n\t\t\t//Código verificador (1)\t\t\t\t\n\t\t\tEmpresaPorAutorizarDAO epaDAO = new EmpresaPorAutorizarDAO();\n\t\t\tdigitoVerificador = epaDAO.obtenerDigitoVerificador(idPortalEmpleo, vo.getIdTipoPersona());\t\n\t\t\t//rellenar\n\t\t\tint lenId = idPortalEmpleo.length();\n\t\t\t//System.out.println(\"------digitoVerificador:\" + digitoVerificador);\n\t\t\tint lenDigito = String.valueOf(digitoVerificador).length();\n\t\t\t//System.out.println(\"------lenDigito:\" + lenDigito);\n\t\t\tint intRelleno = PORTAL_ID_SIZE - (lenId + lenDigito);\n\t\t\t//System.out.println(\"------intRelleno:\" + intRelleno);\n\t\t\tString strRelleno = \"\";\n\t\t\tif(intRelleno>0){\n\t\t\t\tfor(int i=0; i<intRelleno; i++){\n\t\t\t\t\tstrRelleno = strRelleno + \"0\";\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(\"------strRelleno:\" + strRelleno);\n\t\t\tidPortalEmpleo = idPortalEmpleo + strRelleno + digitoVerificador;\n\t\t\t//System.out.println(\"------idPortalEmpleo:\" + idPortalEmpleo);\n\t\t\n\t\t} catch (RuntimeException e) {\n\t\t\tlogger.error(e.toString());\n\t\t\te.printStackTrace();\n\t\t\tthrow new PersistenceException(e);\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(e.toString());\n\t\t\te.printStackTrace();\n\t\t\tthrow new PersistenceException(e);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.toString());\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tthrow new PersistenceException(e);\n\t\t}\t\t\n\t\treturn idPortalEmpleo;\n\t}", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "private void girar(int delta){\r\n\t\tang = angDestino;\r\n\t}", "public void Mover(int origen, int destino) {\n \n // Mostramos en pantalla lo que hacemos\n Mostrar();\n System.out.println(\"Movemos desde (\"+origen+\") hasta (\"+destino+\")\");\n System.out.println(\"Movimiento: \"+ longitud());\n System.out.println(\"\");\n \n \n // Y luego, lo hacemos, claro\n columnas[destino].push(columnas[origen].pop());\n}", "protected String getPreviousActivityName() {\n try {\n Bundle bundle = getIntent().getExtras();\n if (bundle.getString(\"classFrom\") == null) {\n return \"\";\n } else {\n return bundle.getString(\"classFrom\");\n }\n } catch (Exception e) {\n // TODO: handle exception\n return \"\";\n }\n }", "public String adicionaFornecedor(String nome, String email, String telefone) {\n\t\tUtil.testaNull(nome, \"Erro no cadastro do fornecedor: nome nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(nome, \"Erro no cadastro do fornecedor: nome nao pode ser vazio ou nulo.\");\n\n\t\tUtil.testaNull(email, \"Erro no cadastro do fornecedor: email nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(email, \"Erro no cadastro do fornecedor: email nao pode ser vazio ou nulo.\");\n\n\t\tUtil.testaNull(telefone, \"Erro no cadastro do fornecedor: telefone nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(telefone, \"Erro no cadastro do fornecedor: telefone nao pode ser vazio ou nulo.\");\n\n\t\tif (this.fornecedores.containsKey(nome)) {\n\t\t\tthrow new IllegalArgumentException(\"Erro no cadastro de fornecedor: fornecedor ja existe.\");\n\t\t}\n\n\t\tthis.fornecedores.put(nome, new Fornecedor(nome, email, telefone));\n\t\tthis.nomesCadastrados.add(nome);\n\n\t\tfor (int i = this.nomesCadastrados.size() - 1; i > 0; i--) {\n\t\t\tString nome1 = this.nomesCadastrados.get(i);\n\t\t\tString nome2 = this.nomesCadastrados.get(i - 1);\n\n\t\t\tint compare = nome1.compareTo(nome2);\n\n\t\t\tif (compare < 0) {\n\t\t\t\tCollections.swap(this.nomesCadastrados, i, i - 1);\n\t\t\t}\n\n\t\t}\n\n\t\treturn nome;\n\t}", "private int previousSpecialPrefix(RuleBasedCollator collator, int ce)\n {\n backupInternalState(m_utilSpecialBackUp_);\n while (true) {\n // position ourselves at the begining of contraction sequence\n int offset = getContractionOffset(collator, ce);\n int entryoffset = offset;\n if (isBackwardsStart()) {\n ce = collator.m_contractionCE_[offset];\n break;\n }\n char prevch = (char)previousChar();\n while (prevch > collator.m_contractionIndex_[offset]) {\n // since contraction codepoints are ordered, we skip all that\n // are smaller\n offset ++;\n }\n if (prevch == collator.m_contractionIndex_[offset]) {\n ce = collator.m_contractionCE_[offset];\n }\n else {\n // if there is a completely ignorable code point in the middle\n // of a prefix, we need to act as if it's not there assumption:\n // 'real' noncharacters (*fffe, *ffff, fdd0-fdef are set to\n // zero)\n // lone surrogates cannot be set to zero as it would break\n // other processing\n int isZeroCE = collator.m_trie_.getLeadValue(prevch);\n // it's easy for BMP code points\n if (isZeroCE == 0) {\n continue;\n }\n else if (UTF16.isTrailSurrogate(prevch)\n || UTF16.isLeadSurrogate(prevch)) {\n // for supplementary code points, we have to check the next one\n // situations where we are going to ignore\n // 1. beginning of the string: schar is a lone surrogate\n // 2. schar is a lone surrogate\n // 3. schar is a trail surrogate in a valid surrogate\n // sequence that is explicitly set to zero.\n if (!isBackwardsStart()) {\n char lead = (char)previousChar();\n if (UTF16.isLeadSurrogate(lead)) {\n isZeroCE = collator.m_trie_.getLeadValue(lead);\n if (RuleBasedCollator.getTag(isZeroCE)\n == RuleBasedCollator.CE_SURROGATE_TAG_) {\n int finalCE = collator.m_trie_.getTrailValue(\n isZeroCE,\n prevch);\n if (finalCE == 0) {\n // this is a real, assigned completely\n // ignorable code point\n continue;\n }\n }\n }\n else {\n nextChar(); // revert to original offset\n // lone surrogate, completely ignorable\n continue;\n }\n nextChar(); // revert to original offset\n }\n else {\n // lone surrogate at the beggining, completely ignorable\n continue;\n }\n }\n\n // char was not in the table. prefix not found\n ce = collator.m_contractionCE_[entryoffset];\n }\n\n if (!isSpecialPrefixTag(ce)) {\n // char was in the contraction table, and the corresponding ce\n // is not a prefix ce. We found the prefix, break out of loop,\n // this ce will end up being returned.\n break;\n }\n }\n updateInternalState(m_utilSpecialBackUp_);\n return ce;\n }", "public String LateralOp(String name) {\n String line1, line2, tmpBuf1, tmpBuf2;\n try {\n BufferedReader br = new BufferedReader(new FileReader(file1));\n BufferedWriter bw = new BufferedWriter(new FileWriter(name));\n\n // Working with two files\n if (file2 != null) {\n BufferedReader br2 = new BufferedReader(new FileReader(file2));\n\n do{\n line1 = br.readLine(); line2 = br2.readLine();\n tmpBuf1 = line1 == null ? \"\" : line1;\n tmpBuf2 = line2 == null ? \"\" : line2;\n\n bw.write(tmpBuf1 + tmpBuf2);\n bw.newLine();\n }while (line1!= null || line2 != null);\n bw.flush();\n }\n // Working with spacers\n else{\n line2 = \"\";\n for (int i = 0; i < spaceCount; ++i) {\n line2 += spacer;\n }\n while((line1 = br.readLine()) != null) {\n bw.write(line1 + line2);\n bw.newLine();\n }\n bw.flush();\n }\n }\n catch (FileNotFoundException e) {\n System.err.println(\"ERROR: File does not exist. Please input a valid file.\");\n }\n catch (IOException e) {\n System.err.println(\"ERROR: Failure while reading from file.\");\n }\n return name;\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 }", "private void printPath( Vertex dest )\n {\n if( dest.prev != null )\n {\n printPath( dest.prev );\n // System.out.print( \" to \" );\n }\n System.out.print( dest.name +\" \" );\n }", "public static String destFilename(String sourceFile) throws InvalidNameException {\n String[] detailedName = sourceFile.split(\"\\\\.\");\n if (detailedName.length <= 1 || !detailedName[detailedName.length - 1].equals(\"deca\")) {\n throw new InvalidNameException();\n }\n detailedName[detailedName.length - 1] = \"ass\";\n return String.join(\".\", detailedName);\n }", "private String transformName(String originName,String prefix,String separator){\n if(StringUtils.isNotBlank(originName)){\n originName = StringUtils.removeStart(originName,prefix);\n }\n if(StringUtils.isNotBlank(separator)){\n List<String> names = Splitter.on(separator).omitEmptyStrings().trimResults().splitToList(originName);\n List<String> javaStyleNames = Lists.transform(names, new Function<String, String>() {\n public String apply(String input) {\n return ContextUtil.onlyFirstLetterIsUp(input);\n }\n });\n originName = Joiner.on(\"\").join(javaStyleNames);\n }else {\n originName = ContextUtil.onlyFirstLetterIsUp(originName);\n }\n return ContextUtil.upperFirstLetter(originName);\n }", "@NotNull\n @JsonProperty(\"previousValue\")\n public String getPreviousValue();", "String getDestinationName();", "private String computeAirPath(Position source, Position destination) {\n\n\t\t\t\tboolean toRight = false;\n\t\t\t\tboolean toBottom = false;\n\n\t\t\t\tint xSteps = source.getColumn() - destination.getColumn();\n\t\t\t\tint ySteps = source.getRow() - destination.getRow();\n\n\t\t\t\tif (xSteps < 0) {\n\t\t\t\t\ttoRight = true;\n\t\t\t\t}\n\n\t\t\t\tif (ySteps < 0) {\n\t\t\t\t\ttoBottom = true;\n\t\t\t\t}\n\n\t\t\t\tString path = \"\";\n\n\t\t\t\tfor (int i = 0; i < Math.abs(xSteps); i++) {\n\t\t\t\t\tif (toRight) {\n\t\t\t\t\t\tpath += \"\\u2192 \"; // right\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2190 \"; // left\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < Math.abs(ySteps); i++) {\n\t\t\t\t\tif (toBottom) {\n\t\t\t\t\t\tpath += \"\\u2193 \"; // down\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2191 \"; // up\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (Math.abs(xSteps) + Math.abs(ySteps) == 0) {\n\t\t\t\t\tpath = \"in place\";\n\t\t\t\t}\n\n\t\t\t\treturn path;\n\t\t\t}", "@Override\n public final char previous() {\n if (--index >= lower) {\n return text.charAt(index);\n }\n index = lower;\n return DONE;\n }", "public void criarArvoreDeDiretorioLocal(String caminhoDestino, String raiz, String fs) {\r\n String caminhoDeCriacao;\r\n \r\n caminhoDeCriacao = caminhoDestino;\r\n if (new File(caminhoDeCriacao).mkdir())\r\n System.out.println(\"Diretorio Criado\");\r\n else\r\n System.out.println(\"Diretorio: \" + caminhoDeCriacao + \" nao criado\");\r\n \r\n ArrayList<String> filhos = new ArrayList<>(arvoreDeDiretorios.getSuccessors(raiz));\r\n \r\n for (String filho : filhos) {\r\n //new File(caminhoDeCriacao +fs + filho).mkdir();\r\n criarArvoreDeDiretorioLocal(caminhoDeCriacao + fs + filho, filho,fs);\r\n } \r\n }", "public static void main(String[] args) {\n\t\n\tConta conta = new Conta();\t\n\n\t//Colocando valores no conta\n\tconta.titular = \"Duke\";\n\tconta.saldo = 1000000.0;\n\tconta.numero = 12345;\n\tconta.agencia = 54321;\n\tconta.dataAniversario = \"1985/01/12\";\n\n\tconta.saca(100.0);\n\tconta.deposita(1000.0);\n\n\tSystem.out.println(\"Saldo atual: \" + conta.saldo);\n\tSystem.out.println(\"Rendimento atual: \" + conta.calculaRendimento());\n\tSystem.out.println(\"Saldo atual depois do rendimento: \" + conta.saldo);\n\tSystem.out.println(\"Cliente: \" + conta.recuperaDados());\n\n\n\tConta c1 = new Conta();\n\tConta c2 = new Conta();\t\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc1.titular = \"Flavio\";\n\tc1.saldo = 10000.0;\n\tc1.numero = 54321;\n\tc1.agencia = 12345;\n\tc1.dataAniversario = \"1900/01/12\";\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc2.titular = \"Flavio\";\n\tc2.saldo = 10000.0;\n\tc2.numero = 54321;\n\tc2.agencia = 12345;\n\tc2.dataAniversario = \"1900/01/12\";\n\n\n\tif (c1.titular == c2.titular) {\n\t\tSystem.out.println(\"Iguais\");\t\t\n\t} else {\n\t\tSystem.out.println(\"Diferentes\");\n\t}\t\n\n\tconta.transfere(100000,c1);\n\n\n\t}", "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}", "public Place follow() {\n\t\t// Confirm this works...\n\t\tif (this.locked == false)\t\t\t\n\t\t\treturn to;\n\t\t// Locked, return original\n\t\t//System.out.println(\"\\nThat direction is locked. Find the key and use it!\");\n\t\tNetwork.netPrintln(\"\\nThat direction is locked. Find the key and use it!\");\n\t\treturn from;\n\t}", "public Position destination(Position ep) throws InvalidPositionException;", "public void reversarComprobante() {\r\n if (tab_tabla1.getTotalFilas() > 0) {\r\n String ide_cnccc_anular = tab_tabla1.getValor(\"ide_cnccc\");\r\n // realizo el asiento de reversa\r\n con.reversar(ide_cnccc_anular, \"Asiento de reversa de la transaccion num: \" + ide_cnccc_anular, con);\r\n String ide_cnccc_nuevo = con.getTab_cabecera().getValor(\"ide_cnccc\");\r\n if (ide_cnccc_nuevo != null && !ide_cnccc_nuevo.isEmpty()) {\r\n // cambio el estado de libro bancos a anulado\r\n utilitario.getConexion().agregarSqlPantalla(\"update tes_cab_libr_banc set ide_teelb=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n // consulto si tiene Documentos por Pagar\r\n TablaGenerica tab_cxp_cab_fact = utilitario.consultar(\"select * from cxp_cabece_factur where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxp_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxp_cabece_factur set ide_cpefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_pagar cxp = new cls_cuentas_x_pagar();\r\n // reverso la transaccion CxP\r\n cxp.reversar(ide_cnccc_nuevo, tab_cxp_cab_fact.getValor(0, \"ide_cpcfa\"), \"Reversa CxP de fact. num:\" + tab_cxp_cab_fact.getValor(0, \"numero_cpcfa\") + \" y asiento num:\" + ide_cnccc_anular, null);\r\n // hago reversa de inventario\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n inv.reversar_menos(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n }\r\n }\r\n\r\n boolean boo_asiento_costos = false;\r\n String ide_asiento_costos = \"-1\";\r\n // consulto si tiene CXC\r\n\r\n TablaGenerica tab_cxc_cab_fact = utilitario.consultar(\"select * from cxc_cabece_factura where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxc_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura cxc si tiene\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxc_cabece_factura set ide_ccefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_cobrar cxc = new cls_cuentas_x_cobrar();\r\n //cxc.reversar(ide_cnccc_nuevo, tab_cxc_cab_fact.getValor(0, \"ide_cccfa\"), \"Reversa CxP de fact. num:\" + tab_cxc_cab_fact.getValor(0, \"secuencial_cccfa\") + \" y asiento num:\" + ide_cnccc_anular);\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_incci in ( \"\r\n + \"select ide_incci from inv_det_comp_inve where ide_cccfa=\" + tab_cxc_cab_fact.getValor(0, \"ide_cccfa\") + \" GROUP BY ide_incci)\");\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n // reverso inventario\r\n inv.reversar_mas(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n // reverso el comprobante de costos\r\n boo_asiento_costos = true;\r\n ide_asiento_costos = tab_inv_cab_inv.getValor(0, \"ide_cnccc\");\r\n }\r\n }\r\n\r\n utilitario.getConexion().guardarPantalla();\r\n tab_tabla1.setFilaActual(con.getTab_cabecera().getValor(\"ide_cnccc\"));\r\n tab_tabla1.ejecutarSql();\r\n if (boo_asiento_costos == true) {\r\n con.limpiar();\r\n con.reversar(ide_asiento_costos, \"Asiento de reversa asiento costos de la transaccion num: \" + ide_cnccc_anular, con);\r\n utilitario.getConexion().guardarPantalla();\r\n }\r\n }\r\n }\r\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}", "public void setPreviousValue(final String previousValue);", "@Field(0) \n\tpublic uvc_processing_unit prev(Pointer<uvc_processing_unit > prev) {\n\t\tthis.io.setPointerField(this, 0, prev);\n\t\treturn this;\n\t}", "public static String duplicaApostrofi(String input) {\r\n \t\r\n \tString result = input;\r\n \tint massimo = result.length() - 1;\r\n \tchar apice = '\\'';\r\n \t\r\n \tfor (int i = 0; i <= massimo; i++) {\r\n \t\tif (result.charAt(i) == apice ) {\r\n \t\t\tresult = result.substring(0, i+1) + apice + result.substring(i+1);\r\n \t\t\tmassimo++;\r\n \t\t\ti++;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn result;\r\n }", "private String getRelDestinationPath(Position position, NodeIterator childNodes)\n throws RepositoryException {\n\n String destRelPath = null;\n if (OrderingConstants.XML_FIRST.equals(position.getType())) {\n if (childNodes.hasNext()) {\n Node firstChild = childNodes.nextNode();\n // use last segment of node-path instead of name.\n destRelPath = Text.getName(firstChild.getPath());\n }\n // no child nodes available > reordering to 'first' position fails.\n if (destRelPath == null) {\n throw new ItemNotFoundException(\"No 'first' item found for reordering.\");\n }\n } else if (OrderingConstants.XML_AFTER.equals(position.getType())) {\n String afterRelPath = position.getSegment();\n boolean found = false;\n // jcr only knows order-before > retrieve the node that follows the\n // one indicated by the 'afterRelPath'.\n while (childNodes.hasNext() && destRelPath == null) {\n // compare to last segment of node-path instead of name.\n String childRelPath = Text.getName(childNodes.nextNode().getPath());\n if (found) {\n destRelPath = childRelPath;\n } else {\n found = afterRelPath.equals(childRelPath);\n }\n }\n } else {\n // before or last. in the latter case the segment is 'null'\n destRelPath = position.getSegment();\n }\n if (destRelPath != null) {\n destRelPath = Text.unescape(destRelPath);\n }\n return destRelPath;\n }", "private String mayorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoDer().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn mayorTurno(a.hijoDer());\n\t}", "public static Player getPreviousPlayer(Vector<Player> joueurs, Player p) {\n\t\t//tri de joueurs dans l'ordre de la table\n\t\tjoueurs.sort(null);\n\t\t\n\t\t//on trouve la pos actuelle de p\n\t\tint posP = 10000; \n\t\tfor(int i = 0; i < joueurs.size(); i++) {\n\t\t\tif (joueurs.get(i) == p) {\n\t\t\t\tposP = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//on change get le suivant\n\t\tposP = (posP - 1) % joueurs.size();\n\n\t\treturn joueurs.get(posP);\n\t}", "private Stack<Cell> constructPlan(WorldMap worldMap, Cell target, Hashtable<Cell, Cell> prev) {\n\n\t\t// Starting from the target and backtracking to find the route plan\n\t\tStack<Cell> newPlan = new Stack<Cell>();\n\n\t\tCell cell = target;\n\t\twhile (prev.containsKey(cell)) {\n\t\t\tnewPlan.push(cell);\n\t\t\tcell = prev.get(cell);\n\t\t}\n\t\treturn newPlan;\n\t}", "public Vendedor buscarVendedorPorNome(String nome);", "void setDest(String L);", "public int previous()\n {\n if (m_source_.getIndex() <= 0 && m_isForwards_) {\n // if iterator is new or reset, we can immediate perform backwards\n // iteration even when the offset is not right.\n m_source_.setToLimit();\n updateInternalState();\n }\n m_isForwards_ = false;\n if (m_CEBufferSize_ > 0) {\n if (m_CEBufferOffset_ > 0) {\n return m_CEBuffer_[-- m_CEBufferOffset_];\n }\n m_CEBufferSize_ = 0;\n m_CEBufferOffset_ = 0;\n }\n\n int result = NULLORDER;\n char ch = 0;\n do {\n int ch_int = previousChar();\n if (ch_int == UCharacterIterator.DONE) {\n return NULLORDER;\n }\n ch = (char)ch_int;\n if (m_collator_.m_isHiragana4_) {\n m_isCodePointHiragana_ = (ch >= 0x3040 && ch <= 0x309f);\n }\n if (m_collator_.isContractionEnd(ch) && !isBackwardsStart()) {\n result = previousSpecial(m_collator_, CE_CONTRACTION_, ch);\n }\n else {\n if (ch <= 0xFF) {\n result = m_collator_.m_trie_.getLatin1LinearValue(ch);\n }\n else {\n result = m_collator_.m_trie_.getLeadValue(ch);\n }\n if (RuleBasedCollator.isSpecial(result)) {\n result = previousSpecial(m_collator_, result, ch);\n }\n if (result == CE_NOT_FOUND_) {\n if (!isBackwardsStart()\n && m_collator_.isContractionEnd(ch)) {\n result = CE_CONTRACTION_;\n }\n else {\n if(RuleBasedCollator.UCA_ != null) {\n result = RuleBasedCollator.UCA_.m_trie_.getLeadValue(ch);\n }\n }\n\n if (RuleBasedCollator.isSpecial(result)) {\n if(RuleBasedCollator.UCA_ != null) { \n result = previousSpecial(RuleBasedCollator.UCA_, result, ch);\n }\n }\n }\n }\n } while (result == IGNORABLE && ch >= 0xAC00 && ch <= 0xD7AF);\n if(result == CE_NOT_FOUND_) {\n result = previousImplicit(ch);\n }\n return result;\n }", "public String getName() {\n return (\"(\" + this.source.getName() + \",\" + this.destination.getName() + \")\");\n }", "private void convertir(IConsole per, IConsole eq) throws RemoteException {\n\n\t\t// ajouter au leader s'il y en a un\n\t\tint leader = ((Personnage) per.getElement()).getLeader();\n\n\t\t// si charisme inférieur à deter alors rien ne se passe sinon le perso est changé d'équipe\n\t\tif (((Personnage)eq.getElement()).getDetermination() < ((Personnage)per.getElement()).getCharisme()) {\n\t\t\tif (leader == -1) { // le personnage n'est pas dans une equipe\n\t\t\t\teq.changerLeader(per);\n\t\t\t\tper.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe\", per.getVueElement());\n\t\t\t\tSystem.out.println(per.getRefRMI() + \" ajoute a son equipe \" + eq.getRefRMI());\n\n\t\t\t} else { // le personnage a un leader\n\t\t\t\tIConsole lead = arene.consoleFromRef(leader);\n\n\t\t\t\teq.changerLeader(lead);\n\n\t\t\t\tlead.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe (par \" + per.getRefRMI() + \")\", lead.getVueElement());\n\t\t\t\tSystem.out.println(leader + \" ajoute a son equipe (par \" + per.getRefRMI() + \") \" + eq.getRefRMI());\n\t\t\t}\n\t\t\t//le personnage reçoit la determination de son enroleur\n\t\t\teq.getElement().getCaract().put(\"determination\", ((Personnage) per.getElement()).getDetermination());\n\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Rien ne se passe\");\n\t\t}\n\t}", "public Automato equalAF2AFN(Automato a){\n\t\t//a construcao da equivalencia de A será feita, utilizando a \n\t\t//tecnica de busca em largura.\n\t\t\n\t\tAutomato r = new Automato();\n\t\t//fechamento transitivo vazio (Epsilon)\n\t\tArrayList<Estado> fecho = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '0'\n\t\tArrayList<Estado> zero = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '1'\n\t\tArrayList<Estado> um = new ArrayList<>();\n\t\t//fila com os filhos(zero e um) do fechamento transtivo\n\t\tArrayList<ArrayList<Estado>> fila = new ArrayList<>();\n\t\t//calcula o fechamento do estado inicial\n\t\tfecho = a.fechamento(a.getQ().get(0));\n\t\tfila.add(fecho);\n\t\twhile(!fila.isEmpty()){\n\t\t\tfecho = fila.get(0);\n\t\t\tEstado inicial = new Estado(montar(fecho));\n\t\t\t//se os estado nao existir cria-se esse novo estado.\n\t\t\tif (!r.existe(inicial))\n\t\t\t\tr.addEstado(inicial);\n\t\t\telse\n\t\t\t\tinicial = r.getEstado(inicial);\n\t\t\t//calcula os movimentos com 0 e 1\n\t\t\tzero = a.movimento(fecho, '0');\n\t\t\tum = a.movimento(fecho, '1');\n\t\t\tif (!zero.isEmpty()){\n\t\t\t\t//se possui movimento com 0 calcula o fechamento\n\t\t\t\tfecho = a.fechamento(zero);\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '0')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '0');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!um.isEmpty()){\n\t\t\t\tfecho = a.fechamento(um);\n\t\t\t\t\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '1')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '1');\n\t\t\t\t}\n\t\t\t}\n\t\t\tfila.remove(0);\n\t\t}\n\t\tatribuirFinais(r, a.getF());\n\t\tOperacao.updateIndex(r);\n\t\treturn r;\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }" ]
[ "0.5103213", "0.50780743", "0.5030748", "0.5001469", "0.4999792", "0.49863884", "0.49443704", "0.49377754", "0.4925137", "0.49071026", "0.4858062", "0.48462242", "0.48234853", "0.48215863", "0.4802052", "0.47960192", "0.4793519", "0.4789183", "0.47715795", "0.47674063", "0.47463444", "0.4743317", "0.47432515", "0.47377464", "0.4733314", "0.47199216", "0.4712504", "0.46924955", "0.46902433", "0.46895432", "0.46810573", "0.46687973", "0.46687025", "0.4662933", "0.46581367", "0.46432063", "0.46356276", "0.46272942", "0.46178678", "0.4601726", "0.46015224", "0.4601511", "0.45980287", "0.45977244", "0.45961782", "0.4593142", "0.4592129", "0.45893097", "0.45823786", "0.4566322", "0.45553872", "0.45510957", "0.45492643", "0.4547634", "0.45418778", "0.4537633", "0.45362473", "0.45352224", "0.45335335", "0.4528344", "0.4519572", "0.45183545", "0.45164102", "0.45155594", "0.44982976", "0.4487199", "0.44784942", "0.44681665", "0.44649133", "0.44615838", "0.44611472", "0.44464418", "0.44455495", "0.4434472", "0.4432427", "0.44294697", "0.44279847", "0.442677", "0.4423963", "0.4417219", "0.44168094", "0.44153547", "0.44135633", "0.44106117", "0.44079334", "0.44013733", "0.43969977", "0.439577", "0.43944016", "0.43939397", "0.4393594", "0.43935803", "0.43836725", "0.4382702", "0.43802518", "0.43778986", "0.43757582", "0.43723747", "0.43614718", "0.43614304", "0.4361419" ]
0.0
-1
Converts color to a humanreadable string if color is one of the constants defined by this class, and converts color to a color code otherwise. Regardless, returns a string that can be used by a browser as a color specification.
public static String friendlyName(Color color) { if (colorsToNames.containsKey(color)) return colorsToNames.get(color); return color.getColorCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String colorIntToString(int color) {\r\n\t\tswitch (color) {\r\n\t\tcase -8355712:\r\n\t\t\treturn \"GRAY\";\r\n\t\tcase -256:\r\n\t\t\treturn \"YELLOW\";\r\n\t\tcase -16776961:\r\n\t\t\treturn \"BLUE\";\r\n\t\tcase -65536:\r\n\t\t\treturn \"RED\";\r\n\t\tcase -14336:\r\n\t\t\treturn \"ORANGE\";\r\n\t\tcase 16711935:\r\n\t\t\treturn \"MAGENTA\";\r\n\t\tcase -65281:\r\n\t\t\treturn \"MAGENTA\";\r\n\t\tcase 0:\r\n\t\t\treturn \"BLACK\";\r\n\t\tcase -16777216:\r\n\t\t\treturn \"BLACK\";\t\t\t\r\n\t\tcase 16767215:\r\n\t\t\treturn \"WHITE\";\r\n\t\tcase -1:\r\n\t\t\treturn \"WHITE\";\r\n\t\tcase 16762880:\r\n\t\t\treturn \"ORANGE\";\r\n\t\tcase 65535:\r\n\t\t\treturn \"CYAN\";\r\n\t\tcase -16711681:\r\n\t\t\treturn \"CYAN\";\r\n\t\tcase -20561:\r\n\t\t\treturn \"PINK\";\r\n\t\tcase 16756655:\r\n\t\t\treturn \"PINK\";\r\n\t\tdefault:\r\n\t\t\treturn new String(\"Non definito nel parser: \"+Integer.toString(color));\r\n\t\t}\r\n\t}", "public\n static\n String convertColorToString(Color val)\n {\n String ret_String;\n\n int a;\n try {\n a = val.getAlpha();\n }\n catch (NoSuchMethodError excp) {\n System.out.println(\"YutilProperties:convertColorToString:excp=[\" + excp + \"]\");\n a = 0xFF;\n }\n int r = val.getRed(), g = val.getGreen(), b = val.getBlue();\n String as, rs, gs, bs;\n\n rs = Integer.toHexString(r); if (rs.length() == 1) rs = \"0\" + rs;\n gs = Integer.toHexString(g); if (gs.length() == 1) gs = \"0\" + gs;\n bs = Integer.toHexString(b); if (bs.length() == 1) bs = \"0\" + bs;\n\n if (a == 0xFF)\n {\n ret_String = \"#\" + rs + gs + bs;\n }\n else\n {\n as = Integer.toHexString(a); if (as.length() == 1) as = \"0\" + as;\n ret_String = \"#\" + as + rs + gs + bs;\n } \n\n return ret_String;\n }", "public static String get(Color color) {\n return cc.colorToString(color);\n }", "public static String getWebColor(Color color) {\r\n return String.format( \"#%02X%02X%02X\",\r\n (int)( color.getRed() * 255 ),\r\n (int)( color.getGreen() * 255 ),\r\n (int)( color.getBlue() * 255 ) );\r\n }", "private static TextColor colorString(String color) {\n if (color.toLowerCase().trim().startsWith(\"#\")) {\n // pass this for now.\n }\n switch (color.toLowerCase().trim()) {\n case \"blue\":\n case \"&9\":\n return TextColors.BLUE;\n case \"dark_blue\":\n case \"dark blue\":\n case \"&1\":\n return TextColors.DARK_BLUE;\n case \"dark red\":\n case \"dark_red\":\n case \"&4\":\n return TextColors.DARK_RED;\n case \"red\":\n case \"&c\":\n return TextColors.RED;\n case \"reset\":\n case \"&r\":\n return TextColors.RESET;\n case \"gold\":\n case \"&6\":\n return TextColors.GOLD;\n case \"yellow\":\n case \"&e\":\n return TextColors.YELLOW;\n case \"dark_green\":\n case \"dark green\":\n case \"&2\":\n return TextColors.DARK_GREEN;\n case \"green\":\n case \"lime\":\n case \"&a\":\n return TextColors.GREEN;\n case \"aqua\":\n case \"&b\":\n return TextColors.AQUA;\n case \"dark_aqua\":\n case \"dark aqua\":\n case \"&3\":\n return TextColors.DARK_AQUA;\n case \"light_purple\":\n case \"light purple\":\n case \"pink\":\n case \"%d\":\n return TextColors.LIGHT_PURPLE;\n case \"dark_purple\":\n case \"dark purple\":\n case \"purple\":\n case \"magenta\":\n case \"&5\":\n return TextColors.DARK_PURPLE;\n case \"white\":\n case \"&f\":\n return TextColors.WHITE;\n case \"gray\":\n case \"grey\":\n case \"&7\":\n return TextColors.GRAY;\n case \"dark_grey\":\n case \"dark_gray\":\n case \"dark gray\":\n case \"dark grey\":\n case \"&8\":\n return TextColors.DARK_GRAY;\n case \"black\":\n case \"&0\":\n return TextColors.BLACK;\n default:\n return TextColors.NONE;\n }\n }", "public String getColorString();", "public String getHtmlColor() {\n\t\tString sRed = Integer.toHexString(color.getRed());\n\t\tString sGreen = Integer.toHexString(color.getGreen());\n\t\tString sBlue = Integer.toHexString(color.getBlue());\n\t\t\n\t\treturn \"#\" + (sRed.length() == 1 ? \"0\" + sRed : sRed) +\n\t\t\t\t(sGreen.length() == 1 ? \"0\" + sGreen : sGreen) +\n\t\t\t\t(sBlue.length() == 1 ? \"0\" + sBlue : sBlue);\n\t}", "String getColor();", "private static String colorDisplayName(Color c) {\n if(c != null) {\n return formatHexString(c);\n } else {\n return null;\n }\n }", "@Override\n public String toString() {\n return color.name();\n }", "public String c() {\r\n switch (c) {\r\n case RED:\r\n return \"Red\";\r\n case BLUE:\r\n return \"Blue\";\r\n case YELLOW:\r\n return \"Yellow\";\r\n case GREEN:\r\n return \"Green\";\r\n default:\r\n return \"Colorless\";\r\n }\r\n }", "public String getColorToAsString() {\n\t\treturn getValue(Property.COLOR_TO, SankeyDataset.DEFAULT_COLOR_TO);\n\t}", "public static String getHexString(java.awt.Color color)\n {\n String r;\n String g;\n String b;\n r = Integer.toHexString(color.getRed());\n\n if (r.length() < 2)\n {\n r = \"0\" + r;\n }\n\n g = Integer.toHexString(color.getGreen());\n\n if (g.length() < 2)\n {\n g = \"0\" + g;\n }\n\n b = Integer.toHexString(color.getBlue());\n\n if (b.length() < 2)\n {\n b = \"0\" + b;\n }\n\n return r + g + b;\n }", "private String translateColor(CardColor c) {\n if (c == CardColor.BLUE) return Color.BLUE.getAnsiCode();\n if (c == CardColor.VIOLET) return Color.RED.getAnsiCode();\n if (c == CardColor.GREEN) return Color.GREEN.getAnsiCode();\n else return Color.YELLOW.getAnsiCode();\n }", "public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.blue(color) + \"]\";\r\n\t}", "public static String toString(int color) {\n return new StringBuilder()\n .append(\"Color[\")\n .append(getRed(color))\n .append(\",\")\n .append(getGreen(color))\n .append(\",\")\n .append(getBlue(color))\n .append(\"]\")\n .toString();\n }", "public String colorToLocate() {\n char targetColor;\n gameData = DriverStation.getInstance().getGameSpecificMessage();\n if(gameData.length() > 0) {\n switch (gameData.charAt(0)) {\n case 'B' :\n targetColor = 'R';\n break;\n case 'G' :\n targetColor = 'Y';\n break;\n case 'R' :\n targetColor = 'B';\n break;\n case 'Y' :\n targetColor = 'G';\n break;\n default :\n targetColor = '?';\n break;\n }\n } else {\n targetColor = '?';\n }\n return \"\"+targetColor;\n }", "public String showColor(){\r\n\t\tSystem.out.println(\"The color of this fruit is \" + color);\r\n\t\treturn color;}", "private static String formatHexString(Color c) {\n return c != null?String.format(null, \"#%02x%02x%02x\", new Object[]{Long.valueOf(Math.round(c.getRed() * 255.0D)), Long.valueOf(Math.round(c.getGreen() * 255.0D)), Long.valueOf(Math.round(c.getBlue() * 255.0D))}).toUpperCase():null;\n }", "public static String colorizeString(String sColor, String message) {\n String reset = AnsiColor.RESET.getColor();\n String colorValue = AnsiColor.RESET.getColor();\n try {\n colorValue = AnsiColor.valueOf(sColor.toUpperCase()).getColor();\n } catch (Exception e) {\n /*NOP*/\n }\n return colorValue + message + reset;\n }", "public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }", "public String obtenColor() {\r\n return color;\r\n }", "private String singleChar(RubiksColor color) {\n switch(color) {\n case RED:\n return \"R\";\n case GREEN:\n return \"G\";\n case BLUE:\n return \"B\";\n case YELLOW:\n return \"Y\";\n case ORANGE:\n return \"O\";\n case WHITE:\n return \"W\";\n }\n\n return \"R\";\n }", "private String comprobarColor(String color) {\r\n String colores[] = { \"blanco\", \"negro\", \"rojo\", \"azul\", \"gris\" };\r\n boolean encontrado = false;\r\n for (int i = 0; i < colores.length && !encontrado; i++) {\r\n if (colores[i].equals(color)) {\r\n encontrado = true;\r\n }\r\n }\r\n if (encontrado) {\r\n this.color = color;\r\n } else {\r\n this.color = COLOR_POR_DEFECTO;\r\n }\r\n return this.color;\r\n }", "public Color getStringColor() {\n return this.getConfiguredColor(PreferencesConstants.COLOR_STRING);\n }", "public String getGuitarColorString(){\n\t\treturn guitarColorString;\n\t}", "public String getColouredName() {\n\t\tConfigManager crates = new ConfigManager(\"crates.yml\");\n\t\tcrates.get().getString(\"crates.\"+name.toLowerCase()+\".colouredName\");\n\t\treturn new String(ChatColor.translateAlternateColorCodes('&', crates.get().getString(\"crates.\"+name+\".colouredName\")));\n\t}", "public String getColorAsString() {\n\t\treturn getValue(CommonProperty.COLOR, AbstractLabels.DEFAULT_COLOR);\n\t}", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "public String dame_color() {\n\t\treturn color;\n\t}", "public String toString() {\r\n\t\tString str = color.substring(0,1).toUpperCase()\r\n\t\t\t\t + color.substring(1) + \" \" \r\n\t\t\t\t + name.substring(0,1).toUpperCase()\r\n\t\t\t\t + name.substring(1);\r\n\t\treturn str;\r\n\t}", "private static String ColorHexString(final Color c) {\n\t\treturn (\"#\" // +Integer.toHexString(c.getRGB());\n\t\t + Integer.toHexString(256 + c.getRed()).substring(1)\n\t\t + Integer.toHexString(256 + c.getGreen()).substring(1)\n\t\t + Integer.toHexString(256 + c.getBlue()).substring(1));\n\t}", "public final String getColorName(final Color c) {\n if (Color.BLUE.equals(c)) {\n return \"Blue\";\n } else if (Color.YELLOW.equals(c)) {\n return \"Jaune\";\n } else if (Color.RED.equals(c)) {\n return \"Red\";\n } else if (Color.PINK.equals(c)) {\n return \"Rose\";\n } else if (Color.GREEN.equals(c)) {\n return \"Vert\";\n }\n return null;\n }", "public IsColor getColorTo() {\n\t\treturn ColorBuilder.parse(getColorToAsString());\n\t}", "public final String getColorCode() {\n\t\treturn colorCode;\n\t}", "protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }", "abstract String getColor();", "@Override\n public String getColor() {\n return this.color.name();\n }", "public String getColor() {\r\n return color;\r\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public static Color colorStringToColor(String color) throws NoSuchFieldException {\r\n\t\tField field;\r\n\t\ttry {\r\n\t\t\tfield = Color.class.getField(color.toLowerCase());\r\n\t\t\treturn (Color) field.get(null);\r\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t}", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "protected static String getColouredString(final String colour, final String line) {\n String res = null;\n if (colour.length() < 3) {\n int num;\n \n try {\n num = Integer.parseInt(colour);\n } catch (NumberFormatException ex) {\n num = -1;\n }\n \n if (num >= 0 && num <= 15) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, num, line);\n }\n } else if (colour.length() == 6) {\n try {\n Color.decode('#' + colour);\n res = String.format(\"%c%s%s%1$c\", Styliser.CODE_HEXCOLOUR, colour, line);\n } catch (NumberFormatException ex) { /* Do Nothing */ }\n }\n \n if (res == null) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, 14, line);\n }\n return res;\n }", "public String getColorFromAsString() {\n\t\treturn getValue(Property.COLOR_FROM, SankeyDataset.DEFAULT_COLOR_FROM);\n\t}", "public String getColor(){\n\t\treturn color;\n\t}", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String printColors(){\n String RGB = \"\";\n detectedColor = m_colorSensor.getColor();\n RGB = \"Red: \" + detectedColor.red + \", Green: \" + detectedColor.green + \", Blue: \" + detectedColor.blue;\n return RGB;\n }", "private Color detectColor(String c){\n switch (c){\n case \"RED\": return Color.RED;\n case \"BLUE\": return Color.BLUE;\n case \"YELLOW\": return Color.YELLOW;\n case \"GREEN\": return Color.GREEN;\n case \"WHITE\": return Color.WHITE;\n case \"BLACK\": return Color.BLACK;\n case \"CYAN\": return Color.CYAN;\n case \"ORANGE\": return Color.ORANGE;\n case \"MAGENTA\": return Color.MAGENTA;\n case \"PINK\": return Color.PINK;\n default: return null;\n }\n }", "public static void printColor(String color){\n System.out.println(color);\n }", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}", "java.awt.Color getColor();", "public Color stringToColor (String sColor, Color cDefault)\r\n\t{\r\n\tInteger iRgb;\r\n\t\r\n\tif ((sColor == null)\r\n\t|| (sColor.charAt (0) != '#')\r\n\t|| (sColor.length () != 7))\r\n\t\t{\r\n\t\treturn (cDefault);\r\n\t\t}\r\n\t\t\r\n\ttry\r\n\t {\r\n\t iRgb = Integer.valueOf (sColor.substring (1,7), 16);\r\n\t return (new Color (iRgb.intValue ()));\r\n\t }\r\n\tcatch (Exception e)\r\n\t {\r\n\t return (cDefault);\r\n\t }\r\n\t}", "public IsColor getColorFrom() {\n\t\treturn ColorBuilder.parse(getColorFromAsString());\n\t}", "String getColour();", "public String getColor(){\r\n return color;\r\n }", "public static String getColor(boolean notDamaged) {\n return notDamaged ? Properties.getString(Properties.GENERAL, \"color\") : Properties.getString(Properties.GENERAL, \"color_damaged\");\n }", "public static int getColorStringResource(Color color) {\n \t\tswitch (color) {\n \t\tcase RED:\n \t\t\treturn R.string.red;\n \t\tcase BLUE:\n \t\t\treturn R.string.blue;\n \t\tcase GREEN:\n \t\t\treturn R.string.green;\n \t\tcase ORANGE:\n \t\t\treturn R.string.orange;\n \t\tdefault:\n \t\t\treturn R.string.nostring;\n \t\t}\n \t}", "public static String toColor(String s) {\n\t\treturn ChatColor.translateAlternateColorCodes('&', s);\n\t}", "public String seeColor(String str) {\r\n if (str.startsWith(\"red\")) {\r\n return \"red\";\r\n }\r\n if (str.startsWith(\"blue\")) {\r\n return \"blue\";\r\n }\r\n\r\n return \"\";\r\n }", "public String toString()\n {\n return color.charAt(0) + \"Q\";\n }", "public String getColor() { \n return color; \n }", "static String ammoTypeToString(AmmoType ammoType) throws IllegalArgumentException{\n String color;\n switch (ammoType) {\n case BLUE:\n color = \"blue\";\n break;\n case YELLOW:\n color = \"yellow\";\n break;\n case RED:\n color = \"red\";\n break;\n default:\n throw new IllegalArgumentException(\"This ammo type is neither blue, yellow or red.\");\n }\n return color;\n }", "static Color getColor(String colorString) {\n if (ArgumentCheckUtil.isNullOrEmptyString(colorString)) {\n return Color.LIGHT_GRAY;\n } else if (colorString.toLowerCase().equals(\"white\")) {\n return Color.WHITE;\n } else if (colorString.toLowerCase().equals(\"lightgray\")) {\n return Color.LIGHT_GRAY;\n } else if (colorString.toLowerCase().equals(\"gray\")) {\n return Color.GRAY;\n } else if (colorString.toLowerCase().equals(\"darkgray\")) {\n return Color.DARK_GRAY;\n } else if (colorString.toLowerCase().equals(\"black\")) {\n return Color.BLACK;\n } else if (colorString.toLowerCase().equals(\"red\")) {\n return Color.RED;\n } else if (colorString.toLowerCase().equals(\"pink\")) {\n return Color.PINK;\n } else if (colorString.toLowerCase().equals(\"orange\")) {\n return Color.ORANGE;\n } else if (colorString.toLowerCase().equals(\"yellow\")) {\n return Color.YELLOW;\n } else if (colorString.toLowerCase().equals(\"green\")) {\n return Color.GREEN;\n } else if (colorString.toLowerCase().equals(\"magenta\")) {\n return Color.MAGENTA;\n } else if (colorString.toLowerCase().equals(\"cyan\")) {\n return Color.CYAN;\n } else if (colorString.toLowerCase().equals(\"blue\")) {\n return Color.BLUE;\n } else if (colorString.toLowerCase().equals(\"light_gray\")) {\n return Color.LIGHT_GRAY;\n } else if (colorString.toLowerCase().equals(\"dark_gray\")) {\n return Color.DARK_GRAY;\n } else if (colorString.startsWith(\"#\") && colorString.length() == 7) {\n // for #RRGGBB format\n try {\n return new Color(Integer.parseInt(colorString.substring(1, 3), 16), Integer.parseInt(colorString\n .substring(3, 5), 16), Integer.parseInt(colorString.substring(5), 16));\n } catch (NumberFormatException e) {\n return Color.LIGHT_GRAY;\n }\n } else {\n return Color.LIGHT_GRAY;\n }\n }", "private String colourToRgb(Color c)\n {\n return \"rgb(\" + (int)(c.getRed()*255) + \",\" + (int)(c.getGreen()*255) + \",\" + (int)(c.getBlue()*255) + \")\";\n }", "public java.lang.String getEyeColor() {\n java.lang.Object ref = eyeColor_;\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 eyeColor_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static ChatColor getChatColor(String colorCode) {\n if (colorCode == null) {\n return null;\n }\n if (externalColorMap.containsKey(colorCode)) {\n \treturn externalColorMap.get(colorCode);\n }\n String fixedCode = splat(colorCode);\n if (colorMap.containsKey(fixedCode)) {\n \treturn colorMap.get(fixedCode);\n }\n ChatColor result = new ChatColor(colorCode, fixedCode);\n return result;\n }", "public String getColor() {\n return colorID;\n }", "private static String getColorString(int index) {\n switch (index) {\n case 0: return \"None\";\n case 1: case 6: return \"Orange\";\n case 2: case 7: return \"Green\";\n case 3: return \"Blue\";\n case 4: case 14: return \"Yellow\";\n case 8: return \"Black\";\n default: return \"not a color\";\n }\n }", "public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }", "public String getColor()\n {\n return this.color;\n }", "private String getExpectedYellowColorName()\n {\n String expected;\n\n switch (ResourceBundleManager.getLocale().getLanguage())\n {\n case \"en\":\n expected = \"Yellow\";\n break;\n\n case \"de\":\n expected = \"Gelb\";\n break;\n\n case \"fr\":\n expected = \"Jaune\";\n break;\n\n case \"it\":\n expected = \"Giallo\";\n break;\n\n case \"es\":\n expected = \"Amarillo\";\n break;\n\n default:\n throw new ResourceBundleException(String.format(\"Unhandled: '%s' locale\", ResourceBundleManager.getLocale()));\n }\n\n return expected;\n }", "public String toCodedString() {\n\t\t//System.out.println(toString());\n\t\treturn String.format(\"%s%s\", getColor().toInt(), getShape().toString());\n\t}", "public String getColor() {\n return this.color;\n }", "@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}", "public String getColor(){\n return this._color;\n }", "public char getColor();", "public static String getColorCode(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context).\n getString(OPTION_COLOR_CODE, OPTION_COLOR_CODE_DEFAULT);\n }", "public static String color(String textToTranslate){\n\t\tif (textToTranslate == null) return null;\n\t\tif (!textToTranslate.contains(\"&\")) return textToTranslate;\n\t\tchar[] b = textToTranslate.toCharArray();\n\t\tfor (int i = 0; i < b.length - 1; i++) {\n\t\t\tif ((b[i] == '&') && (\"0123456789AaBbCcDdEeFfKkLlMmNnOoRr\".indexOf(b[(i + 1)]) > -1)){\n\t\t\t\tb[i] = Shared.COLOR;\n\t\t\t\tb[(i + 1)] = Character.toLowerCase(b[(i + 1)]);\n\t\t\t}\n\t\t}\n\t\treturn new String(b);\n\t}", "abstract public String getColor();", "abstract public String getColor();", "public String getColorNum() {\n return (String)getAttributeInternal(COLORNUM);\n }", "public String toString()\r\n\t{\r\n\t\tString output = \"Color = \" + this.color + \", \";\r\n\t\toutput += super.toString();\r\n\t\treturn output;\r\n\t}", "@Override\n\tpublic IColor getColor(String color) {\n\t\treturn null;\n\t}", "private static String checkColor(String color) throws ParseException {\n if (COLOR.contains(color.toUpperCase()))\n return color.toUpperCase();\n else\n throw new ParseException(\"Colore \" + color + \" non ammesso\", color.length());\n }", "public static String toChatColor(TeamColor teamColor) {\n return TEAM_COLORS.getOrDefault(teamColor, \"\");\n }" ]
[ "0.70453906", "0.68518996", "0.6825825", "0.66995484", "0.6477569", "0.6463179", "0.64039874", "0.63967746", "0.6354508", "0.63458043", "0.63417757", "0.62954885", "0.6280938", "0.62197036", "0.6206157", "0.6195233", "0.61885333", "0.61678106", "0.61476123", "0.61446625", "0.6143837", "0.61306435", "0.61082274", "0.6102681", "0.6072186", "0.6065055", "0.6055646", "0.6049226", "0.6043119", "0.6005078", "0.60022205", "0.59977055", "0.5994772", "0.5981889", "0.5963411", "0.59518725", "0.5935574", "0.5926267", "0.59011316", "0.5893994", "0.5893994", "0.5893994", "0.5893994", "0.5893994", "0.5883287", "0.5879875", "0.5879875", "0.5879875", "0.5879875", "0.5879875", "0.5879875", "0.5879875", "0.5879875", "0.5878537", "0.5875109", "0.5874918", "0.5871173", "0.5859662", "0.5859662", "0.583676", "0.5830969", "0.582688", "0.58182985", "0.58182985", "0.58158815", "0.5814964", "0.5808437", "0.5803985", "0.58033234", "0.57907873", "0.57855433", "0.5782873", "0.5766338", "0.5762608", "0.57618433", "0.5758563", "0.5709547", "0.5697677", "0.56959105", "0.5689632", "0.56834567", "0.567483", "0.56667024", "0.5647032", "0.5637388", "0.56272274", "0.5624485", "0.5614963", "0.5614661", "0.56113255", "0.5593514", "0.55886114", "0.5582056", "0.55711174", "0.55711174", "0.5564217", "0.55576813", "0.55505157", "0.55372334", "0.5535793" ]
0.6495737
4
Returns the Surface passed in to this object's constructor.
public Surface getSurface() { return surface; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Surface(){\r\n\t\tsuper(SURFACE_TAG,\"\");\r\n\t\tthis.setRef(\"CG\");\r\n\t}", "public org.landxml.schema.landXML11.SurfaceDocument.Surface getSurface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;\r\n target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().find_element_user(SURFACE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "Surface createSurface();", "public Surface surface()\n { return _srf;\n }", "private Surface getPreviewSurface() {\n return surface_texture;\n }", "public Surface(Bitmap bitmap) {\n this(CreateBitmapInstance(bitmap));\n }", "public int get_surface_type() {\n return surface_type;\n }", "public org.landxml.schema.landXML11.SurfaceDocument.Surface addNewSurface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;\r\n target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().add_element_user(SURFACE$0);\r\n return target;\r\n }\r\n }", "protected Surface getOutputSurface() { return null; }", "@Override\n\t\tpublic Surface3D createSurface(ParameterList faultRepresentationParams) {\n\t\t\treturn null;\n\t\t}", "void createSurface(SurfaceTexture surfaceTexture);", "public Surface(String ref){\r\n\t\tthis();\r\n\t\taddAttribute(new PointingElement(\"ref\",ref));\r\n\t}", "void mo21067a(Surface surface);", "public native void Initialize(Surface surface);", "private native void nativeSurfaceInit(Object surface);", "public SurfaceTextureManager() {\n mTextureRender = new STextureRender();\n mTextureRender.surfaceCreated();\n\n mSurfaceTexture = new SurfaceTexture(mTextureRender.getTextureId());\n\n // This doesn't work if this object is created on the thread that CTS started for\n // these test cases.\n //\n // The CTS-created thread has a Looper, and the SurfaceTexture constructor will\n // create a Handler that uses it. The \"frame available\" message is delivered\n // there, but since we're not a Looper-based thread we'll never see it. For\n // this to do anything useful, OutputSurface must be created on a thread without\n // a Looper, so that SurfaceTexture uses the main application Looper instead.\n //\n // Java language note: passing \"this\" out of a constructor is generally unwise,\n // but we should be able to get away with it here.\n mSurfaceTexture.setOnFrameAvailableListener(this);\n }", "public double getSurfaceArea() {\n\n return surfaceArea;\n }", "public Surface(String frame,String origin,String units,float a,float b,float c,float axisAX,float axisAY,float axisAZ,float axisBX,float axisBY,float axisBZ,float axisCX,float axisCY,float axisCZ){\r\n\t\tthis(frame,origin,units,a,units,b,units,c,frame,axisAX,axisAY,axisAZ,frame,axisBX,axisBY,axisBZ,frame,axisCX,axisCY,axisCZ);\r\n\t}", "LocalMaterialData getSurfaceBlock();", "public SurfaceControl.Builder makeSurface(SurfaceSession s) {\n return this.mWmService.makeSurfaceBuilder(s).setParent(this.mWindowingLayer);\n }", "public SurfaceFormat getFormat()\n\t{\n\t\treturn this._format;\n\t}", "public EGLSurface createWindowSurface(Object surface) {\n if (!(surface instanceof Surface) && !(surface instanceof SurfaceTexture)) {\n throw new RuntimeException(\"invalid surface: \" + surface);\n }\n\n // Create a window surface, and attach it to the Surface we received.\n int[] surfaceAttribs = {\n EGL10.EGL_NONE\n };\n EGLSurface eglSurface = argonEGL.eglCreateWindowSurface(argonGLDisplay, mEGLConfig, surface,\n surfaceAttribs);\n checkEglError(\"eglCreateWindowSurface\");\n if (eglSurface == null) {\n throw new RuntimeException(\"surface was null\");\n }\n return eglSurface;\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tLog.e(TAG,\"Surface Created\");\n\t\tcamera = Camera.open();\n\t}", "public GL createSurface(SurfaceHolder holder) {\r\n if (MotoConfig.KEY_LOG) {\r\n Log.w(\"EglHelper\", \"createSurface() tid=\" + Thread.currentThread().getId());\r\n }\r\n /*\r\n * Check preconditions.\r\n */\r\n if (mEgl == null) {\r\n throw new RuntimeException(\"egl not initialized\");\r\n }\r\n if (mEglDisplay == null) {\r\n throw new RuntimeException(\"eglDisplay not initialized\");\r\n }\r\n if (mEglConfig == null) {\r\n throw new RuntimeException(\"mEglConfig not initialized\");\r\n }\r\n /*\r\n * The window size has changed, so we need to create a new\r\n * surface.\r\n */\r\n if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) {\r\n\r\n /*\r\n * Unbind and destroy the old EGL surface, if\r\n * there is one.\r\n */\r\n mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE,\r\n EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);\r\n mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface);\r\n }\r\n\r\n /*\r\n * Create an EGL surface we can render into.\r\n */\r\n mEglSurface = mEGLWindowSurfaceFactory.createWindowSurface(mEgl,\r\n mEglDisplay, mEglConfig, holder);\r\n\r\n if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) {\r\n int error = mEgl.eglGetError();\r\n if (error == EGL10.EGL_BAD_NATIVE_WINDOW) {\r\n Log.e(\"EglHelper\", \"createWindowSurface returned EGL_BAD_NATIVE_WINDOW.\");\r\n }\r\n return null;\r\n }\r\n\r\n /*\r\n * Before we can issue GL commands, we need to make sure\r\n * the context is current and bound to a surface.\r\n */\r\n if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {\r\n throw new EglMakeCurrentException(\"eglMakeCurrent\");\r\n }\r\n\r\n GL gl = mEglContext.getGL();\r\n if (mGLWrapper != null) {\r\n gl = mGLWrapper.wrap(gl);\r\n }\r\n\r\n return gl;\r\n }", "private native static void initSurface(long instance, long avi);", "SurfaceTexture mo17006a();", "SurfaceTexture mo17015a();", "public SurfaceControl.Builder makeOverlay() {\n return this.mWmService.makeSurfaceBuilder(this.mSession).setParent(this.mOverlayLayer);\n }", "void init(){\n if(DEBUG) Log.d(TAG, \"Creating GlHelper and Surface\");\n mGLHelper = new GLHelper();\n int mDefaultTextureID = 10001;\n SurfaceTexture st = new SurfaceTexture(mDefaultTextureID);\n st.setDefaultBufferSize(mWidth, mHeight);\n mGLHelper.init(st);\n\n textureID = mGLHelper.createOESTexture();\n sTexture = new SurfaceTexture(textureID);\n sTexture.setOnFrameAvailableListener(this);\n surface = new Surface(sTexture);\n }", "@Override\n protected Camera getCamera() {\n return Camera.createForPositionAndAngles(new ThreeDoubleVector(31.0, 7.0, 5.5), 0.0, 0.7);\n\n // Camera for orientation curve interpolation presentation\n// return Camera.createForPositionAndAngles(new ThreeDoubleVector(54.5, 10.0, 2.5), -0.5, 0.3);\n }", "public abstract double getSurfacearea();", "public SurfaceData getReplacement() {\n/* 284 */ ScreenUpdateManager screenUpdateManager = ScreenUpdateManager.getInstance();\n/* 285 */ return screenUpdateManager.getReplacementScreenSurface(this.peer, this);\n/* */ }", "private void onSurfaceReceived() {\n List<Surface> surfaceList = new ArrayList<Surface>();\n surfaceList.add(targetSurface);\n try {\n cameraDevice.createCaptureSession(surfaceList, new CameraCaptureSession.StateCallback() {\n @Override\n public void onConfigured(CameraCaptureSession session) {\n onSurfaceConfigured(session);\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession session) {\n System.out.println(\"CAMERA CONFIGURE FAILED\");\n }\n }, null);\n } catch(Exception e) {\n System.out.println(\"FAILED TO START CAPTURE SESSION\");\n e.printStackTrace();\n }\n }", "public void setSurfaceProperty(SurfaceProperty surfaceProperty) {\n\t\tthis.surfaceProperty = surfaceProperty;\n\t}", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tOnSurfaceCreated(holder.getSurface());\r\n\t}", "public void set_surface_type(int st) {\n surface_type = st;\n }", "public static Room surface() {\r\n Room outside = new Room(\"Surface\", \"surface\", Room.roomSize.SMALL, Room.roomType.EXTERIOR, \"The outdoors\", null, null, null);\r\n \r\n Trait result = new Trait(\"Ant Hill\", 1, TraitBuilder.room_change());\r\n result.setDesc(\"antHill\");\r\n Task embiggen = new Task(\"Dig a new entrance\", 2, \"Digging\",\r\n null,\r\n new Trait[]{new Trait(\"Ant\", 0, TraitBuilder.reqGreaterThanCreationLink())},\r\n new Trait[]{result},\r\n \"Start an ant hill\");\r\n outside.getTasks().add(embiggen);\r\n\r\n return outside;\r\n }", "public Camera() {\r\n this(1, 1);\r\n }", "private byte[] getSelectedPlanetSurface() {\r\n\t\tbyte[] mapBytes;\r\n\t\tPACEntry e = getSurface(gameWorld.player.selectedPlanet.surfaceType.index, gameWorld.player.selectedPlanet.surfaceVariant);\r\n\t\tif (e != null) {\r\n\t\t\tmapBytes = e.data;\r\n\t\t} else {\r\n\t\t\tmapBytes = EMPTY_SURFACE_MAP;\r\n\t\t}\r\n\t\treturn mapBytes;\r\n\t}", "public interface SurfaceCallback {\n\n\n void onSurfaceCreated(Surface surface);\n\n\n void onSurfaceChanged(Surface surface,int width, int height);\n\n\n void onSurfaceDestroy();\n}", "@Override\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//in the lifecycle of the Surface\n\t\t\tpublic void surfaceCreated(SurfaceHolder holder) {\t\t\t\t\t//This is where you connect Surface with its client\n\t\t\t\t//Tell the camera to use this surface as its preview area\n\t\t\t\ttry {\n\t\t\t\t\tif (mCamera != null) {\n\t\t\t\t\t\tmCamera.setPreviewDisplay(holder);\t\t\t\t\t\t//Set the surface to be used for preview\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(TAG, \"Error setting up preview display\", e);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\t\t\n\t}", "public MainFrame(Surface surface) {\n _drawSurface = surface;\n \n initComponents();\n triunghiSurface.add(_drawSurface);\n _drawSurface.setX1(50);\n _drawSurface.setY1(150);\n _drawSurface.setColor(Color.RED);\n _drawSurface.setSize(triunghiSurface.getWidth(), triunghiSurface.getHeight());\n \n // adaugam listen-erii slide-urilor\n \n SliderListener s1 = new SliderListener(this);\n SliderListener s2 = new SliderListener(this);\n slider_cateta_1.addChangeListener(s1);\n slider_cateta_2.addChangeListener(s2);\n }", "Plane getPlane();", "public Card(FrontFace frontFace, BackFace backFace) {\n this.frontFace = frontFace;\n this.backFace = backFace;\n }", "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "public MaxwellFisheyeLensSurface()\n\t{\n\t\tthis(\n\t\t\t\t1.0,\t// refractive-index ratio\n\t\t\t\t0.0,\t// transparent tunnel radius\n\t\t\t\t1.0,\t// transmission coefficient\n\t\t\t\ttrue\t// shadow-throwing\n\t\t\t);\n\t}", "public void setSurface(org.landxml.schema.landXML11.SurfaceDocument.Surface surface)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;\r\n target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().find_element_user(SURFACE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().add_element_user(SURFACE$0);\r\n }\r\n target.set(surface);\r\n }\r\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n mTriangle = new Triangle();\n mSquare = new Square();\n }", "void createDummyPbufferSurface();", "@FromString\n public static SurfaceName of(String name) {\n return new SurfaceName(name);\n }", "public Card build() {\n return new Card(frontFace, backFace);\n }", "@Override public void surfaceCreated(SurfaceHolder holder) {\n\t\t\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\t\n\t}", "protected int getSurfaceForSmartspaceLogging() {\n int currentEndLocation = mMediaViewController.getCurrentEndLocation();\n if (currentEndLocation == MediaHierarchyManager.LOCATION_QQS\n || currentEndLocation == MediaHierarchyManager.LOCATION_QS) {\n return SysUiStatsLog.SMART_SPACE_CARD_REPORTED__DISPLAY_SURFACE__SHADE;\n } else if (currentEndLocation == MediaHierarchyManager.LOCATION_LOCKSCREEN) {\n return SysUiStatsLog.SMART_SPACE_CARD_REPORTED__DISPLAY_SURFACE__LOCKSCREEN;\n } else if (currentEndLocation == MediaHierarchyManager.LOCATION_DREAM_OVERLAY) {\n return SysUiStatsLog.SMART_SPACE_CARD_REPORTED__DISPLAY_SURFACE__DREAM_OVERLAY;\n }\n return SysUiStatsLog.SMART_SPACE_CARD_REPORTED__DISPLAY_SURFACE__DEFAULT_SURFACE;\n }", "public EnvironmentPaint getSkyPaint() {\n return this.skyPaint;\n }", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "java.util.List getSurfaceRefs();", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // initialize a triangle\n mTriangle = new Triangle();\n // initialize a rect\n mRect = new Rect(mContext.getResources());\n\n mPicture = new Picture(mContext.getResources());\n mBlackAndWhitePicture = new BlackAndWhitePicture(mContext.getResources());\n }", "public Surface(int var1, int var2, int var3, Component var4) {\n super();\n this.interlace = false;\n this.loggedIn = false;\n this.field_731 = var4;\n this.field_744 = var2;\n this.field_746 = var1;\n this.field_726 = this.field_723 = var1;\n this.field_727 = this.field_724 = var2;\n this.field_725 = var1 * var2;\n this.pixels = new int[var1 * var2];\n this.spritePixels = new int[var3][];\n this.field_742 = new boolean[var3];\n this.spriteColoursUsed = new byte[var3][];\n this.spriteColourList = new int[var3][];\n this.field_736 = new int[var3];\n this.field_737 = new int[var3];\n this.spriteWidthFull = new int[var3];\n this.field_741 = new int[var3];\n this.field_738 = new int[var3];\n this.field_739 = new int[var3];\n if(var1 > 1 && var2 > 1 && var4 != null) {\n this.field_728 = new DirectColorModel(32, 16711680, '\\uff00', 255);\n int var5 = this.field_723 * this.field_724;\n int var6 = 0;\n if(field_759 || var6 < var5) {\n do {\n this.pixels[var6] = 0;\n ++var6;\n } while(var6 < var5);\n }\n\n this.field_732 = var4.createImage(this);\n this.method_219();\n var4.prepareImage(this.field_732, var4);\n this.method_219();\n var4.prepareImage(this.field_732, var4);\n this.method_219();\n var4.prepareImage(this.field_732, var4);\n }\n\n }", "@Override // com.android.server.wm.WindowContainer\n public SurfaceSession getSession() {\n return this.mSession;\n }", "public static Camera open() { \n return new Camera(); \n }", "public TopoDS_Face Value() {\n TopoDS_Face ret = new TopoDS_Face(OCCwrapJavaJNI.StepToTopoDS_TranslateCurveBoundedSurface_Value(swigCPtr, this), true);\n return ret;\n }", "private PACEntry getSurface(int surfaceType, int variant) {\r\n\t\tString mapName = \"MAP_\" + (char)('A' + (surfaceType - 1)) + variant + \".MAP\";\r\n\t\treturn gfx.getMap(mapName);\r\n\t}", "@Override\n public void onSurfaceCreated(GL10 unused, javax.microedition.khronos.egl.EGLConfig config) {\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // initialize a triangle\n mHat = new Hat();\n robe = new Robe();\n // initialize a square\n mSquare = new Square(Player.PLAYER_ONE);\n mHat2 = new Hat();\n robe2 = new Robe();\n // initialize a square\n mSquare2 = new Square(Player.PLAYER_TWO);\n\n\n\n float[] colorWhite = {1f, 1f, 1f, 1.0f};\n p1Eye = new Circle(colorWhite);\n p2Eye = new Circle(colorWhite);\n\n }", "GameCanvas getCanvas();", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n\n }", "public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}", "public SurfaceBrightness getSurfaceBrightness() {\n\n return surfaceBrightness;\n\n }", "public CameraSurfaceView(Context context, AttributeSet attrs) {\n\t\tsuper(context, attrs);\n\t\tinit();\n\t}", "public AbstractDrawingSurface(BufferedImage image) {\n Objects.requireNonNull(image, \"The image couldn't be null\");\n this.image = image;\n\n this.background = ((Graphics2D) image.getGraphics()).getBackground();\n }", "@VisibleForTesting\n public SurfaceControl getWindowingLayer() {\n return this.mWindowingLayer;\n }", "Camera getCamera();", "public void surfaceCreated(SurfaceHolder holder) {\n mSurface = holder.getSurface();\n startARX();\n }", "public Canvas getGameZone() {\n\t\treturn gz;\n\t}", "public Pj3dCamera Camera()\r\n\t{\r\n\t\tPj3dCamera cam = new Pj3dCamera(this);\r\n\t\treturn cam;\r\n\t}", "public void surfaceCreated(SurfaceHolder holder) {\n\t}", "public void surfaceCreated(SurfaceHolder holder) {\n\t}", "public Camera getCamera() { return (Camera)CameraSet.elementAt(0); }", "public PlayerWL() {\n super();\n rotateYAxis = 0;\n positionZ = 0;\n positionX = 0;\n camera = new PerspectiveCamera(true);\n camera.getTransforms().addAll(\n new Rotate(0, Rotate.Y_AXIS),\n new Rotate(-10, Rotate.X_AXIS),\n new Translate(0, 0, 0));\n cameraGroup = new Group(camera);\n camera.setRotationAxis(new Point3D(0, 1, 0));\n }", "protected int getSurfaceWidth() {\n assertActivityNotNull();\n return mActivity.getWidth();\n }", "protected int getSurfaceHeight() {\n assertActivityNotNull();\n return mActivity.getHeight();\n }", "public Shape getZone()\n {\n return getLevel().getActorZone(this);\n }", "public BoardSurfaceView(Context context, AttributeSet attrs) {\n //Call super to initialize the parameters\n super(context, attrs);\n\n //Create the random number array and then create the array of cards\n numsArray = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};\n cardArray = createArray();\n\n //Initialize the xy index values for the card the user drags\n xCard = -1;\n yCard = -1;\n\n //Initialize the xy coordinates of where the user begins the drag\n xLoc = -1;\n yLoc = -1;\n\n //Initialize the coordinates that create a rectangle. These will be populated by\n //the set of xy coordinates contained by the card the user drags\n origX = -1;\n origY = -1;\n origBottomX = -1;\n origBottomY = -1;\n\n //Initialize the coordinates that create a rectangle. These will be populated by\n //the set of xy coordinates contained by the blank card\n blankCardTopX = -1;\n blankCardTopY = -1;\n blankCardBottomX = -1;\n blankCardBottomY = -1;\n\n //Set userClick to true so that the clock initially does not start timing\n userClick = true;\n\n //Set didDrag to false so that if a user clicks a square instead of drags\n //nothing will happen\n didDrag = false;\n\n //Set setWillNotDraw to false so we can draw on the surface view\n setWillNotDraw(false);\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n Log.d(TAG, \"surfaceCreated\");\n mRenderingPaused = false;\n mHolder = holder;\n updateRenderingState();\n }", "public void surfaceCreated(SurfaceHolder holder) {\n this.holder=holder;\n\twidth=this.getWidth();\n\theight=this.getHeight();\n\tags.surfaceCreated(holder);\n\tag.surfaceCreated(holder);\n\t\n\n\t\n\tgs.start();\n\tgs.setRunnning(true);\n\t\n}", "public static VecCanvas getCanvas(){\n if (instance == null)\n instance = new VecCanvas();\n return instance;\n }", "public PreviewScalingStrategy getPreviewScalingStrategy() {\n if(previewScalingStrategy != null) {\n return previewScalingStrategy;\n }\n\n // If we are using SurfaceTexture, it is safe to use centerCrop.\n // For SurfaceView, it's better to use fitCenter, otherwise the preview may overlap to\n // other views.\n if(textureView != null) {\n return new CenterCropStrategy();\n } else {\n return new FitCenterStrategy();\n }\n\n }", "public T caseGroundSurfaceType(GroundSurfaceType object) {\n\t\treturn null;\n\t}", "public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n Log.i(Focus.TAG, \"onSurfaceCreated, thread is \" + Thread.currentThread());\n\n root = new Root();\n renderable = new Triangle();\n\n try {\n shader = new ShaderLoader(context).load(\"plain\");\n renderable = new Triangle();\n renderable.setShaderProgram(shader);\n Log.i(Focus.TAG, \"shader found, id: \" + shader);\n } catch (IOException ex) {\n Log.e(Focus.TAG, \"error creating shader\", ex);\n }\n\n }", "public static Camera getInstance() {\r\n return instance;\r\n }", "public T caseFloorSurfaceType(FloorSurfaceType object) {\n\t\treturn null;\n\t}", "public GameThread(SurfaceHolder holder)\n {\n surfaceHolder = holder;\n setName(\"GameThread\");\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // Do backface culling\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n GLES20.glFrontFace(GLES20.GL_CCW);\n // Why using GL_BACK won't work is a mystery\n GLES20.glCullFace(GLES20.GL_BACK);\n // Enable depth buffer\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n GLES20.glDepthFunc(GLES20.GL_LEQUAL);\n GLES20.glDepthMask(true);\n \n for (int i = 0; i < NUM_CARS; i++) {\n mCarBody[i] = new CarBody((float) Math.random(),\n (float) Math.random(),\n (float) Math.random());\n mCarWheels[i] = new CarWheels();\n }\n \n // Create transformation matrices for each car\n for (int i = 0; i < NUM_CARS; i++) {\n mCarXOffsets[i] = (i % NUM_LANES) * 1.1f;\n mCarZOffsets[i] = ((i / NUM_LANES) * -2) + ((i % NUM_LANES) * 1.3f);\n }\n \n road = new Square(0.6f, 0.6f, 0.6f);\n land = new Square(0.1f, 0.6f, 0.1f);\n sky = new Square(0.6f, 0.6f, 0.9f);\n background = new Sprite(mActivityContext);\n \n }", "@Override\n public void surfaceCreated(SurfaceHolder holder){\n myPaint = new Paint();\n myPaint.setColor(Color.rgb(0, 0, 0));\n //////\n bg = new Background(BitmapFactory.decodeResource(getResources(), R.drawable.background),\n moveSpeed, MainActivity.BACKGROUNDWIDTH);\n player = new Player(BitmapFactory.decodeResource(getResources(),R.drawable.bigskater), 208,206, 43);\n cones = new ArrayList<>();\n bananas = new ArrayList<>();\n bananaStartTime = System.nanoTime();\n coneStartTime = System.nanoTime();\n thread = new Level3Thread (getHolder(), this);\n thread.setRunning(true);\n thread.start();\n }", "public abstract float surfaceArea();", "private void init()\n {\n holder = getHolder();\n holder.addCallback(this);\n holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);\n }", "public GraphicsPrimitive makePrimitive(SurfaceType paramSurfaceType1, CompositeType paramCompositeType, SurfaceType paramSurfaceType2) {\n/* 122 */ return null;\n/* */ }", "@Override\n public Camera setupCamera() {\n mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK);\n try {\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setPreviewSize(mWidth, mHeight);\n parameters.setPreviewFormat(mFormat);\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n Log.d(TAG, \"SIZE:\" + size.width + \"x\" + size.height);\n }\n for (Integer format : parameters.getSupportedPreviewFormats()) {\n Log.d(TAG, \"FORMAT:\" + format);\n }\n\n List<int[]> fps = parameters.getSupportedPreviewFpsRange();\n for (int[] count : fps) {\n Log.d(TAG, \"T:\");\n for (int data : count) {\n Log.d(TAG, \"V=\" + data);\n }\n }\n mCamera.setParameters(parameters);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (mCamera != null) {\n mWidth = mCamera.getParameters().getPreviewSize().width;\n mHeight = mCamera.getParameters().getPreviewSize().height;\n }\n return mCamera;\n }" ]
[ "0.75625116", "0.73443204", "0.7180474", "0.69022673", "0.6787953", "0.63445765", "0.62139636", "0.61299205", "0.61246383", "0.6113821", "0.6051937", "0.60436374", "0.60079426", "0.5910143", "0.58253235", "0.5797182", "0.57739884", "0.5719527", "0.5641308", "0.5592294", "0.5545236", "0.5537646", "0.5484349", "0.54507023", "0.5446736", "0.5434944", "0.54254633", "0.53856325", "0.5373231", "0.53582275", "0.5354611", "0.5351343", "0.53331226", "0.5325203", "0.53024685", "0.5279849", "0.52765954", "0.52765924", "0.5258469", "0.5257502", "0.52572703", "0.5253025", "0.524869", "0.5229011", "0.52098733", "0.519207", "0.5171151", "0.517054", "0.51675045", "0.5155829", "0.51542544", "0.5152964", "0.51415604", "0.513696", "0.5127925", "0.5121811", "0.5114509", "0.510645", "0.5100648", "0.509944", "0.5099025", "0.5096228", "0.50951254", "0.5087135", "0.50859666", "0.50761104", "0.5063275", "0.50629735", "0.50576395", "0.50568", "0.5051789", "0.5043864", "0.5043056", "0.5036888", "0.5035602", "0.50085753", "0.5008153", "0.49921435", "0.49921435", "0.4986457", "0.4975008", "0.49629992", "0.49561176", "0.49545997", "0.4951745", "0.49337858", "0.4931577", "0.49311224", "0.49293986", "0.492419", "0.4920302", "0.49200508", "0.491689", "0.49096224", "0.49032938", "0.4902782", "0.48993015", "0.48949364", "0.48934245", "0.48931617" ]
0.7745034
0
Returns the DirectShapeRenderer derived from the Surface passed in to this object's constructor.
public DirectShapeRenderer getRenderer() { return renderer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Renderer getRenderer()\n\t{\n\t\treturn getObject().getRenderer();\n\t}", "public Shape getRenderObject(\n )\n {return renderObject;}", "protected ImageRenderer createRenderer() {\n\t\tImageRendererFactory rendFactory = new ConcreteImageRendererFactory();\n\t\t// ImageRenderer renderer = rendFactory.createDynamicImageRenderer();\n\t\treturn rendFactory.createStaticImageRenderer();\n\t}", "public GLRenderer getRenderer()\n\t{\n\t\treturn renderer;\n\t}", "public org.landxml.schema.landXML11.SurfaceDocument.Surface getSurface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;\r\n target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().find_element_user(SURFACE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "public Paint getPaintRender() {\n return mRenderPaint;\n }", "public VolumeRenderer getRenderer() {\n\t\treturn renderer;\n\t}", "RenderTool getRenderTool();", "public static IDataRenderer getDataRenderer() {\n\n return m_Renderer;\n\n }", "protected Drawing createDrawing() {\n return new StandardDrawing();\n }", "public Surface getSurface() {\n \t\treturn surface;\n \t}", "public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}", "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "public Graphics2D getGraphics(){\n\t\ttry {\n\t\t\treturn (Graphics2D)this.getBufferStrategy().getDrawGraphics();\n\t\t} catch (Exception ex1) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Surface(){\r\n\t\tsuper(SURFACE_TAG,\"\");\r\n\t\tthis.setRef(\"CG\");\r\n\t}", "protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }", "@Override\n public Object getRenderer()\n {\n return null;\n }", "public OrthogonalTiledMapRenderer getRenderer() {\n\t\treturn renderer; \n\t}", "public GraphicsDevice getGraphicsDevice() {\n\t\treturn gd;\n\t}", "protected abstract ProxyRenderer getProxyRendererImpl();", "public Renderer() {\r\n renderables = new ArrayList<>();\r\n renderables.add(null); //The first background\r\n renderables.add(TextBox.blankText); //The first text box\r\n rendered = new BufferedImage(Main.WIDTH,Main.HEIGHT,BufferedImage.TYPE_INT_ARGB);\r\n focused = -1;\r\n }", "@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }", "public static synchronized JavaRenderer getInstance()\n {\n if(_instance == null)\n _instance = new JavaRenderer();\n\n return _instance;\n }", "@NativeType(\"bgfx_renderer_type_t\")\n public static int bgfx_get_renderer_type() {\n long __functionAddress = Functions.get_renderer_type;\n return invokeI(__functionAddress);\n }", "public FontRenderer getFontRenderer()\r\n\t{\n\t\treturn this.fontRenderer;\r\n\t}", "String getRendererType();", "public static TraceViewRenderer findRenderer(final String klass) {\n return null;\n }", "public Surface surface()\n { return _srf;\n }", "public PSRenderingMode getRenderingMode() {\n return this.renderingMode;\n }", "public Stroke<R> getStroke() {\n if (stroke == null) {\n stroke = factory.createStroke();\n }\n return stroke;\n }", "public Graphics2D getGraphics(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n BufferStrategy bs = w.getBufferStrategy();\n //return (Graphics2D)bs.getDrawGraphics();\n return (Graphics2D)strategy.getDrawGraphics();\n } else {\n return null;\n }\n }", "public static VolumeViewRenderer findRenderer(final String klass) throws Exception {\r\n // Get the extension registry.\r\n IExtensionRegistry registry = Platform.getExtensionRegistry();\r\n // Find all the config elements for the renderer extension point.\r\n IConfigurationElement[] rendererConfigs = registry\r\n .getConfigurationElementsFor(\"org.geocraft.ui.volumeviewer.renderer\");\r\n for (IConfigurationElement rendererConfig : rendererConfigs) {\r\n if (rendererConfig.getAttribute(\"class\").equals(klass)) {\r\n return createRenderer(rendererConfig);\r\n }\r\n }\r\n\r\n return null;\r\n }", "JComponent getRenderComponent();", "protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }", "public static IRenderer createRenderer(final IConfigurationElement configElement) {\n return null;\n }", "public FontRenderer getFontRenderer() {\n\t\treturn fontRenderer;\n\t}", "public int getRenderLayer() {\n\t\treturn renderLayer;\n\t}", "public String getGeoRender() {\n if ( this.geoRenderer == null || \n this.currentIsColoured != this.mainPreferences.isColourSdoGeomElements() ||\n this.currentRenderType != this.mainPreferences.getVisualFormat() ) \n {\n if ( this.geoValue == null && this.jGeom != null ) \n this.setGeoValue(null);\n if ( this.geoValue != null ) {\n this.currentRenderType = this.mainPreferences.getVisualFormat();\n this.currentIsColoured = this.mainPreferences.isColourSdoGeomElements();\n this.geoRenderer = this.sRenderer.renderSdoGeometry(this.geoValue,this.currentIsColoured);\n\n }\n } \n return this.geoRenderer;\n }", "@Override\n public abstract String getRendererType();", "public Renderer() {\n this.addGLEventListener(this);\n }", "public Painter<?> getPainter() {\n\t\tint width = 100;\n\t\tint height = 100;\n\t\tColor color1 = Colors.White.color(0.5f);\n\t\tColor color2 = Colors.Gray.color(0.5f);\n\n\t\tLinearGradientPaint gradientPaint = new LinearGradientPaint(0.0f, 0.0f,\n\t\t\t\twidth, height, new float[] { 0.0f, 1.0f }, new Color[] {\n\t\t\t\t\t\tcolor1, color2 });\n\t\tMattePainter mattePainter = new MattePainter(gradientPaint);\n\t\treturn mattePainter;\n\t}", "@SideOnly(Side.CLIENT)\n IBlockRenderingHandler getRenderer();", "java.lang.String getRenderer();", "Surface createSurface();", "public Paint getPaint()\r\n\t{\r\n\t\treturn _g2.getPaint();\r\n\t}", "@Override\n\t\t\tpublic Render<EntityFlare> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderFlare(manager);\n\t\t\t}", "@Nullable\n public RendererCallback getRenderCallback() {\n return mRenderCallback;\n }", "public RenderObject getRenderObject(){\n\t\treturn this.renObject;\n\t}", "public Plot2D getPlotter() {\n\t\treturn plot;\n\t}", "public DirectShapeRenderer stroke() {\n \t\treturn renderer.stroke();\n \t}", "public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}", "public VectorGraphics2D createGraphics() {\n\t\treturn new VectorGraphics2D(new Graphics2DContext(), operations);\n\t}", "@Override\n\tpublic CSSCanvas getCanvas() {\n\t\tif (targetMedium == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (canvases.containsKey(targetMedium)) {\n\t\t\treturn canvases.get(targetMedium);\n\t\t}\n\t\tCSSCanvas canvas;\n\t\tDeviceFactory df = getStyleSheetFactory().getDeviceFactory();\n\t\tif (df != null) {\n\t\t\tcanvas = df.createCanvas(targetMedium, this);\n\t\t\tcanvases.put(targetMedium, canvas);\n\t\t} else {\n\t\t\tcanvas = null;\n\t\t}\n\t\treturn canvas;\n\t}", "public net.opengis.gml.x32.AbstractSurfacePatchType addNewAbstractSurfacePatch()\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.AbstractSurfacePatchType target = null;\n target = (net.opengis.gml.x32.AbstractSurfacePatchType)get_store().add_element_user(ABSTRACTSURFACEPATCH$0);\n return target;\n }\n }", "protected Surface getOutputSurface() { return null; }", "@Override\n\t\t\tpublic Render<EntityRocket> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderRocket(manager);\n\t\t\t}", "public Graphics2D getRenderContext(\n )\n {return renderContext;}", "public Shape getShape() {\n\t\treturn this;\n\t}", "public int getRenderType()\r\n {\r\n return mod_FCBetterThanWolves.iCustomPlatformRenderID;\r\n }", "public FontRenderer getFontRenderer()\n {\n return this.textRenderer;\n }", "public static IRenderHandler getRendererFor(String option, IRenderHandler subRenderer) {\n\t\tfor(ISkyRenderType type : INSTANCE.rendererTypes)\n\t\t\tif(type.getName().equals(option))\n\t\t\t\treturn type.createSkyRenderer(subRenderer);\n\t\treturn null;\n\t}", "Shape getShape();", "public Graphics2D createGraphics()\n {\n return this.image.createGraphics();\n }", "public int get_surface_type() {\n return surface_type;\n }", "public Shape getShape();", "public Shape getShape()\n {\n return Shape.this;\n }", "protected MancalaBoardRenderer(){\n pieceRenderer_ = MancalaBinRenderer.getRenderer();\n }", "public interface Renderer\n {\n public void init();\n public int[] getConfigSpec();\n public void sizeChanged(GL10 gl, int width, int height);\n public boolean drawFrame(GL10 gl);\n }", "@Override\n public ShapeColor getColor() {\n return new ShapeColor(this.r, this.g, this.b);\n }", "public Color getDrawColor() {\n\t\treturn drawColor;\n\t}", "public Circle getShape(){\n\t\treturn new Circle();\n\t}", "com.google.protobuf.ByteString\n getRendererBytes();", "private Surface getPreviewSurface() {\n return surface_texture;\n }", "public DrawingModel getDrawingModel() {\r\n\t\treturn drawingModel;\r\n\t}", "@Override\n public RenderKit getRenderKit(String renderKitId) {\n return cdiManager.getInstance(RenderKit.class, new ServeRenderKitIdLiteral(renderKitId));\n }", "public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }", "public SurfaceFormat getFormat()\n\t{\n\t\treturn this._format;\n\t}", "public Graphics2D createGraphics() {\n\treturn recorder.createGraphics();\n }", "protected Shape getShape()\n {\n return null;\n }", "protected AbstractRenderer createRenderer(final IScope scope, final String serieid) {\n\t\treturn new XYErrorRenderer();\r\n\r\n\t}", "public int getRenderType() {\n\t\treturn -1;\n\t}", "public int getRenderType()\n\t\t{\n\t\t\treturn -1;\n\t\t}", "public static VecCanvas getCanvas(){\n if (instance == null)\n instance = new VecCanvas();\n return instance;\n }", "public Paint getPaint() {\n return mPaint;\n }", "public int getRenderType() {\n\t\treturn 18;\n\t}", "public BaseRenderNode getCurrentNodeRenderer() {\n BaseRenderNode object = null;\n if (currentNode instanceof BlackNode) {\n object = blackNode;\n }\n else if (currentNode instanceof RedNode) {\n object = redNode;\n }\n return object;\n }", "public void registerRenderer() {}", "public void registerRenderer() {}", "@Override\n public double getRadius() {\n return this.getRenderable().getRadius();\n }", "@Override\n\t\tpublic Surface3D createSurface(ParameterList faultRepresentationParams) {\n\t\t\treturn null;\n\t\t}", "public List<Shape> getDrawShapes();", "@Override\n\t\t\tpublic Render<EntityDispenser> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderDispenser(manager);\n\t\t\t}", "public int getRenderType()\n {\n return 40;\n }", "public WorldImage draw() {\n return new CircleImage(this.size, OutlineMode.SOLID, this.color);\n }", "public Shape getShape()\n\t{\n\t\treturn rect;\n\t}", "public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }", "public Object getGraphicsCreator(Graphics g);", "@Override\n\tpublic double getReflexBlend() {\n\t\treturn m_reflectBlend;\n\t}", "public Graphics2D getGraphGraphics() {\r\n \t\t// DEK (Federico Granata) 17-11-2003\r\n \t\treturn (Graphics2D) graph.getGraphics();\r\n \t\t// end 17-11-2003\r\n \t\t// return mainWindow.getGraphics();\r\n \t}", "public int getRenderType()\n {\n return 2;\n }" ]
[ "0.6327319", "0.6257961", "0.616212", "0.6076774", "0.58947426", "0.5830341", "0.57443506", "0.57304955", "0.57095546", "0.5671324", "0.55980814", "0.55615604", "0.55569327", "0.5531904", "0.5499327", "0.54468", "0.5443942", "0.54380965", "0.54070866", "0.5382898", "0.5350922", "0.5318134", "0.5288805", "0.52467173", "0.5234398", "0.52252626", "0.5222009", "0.5214384", "0.5211131", "0.5209543", "0.5205005", "0.5162541", "0.5141195", "0.51238495", "0.5123193", "0.5120253", "0.5105643", "0.51021576", "0.50896716", "0.50874496", "0.50818956", "0.50761026", "0.5070929", "0.5045137", "0.50412464", "0.50399655", "0.50377285", "0.50058556", "0.49936205", "0.49802306", "0.49661773", "0.4963099", "0.49538293", "0.4953588", "0.49412784", "0.49378577", "0.49317452", "0.48953757", "0.4894818", "0.48871922", "0.48854306", "0.48657188", "0.48577222", "0.48564878", "0.48408288", "0.48332682", "0.48101047", "0.48063368", "0.4805081", "0.4800255", "0.4799956", "0.47899932", "0.47896904", "0.47872576", "0.47603726", "0.47588575", "0.47569057", "0.47568622", "0.47530004", "0.47525224", "0.47488078", "0.47382754", "0.4735995", "0.47355348", "0.47333634", "0.4720354", "0.471923", "0.471923", "0.47154585", "0.4708729", "0.47071517", "0.46985614", "0.46931788", "0.4688534", "0.46870118", "0.46843833", "0.46839154", "0.46747962", "0.46740723", "0.46715075" ]
0.7549581
0
Copies of Surface methods None here yet! Copies of DirectShapeRenderer methods Is exactly equivalent to a call to getRenderer().beginPath().
public DirectShapeRenderer beginPath() { return renderer.beginPath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "protected abstract void paint(Graphics g, Object iDrawSurfaceID);", "public Surface(){\r\n\t\tsuper(SURFACE_TAG,\"\");\r\n\t\tthis.setRef(\"CG\");\r\n\t}", "public void drawOn(DrawSurface surface) {\r\n surface.setColor(color);\r\n surface.fillCircle((int) this.p.getX(), (int) this.p.getY(), this.radius);\r\n surface.setColor(Color.RED);\r\n surface.fillCircle((int) this.p.getX(), (int) this.p.getY(), 1);\r\n }", "public void drawOn(DrawSurface surface) {\n surface.setColor(this.color);\n surface.fillCircle(this.getX(), this.getY(), r);\n surface.setColor(Color.BLACK);\n surface.drawCircle(this.getX(), this.getY(), r);\n }", "public void drawOn(DrawSurface surface) {\n surface.setColor(Color.WHITE);\n surface.fillCircle(this.getX(), this.getY(), this.radius);\n surface.setColor(Color.BLACK);\n surface.drawCircle(this.getX(), this.getY(), this.radius);\n }", "public Surface surface()\n { return _srf;\n }", "void mo21067a(Surface surface);", "public void drawOn(DrawSurface surface) {\n surface.setColor(this.color);\n surface.fillCircle(this.getX(), this.getY(), this.radius);\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void drawOn(DrawSurface surface) {\n surface.setColor(Color.BLACK);\n surface.fillCircle(this.getX() + 1, this.getY() + 1, this.r);\n surface.setColor(this.color);\n surface.fillCircle(this.getX(), this.getY(), this.r);\n surface.setColor(Color.black);\n surface.drawCircle(this.getX(), this.getY(), this.r);\n }", "void drawAt(DrawSurface d, Rectangle rect);", "Surface createSurface();", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void drawOn(DrawSurface surface){\r\n surface.setColor(color);\r\n surface.fillCircle((int)center.getX(),(int)center.getY(),radius);\r\n }", "protected Surface getOutputSurface() { return null; }", "public void draw(ShapeRenderer sr){\n this.draw(sr,null,true);\n }", "@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}", "void draw() {\n scsw.draw();\n \n}", "public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "public void drawOn(DrawSurface surface) {\n //setting the color of the ball on the surface\n surface.setColor(this.color);\n\n //setting the ball on the surface as a full circle with center point and radius\n surface.fillCircle((int) center.getX(), (int) center.getY(), radius);\n }", "public Surface getSurface() {\n \t\treturn surface;\n \t}", "@Override\r\n public void draw() {\n }", "@Override\n\tpublic void draw(Graphics2D g, Camera cam) {\n\n\t}", "@Override\n public void draw(GraphicsContext gc, int sides){}", "public void draw() {\n }", "protected abstract void draw();", "public void draw() {\n \n }", "public void draw() {\n\n }", "public void draw(){\n }", "@Override\n\tprotected void draw(Canvas canvas) {\t\tcanvas.setColor(Color.DARK_GREEN);\n\t\tcanvas.drawRectangle(getBounds());\n\t\t\n/*\t\tRectangle originalClipping = canvas.getClipping();\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tTransformation originalTransformation = canvas.getTransformation();\n\n\t\tdrawWorld(new ShadowCanvas(canvas));\n\t\t\n\t\tcanvas.setAlpha(1.0f);\n\t\tcanvas.setTransformation(originalTransformation);\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tdrawWorld(canvas);\n\t\t\n\t\tcanvas.setClipping(originalClipping);\n*/\t}", "public void drawOn(DrawSurface d) {\r\n d.setColor(Color.decode(\"#00B5DC\"));\r\n d.fillRectangle(0, 0, d.getWidth(), d.getHeight());\r\n\r\n d.setColor(Color.white);\r\n for (int i = 0; i < 10; i++) {\r\n d.drawLine(160 + i * 10, 390, 130 + i * 10, d.getHeight());\r\n }\r\n for (int i = 0; i < 10; i++) {\r\n d.drawLine(560 + i * 10, 440, 520 + i * 10, d.getHeight());\r\n }\r\n d.setColor(Color.decode(\"#B8BDBC\"));\r\n d.fillCircle(150, 390, 25);\r\n d.setColor(Color.decode(\"#B3B8B7\"));\r\n d.fillCircle(170, 420, 30);\r\n d.setColor(Color.decode(\"#ACB1B0\"));\r\n d.fillCircle(200, 390, 30);\r\n d.setColor(Color.decode(\"#A4A9A8\"));\r\n d.fillCircle(210, 420, 25);\r\n d.setColor(Color.decode(\"#9BA09F\"));\r\n d.fillCircle(240, 405, 30);\r\n\r\n d.setColor(Color.decode(\"#B8BDBC\"));\r\n d.fillCircle(550, 440, 25);\r\n d.setColor(Color.decode(\"#B3B8B7\"));\r\n d.fillCircle(570, 470, 30);\r\n d.setColor(Color.decode(\"#ACB1B0\"));\r\n d.fillCircle(600, 440, 30);\r\n d.setColor(Color.decode(\"#A4A9A8\"));\r\n d.fillCircle(610, 470, 25);\r\n d.setColor(Color.decode(\"#9BA09F\"));\r\n d.fillCircle(640, 455, 30);\r\n }", "@Override\n public void draw() {\n }", "public void drawDebug(){\n debugRenderer.setProjectionMatrix(cam.combined);\n debugRenderer.begin(ShapeRenderer.ShapeType.Line);\n\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy)e;\n Rectangle rect = enemy.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n\n for(Bullet b : world.getPlayer().getWeapon().getBullets()) {\n Rectangle rect = b.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n\n for(Enemy e : world.getEnemies()) {\n for(Bullet b : e.getWeapon().getBullets()){\n Rectangle rect = b.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n }\n\n Player player = world.getPlayer();\n Rectangle rect = player.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(0, 1, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n debugRenderer.end();\n }", "@Override\n public void draw()\n {\n }", "public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void draw(ShapeRenderer sr, SpriteBatch batch, boolean debug){\n if(debug){\n if(this.isPressed) {\n sr.setColor(Color.RED);\n DrawTools.rec(sr, super.getRect());\n }\n else{\n sr.setColor(Color.BLUE);\n DrawTools.rec(sr,super.getRect());\n }\n }\n else{\n if(this.isPressed){\n DrawTools.textureRect(batch,super.getRect(),pressed);\n }\n else{\n DrawTools.textureRect(batch,super.getRect(),unpressed);\n }\n }\n }", "@Override\n public void drawOn(DrawSurface d) {\n d.setColor(getColor());\n for (int i = 0; i < thick / 2; i++) {\n d.drawLine((int) p1.getX() + i, (int) p1.getY() + i,\n (int) p2.getX() + i, (int) p2.getY() + i);\n d.drawLine((int) p1.getX() - i, (int) p1.getY() - i,\n (int) p2.getX() - i, (int) p2.getY() - i);\n }\n }", "protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n mTriangle = new Triangle();\n mSquare = new Square();\n }", "public Shapes draw ( );", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "private native void nativeSurfaceInit(Object surface);", "public void previewOglRender();", "private void m146652d() {\n if (this.f108109d == null || getHolder() == null) {\n throw new IllegalStateException(\"connectSurfaceToRenderer() should only be called when flutterRenderer and getHolder() are non-null.\");\n }\n this.f108109d.mo129128a(getHolder().getSurface());\n }", "void createDummyPbufferSurface();", "public Shape getRenderObject(\n )\n {return renderObject;}", "public abstract void draw( );", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n Log.d(TAG, \"surfaceCreated\");\n mRenderingPaused = false;\n mHolder = holder;\n updateRenderingState();\n }", "public void draw() {\n \n // TODO\n }", "@Override\r\n protected void drawDebugShape( PhysicsNode physicsNode, Renderer renderer ) {\n\r\n }", "public void draw();", "public void draw();", "public void draw();", "private GDIWindowSurfaceData(WComponentPeer paramWComponentPeer, SurfaceType paramSurfaceType) {\n/* 242 */ super(paramSurfaceType, paramWComponentPeer.getDeviceColorModel()); int m;\n/* 243 */ ColorModel colorModel = paramWComponentPeer.getDeviceColorModel();\n/* 244 */ this.peer = paramWComponentPeer;\n/* 245 */ int i = 0, j = 0, k = 0;\n/* */ \n/* 247 */ switch (colorModel.getPixelSize()) {\n/* */ case 24:\n/* */ case 32:\n/* 250 */ if (colorModel instanceof DirectColorModel) {\n/* 251 */ byte b = 32; break;\n/* */ } \n/* 253 */ m = 24;\n/* */ break;\n/* */ \n/* */ default:\n/* 257 */ m = colorModel.getPixelSize(); break;\n/* */ } \n/* 259 */ if (colorModel instanceof DirectColorModel) {\n/* 260 */ DirectColorModel directColorModel = (DirectColorModel)colorModel;\n/* 261 */ i = directColorModel.getRedMask();\n/* 262 */ j = directColorModel.getGreenMask();\n/* 263 */ k = directColorModel.getBlueMask();\n/* */ } \n/* 265 */ this\n/* 266 */ .graphicsConfig = (Win32GraphicsConfig)paramWComponentPeer.getGraphicsConfiguration();\n/* 267 */ this.solidloops = this.graphicsConfig.getSolidLoops(paramSurfaceType);\n/* */ \n/* */ \n/* 270 */ Win32GraphicsDevice win32GraphicsDevice = (Win32GraphicsDevice)this.graphicsConfig.getDevice();\n/* 271 */ initOps(paramWComponentPeer, m, i, j, k, win32GraphicsDevice.getScreen());\n/* 272 */ setBlitProxyKey(this.graphicsConfig.getProxyKey());\n/* */ }", "@Override\n public void onSurfaceCreated(GL10 unused, javax.microedition.khronos.egl.EGLConfig config) {\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // initialize a triangle\n mHat = new Hat();\n robe = new Robe();\n // initialize a square\n mSquare = new Square(Player.PLAYER_ONE);\n mHat2 = new Hat();\n robe2 = new Robe();\n // initialize a square\n mSquare2 = new Square(Player.PLAYER_TWO);\n\n\n\n float[] colorWhite = {1f, 1f, 1f, 1.0f};\n p1Eye = new Circle(colorWhite);\n p2Eye = new Circle(colorWhite);\n\n }", "public void onSurfaceCreated(GL2 gl) {\r\n gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION);\r\n gl.glLoadIdentity();\r\n\r\n // Perspective\r\n final int width = SCREEN_WIDTH;\r\n final int height = SCREEN_HEIGHT;\r\n aspectRatio = (float) width / (float) height;\r\n glu.gluPerspective(camera.getOpeningAngle(), aspectRatio, nearClippingPlane, farClippingPlane);\r\n\r\n // Viewport\r\n gl.glViewport(0, 0, width, height);\r\n gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);\r\n\r\n // Depth\r\n gl.glEnable(GL2.GL_DEPTH_TEST);\r\n\r\n // which is the front? the one which is drawn counter clockwise\r\n gl.glFrontFace(GL2.GL_CCW);\r\n // which one should NOT be drawn\r\n gl.glCullFace(GL2.GL_BACK);\r\n\r\n // define the color we want to be displayed as the \"clipping wall\"\r\n gl.glClearColor((float) (CLEAR_COLOR.get(0)), (float) (CLEAR_COLOR.get(1)), (float) (CLEAR_COLOR.get(2)), OPAQUE);\r\n\r\n // Flat shading\r\n gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL);\r\n\r\n // Set a light, just use the first one from the root node.\r\n if (renderFrame != null && renderFrame.getRoot().getNumberOfLightSources() > 0) {\r\n LightSource lightSource = renderFrame.getRoot().getLightSource(0);\r\n float lightAmbient[] = { 1, 1, 1, 1 };\r\n float lightSpecular[] = { 1, 1, 1, 1 };\r\n float lightPosition[] = lightSource.getPosition().floatData();\r\n float lightDiffuse[] = lightSource.getColor().floatData();\r\n gl.glEnable(GL2.GL_LIGHT0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_AMBIENT, lightAmbient, 0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_SPECULAR, lightSpecular, 0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, lightDiffuse, 0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, lightPosition, 0);\r\n }\r\n\r\n updateView(gl);\r\n }", "private void draw()\n {\n if(surfaceHolder.getSurface().isValid())\n {\n // Locks the surface. Can't be accessed or changed before it is unlocked again\n canvas = surfaceHolder.lockCanvas();\n\n // Background color\n canvas.drawColor(Color.BLACK);\n\n\n // ===================== DRAW SPRITES ======================= //\n // Draw Pacman\n canvas.drawBitmap(pacman.getBitmap(), pacman.getX(), pacman.getY(), paint);\n\n // Draw all Monsters\n for(Monster monster : monsterList)\n {\n canvas.drawBitmap(monster.getBitmap(), monster.getX(), monster.getY(), paint);\n }\n\n // Draw Cherries\n for(Cherry cherry : cherryList)\n {\n canvas.drawBitmap(cherry.getBitmap(), cherry.getX(), cherry.getY(), paint);\n }\n\n // Draw Key\n canvas.drawBitmap(key.getBitmap(), key.getX(), key.getY(), paint);\n\n // Draw Stars\n paint.setColor(Color.WHITE);\n for(Star star : starList)\n {\n paint.setStrokeWidth(star.getStarWidth());\n canvas.drawPoint(star.getX(), star.getY(), paint);\n }\n\n // ======================================================= //\n\n\n if(!gameEnded)\n {\n // Draw user HUD\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setColor(Color.WHITE);\n paint.setTextSize(40);\n paint.setTypeface(Typeface.MONOSPACE);\n canvas.drawText(\"Level: \" + level, 10, 50, paint);\n canvas.drawText(\"Hi Score: \" + hiScore, (screenMax_X /4) * 3, 50 , paint);\n canvas.drawText(\"Score: \" + score, screenMax_X / 3, 50 , paint);\n canvas.drawText(\"New level in: \" + distanceRemaining + \"km\", screenMax_X / 3, screenMax_Y - 20, paint);\n canvas.drawText(\"Lives: \" + pacman.getLifes(), 10, screenMax_Y - 20, paint);\n canvas.drawText(\"Speed \" + pacman.getSpeed() * 100 + \" Km/h\", (screenMax_X /4) * 3, screenMax_Y - 20, paint);\n\n } else {\n\n // Draw 'Game Over' Screen\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextSize(150);\n canvas.drawText(\"Game Over\", screenMax_X / 2, 350, paint);\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT);\n paint.setFakeBoldText(false);\n canvas.drawText(\"Hi Score: \" + hiScore, screenMax_X / 2, 480, paint);\n canvas.drawText(\"Your Score: \" + score, screenMax_X / 2, 550, paint);\n paint.setTextSize(80);\n canvas.drawText(\"Tap to replay!\", screenMax_X / 2, 700, paint);\n }\n\n if(levelSwitched)\n {\n // Notify the user whenever level is switched\n paint.setTextSize(100);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(\"Level \" + level + \"!\", screenMax_X / 2, 350, paint);\n }\n\n // Unlcock canvas and draw it the scene\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "public abstract void draw();", "public abstract void draw();", "public abstract void draw();", "public void beforeDraw()\n {\n INDirector.setProjection(ProjectionFormat.DirectorProjection2D);\n this.grabber.beforeRender();\n }", "private void draw() {\n\t\tCanvas c = null;\n\t\ttry {\n\t\t\t// NOTE: in the LunarLander they don't have any synchronization here,\n\t\t\t// so I guess this is OK. It will return null if the holder is not ready\n\t\t\tc = mHolder.lockCanvas();\n\t\t\t\n\t\t\t// TODO this needs to synchronize on something\n\t\t\tif (c != null) {\n\t\t\t\tdoDraw(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tmHolder.unlockCanvasAndPost(c);\n\t\t\t}\n\t\t}\n\t}", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\t\n\t}", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "@Override\r\n\tpublic void surfaceCreated(GL10 gl) {\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\t\r\n\t\t// One-time OpenGL initialization based on context...\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,\r\n GL10.GL_NICEST);\r\n\t\t\r\n gl.glClearColor(0, 0, 0, 1); \r\n gl.glEnable(GL10.GL_CULL_FACE);\r\n gl.glCullFace(GL10.GL_BACK);\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\r\n gl.glEnable(GL10.GL_LIGHTING);\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\r\n gl.glShadeModel(GL10.GL_SMOOTH);\r\n \r\n if(scene != null && use_vbos) {\r\n \t\t// TODO messy...\r\n \t\tscene.forgetHardwareBuffers();\r\n \t\tscene.generateHardwareBuffers(gl);\r\n }\r\n }", "void render(Graphics2D brush);", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "@Override\n public void draw(GameTime gameTime) {\n GL11.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\n if (GlobalState.instance.debugMode) {\n // Draw using the debug renderer\n debugRenderer.draw();\n }\n else {\n // Setup default rendering state\n BlendState.OPAQUE.set();\n DepthState.NONE.set();\n RasterizerState.CULL_NONE.set();\n\n // Draw using the full renderer\n renderer.draw();\n }\n }", "abstract void draw();", "abstract void draw();", "private void clearSurface(SurfaceHolder holder) {\n\t\tSurface surface = holder.getSurface();\n\t\tEglCore eglCore = new EglCore();\n\t\tWindowSurface win = new WindowSurface(eglCore, surface, false);\n\t\twin.makeCurrent();\n\t\tGLES20.glClearColor(0, 0, 0, 0);\n\t\tGLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n\t\twin.swapBuffers();\n\t\twin.release();\n\t\teglCore.release();\n\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\trequestRender();\n\t}", "public abstract void draw(java.awt.Graphics canvas);", "public void update() { \n rS = globeR;\n // *Generate the vector of the obj on the surface\n drawPosS = sphereToCart(lon, lat, rS);\n // *Generate the vector of the obj inside the globe\n drawPosD = sphereToCart(lon, lat, rD);\n }", "public void draw(Graphics surface) {\r\n surface.drawLine(50, 50, 250, 250);\r\n\tsurface.drawOval(20,20,40,40);\r\n box.draw(surface);\r\n\tfor (BouncingBox b : boxes) {\r\n\t b.draw(surface);\r\n\t}\r\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:16.473 -0500\", hash_original_method = \"9F7D143F548ED01AA850BEE267C7749A\", hash_generated_method = \"E85BF49E3DFC46CE31DBCAF92AE4181B\")\n \n private int _eglGetCurrentSurface(int readdraw){\n \taddTaint(readdraw);\n \treturn getTaintInt();\n }", "public void Initialize4(SpatialReference sr, Envelope fullextent, GraphicsLayer.RenderingMode mode)\n\t{\n\t\tsetObject(new GraphicsLayer(sr, fullextent, mode));\n\t}", "public interface Render2DProvider {\n /*---------------------------------------Static params-------------------------------------------------------------*/\n public enum STYLE {\n COLOR, GRADIENT\n }\n\n public enum CAP {BUTT, ROUND, SQUARE}\n\n public enum JOIN {ROUND, BEVEL, MITER}\n\n public enum TEXT_ALIGN {START, END, LEFT, RIGHT, CENTER}\n\n public enum TEXT_BASELINE {TOP, HANGING, MIDDLE, ALPHABETIC, IDEOGRAPHIC, BOTTOM}\n\n\n /*---------------------------------------Screen details-------------------------------------------------------------*/\n\n /**\n * Returns the current screen width.\n *\n * @return screen width.\n */\n public int getScreenWidth();\n\n /**\n * Returns the current screen height.\n *\n * @return screen height.\n */\n public int getScreenHeight();\n\n /**\n * Converts the formatted length string into the corresponding dimension in pixels. The formatted string includes\n * a number and a suffix, which can be one of the fallowing : px for pixels, % for percent fallowed by w or h (w\n * for a percentage based of the width of the screen and h for a percentage based on the height on the screen).\n *\n * @param dimension a formatted string representing the dimension to be converted.\n * @return the dimension converted to pixels. If the formatted string contains errors , then the function\n * will return -1.\n */\n public int convertDimension(String dimension);\n\n /**\n * Converts the given color formatted as a string, into a {@link Color} object. The formatted string can be one of\n * two types:\n * <ul>\n * <li>\n * A color comprised of a # symbol fallowed by four pairs of hexadecimal numbers, which represent,\n * in order : red, green, blue, and alpha. For example #A000007F results in a dark semitransparent red.\n * </li>\n * <li>\n * A color comprised of a function call to rgba(...) which takes 4 params, all numbers between 0 and 255,\n * representing , in order : red, green , blue and alpha. For example rgba(160, 0, 0, 127) yelds the\n * same color as before.\n * </li>\n * <li>\n * A color comprised of a function call to rgb(...) which takes 3 params, all numbers between 0 and 255,\n * representing , in order : red, green and blue. For example rgb(160, 0, 0) yields the same color as before,\n * except it is now fully opaque. The value of alpha is considered to be fully opaque.\n * </li>\n * </ul>\n *\n * @param color the color formatted as a string.\n * @return the corresponding {@link Color} object.\n */\n public Color convertColor(String color);\n\n /**\n * Returns the given string's width when drawn, using the current text metrics.\n *\n * @param text which text to calculate it's dimension.\n * @return the width of the string as it will be rendered on the screen.\n */\n public int getStringWidth(String text);\n\n /*---------------------------------------Drawing style-------------------------------------------------------------*/\n\n\n /**\n * Sets the active fille color.\n *\n * @param color the color to use for future drawings.\n */\n public void setFillColor(Color color);\n\n /**\n * Sets the active fill gradient.\n */\n public void setFillGradient(Gradient gradient);\n\n /**\n * Sets the active stroke color.\n *\n * @param color the color to use for future drawings.\n */\n public void setStrokeColor(Color color);\n\n /**\n * Sets the active stroke gradient.\n */\n public void setStrokeGradient(Gradient gradient);\n\n\n /**\n * Sets the active drawing color for filled shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setFillStyle(STYLE style);\n\n /**\n * Sets the active drawing color for stroked shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setStrokeStyle(STYLE style);\n\n /**\n * Cap style for line drawings.\n *\n * @param cap cap style (butt, round or square endings).\n */\n public void setDrawingCap(CAP cap);\n\n /**\n * Sets the type of join used for line only drawings.\n *\n * @param join the type of line join(round, bevel or miter). Miter size can be set using the setMiterLimit function.\n */\n public void setDrawingJoin(JOIN join);\n\n /**\n * Sets the miter limit when the join type is miter.\n *\n * @param limit miter limit.\n */\n public void setMiterLimit(float limit);\n\n /**\n * Sets the line width when drawing only with lines.\n *\n * @param lineWidth line width.\n */\n public void setLineWidth(float lineWidth);\n\n /**\n * Sets the font for when drawing / stroking text.\n *\n * @param font which font to use given\n */\n public void setTextFont(Font font);\n\n /**\n * Sets which text align to use when drawing strings.\n *\n * @param align\n */\n public void setTextAlign(TEXT_ALIGN align);\n\n /**\n * Sets which baseline to use when drawing strings.\n *\n * @param baseline\n */\n public void setTextBaseline(TEXT_BASELINE baseline);\n\n /**\n * Sets the current drawing alpha. All subsequent drawing operations will be affected by this alpha value.\n *\n * @param alpha a value between 0 and 1 representing drawing alpha.\n */\n public void setAlpha(float alpha);\n\n /**\n * Returns the current drawing alpha.\n *\n * @return the current drawing alpha.\n */\n public float getAlpha();\n\n /*---------------------------------------General drawing-----------------------------------------------------------*/\n\n /**\n * Begins the drawing cycle. Useful for double buffering and predrawing techniques.\n */\n public void beginDrawing();\n\n /**\n * Ends the current drawing cycle. Useful for flushing the double buffer to the screen.\n */\n public void endDrawing();\n\n /**\n * This method saves all the current params for the drawing api (like color, clipping area etc). This method\n * should be called before setting custom drawing params.\n */\n public void pushState();\n\n /**\n * This method restores current drawing params (like color, fill styles etc.). This method should be called\n * after setting cutom params for drawing.\n */\n public void popState();\n\n /**\n * Clear the entire screen using a complete transparent black.\n */\n public void clearAll();\n\n /**\n * Clear only a portion of the screen using a complete transparent black.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void clearRect(int x, int y, float width, float height);\n\n /**\n * Sets clipping area for future drawing. Any drawings outside this rectangle will not be rendered.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void setRectangleClip(int x, int y, float width, float height);\n\n /**\n * Sets the clipping area for future drawings in the shape of a rounded rectangle.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n * @param radius the radius of the rounded rectangle.\n */\n public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);\n\n /**\n * Sets the clipping area for future drawings in the shape of a circle.\n *\n * @param x the x coordinate for the center of the circle.\n * @param y the y coordinate for the center of the circle.\n * @param radius the radius of the circle.\n */\n public void setCircleClip(int x, int y, int radius);\n\n /**\n * Removes clipping area. Has the same affect as calling {@link Render2DProvider#setRectangleClip(int, int, float, float)}\n * with a rectangle described by coordinates (0, 0) and dimensions (\n * {@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth(),\n * ({@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth()}}\n */\n public void removeClip();\n\n /*-------------------------------------Drawing Transform------------------------------------------------------------*/\n\n /**\n * Translates the origin of future drawing on the screen.\n *\n * @param x amount on the x axis to translate.\n * @param y amount on the y axis to translate.\n */\n public void translate(float x, float y);\n\n /**\n * Rotates the drawing api which will affect all future drawings.\n *\n * @param angle the amount to rotate in radians.\n */\n public void rotate(float angle);\n\n /**\n * Scales the drawing api which will affect all future drawings.\n *\n * @param x amount on the x axis to scale.\n * @param y amount on the y axis to scale.\n */\n public void scale(float x, float y);\n\n /**\n * Adds the given values to the transform of the drawing api, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void transform(float a11, float a12, float a21, float a22, float x, float y);\n\n /**\n * Sets the transform of the drawing api to the given values, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void setTransform(float a11, float a12, float a21, float a22, float x, float y);\n /*---------------------------------------Shape drawing ------------------------------------------------------------*/\n\n /**\n * Fills a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void fillRectangle(int x, int y, int width, int height);\n\n /**\n * Fills a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void fillRectangle(RectangleShape rectangle);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void fillRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to fill.\n * @param radius the radius of the corners.\n */\n public void fillRoundRectangle(RectangleShape rectangle, int radius);\n\n\n /**\n * Strokes a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void strokeRectangle(int x, int y, int width, int height);\n\n /**\n * Strokes a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void strokeRectangle(RectangleShape rectangle);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void strokeRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to stroke.\n * @param radius the radius of the corners.\n */\n public void strokeRoundRectangle(RectangleShape rectangle, int radius);\n\n /**\n * Fills an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void fillArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Strokes an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void strokeArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Creates a filled shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void fillShape(Shape shape);\n\n /**\n * Creates a stroked shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void strokeShape(Shape shape);\n\n /**\n * Draws the given shape using the current fill and stroke color. This uses the shapes own \"filled\" and \"stroked\"\n * params to determine whether or not it should be filled and / or stroked.\n *\n * @param shape which shape to draw.\n */\n public void drawShape(Shape shape);\n\n /*-------------------------------------------Text Drawing ---------------------------------------------------------*/\n\n /**\n * Draws the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to draw.\n */\n public void fillString(float x, float y, String text);\n\n /**\n * Strokes the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to stroke.\n */\n public void strokeString(float x, float y, String text);\n\n /*---------------------------------------------ImageResource Drawing-------------------------------------------------------*/\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will retain it's dimensions when drawn.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY);\n\n /**\n * Draw the specified imageResource to the canvas. The source imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight);\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will be cropped using a rectangle described the the parameters:\n * sourceX, sourceY, sourceWidth and sourceHeight. The cropped imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n * @param sourceX the x coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceY the y coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceWidth the width of the rectangle which will crop the source imageResource.\n * @param sourceHeight the height of the rectangle which will crop the source imageResource.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight,\n float sourceX, float sourceY, float sourceWidth, float sourceHeight);\n\n\n}", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\r\n\t\tLog.d(TAG, \"onDrawFrame\"\t);\r\n\t\t\tsetGL(gl);\r\n\t\t\tDrawObjects(gl);\r\n\t\t\tunSetGl(gl);\r\n\t}", "private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics canvas) {}", "@Override\n public void draw(GameCanvas canvas) {\n drawWall(canvas, true, opacity);\n drawWall(canvas, false, opacity);\n }", "public abstract void drawFill();", "@Override\n public void render(Renderable renderable)\n {\n context.setBlending(false, GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);\n context.setCullFace(GL20.GL_BACK);\n context.setDepthTest(GL20.GL_LEQUAL, 0.0f, 50.0f);\n context.setDepthMask(true);\n super.render(renderable);\n }", "public void draw() {\n if(UPDATE_PHYSICS){\n \n physics.update();\n// physics.update(30);\n \n getCollisionPoints();\n \n removeLostBodies();\n \n for (BObject body : physics.rigidBodies) {\n updateShapes(body);\n }\n \n }\n \n \n // when the camera moves, the renderer restarts\n updateCamActiveStatus();\n if(CAM_ACTIVE || UPDATE_PHYSICS){\n skylight.reset();\n }\n\n // update renderer\n skylight.update();\n \n\n // apply AntiAliasing\n smaa.apply(skylight.renderer.pg_render, pg_aa);\n \n // apply bloom\n if(APPLY_BLOOM){\n filter.bloom.param.mult = 0.15f; //map(mouseX, 0, width, 0, 1);\n filter.bloom.param.radius = 0.5f; // map(mouseY, 0, height, 0, 1);\n filter.bloom.apply(pg_aa, null, pg_aa);\n } \n \n // apply DoF\n if(APPLY_DOF){\n int mult_blur = 5;\n \n geombuffer.update(skylight.renderer.pg_render);\n \n filter.gaussblur.apply(geombuffer.pg_geom, geombuffer.pg_geom, pg_tmp, mult_blur);\n\n dof.param.focus_pos = new float[]{0.5f, 0.5f};\n// dof.param.focus_pos[0] = map(mouseX, 0, width , 0, 1);\n// dof.param.focus_pos[1] = 1-map(mouseY, 0, height, 0, 1);\n dof.param.mult_blur = mult_blur;\n dof.apply(pg_aa, pg_render, geombuffer);\n filter.copy.apply(pg_render, pg_aa);\n }\n \n // display result\n cam.beginHUD();\n {\n background(255);\n noLights();\n image(pg_aa, 0, 0);\n displayCross();\n displayHUD();\n }\n cam.endHUD();\n \n // info\n String txt_fps = String.format(getClass().getName()+ \" [fps %6.2f] [bodies %d]\", frameRate, physics.rigidBodies.size());\n surface.setTitle(txt_fps);\n }", "@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}", "private void drawCurve(){\n renderer.begin();\n renderer.set(ShapeRenderer.ShapeType.Line);\n for (int i = 0; i<dragonCurve1.length-2; i+=2){\n renderer.setColor(new Color(1-(i/20000f),1-(i/20000f),1f,1f));\n renderer.line(dragonCurve1[i], dragonCurve1[i+1], dragonCurve1[i+2], dragonCurve1[i+3]);\n }\n for (int i = 0; i<dragonCurve2.length-2; i+=2){\n renderer.setColor(new Color(1-(i/20000f),1-(i/20000f),1f,1f));\n renderer.line(dragonCurve2[i], dragonCurve2[i+1], dragonCurve2[i+2], dragonCurve2[i+3]);\n }\n for (int i = 0; i<dragonCurve3.length-2; i+=2){\n renderer.setColor(new Color(1-(i/20000f),1-(i/20000f),1f,1f));\n renderer.line(dragonCurve3[i], dragonCurve3[i+1], dragonCurve3[i+2], dragonCurve3[i+3]);\n }\n for (int i = 0; i<dragonCurve4.length-2; i+=2){\n renderer.setColor(new Color(1-(i/20000f),1-(i/20000f),1f,1f));\n renderer.line(dragonCurve4[i], dragonCurve4[i+1], dragonCurve4[i+2], dragonCurve4[i+3]);\n }\n renderer.set(ShapeRenderer.ShapeType.Filled);\n renderer.setColor(Color.RED);\n renderer.end();\n if(MyCamera.renderSystems){ //Put red dots on the systems that are close enough to a certain point while zoomed in\n systems = GameScreen.database.getSystems(\"SELECT SystemX, SystemY, id FROM 'Systems' WHERE ABS(SystemX-\"+MyCamera.closeupCamera.position.x+\")<25\");\n for(int i = 0; i<systems.size(); i++){\n String[] parts = systems.get(i).split(\" \");\n float x = Float.parseFloat(parts[0]);\n float y = Float.parseFloat(parts[1]);\n String id = String.valueOf(Float.parseFloat(parts[2]));\n renderer.begin();\n renderer.set(ShapeRenderer.ShapeType.Filled);\n renderer.circle(x, y, 0.5f);\n renderer.end();\n }\n }\n }" ]
[ "0.704625", "0.6499963", "0.6330251", "0.6219431", "0.6218517", "0.6207194", "0.61989105", "0.61900353", "0.61678445", "0.6112202", "0.6108106", "0.60869694", "0.60692924", "0.60553735", "0.60540247", "0.6020332", "0.6010798", "0.59997797", "0.5993629", "0.5969599", "0.5963502", "0.5932222", "0.59269005", "0.5883415", "0.58797294", "0.58759713", "0.58610374", "0.585278", "0.58510107", "0.5825976", "0.58254135", "0.58160555", "0.5781713", "0.5774209", "0.5771355", "0.5759474", "0.5757628", "0.57508284", "0.57508284", "0.5749574", "0.5748716", "0.5736804", "0.5732351", "0.57265013", "0.57265013", "0.57243234", "0.5721832", "0.57201576", "0.57201576", "0.5712196", "0.5707061", "0.57063043", "0.5705066", "0.57029295", "0.56969047", "0.5693046", "0.5686561", "0.56855494", "0.56789374", "0.5673172", "0.5672064", "0.5672064", "0.5672064", "0.56656814", "0.56571096", "0.5644732", "0.5643686", "0.56422186", "0.56309235", "0.56309235", "0.56309235", "0.5625901", "0.56248707", "0.56030446", "0.5595582", "0.55902326", "0.55886173", "0.5568631", "0.5560528", "0.55598545", "0.5558416", "0.5558416", "0.55513364", "0.5544395", "0.5532959", "0.552863", "0.5511466", "0.5511127", "0.5508398", "0.5505127", "0.5501807", "0.5488066", "0.54868346", "0.54858977", "0.54766613", "0.54737973", "0.54735035", "0.5473392", "0.5473384", "0.54733235" ]
0.5579477
77
Is exactly equivalent to a call to getRenderer().stroke().
public DirectShapeRenderer stroke() { return renderer.stroke(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void stroke() {\n graphicsEnvironmentImpl.stroke(canvas);\n }", "public RMStroke getStroke() { return _stroke; }", "public RMColor getStrokeColor() { return getStroke()==null? RMColor.black : getStroke().getColor(); }", "public void strokeShape(Shape shape);", "public void setStroke(Stroke stroke);", "public abstract void setStroke(BasicStroke stroke);", "public void drawStroke(int[] rgb) {\n\t\tparent.stroke(rgb[0], rgb[1], rgb[2]);\n\t}", "public Stroke getStroke()\r\n\t{\r\n\t\treturn _g2.getStroke();\r\n\t}", "public Stroke<R> getStroke() {\n if (stroke == null) {\n stroke = factory.createStroke();\n }\n return stroke;\n }", "public void setStrokeColor(RMColor aColor)\n{\n // Set stroke color\n if(aColor==null) setStroke(null);\n else if(getStroke()==null) setStroke(new RMStroke(aColor, 1));\n else getStroke().setColor(aColor);\n}", "public float getStrokeWidth() { return getStroke()==null? 0 : getStroke().getWidth(); }", "public void stroke() throws IOException\n {\n\tif (_closedPath == true) {\n\t Paint strokingPaint = getGraphicsState().getStrokingColor().getJavaColor();\n\t if ( strokingPaint == null ) {\n\t\tstrokingPaint = getGraphicsState().getStrokingColor().getPaint(pageSize.height);\n\t }\n\t if ( strokingPaint == null ) {\n\t\tLOG.info(\"ColorSpace \"+getGraphicsState().getStrokingColor().getColorSpace().getName() +\" doesn't provide a stroking color, using white instead!\");\n\t\tstrokingPaint = Color.WHITE;\n\t }\n\t if (strokingPaint != Color.WHITE) {\n\t\tfor(Line line : _currentPath) {\n\t\t if(line.isVertical() || line.isHorizontal()) {\n\t\t\t_path.add(line);\n\t\t }\n\t\t}\n\t }\n\t}\n\t_currentPath.clear();\n }", "@Override\n public void strokeRect(double x, double y, double width, double height) {\n graphicsEnvironmentImpl.strokeRect(canvas, x, y, width, height);\n }", "public void setStrokeColor(Color color);", "public Color<?> getStrokeColor(\n )\n {return strokeColor;}", "public Stroke getStroke() {\n\t\tStroke theStroke = stroke;\n\t\tif (theStroke == null) {\n\t\t\ttheStroke = new BasicStroke(strokeWidth);\n\t\t\tstroke = theStroke;\n\t\t}\n\t\treturn theStroke;\n\t}", "public final native Colour getStroke() /*-{\n\t\treturn @net.edzard.kinetic.Colour::new(Ljava/lang/String;)(this.getStroke());\n\t}-*/;", "public void drawStroke(int[] rgb) {\n\t\tstroke(rgb[0], rgb[1], rgb[2]);\n\t}", "public void strokeRectangle(int x, int y, int width, int height);", "public void setStrokeWidth(float aValue)\n{\n // Set line width\n if(getStroke()==null) setStroke(new RMStroke(RMColor.black, aValue));\n else getStroke().setWidth(aValue);\n}", "public void drawStroke(Canvas canvas) {\n if (isValidStroke && points.size() > 1) {\n for (int i = 0; i < points.size()-1; i++) {\n int x1 = points.get(i).x;\n int y1 = points.get(i).y;\n int x2 = points.get(i+1).x;\n int y2 = points.get(i+1).y;\n canvas.drawLine(x1, y1, x2, y2, paint);\n }\n }\n }", "@Override\n public void draw(GraphicsContext gc) {\n gc.setFill(getFillColor());\n gc.setStroke(getStrokeColor());\n gc.setLineWidth(getStrokeWidth());\n gc.fillRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n gc.strokeRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n }", "public void strokeRectangle(RectangleShape rectangle);", "@Override\n public String getLineJoin() {\n return graphicsEnvironmentImpl.getLineJoin(canvas);\n }", "public void drawStroke(Canvas canvas, Paint eraser, Shape shape, int xPosition, int yPosition, int shapePadding) {\n }", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "public void setStroke(RMStroke aStroke)\n{\n if(RMUtils.equals(getStroke(), aStroke)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_stroke!=null) _stroke.removePropertyChangeListener(this);\n firePropertyChange(\"Stroke\", _stroke, _stroke = aStroke, -1); // Set value and fire PropertyChange\n if(_stroke!=null) _stroke.addPropertyChangeListener(this); // Set shape\n}", "public final native void setStroke(Colour colour) /*-{\n\t\tthis.setStroke([email protected]::toString()());\n\t}-*/;", "@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}", "private void applyStroke(Graphics2D graphic, Stroke stroke, Feature feature) {\n if (stroke == null) {\n return;\n }\n \n double scale = graphics.getTransform().getScaleX();\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"line join = \" + stroke.getLineJoin());\n }\n \n String joinType;\n \n if (stroke.getLineJoin() == null) {\n joinType = \"miter\";\n } else {\n joinType = (String) stroke.getLineJoin().getValue(feature);\n }\n \n if (joinType == null) {\n joinType = \"miter\";\n }\n \n int joinCode;\n \n if (joinLookup.containsKey(joinType)) {\n joinCode = ((Integer) joinLookup.get(joinType)).intValue();\n } else {\n joinCode = BasicStroke.JOIN_MITER;\n }\n \n String capType;\n \n if (stroke.getLineCap() != null) {\n capType = (String) stroke.getLineCap().getValue(feature);\n } else {\n capType = \"square\";\n }\n \n if (capType == null) {\n capType = \"square\";\n }\n \n int capCode;\n \n if (capLookup.containsKey(capType)) {\n capCode = ((Integer) capLookup.get(capType)).intValue();\n } else {\n capCode = BasicStroke.CAP_SQUARE;\n }\n \n float[] dashes = stroke.getDashArray();\n \n if (dashes != null) {\n for (int i = 0; i < dashes.length; i++) {\n dashes[i] = (float) Math.max(1, dashes[i] / (float) scale);\n }\n }\n \n Number value = (Number) stroke.getWidth().getValue(feature);\n float width = value.floatValue();\n value = (Number) stroke.getDashOffset().getValue(feature);\n \n float dashOffset = value.floatValue();\n value = (Number) stroke.getOpacity().getValue(feature);\n \n float opacity = value.floatValue();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"width, dashoffset, opacity \" + width + \" \" + dashOffset + \" \" + opacity);\n }\n \n BasicStroke stroke2d;\n \n //TODO: It should not be necessary to divide each value by scale.\n if ((dashes != null) && (dashes.length > 0)) {\n if (width <= 1.0) {\n width = 0;\n }\n \n stroke2d = new BasicStroke(width / (float) scale, capCode, joinCode,\n (float) (Math.max(1, 10 / scale)), dashes, dashOffset / (float) scale);\n } else {\n if (width <= 1.0) {\n width = 0;\n }\n \n stroke2d = new BasicStroke(width / (float) scale, capCode, joinCode,\n (float) (Math.max(1, 10 / scale)));\n }\n \n graphic.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity));\n \n if (!graphic.getStroke().equals(stroke2d)) {\n graphic.setStroke(stroke2d);\n }\n \n Color color = Color.decode((String) stroke.getColor().getValue(feature));\n \n if (!graphic.getColor().equals(color)) {\n graphic.setColor(color);\n }\n \n Graphic gr = stroke.getGraphicFill();\n \n if (gr != null) {\n setTexture(graphic, gr, feature);\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"no graphic fill set\");\n }\n }\n }", "public DirectShapeRenderer beginPath() {\n \t\treturn renderer.beginPath();\n \t}", "public Stroke getInnerStroke() {\n return null;\n }", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "public void draw() {\n \n }", "public final native void clearStroke() /*-{\n\t\tthis.setStroke(null);\n\t}-*/;", "public void setStrokeStyle(STYLE style);", "public abstract void drawFill();", "public int getStrokeColor() {\n return (int) this.getValue(STROKE_COLOR_PROPERTY_KEY);\n }", "public void draw() {\n \n // TODO\n }", "private synchronized void strokeStyle(Rule rule, InstanceWaypoint context){\t\n \t\t\n \t\t// retrieve stroke\n \t\tStroke stroke = null;\n \t\t\n \t\t//try the Symbolizers from the Rule\n \t\tint i = -1;\n \t\twhile(rule != null && stroke == null && i < rule.getSymbolizers().length){\n \t\t\ti++;\n \t\t\tif (rule.getSymbolizers()[i] instanceof LineSymbolizer){\n \t\t\t\tstroke = SLD.stroke((LineSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\telse if (rule.getSymbolizers()[i] instanceof PolygonSymbolizer){\n \t\t\t\tstroke = SLD.stroke((PolygonSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\telse if (rule.getSymbolizers()[i] instanceof PointSymbolizer){\n \t\t\t\tstroke = SLD.stroke((PointSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\t}\n \t\t\n \t\n \t\t//if we have a stroke now\n \t\tif (stroke != null) {\n \t\t\t//XXX is there any Geotools stroke to AWT stroke lib/code somewhere?!\n \t\t\t//XXX have a look at the renderer code (StreamingRenderer)\n \t\t\t\n \t\t\t// stroke color\n \t\t\tColor sldColor = SLD.color(stroke);\n \t\t\tdouble opacity = SLD.opacity(stroke);\n \t\t\tif (Double.isNaN(opacity)) {\n \t\t\t\t// fall back to default opacity\n \t\t\t\topacity = StyleHelper.DEFAULT_FILL_OPACITY;\n \t\t\t}\n \t\t\tif (sldColor != null) {\n \t\t\t\tstyleStrokeColor = new Color(sldColor.getRed(), sldColor.getGreen(), \n \t\t\t\t\t\tsldColor.getBlue(), (int) (opacity * 255));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstyleStrokeColor = super.getBorderColor(context);\n \t\t\t}\n \t\t\t\n \t\t\t// stroke width\n \t\t\tint strokeWidth = SLD.width(stroke);\n \t\t\tif (strokeWidth == SLD.NOTFOUND) {\n \t\t\t\t// fall back to default width\n \t\t\t\tstrokeWidth = StylePreferences.getDefaultWidth(); \n \t\t\t}\n \t\t\tstyleStroke = new BasicStroke(strokeWidth);\n \t\t}\n \t\telse {\n \t\t\tstyleStroke = null;\n \t\t\tstyleStrokeColor = null;\n \t\t}\n \t}", "void drawOutline(DrawContext dc, Object shape);", "public Shapes draw ( );", "@Override public Polyline setStrokeWidth(double strokeWidth)\n {\n return (Polyline)super.setStrokeWidth(strokeWidth);\n }", "@Override\n\tpublic void paintObject(Graphics g) {\n\t\tg.setColor(this.color);\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.setStroke(new BasicStroke(3));\n\t\tg2d.drawOval(x, y, width, height);\n\t\tg2d.fillOval(x, y, width, height);\n\t}", "public void drawStrokeRectangle(Rectangle rectangle) {\n implementation.devDrawStrokeRectangle(\n (int) rectangle.getMinX(),\n (int) rectangle.getMinY(),\n (int) rectangle.getWidth(),\n (int) rectangle.getHeight(),\n rectangle.getColor()\n );\n }", "public void draw(Graphics2D g) {\n g.setStroke(stroke);\n g.setColor(EditorCommonSettings.getGridColor());\n g.draw(minorLinesPath);\n g.setColor(EditorCommonSettings.getGridColor().darker());\n g.draw(majorLinesPath);\n }", "void setStrokeWidth(float strokeWidth) {\n/* 180 */ this.mStrokeWidth = strokeWidth;\n/* */ }", "public void draw() {\n }", "public final org.xms.g.maps.model.PolygonOptions strokeColor(int param0) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).strokeColor(param0)\");\n com.huawei.hms.maps.model.PolygonOptions hReturn = ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).strokeColor(param0);\n return ((hReturn) == null ? null : (new org.xms.g.maps.model.PolygonOptions(new org.xms.g.utils.XBox(null, hReturn))));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).strokeColor(param0)\");\n com.google.android.gms.maps.model.PolygonOptions gReturn = ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).strokeColor(param0);\n return ((gReturn) == null ? null : (new org.xms.g.maps.model.PolygonOptions(new org.xms.g.utils.XBox(gReturn, null))));\n }\n }", "@Override\n public void draw(ModernComponent c, Graphics2D g2, IntRect rect, Props props) {\n\n g2.setColor(FILL);\n\n fill(c, g2, rect, props);\n\n g2.setColor(BORDER);\n outline(c, g2, rect, props);\n }", "void render(Graphics2D brush);", "public void drawSelected(Graphics2D g2) {\n\t\tfloat[] dashes = {1,1,1};\n \tBasicStroke stroke = new BasicStroke(2, BasicStroke.CAP_SQUARE, BasicStroke.CAP_SQUARE, 10, dashes, 10);\n \tg2.setColor(Color.RED);\n\t\tg2.draw(stroke.createStrokedShape(new Rectangle2D.Double(this.getX()-2,this.getY()-2,this.getDimension()+4,this.getDimension()/2 +4)));\n\t}", "@Override public Polyline setStrokeColor(Color strokeColor)\n {\n return (Polyline)super.setStrokeColor(strokeColor);\n }", "public final Stroke getOutlineStroke() {\n return outlineStroke;\n }", "public void draw(ShapeRenderer sr){\n this.draw(sr,null,true);\n }", "public ColorSpace<?> getStrokeColorSpace(\n )\n {return strokeColorSpace;}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\r\n public void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n \r\n // Cast the Graphics object.\r\n Graphics2D g2 = (Graphics2D) g;\r\n \r\n // Create a dashed stroke, if dashed.\r\n if (dashed) {\r\n g2.setStroke(\r\n new BasicStroke(\r\n lineWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL,\r\n 10.0f, new float[]{(float)dashLength}, 0.0f)\r\n );\r\n } else {\r\n g2.setStroke( \r\n new BasicStroke(\r\n lineWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)\r\n );\r\n \r\n }\r\n \r\n // Create a gradient paint, if gradient.\r\n if(gradient) {\r\n g2.setPaint(\r\n new GradientPaint(start, color1, end, color2)\r\n );\r\n } else {\r\n g2.setPaint(color1);\r\n }\r\n \r\n }", "protected abstract void draw();", "public abstract float getLineWidth();", "public final int getStrokeColor() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeColor()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getStrokeColor();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeColor()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getStrokeColor();\n }\n }", "public void draw() {\n\n }", "@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }", "@Override\n\tpublic void draw() {\n\t}", "public void strokeArc(float x, float y, float radius, float startAngle, float endAngle);", "public void drawStrokeRectangle(int x, int y, int width, int height, Color color) {\n implementation.devDrawStrokeRectangle(x, y, width, height, color);\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n public void drawingMethod(final Graphics theGraphics, final DrawShape theShape) {\n final Path2D path = new Path2D.Double();\n path.moveTo(theShape.getStartPoint().getX(), \n theShape.getStartPoint().getY());\n path.lineTo(theShape.getEndPoint().getX(),\n theShape.getEndPoint().getY());\n final Graphics2D g2d = (Graphics2D) theGraphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setStroke(new BasicStroke(theShape.getMyThick()));\n g2d.setColor(theShape.getMyColor());\n g2d.draw(path); \n }", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "private void onStrokeDrawingFinished(ArrayList<double[]> points){\n for(double[] point : points){\n point[0] = PX2M(point[0]); //x coordinate\n point[1] = PX2M(resolution_tablet[1] - point[1]); //y coordinate\n }\n //interactionManager.publishUserDrawnShapeMessage(points);\n Log.e(TAG, \"Adding stroke to message\");\n userDrawnMessage.add(points);\n }", "public float getStrokeWidth() {\n\t\treturn strokeWidth;\n\t}", "@Override\n public void draw(GraphicsContext gc){\n for(int i = 1; i < path.size(); i++) {\n Point2D from = path.get(i-1);\n Point2D to = path.get(i);\n gc.strokeLine(from.getX(), from.getY(), to.getX(), to.getY());\n }\n }", "public void strokeString(float x, float y, String text);", "public void draw(){\n }", "private void draw() {\n gsm.draw(g);\n }", "@Override\r\n public void draw() {\n }", "@Override\n public void strokeText(String text, double x, double y) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y);\n }", "public void draw(Graphics2D g){\r\n g.setColor(Color.WHITE);\r\n g.setStroke(new BasicStroke(1));\r\n g.draw(new Line2D.Float(p1, p2));\r\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}", "@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(this.color);\r\n\t\tg.fillOval((int)x, (int)y, side, side);\r\n\t\tg.setColor(this.color2);\r\n\t\tg.fillOval((int)x+5, (int)y+2, side/2, side/2);\r\n\t}", "public void draw() {\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2);\n StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65);\n StdDraw.line(0, 0, drawLength, 0);\n StdDraw.text(-drawLength * 0.05, 0, \"0\");\n StdDraw.text(drawLength * 1.1, 0, Integer.toString(size()));\n }", "public void draw();", "public void draw();", "public void draw();", "public void draw(GraphicsContext gc) {\r\n gc.setStroke(Color.BLACK);\r\n gc.setFill(Color.BLUE);\r\n gc.setLineWidth(5.0);\r\n double r = radius / 2;\r\n gc.fillRect(x - r, y - r, radius * 2, radius * 2);\r\n gc.strokeRect(x - r, y - r, radius * 2, radius * 2);\r\n }", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event)\n\t{\n\t\tif (event.getPointerCount() == 1)\n\t\t{\n\t\t\tif (event.getAction() != MotionEvent.ACTION_UP)\n\t\t\t{\n\t\t\t\ttouchXPrev = touchX;\n\t\t\t\ttouchYPrev = touchY;\n\n\t\t\t\ttouchX = event.getX();\n\t\t\t\ttouchY = event.getY();\n\t\t\t}\n\t\t\telse if (touchAction == TOUCH_PINCH)\n\t\t\t{\n\t\t\t\tstrokeSegmentLength = 0;\n\t\t\t\tstrokePointCount = 0;\n\t\t\t\tlatestStroke = new Stroke(this, true);\n\t\t\t\ttouchAction = TOUCH_NONE;\n\t\t\t\trenderer.resetRenderCount();\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tswitch (tool)\n\t\t\t{\n\t\t\t\tcase TOOL_ERASER:\n\t\t\t\t{\n\t\t\t\t\t// Do nothing here. Let the TOOL_PENCIL case execute.\n\t\t\t\t}\n\t\t\t\tcase TOOL_PENCIL:\n\t\t\t\t{\n\t\t\t\t\tswitch (event.getAction())\n\t\t\t\t\t{\n\t\t\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (touchAction == TOUCH_NONE)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Start drawing a new path.\n\t\t\t\t\t\t\t\ttouchAction = TOUCH_DRAG;\n\n\t\t\t\t\t\t\t\tlatestStroke.isEraser = tool == TOOL_ERASER;\n\t\t\t\t\t\t\t\tlatestStroke.setColor(strokeColor);\n\t\t\t\t\t\t\t\tlatestStroke.setThickness(strokeThickness);\n\n\t\t\t\t\t\t\t\tstrokeSegmentLength = 0f;\n\t\t\t\t\t\t\t\tstrokePointCount = 0;\n\t\t\t\t\t\t\t\taddPointToStroke(touchX, touchY);\n\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (touchAction == TOUCH_DRAG)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Has the stroke reached the maximum number of points? Stop adding any more points.\n\t\t\t\t\t\t\t\tif (strokePointCount >= Stroke.TriangleStrip.STROKE_POINT_LIMIT) return true;\n\n\t\t\t\t\t\t\t\t// Continue drawing a new path.\n\t\t\t\t\t\t\t\tstrokeSegmentLength += Math.sqrt((touchX - touchXPrev) * (touchX - touchXPrev)\n\t\t\t\t\t\t\t\t\t\t+ (touchY - touchYPrev) * (touchY - touchYPrev));\n\n\t\t\t\t\t\t\t\t// Has the path distance exceeded the threshold? Add a new point.\n\t\t\t\t\t\t\t\tif (strokeSegmentLength >= Stroke.SEGMENT_THRESHOLD)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tstrokeSegmentLength = 0f;\n\t\t\t\t\t\t\t\t\tstrokePointCount++;\n\t\t\t\t\t\t\t\t\taddPointToStroke(touchX, touchY);\n\t\t\t\t\t\t\t\t\trequestRender();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (touchAction == TOUCH_DRAG)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (strokePointCount > 2 && latestStroke != null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlatestStroke.optimize(this);\n\n\t\t\t\t\t\t\t\t\tproject.getChunkFromId(latestStroke.chunkId).addStroke(latestStroke);\n\t\t\t\t\t\t\t\t\tproject.addLoadedStroke(latestStroke);\n\n\t\t\t\t\t\t\t\t\tproject.saveChunks(new long[]{latestStroke.getContainingChunk()}, false);\n\t\t\t\t\t\t\t\t\tproject.saveMetadata();\n\t\t\t\t\t\t\t\t\tproject.getCurrentSheet().saveMetadata();\n\n\t\t\t\t\t\t\t\t\tproject.incrementStrokeCount();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlatestStroke = new Stroke(this, true);\n\t\t\t\t\t\t\t\trequestRender();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttouchAction = TOUCH_NONE;\n\t\t\t\t\t\t\trenderer.resetRenderCount();\n\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Is a double touch detected?\n\t\telse if (event.getPointerCount() == 2)\n\t\t{\n\t\t\t// Prepare the necessary variables for the pinch/drag.\n\t\t\tif (event.getAction() != MotionEvent.ACTION_UP)\n\t\t\t{\n\t\t\t\t/* For some reason, MotionEvent.getPointerId(int) can throw an IllegalArgumentException\n\t\t\t\t * even when MotionEvent.getPointerCount() is 2. If this happens, catch the exception\n\t\t\t\t * and discard the touch operation. */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\ttouchXPrev = touchX;\n\t\t\t\t\ttouchYPrev = touchY;\n\n\t\t\t\t\ttouchX = event.getX(event.getPointerId(0));\n\t\t\t\t\ttouchY = event.getY(event.getPointerId(0));\n\n\t\t\t\t\ttouchX2 = event.getX(event.getPointerId(1));\n\t\t\t\t\ttouchY2 = event.getY(event.getPointerId(1));\n\n\t\t\t\t\tpinchCenterXPrev = pinchCenterX;\n\t\t\t\t\tpinchCenterYPrev = pinchCenterY;\n\n\t\t\t\t\tpinchCenterX = (touchX + touchX2)/2f;\n\t\t\t\t\tpinchCenterY = (touchY + touchY2)/2f;\n\t\t\t\t}\n\t\t\t\tcatch (IllegalArgumentException e)\n\t\t\t\t{\n\t\t\t\t\ttouchAction = TOUCH_NONE;\n\t\t\t\t\trenderer.resetRenderCount();\n\t\t\t\t\tlatestStroke = new Stroke(this, true);\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tswitch (event.getAction())\n\t\t\t{\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t{\n\t\t\t\t\treturn false; // Nothing should happen here, so reject the event.\n\t\t\t\t}\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t{\n\t\t\t\t\tif (touchAction != TOUCH_PINCH)\n\t\t\t\t\t{\n\t\t\t\t\t\tinitialPinchDistance = (float) Math.sqrt((touchX - touchX2) * (touchX - touchX2) + (touchY - touchY2) * (touchY - touchY2));\n\t\t\t\t\t\tinitialZoom = zoom;\n\t\t\t\t\t\tzoomPrev = zoom;\n\t\t\t\t\t\ttouchAction = TOUCH_PINCH;\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat pinchDistance = (float) Math.sqrt((touchX - touchX2) * (touchX - touchX2) + (touchY - touchY2) * (touchY - touchY2));\n\t\t\t\t\tfloat pinchDistanceRatio = pinchDistance / initialPinchDistance;\n\n\t\t\t\t\tfloat pinchCenterDiffX = pinchCenterX - pinchCenterXPrev;\n\t\t\t\t\tfloat pinchCenterDiffY = pinchCenterY - pinchCenterYPrev;\n\n\t\t\t\t\tfloat vectorX = (pinchCenterX - (viewportWidth/2f))/zoom;\n\t\t\t\t\tfloat vectorY = (pinchCenterY - (viewportHeight/2f))/zoom;\n\n\t\t\t\t\tfloat zoomDiff = zoom - zoomPrev;\n\n\t\t\t\t\tzoomPrev = zoom;\n\t\t\t\t\tsetZoomAndPan(initialZoom * pinchDistanceRatio, -(pinchCenterDiffX - vectorX * zoomDiff)/zoom, (pinchCenterDiffY - vectorY * zoomDiff)/zoom);\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t{\n\t\t\t\t\ttouchAction = TOUCH_NONE;\n\t\t\t\t\trenderer.resetRenderCount();\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void paint(Graphics g){\n\t\tsuper.paint(g);\n\t\tGraphics2D g2d= (Graphics2D) g;\n\t\tStroke stroke= new BasicStroke(2.0f);// width = 3\n\t\tg2d.setStroke(stroke);\n\n\t\tg2d.setColor(Color.ORANGE);\n\t\tg2d.drawLine(50, 75, 80, 100);\n\t\tg2d.drawLine(113, 100, 149, 100);\n\t\tg2d.drawLine(182, 100, 209, 135);\n\t\tg2d.drawLine(225, 166, 193, 200);\n\t\tg2d.drawLine(160, 215, 132, 230);\n\t\tg2d.drawLine(242, 150, 280, 110);\n\t\tg2d.drawLine(312, 110, 349, 60);\n\n\t}", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n }\n StdDraw.setPenRadius();\n }", "@Override\n public void draw()\n {\n }", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }", "@Override\n public void draw() {\n }" ]
[ "0.7940243", "0.6835856", "0.6815588", "0.68111914", "0.6685759", "0.668239", "0.64807177", "0.6458387", "0.6428133", "0.64281285", "0.6388278", "0.6371834", "0.636944", "0.63502043", "0.6338941", "0.6304827", "0.6300688", "0.6261292", "0.6234911", "0.62163943", "0.62124735", "0.6194069", "0.61587685", "0.61194247", "0.6095316", "0.60553783", "0.60380745", "0.6024011", "0.60184455", "0.59938896", "0.5956991", "0.5955961", "0.59387386", "0.59176177", "0.5878258", "0.5874481", "0.5871085", "0.5866123", "0.5865951", "0.58301944", "0.5826048", "0.57834446", "0.57834274", "0.5783151", "0.5782838", "0.57736754", "0.5770975", "0.5765373", "0.5762482", "0.57596093", "0.57519555", "0.574462", "0.5730893", "0.5727355", "0.5719858", "0.57189804", "0.5696379", "0.5696379", "0.5688303", "0.5676544", "0.5670141", "0.5663525", "0.565824", "0.5648761", "0.56477904", "0.5641586", "0.56396717", "0.56394523", "0.56394523", "0.56346905", "0.5633585", "0.56083596", "0.56083596", "0.5598239", "0.55962926", "0.55930436", "0.5592444", "0.5591163", "0.5588036", "0.55869216", "0.5581081", "0.55796754", "0.55763924", "0.55727804", "0.556924", "0.5550781", "0.5550781", "0.5550781", "0.5550277", "0.55458903", "0.5534084", "0.5534084", "0.5534084", "0.5534084", "0.5530213", "0.5527909", "0.5521918", "0.55164987", "0.5513484", "0.550463" ]
0.7991163
0
find by user name
public tbl_user CheckUserHave(String user) { return userRepository.findByUsername(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "public User search_userinfo(String user_name);", "public boolean findUserBYName(String name);", "public int search_userid(String user_name);", "public AgtUser findUserByName(String username);", "User findUserByName(String name);", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "public SecurityUser findByName(String username);", "public User findUser(String name) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}", "public User getUserByName(String username);", "public User getUserByName(String username);", "public User getUserByUserName(String userName);", "public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "public User getUserByUserName(String username);", "public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }", "public User getSpecificUser(String username);", "User findByUserName(String userName);", "User findByUserName(String userName);", "public User getUser(String name);", "public User getUser(String name);", "User getUserByUsername(String name) throws InvalidUserException;", "User loadUserByUserName(String userName);", "User getByName(String name);", "User findByUsername(String userName);", "UserModel findByName(String name);", "public User findUserName(String name)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (name.equals(users.get(i).getUsername()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public User findByUserName(String username) throws Exception;", "public SystemUser findByUserName(String userName);", "private User findByName(String username) {\r\n\t\tCriteriaBuilder cb = entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery cq = cb.createQuery(User.class);\r\n\t\tRoot<User> user = cq.from(User.class);\r\n\t\tcq.where(user.get(User_.username).in(username));\r\n\r\n\t\tTypedQuery<User> tq = entityManager.createQuery(cq);\r\n\t\t\r\n\t\treturn tq.getSingleResult();\r\n\t}", "public User findByUserName(String userName) {\n logger.log(Level.INFO, \"suppp it works\");\n List<User> users = entityManager.createNamedQuery(User.FIND_BY_USERNAME)\n .setParameter(\"userName\", userName)\n .getResultList();\n if (users.isEmpty()) {\n return null;\n }\n return users.get(0);\n }", "User findUserByUsername(String username);", "public User findUserByNickname(final String nickname);", "public User findUser(String name) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where name = ?\");\n\t\t\tps.setString(1, name);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4),\n\t\t\t\t\t\trs.getDate(5));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<User> searchByUser(String userName) {\n\t\tlog.info(\"Search by username!\");\n\t\treturn userRepository.findByFirstNameRegex(userName+\".*\");\n\t}", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User findOneByName(String name);", "public UserQueryEntity getByName(String userName);", "public User getUserByUsername(String username);", "User getUser(String userName) throws UserNotFoundException;", "@Override\n\tpublic User findUserByName(String name) {\n\t\treturn dao.findUserByName(name);\n\t}", "public static User findUserByName(String username) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByName = \"SELECT * FROM public.member \"\n + \"WHERE name = '\" + username + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByName);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n\n return user;\n }", "List<User> getUserByName(String name);", "@Override\n public User getUserByName(final String name){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where username = :name\");\n query.setParameter(\"name\", name);\n return (User) query.uniqueResult();\n }", "public User getUser(String userName);", "public EOSUser findUser(String login) throws EOSNotFoundException;", "User findUserByLogin(String login);", "User getByUsername(String username);", "@Override\n public List<User> findByName(String username){\n try {\n return runner.query(con.getThreadConnection(),\"select * from user where username like ?\",new BeanListHandler<User>(User.class),username);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public User getUser(String username);", "public User getUserByName(String name) {\n \t\tfor (User user : users) {\n \t\t\tif (user.getName().equals(name))\n \t\t\t\treturn user;\n \t\t}\n \t\treturn null;\n \t}", "@Override\n public User getUserByUsername(String name) {\n \tSession session = this.sessionFactory.getCurrentSession(); \n \tQuery query = session.createQuery(\"from User where username=:username\");\n\t\tquery.setParameter(\"username\", name);\n\t\tUser u = (User) query.uniqueResult();\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "User getUser(String username);", "@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}", "@Override\n public User findUserByName(String name) {\n User user = new User();\n user.setName(\"admin\");\n user.setPassword(\"00b3187384f2708025074f28764a4a30\");\n return user;\n }", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "public Person findPersonByUsername(String name) {\n Person person = personRepository.findByUsername(name);\n Optional<Person> byId = personRepository.findById(2L);\n return person;\n }", "@Override\r\n\tpublic User findUserByName(String userName) {\n\t\treturn null;\r\n\t}", "public User getSingleUserRealName(String name) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where CONCAT_WS(' ',user.firstName, user.lastName) = ? \",\n new Object[]{name},\n new Type[]{Hibernate.STRING});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\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 if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }", "Login findByUserName (String username);", "String getUserName(String userId);", "public User getUser (String userName);", "public static String userNameValid(String name){\n return \"select u_name from users having u_name = '\" + name + \"'\";\n }", "@Override\n\tpublic User getUserByCredentials(String userName, String password) {\n\t\tList<User> userList = new ArrayList<User>();\n\t\tString query = \"SELECT u FROM User u\";\n\t\tuserList = em.createQuery(query, User.class).getResultList();\n\t\tUser returnUser = null;\n\t\tfor (User user : userList) {\n\t\t\tif (user.getUserName().equals(userName) && user.getPassword().equals(password)) {\n\t\t\t\tSystem.out.println(user);\n\t\t\t\treturnUser = user;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not found\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn returnUser;\n\t}", "User find(String username, String password);", "@Override\n\tpublic User findByName(String username) {\n\t\treturn userDao.findByName(username);\n\t}", "User findByUsername(String username) throws UserDaoException;", "private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }", "@SuppressWarnings(\"static-method\")\n public @NotNull LocalUser findByName(String username) throws UserNotFoundException {\n if (\"admin\".equals(username)) {\n LocalUser user = new LocalUser(\"admin\", \"struts2\");\n return user;\n }\n throw new UserNotFoundException(username);\n }", "public boolean findbyUser(String username) {\n\t\tString sql=\"select username from SCOTT.USERS where USERNAME='\"+username+\"'\";\n\t\t\n\t\t Dbobj dj=new Dbobj();\n\t\t JdbcUtils jdbcu=new JdbcUtils();\n\t\t dj=jdbcu.executeQuery(sql);\n\t\t ResultSet rs=dj.getRs(); \n\t\t System.out.println(\"\"+sql);\t\n\t\t String t=\"\";\n\t\t try {\n\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tt=rs.getString(1);\n\t\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t if (t.isEmpty()) {\n\t\t\t return false;\n\t\t }else{\n\t\t\t return true; \n\t\t }\n\t\t\n\t\t\n\t\t\n\t}", "public User queryByname(String name, String password) {\n\t\tSystem.out.println(this.getClass().getName()+\"queryByname\");\n\t\treturn null;\n\t}", "private void testUserName(){\r\n\t\t//get user with the 'test' userName\r\n\t\tString command = \"SELECT userName FROM users \"\r\n\t\t\t\t+ \"WHERE userName = \\\"\" + commandList.get(1) + \"\\\";\";\r\n\t\tSystem.out.println(command);//print command\r\n\t\ttry {//send command\r\n\t\t\trs = stmt.executeQuery(command);\r\n\t\t\t\r\n\t\t\tif(rs.next()){//if it returns user, userName exists\r\n\t\t\t\tout.println(\"exists\");\r\n\t\t\t} else {//no results returned, empty\r\n\t\t\t\tout.println(\"free\");\r\n\t\t\t}\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\tout.println(e.getMessage());//send back error message\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic UserProfile getUserByUserName(String userName) {\n\t\tMongoOperations mongoOp = (MongoOperations) mongoTemplate;\n\t\t\n\t\t//Query 'Patient' collection by Health Code\n\t\tQuery searchByUserName = new Query(Criteria\n\t\t\t\t\t\t\t\t.where(\"userName\")\n\t\t\t\t\t\t\t\t.is(userName)); \n\t\tUserProfile userProfile = mongoOp.findOne(searchByUserName,UserProfile.class);\n\t\treturn userProfile;\n\t}", "@Override\r\n public UserAccount findByUsernameOrOAuthToken(String userName) {\n if (userName.startsWith(SYSTEM_CONSTS.AUTHENTIFICATION_OAUTH2_USERNAME_PREFIX)) {\r\n return findUserByOAuth2UserNameToken(userName);\r\n } else {\r\n return ops.findOne(Query.query(Criteria.where(\"username\").is(userName)), UserAccount.class);\r\n }\r\n }", "public boolean userNameExist(String username);", "@Query(value = \"SELECT * FROM Users where user_name = :user_name\", nativeQuery = true) // jpql\n\tUser findUserByUserName(@Param(\"user_name\") String user_name);", "User getUserByLogin(String login);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "UserGroup findByNameIgnoreCase(String companyId, String name);", "private String getUser(String name) {\n\t\treturn null;\n\t}", "public static ArrayList<Member> findByName(String usr){\n setConnection();\n \n ArrayList<Member> members = new ArrayList<>();\n \n try{\n Statement statement = con.createStatement();\n \n //Query statement\n String query = \"SELECT * FROM member WHERE name LIKE ?\";\n\n //Create mysql prepared statement\n PreparedStatement preparedStatement = con.prepareStatement(query);\n preparedStatement.setString(1, \"%\"+usr+\"%\");\n \n //Execute the prepared statement\n ResultSet result = preparedStatement.executeQuery();\n \n while(result.next()){\n int memberId = result.getInt(1);\n String name = result.getString(2);\n String email = result.getString(3);\n String phone = result.getString(4);\n String address = result.getString(5);\n String dob = result.getString(6);\n \n members.add(new Member(memberId, name, email, phone, address, dob));\n }\n\n con.close();\n } catch (SQLException e){\n System.out.println(e.getMessage());\n }\n \n return members;\n }", "public User findUserByLogin(final String login);", "public User queryUserByUsername(String username);", "public User findUser(String username) {\n if (userList.containsKey(username)) {\n return userList.get(username);\n } else {\n throw new NoSuchElementException(\"User Not Found.\");\n }\n }", "List<User> findByUsernameContainingIgnoreCase(String name);", "User get(String name);", "java.lang.String getUser();", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User findByUsername(String username);" ]
[ "0.8034379", "0.7949479", "0.787993", "0.76769614", "0.7618041", "0.7572424", "0.75288975", "0.74309987", "0.73426133", "0.7317209", "0.7310928", "0.7310928", "0.7297282", "0.7280053", "0.726965", "0.7259117", "0.7229393", "0.722509", "0.7217668", "0.7217668", "0.7211036", "0.7211036", "0.7181641", "0.7159237", "0.7099454", "0.709009", "0.70335066", "0.7028353", "0.70275605", "0.69979775", "0.6969002", "0.6967697", "0.69596505", "0.6955455", "0.69484895", "0.6932482", "0.6928591", "0.6928591", "0.6928591", "0.6921637", "0.69173294", "0.6880778", "0.687749", "0.68733823", "0.68531984", "0.68457127", "0.68385446", "0.68240196", "0.68214035", "0.68202", "0.68003285", "0.6798342", "0.67971146", "0.679583", "0.67910206", "0.67836326", "0.67818034", "0.6772767", "0.67596537", "0.6746172", "0.67232656", "0.66972804", "0.6688382", "0.66823477", "0.66795444", "0.6677231", "0.6665628", "0.6657583", "0.6656997", "0.66569406", "0.66501904", "0.66422075", "0.6632582", "0.663241", "0.66285807", "0.66241163", "0.6622517", "0.66216755", "0.66178817", "0.66150355", "0.66083974", "0.660638", "0.6605306", "0.6605306", "0.6605306", "0.6605306", "0.6605306", "0.6605306", "0.65986925", "0.6589247", "0.6588906", "0.65880454", "0.65766555", "0.6576458", "0.6574522", "0.6565795", "0.6565408", "0.6555394", "0.6555394", "0.6555394", "0.6555394" ]
0.0
-1
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // BEG_TIME return BEG_TIME; case 2: // END_TIME return END_TIME; case 3: // DATE return DATE; case 4: // OFFICE return OFFICE; case 5: // PLAN return PLAN; case 6: // TICKETS return TICKETS; case 7: // AVAILABLE return AVAILABLE; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TOTAL_FILES_MATERIALIZED_COUNT\n return TOTAL_FILES_MATERIALIZED_COUNT;\n case 2: // FILES_MATERIALIZED_FROM_CASCOUNT\n return FILES_MATERIALIZED_FROM_CASCOUNT;\n case 3: // TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS\n return TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMB_INSTRUMENT_ID\n return COMB_INSTRUMENT_ID;\n case 2: // LEG_ID\n return LEG_ID;\n case 3: // LEG_INSTRUMENT_ID\n return LEG_INSTRUMENT_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // OUTPUT_DIR\n return OUTPUT_DIR;\n case 3: // SUBSET\n return SUBSET;\n case 4: // TYPES\n return TYPES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAM_MAP\n return PARAM_MAP;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCOUNT_IDS\n return ACCOUNT_IDS;\n case 2: // COMMODITY_IDS\n return COMMODITY_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // M_COMMAND_TYPE\n return M_COMMAND_TYPE;\n case 2: // M_BLOCK_IDS\n return M_BLOCK_IDS;\n case 3: // M_FILE_PATH\n return M_FILE_PATH;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CUS_PER_BASE\n return CUS_PER_BASE;\n case 3: // TOTAL_ASSETS\n return TOTAL_ASSETS;\n case 4: // TOTAL_LIAB\n return TOTAL_LIAB;\n case 5: // FAMILY_ASSETS\n return FAMILY_ASSETS;\n case 6: // YEAR_PAY\n return YEAR_PAY;\n case 7: // MONTH_WAGE\n return MONTH_WAGE;\n case 8: // FAMILY_INCOME\n return FAMILY_INCOME;\n case 9: // FAMILY_CONTROL\n return FAMILY_CONTROL;\n case 10: // STATUS\n return STATUS;\n case 11: // ASSETS_DETAIL\n return ASSETS_DETAIL;\n case 12: // LIAB_DETAIL\n return LIAB_DETAIL;\n case 13: // MONTHLY_PAYMENT\n return MONTHLY_PAYMENT;\n case 14: // OVERDRAFT\n return OVERDRAFT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }" ]
[ "0.79869914", "0.7915354", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.77862614", "0.7779145", "0.77291805", "0.7727816", "0.7721567", "0.77125883", "0.77125883", "0.7709597", "0.7708822", "0.7701162", "0.7699386", "0.76957756", "0.7687628", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.766961", "0.766961", "0.7663572", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.7648934", "0.7644055", "0.764325", "0.7634706", "0.76222456", "0.76209694", "0.7618461", "0.76121426", "0.76118654", "0.76118654", "0.760653", "0.760217", "0.760217", "0.760217", "0.760217", "0.760217", "0.7600617", "0.75965196", "0.75965196", "0.75958437", "0.75958437", "0.7593029", "0.7593029", "0.7593029" ]
0.0
-1
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // EXCEPTION_ID\n return EXCEPTION_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // REPORT_DATE\n return REPORT_DATE;\n case 5: // UN_ASSURE_CONDITION\n return UN_ASSURE_CONDITION;\n case 6: // HOUSE_PROPERY_CONDITION\n return HOUSE_PROPERY_CONDITION;\n case 7: // REMARK\n return REMARK;\n case 8: // CREATE_DATE\n return CREATE_DATE;\n case 9: // CREATE_ID\n return CREATE_ID;\n case 10: // UPDATE_DATE\n return UPDATE_DATE;\n case 11: // UPDATE_ID\n return UPDATE_ID;\n case 12: // PROJECT_ID\n return PROJECT_ID;\n case 13: // LEGAL_LIST\n return LEGAL_LIST;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_CODE\n \treturn APP_CODE;\n case 2: // REQUEST_DATE\n \treturn REQUEST_DATE;\n case 3: // SIGN\n \treturn SIGN;\n case 4: // SP_ID\n \treturn SP_ID;\n case 5: // OUT_ORDER_ID\n \treturn OUT_ORDER_ID;\n case 6: // DEVICE_NO\n \treturn DEVICE_NO;\n case 7: // DEVICE_TYPE\n \treturn DEVICE_TYPE;\n case 8: // PROVINCE_ID\n \treturn PROVINCE_ID;\n case 9: // CUST_ID\n \treturn CUST_ID;\n case 10: // NUM\n \treturn NUM;\n case 11: // REMARK\n \treturn REMARK;\n case 12: // ACTIVE_ID\n \treturn ACTIVE_ID;\n case 13: // EXP_TIME\n \treturn EXP_TIME;\n default:\n \treturn null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // ID_CURSA\r\n return ID_CURSA;\r\n case 3: // NR_LOC\r\n return NR_LOC;\r\n case 4: // CLIENT\r\n return CLIENT;\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXEC_TRADE_ID\n return EXEC_TRADE_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // SLED_CONTRACT_ID\n return SLED_CONTRACT_ID;\n case 4: // EXEC_ORDER_ID\n return EXEC_ORDER_ID;\n case 5: // TRADE_PRICE\n return TRADE_PRICE;\n case 6: // TRADE_VOLUME\n return TRADE_VOLUME;\n case 7: // EXEC_TRADE_DIRECTION\n return EXEC_TRADE_DIRECTION;\n case 8: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 9: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n case 10: // SLED_COMMODITY_ID\n return SLED_COMMODITY_ID;\n case 11: // CONFIG\n return CONFIG;\n case 12: // ORDER_TOTAL_VOLUME\n return ORDER_TOTAL_VOLUME;\n case 13: // LIMIT_PRICE\n return LIMIT_PRICE;\n case 14: // SOURCE\n return SOURCE;\n case 15: // TRADE_ACCOUNT_ID\n return TRADE_ACCOUNT_ID;\n case 16: // TRADE_TIMESTAMP_MS\n return TRADE_TIMESTAMP_MS;\n case 17: // ASSET_TRADE_DETAIL_ID\n return ASSET_TRADE_DETAIL_ID;\n case 18: // SUB_USER_ID\n return SUB_USER_ID;\n case 19: // SLED_ORDER_ID\n return SLED_ORDER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONF\n return CONF;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONTRACT_ADDRESS\n return CONTRACT_ADDRESS;\n case 2: // OBJECT\n return OBJECT;\n case 3: // STATE_CAN_MODIFY\n return STATE_CAN_MODIFY;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }" ]
[ "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7541919", "0.75344586", "0.74417484", "0.74417484", "0.74417484", "0.74417484", "0.74417484", "0.74417484", "0.7428648", "0.7428648", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7427518", "0.7423571", "0.7423369", "0.7403485", "0.7394984", "0.7394108", "0.7391513", "0.73827726", "0.73782563", "0.7376256", "0.7372693", "0.73629117", "0.73629117", "0.7350967", "0.7350967", "0.7342082", "0.7342082", "0.7342082", "0.73345006", "0.73275083", "0.7317537", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7315645", "0.7308824", "0.7288882", "0.72863466", "0.72711205", "0.72704643", "0.72680724", "0.7256801", "0.72550267", "0.72543365", "0.7249658", "0.7249658", "0.7247689", "0.7247689", "0.7247689", "0.7247689", "0.7247689" ]
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }", "public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }", "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}", "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}" ]
[ "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.76413363", "0.7630484", "0.7630484", "0.7630484", "0.7630484", "0.7630484", "0.7630484", "0.7630484", "0.7630484", "0.7630484", "0.75789446", "0.75789446", "0.7571254", "0.7571254", "0.7563755", "0.7563755" ]
0.0
-1
Performs a deep copy on other.
public Schedule(Schedule other) { __isset_bitfield = other.__isset_bitfield; this.begTime = other.begTime; this.endTime = other.endTime; this.date = other.date; if (other.isSetOffice()) { this.office = other.office; } this.plan = other.plan; if (other.isSetTickets()) { List<TTicket> __this__tickets = new ArrayList<TTicket>(); for (TTicket other_element : other.tickets) { __this__tickets.add(new TTicket(other_element)); } this.tickets = __this__tickets; } this.available = other.available; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperties)\n\t\t{\n\t\t\tproperties.put(property.key, property.clone());\n\t\t}\n\t}", "public void copyDataFrom(ParamUnit other)\r\n\t{\r\n\t\tif (this.data.row != other.data.row || this.data.col != other.data.col)\r\n\t\t\tthrow new DeepException(\"Cannot copy data from a different dimension.\");\r\n\t\tthis.data.copyFrom(other.data);\r\n\t}", "private Path(Path other){\n\t\t\n\t\tthis.source = other.source;\n\t\tthis.destination = other.destination;\n\t\tthis.cities = other.cities;\n\t\t\n\t\tthis.cost = other.cost;\n\t\tthis.destination = other.destination;\n\t\t\n\t\tthis.connections = new LinkedList<Connection>();\n\t\t\n\t\tfor (Connection c : other.connections){\n\t\t\tthis.connections.add((Connection) c.clone());\n\t\t}\n\t\t\n\t}", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public void copy() {\n\n\t}", "public abstract B copy();", "public CMObject copyOf();", "public T cloneDeep();", "public void copy(BlastGraph<HitVertex, ValueEdge> graphToCopy) {\n\t\t// empty this graph\n\t\tthis.empty();\n\n\t\t// union this empty graph with graphToCopy\n\t\tthis.union(graphToCopy);\n\t}", "public void mirror(Dataset other) {\n clear();\n this.ntree.addAll(other.ntree);\n }", "Model copy();", "public abstract INodo copy();", "static void setCopying(){isCopying=true;}", "Nda<V> shallowCopy();", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "T copy();", "@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}", "public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}", "Component deepClone();", "public Data assign(Data other) {\r\n this.setDimension(other.dimension);\r\n this.distanz = other.distanz;\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = other.data[i];\r\n }\r\n this.id = other.id;\r\n return this;\r\n }", "@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }", "public AST copy()\n {\n return new Implicate(left, right);\n }", "@Override\n public void copyValues(final fr.jmmc.oiexplorer.core.model.OIBase other) {\n final View view = (View) other;\n\n // copy type, subsetDefinition (reference):\n this.type = view.getType();\n this.subsetDefinition = view.getSubsetDefinition();\n }", "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "public abstract Node copy();", "protected void copy(Writable other) {\n\t\tif (other != null) {\n\t\t\ttry {\n\t\t\t\tDataOutputBuffer out = new DataOutputBuffer();\n\t\t\t\tother.write(out);\n\t\t\t\tDataInputBuffer in = new DataInputBuffer();\n\t\t\t\tin.reset(out.getData(), out.getLength());\n\t\t\t\treadFields(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"map cannot be copied: \" +\n\t\t\t\t\t\te.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"source map cannot be null\");\n\t\t}\n\t}", "protected void copyInto(Schedule other) {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++)\r\n\t\t\t\tother.schedule[i][j] = schedule[i][j];\t\t\r\n\t}", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}", "@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}", "Object clone();", "Object clone();", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "Nda<V> deepCopy();", "@Override\n public LocalStore<V> copy() {\n return this;\n }", "public abstract TreeNode copy();", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}", "public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }", "@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}", "public Data copy(Object value) {\n if (mValue instanceof Data) {\n ((Data) mValue).copy(value);\n } else {\n mValue = value;\n }\n return this;\n }", "public void\n\tcopy( Vector3 other )\n\t{\n\t\tdata[0] = other.data[0];\n\t\tdata[1] = other.data[1];\n\t\tdata[2] = other.data[2];\n\t}", "private static void copy(List<? super Number> dest, List<? extends Number> src) {\n for (int i = 0; i < src.size(); i++) {\n dest.set(i, src.get(i));\n //dest.add(src.get(i));\n }\n }", "private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }", "public abstract void copy(Result result, Object object);", "protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }", "@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);", "private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }", "public Game copy();", "public void pasteFrom(Flow other)\n\t\t{\n\t\tunits.addAll(other.units);\n\t\tconns.addAll(other.conns);\n\t\t}", "@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }", "public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}", "public CFExp deepCopy(){\r\n return this;\r\n }", "DataContext copy();", "@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }", "@Override\n\tpublic SecuredRDFList copy();", "@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}", "public O copy() {\n return value();\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "public abstract Object clone();", "public Function clone();", "public abstract Type treeCopy();", "public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}", "public Results copy()\n {\n Results copy = new Results();\n for(Object object : results) {\n copy.add( object );\n }\n return copy;\n }", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }", "public Object clone() {\n return this.copy();\n }", "@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }", "@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}", "public abstract Object clone() ;", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public PaginationVO(PaginationVO other) {\n __isset_bitfield = other.__isset_bitfield;\n this.pageSize = other.pageSize;\n this.pageNo = other.pageNo;\n this.upPage = other.upPage;\n this.nextPage = other.nextPage;\n this.totalCount = other.totalCount;\n this.totalPage = other.totalPage;\n if (other.isSetPageUrl()) {\n this.pageUrl = other.pageUrl;\n }\n if (other.isSetParams()) {\n this.params = other.params;\n }\n if (other.isSetDatas()) {\n List<BlogPostVO> __this__datas = new ArrayList<BlogPostVO>();\n for (BlogPostVO other_element : other.datas) {\n __this__datas.add(new BlogPostVO(other_element));\n }\n this.datas = __this__datas;\n }\n }", "public WorldState (WorldState other)\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\t\t\n\t\tcopy(other);\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}", "@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);", "@Override\n public INDArray copy(INDArray x, INDArray y) {\n //NativeBlas.dcopy(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n JavaBlas.rcopy(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n return y;\n }", "@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}", "public Object detachCopy(Object po)\n{\n\treturn po;\n}", "public ConfabulatorObject getCopy() {\n\t\tConfabulatorObject copy = new ConfabulatorObject(getMessenger());\n\t\tlockMe(this);\n\t\tint maxD = maxLinkDistance;\n\t\tint maxC = maxLinkCount;\n\t\tList<Link> linksCopy = new ArrayList<Link>();\n\t\tfor (Link lnk: links) {\n\t\t\tlinksCopy.add(lnk.getCopy());\n\t\t}\n\t\tunlockMe(this);\n\t\tcopy.initialize(maxD,maxC,linksCopy);\n\t\treturn copy;\n\t}", "@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { //The loop passes through all the ver' of the graph\r\n Nodes t = new Nodes(curr); //create new node\r\n copy.addNode(t.key); //copy the the old node to the new node\r\n }\r\n for (node_info curr0 : this.Graph.getV()) {\r\n for (node_info curr1 : this.Graph.getV(curr0.getKey())) { //this loops pass over the all nodes and copy the connection\r\n double i = this.Graph.getEdge(curr0.getKey(), curr1.getKey());\r\n if (i != -1) {\r\n copy.connect(curr0.getKey(), curr1.getKey(), i);\r\n }\r\n }\r\n }\r\n return copy;\r\n\r\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public static void main(String[] args) throws CloneNotSupportedException\n {\n ArrayList<String> companies = new ArrayList<String>();\n companies.add(\"Baidu\");\n companies.add(\"Tencent\");\n companies.add(\"Ali\");\n WorkExprience workExprience = new WorkExprience(companies);\n String nameString = new String(\"Tom\");\n String genderString = new String(\"male\");\n Resume resume = new Resume(nameString, 23, genderString, workExprience);\n System.out.println(\"Source Resume\");\n resume.printResum();\n \n ArrayList<String> companies1 = new ArrayList<String>();\n companies1.add(\"Google\");\n companies1.add(\"Microsoft\");\n companies1.add(\"Oracle\");\n Resume copyResume = (Resume)resume.clone();\n String nameString1 = new String(\"Jerry\");\n String genderString1 = new String(\"Fmale\");\n copyResume.setName(nameString1);\n copyResume.setAge(20);\n copyResume.setGender(genderString1);\n copyResume.getWorkExprience().setCompanyArrayList(companies1);\n System.out.println();\n System.out.println(\"Source Resume\");\n resume.printResum();\n System.out.println();\n System.out.println(\"Copy Resume\");\n copyResume.printResum();\n }", "public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}", "protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }", "static void setNotCopying(){isCopying=false;}", "void copy(DependencyRelations deps){\n if (deps == null)\n throw new IllegalArgumentException(\"the source is null.\");\n\n size_ = deps.size_;\n for(int i = 0; i < size_ ; i++){\n if (nodes_[i] == null)\n nodes_[i] = new Node();\n nodes_[i].copy(deps.nodes_[i]);\n }\n }", "@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }", "public void copy(Posts that) {\r\n\t\tsetId(that.getId());\r\n\t\tsetTitle(that.getTitle());\r\n\t\tsetContent(that.getContent());\r\n\t\tsetShareDate(that.getShareDate());\r\n\t\tsetIsPrivate(that.getIsPrivate());\r\n\t\tsetUsers(that.getUsers());\r\n\t\tsetCommentses(new java.util.LinkedHashSet<com.ira.domain.Comments>(that.getCommentses()));\r\n\t}", "@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }" ]
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", "0.6270614", "0.6265534", "0.6262602", "0.6245396", "0.6226707", "0.62195224", "0.6199828", "0.6194176", "0.61679715", "0.61505216", "0.6141201", "0.6141201", "0.613657", "0.61238766", "0.6113572", "0.6078777", "0.6067093", "0.6051407", "0.60489607", "0.60435355", "0.6034403", "0.6030665", "0.603029", "0.6002317", "0.5987207", "0.5984917", "0.59831345", "0.5962016", "0.5931717", "0.59043086", "0.58999294", "0.58940864", "0.5888768", "0.5887435", "0.5887003", "0.5872753", "0.58715606", "0.5867456", "0.5854781", "0.5835268", "0.5833011", "0.58237326", "0.58237326", "0.58237326", "0.58237326", "0.5821464", "0.5818652", "0.5814066", "0.57974726", "0.579667", "0.5792226", "0.57900447", "0.57734174", "0.57581633", "0.5751797", "0.57507133", "0.5744841", "0.5744065", "0.5744024", "0.5743795", "0.5740732", "0.57376605", "0.5736934", "0.5736099", "0.5727886", "0.5727659", "0.5714002", "0.5700601", "0.56953377", "0.5689013", "0.5682943", "0.5676875", "0.56736434", "0.56729144", "0.567041", "0.5669635", "0.56651294", "0.56643426", "0.5662451", "0.5647604" ]
0.0
-1
Returns true if field begTime is set (has been assigned a value) and false otherwise
public boolean isSetBegTime() { return EncodingUtils.testBit(__isset_bitfield, __BEGTIME_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetStartTime() {\n return this.startTime != null;\n }", "public boolean isSetStartTime() {\n return this.startTime != null;\n }", "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "public boolean isSetStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STARTTIME$22) != null;\r\n }\r\n }", "public boolean hasStartTime() {\n return fieldSetFlags()[0];\n }", "boolean hasStartTime();", "public boolean isSetEndTime() {\n return this.endTime != null;\n }", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "public boolean isSetTime() {\n return EncodingUtils.testBit(__isset_bitfield, __TIME_ISSET_ID);\n }", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "public boolean isSetEndTime() {\n return this.endTime != null;\n }", "public boolean hasDesiredTime() {\n return desiredTimeBuilder_ != null || desiredTime_ != null;\n }", "private boolean adjustedTimeIsSet() {\n return (adjustedTimeStamp != null);\n }", "public boolean hasEndTime() {\n return fieldSetFlags()[1];\n }", "public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }", "public boolean isSetBirthTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BIRTHTIME$12) != 0;\n }\n }", "boolean hasDesiredTime();", "boolean hasEndTime();", "boolean hasTime();", "boolean hasTime();", "boolean hasTimeRecord();", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "boolean isSetBegin();", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetExpTime() {\n return this.ExpTime != null;\n }", "public boolean isSetUpdate_time() {\n return this.update_time != null;\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasUseTime() {\n return useTimeBuilder_ != null || useTime_ != null;\n }", "public boolean hasUseTime() {\n return useTimeBuilder_ != null || useTime_ != null;\n }", "public boolean isSetSendTime() {\n return EncodingUtils.testBit(__isset_bitfield, __SENDTIME_ISSET_ID);\n }", "public boolean isSetCreatetime() {\n return this.createtime != null;\n }", "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "public boolean isTimeSet() {\n return timeSet;\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isSetInsertTime() {\n return this.insertTime != null;\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isSetUpdateTime() {\n\t\treturn this.updateTime != null;\n\t}", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "public boolean isSetDwellTime() {\n return (this.dwellTime != null ? this.dwellTime.isSetValue() : false);\n }", "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "public boolean hasVisitStarttime() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasVisitStarttime() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasVisitStarttime() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasVisitStarttime() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public boolean isSetUpdateTime() {\n return __isset_bit_vector.get(__UPDATETIME_ISSET_ID);\n }", "public boolean usesTime() {\n return uhrzeit != null;\n }", "public boolean hasUseTime() {\n return useTime_ != null;\n }", "public boolean hasUseTime() {\n return useTime_ != null;\n }", "public boolean isSetCarpublishtime() {\n return this.carpublishtime != null;\n }", "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "boolean hasBeginDate();", "public boolean isSetLastStartTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTSTARTTIMESTAMP_ISSET_ID);\n }", "boolean hasVotingStartTime();", "@java.lang.Override\n public boolean hasTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean isSetStartDateTimestampMs() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTDATETIMESTAMPMS_ISSET_ID);\n }", "boolean hasVisitStarttime();", "boolean hasVisitStarttime();", "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "public boolean isSetCreateTime() {\n\t\treturn this.createTime != null;\n\t}", "boolean hasSendTime();", "public boolean hasBeginDate() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasProducerTime() {\n return fieldSetFlags()[1];\n }", "public boolean hasBeginDate() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isSetCreateTime() {\n return __isset_bit_vector.get(__CREATETIME_ISSET_ID);\n }", "public boolean hasMillis() {\n return fieldSetFlags()[1];\n }", "public boolean isSetStopTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STOPTIME$24) != null;\r\n }\r\n }", "public boolean isAM() {\n\tif (start != null)\n\t return start.isBefore(LocalTime.NOON);\n\treturn false;\n }", "public boolean hasSentTime() {\n return fieldSetFlags()[22];\n }", "public boolean isCurrentWorkRecordInfo() {\n\t\treturn this.startTime != null \n\t\t\t\t&& this.endTime == null;\n\t}", "boolean hasSubmitTime();", "boolean isSetTimeInterval();", "public boolean isTime() {\n return false;\n }", "boolean hasVotingEndTime();", "boolean hasCurrentStateTime();", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }", "public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }", "public boolean isSetActivedEndTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVEDENDTIMESTAMP_ISSET_ID);\n }", "public boolean hasValidFromMillis() {\n return fieldSetFlags()[4];\n }", "public boolean isSetActiveStartTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVESTARTTIMESTAMP_ISSET_ID);\n }", "public boolean isSetHrChatTime() {\n return this.hrChatTime != null;\n }", "public boolean hasBegDate() {\n return fieldSetFlags()[1];\n }", "boolean hasCollectEndTime();", "private boolean verify_AdjustedTimeIsSet() {\n \n boolean res = adjustedTimeIsSet();\n \n try {\n\n if (!res) {\n throw new Exception(\"Cannot provide data related to 'adjusted timestamp'\"\n + \" until it has been generated by a successful call to\"\n + \" `adjust(Shift)`. Data passed may be incorrect.\");\n }\n \n } catch(Exception e) {\n System.err.println(e.toString());\n }\n \n return res;\n \n }", "public boolean hasUpdateTime() {\n return ((bitField0_ & 0x00000400) != 0);\n }", "public boolean isSetTimespan() {\n return this.timespan != null;\n }" ]
[ "0.74358124", "0.73813474", "0.72869116", "0.72869116", "0.72869116", "0.72869116", "0.72869116", "0.72869116", "0.7219787", "0.7206758", "0.70621747", "0.69927907", "0.6918596", "0.6916423", "0.69119215", "0.68962306", "0.68156993", "0.6719912", "0.67187876", "0.6700568", "0.6601086", "0.65991277", "0.659368", "0.6579334", "0.6579334", "0.6578528", "0.6527769", "0.6526791", "0.65242743", "0.6508921", "0.64637065", "0.64637065", "0.64637065", "0.64637065", "0.64637065", "0.64637065", "0.6450086", "0.6449836", "0.641519", "0.64118046", "0.6380766", "0.6380766", "0.6364706", "0.63431627", "0.6342476", "0.6333784", "0.6313114", "0.6307841", "0.62945884", "0.627316", "0.627152", "0.626827", "0.6258467", "0.6253127", "0.6253127", "0.6239844", "0.6239844", "0.62184644", "0.6190364", "0.6188144", "0.61865294", "0.61865294", "0.6179665", "0.6173861", "0.6171401", "0.6150378", "0.6149071", "0.6144458", "0.613852", "0.61294514", "0.61294514", "0.6124303", "0.6122022", "0.6110441", "0.6097217", "0.60935247", "0.6083357", "0.60669124", "0.6059409", "0.6051524", "0.60508317", "0.603533", "0.6030593", "0.59981513", "0.59859043", "0.59691155", "0.5968714", "0.59634125", "0.5959385", "0.5935034", "0.5931114", "0.59220755", "0.5921112", "0.59142303", "0.58926785", "0.58758074", "0.58758074", "0.5863566", "0.584872", "0.5840468" ]
0.70974404
10
Returns true if field endTime is set (has been assigned a value) and false otherwise
public boolean isSetEndTime() { return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetEndTime() {\n return this.endTime != null;\n }", "public boolean isSetEndTime() {\n return this.endTime != null;\n }", "public boolean hasEndTime() {\n return fieldSetFlags()[1];\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);\n }", "boolean hasEndTime();", "void setEndTime(Time endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\r\n this.endTime = endTime;\r\n }", "public void setEndTime(String endTime) {\n this.endTime = endTime == null ? null : endTime.trim();\n }", "public void setEndTime( Date endTime ) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(String endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(String endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(String endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(String endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(String endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(long endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(String endTime) {\n\t\tthis.endTime = endTime;\n\t}", "public boolean isSetStartTime() {\n return this.startTime != null;\n }", "public void setEndTime(long endTime) {\n\t\tthis.endTime = endTime;\n\t}", "public boolean hasDesiredTime() {\n return desiredTimeBuilder_ != null || desiredTime_ != null;\n }", "boolean hasDepositEndTime();", "public void setEndTime(Date endTime) {\n\t\tthis.endTime = endTime;\n\t}", "public void setEndTime(String time){endTime = time;}", "public void setEndTime(Integer endTime) {\n this.endTime = endTime;\n }", "public boolean isSetEndDateTimestampMs() {\n return EncodingUtils.testBit(__isset_bitfield, __ENDDATETIMESTAMPMS_ISSET_ID);\n }", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }", "boolean hasVotingEndTime();", "public boolean isSetStartTime() {\n return this.startTime != null;\n }", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "boolean hasCollectEndTime();", "public boolean hasEndDate() {\n return fieldSetFlags()[2];\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }", "public void setEndTime(Calendar endTime) {\r\n\t\tthis.endTime = endTime;\r\n\t}", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "boolean hasEndDate();", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "public abstract void setEndTime(Date endTime);", "boolean hasStartTime();", "public void setEndTimeString(String endTimeString) {\n this.endTimeString = endTimeString;\n }", "public boolean hasVisitEndtime() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasVisitEndtime() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public void setEndTime(long value) {\r\n this.endTime = value;\r\n }", "boolean hasVisitEndtime();", "boolean hasVisitEndtime();", "public void setEndTime(String endTime) {\r\n if (StringUtil.isNotNUll(endTime)) {\r\n this.endTime = DateUtils.getSpecifiedDayAfter(TimeUtils.FORMAT_DATE, endTime);\r\n } else {\r\n this.endTime = null;\r\n }\r\n }", "public boolean hasVisitEndtime() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean hasVisitEndtime() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "@Test\r\n public void testSetEndTime() {\r\n System.out.println(\"setEndTime\");\r\n String endTime = \"\";\r\n \r\n instance.setEndTime(endTime);\r\n assertEquals(endTime, instance.getEndTime());\r\n \r\n }", "@Override\n public Date getEndTime() {\n return endTime;\n }", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "public void setEndTimeDate(Date endTimeDate) {\n this.endTimeDate = endTimeDate;\n }", "public Date getEndTime() {\n\t\treturn endTime;\n\t}", "public boolean isSetStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STARTTIME$22) != null;\r\n }\r\n }", "void setEndTime(java.util.Calendar endTime);", "public LocalDateTime getEndTime() {\n\t\treturn endTime;\n\t}", "public Date getEndTimeDate() {\n return endTimeDate;\n }", "public boolean isSetActivedEndTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVEDENDTIMESTAMP_ISSET_ID);\n }", "boolean hasDesiredTime();", "public void setEndTime(String EndTime) {\n this.EndTime = EndTime;\n }", "boolean endTimeAfter(String start, String end) {\n SimpleDateFormat HHmm = new SimpleDateFormat(\"HH:mm\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startTime = HHmm.parse(start);\n Date endTime = HHmm.parse(end);\n c.setTime(startTime);\n return startTime.compareTo(endTime) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Time\");\n }\n return true;\n }", "public boolean hasUseTime() {\n return useTimeBuilder_ != null || useTime_ != null;\n }", "public boolean hasUseTime() {\n return useTimeBuilder_ != null || useTime_ != null;\n }", "public boolean hasEndDate() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean hasEndDate() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public Date getEndTime() {\r\n return this.endTime;\r\n }", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "public boolean isSetStopTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STOPTIME$24) != null;\r\n }\r\n }", "public long getEndTime() {\r\n return endTime;\r\n }", "public Date getEndTime() {\n return this.endTime;\n }", "public boolean isPM() {\n\tif (end != null)\n\t return end.isAfter(LocalTime.NOON) || end.equals(LocalTime.NOON);\n\treturn false;\n\n }", "public long getEndTime() {\n\t\treturn endTime;\n\t}", "public String getEndTime() {\r\n return endTime;\r\n }", "public boolean isSetExpTime() {\n return this.ExpTime != null;\n }", "public String getEndTime() {\n return endTime;\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "public java.util.Date getEndTime() {\n return endTime;\n }", "private boolean checkValidity(String startTime, String endTime) {\n\t\tDateFormat formatter = null;\n\t\tformatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\tDate startDate = null;\n\t\tDate endDate = null;\n\t\ttry {\n\t\t\tstartDate = (Date)formatter.parse(startTime);\n\t\t\tendDate = (Date)formatter.parse(endTime);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tif(startDate.getTime() >= endDate.getTime())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public long getEndTime() {\n return endTime;\n }", "public long getEndTime() {\n return endTime;\n }", "public boolean isTimeSet() {\n return timeSet;\n }", "public void setEnd_time(long end_time) {\n this.end_time = end_time;\n }", "private boolean adjustedTimeIsSet() {\n return (adjustedTimeStamp != null);\n }", "public boolean isSetTime() {\n return EncodingUtils.testBit(__isset_bitfield, __TIME_ISSET_ID);\n }", "public boolean isSetUpdate_time() {\n return this.update_time != null;\n }", "long getEndTime() {\n return endTime;\n }", "public boolean isSetTimespan() {\n return this.timespan != null;\n }", "public String getEndTime() {\n return endTime;\n }" ]
[ "0.8666612", "0.8595131", "0.7984101", "0.7878367", "0.7878367", "0.7878367", "0.7878367", "0.7878367", "0.7878367", "0.76793057", "0.7040918", "0.69736314", "0.6954088", "0.693461", "0.69338775", "0.69338775", "0.69338775", "0.69338775", "0.6915601", "0.6915601", "0.69126034", "0.69126034", "0.69126034", "0.6874025", "0.68542325", "0.68441534", "0.6839366", "0.68366563", "0.68247825", "0.6816235", "0.67772853", "0.6773109", "0.67689747", "0.6762516", "0.6755566", "0.67378014", "0.6722647", "0.6720906", "0.6705607", "0.668068", "0.668068", "0.668068", "0.6674398", "0.66405076", "0.66400397", "0.66400397", "0.66400397", "0.6631681", "0.6621026", "0.6615246", "0.66112584", "0.65844333", "0.65831953", "0.65831953", "0.65633893", "0.6555076", "0.6555076", "0.6546405", "0.6544756", "0.6544756", "0.6537142", "0.6524756", "0.651887", "0.6517364", "0.6516743", "0.65017116", "0.64818585", "0.6478463", "0.6474837", "0.64692307", "0.646076", "0.64571565", "0.64505225", "0.64497006", "0.64497006", "0.643656", "0.64237493", "0.6422694", "0.6388455", "0.6384766", "0.6383929", "0.6382194", "0.6362318", "0.6362006", "0.63598144", "0.6357656", "0.6355899", "0.6354303", "0.6344606", "0.63409424", "0.63398284", "0.63398284", "0.6335869", "0.6331252", "0.6325742", "0.63243014", "0.63229185", "0.63128906", "0.63065296", "0.6301332" ]
0.7932835
3
Returns true if field date is set (has been assigned a value) and false otherwise
public boolean isSetDate() { return EncodingUtils.testBit(__isset_bitfield, __DATE_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetDate();", "boolean isSetFoundingDate();", "public boolean hasDate() {\n return fieldSetFlags()[5];\n }", "public boolean isSetExam_date() {\n return this.exam_date != null;\n }", "public boolean isSetRelease_date() {\n return this.release_date != null;\n }", "public boolean isSetRelease_date() {\r\n return this.release_date != null;\r\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isDateValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_DATE);\n }", "public boolean isSetReportDate() {\n return this.reportDate != null;\n }", "public boolean hasBegDate() {\n return fieldSetFlags()[1];\n }", "public boolean isSetPublish_date() {\n return this.publish_date != null;\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "boolean hasDate();", "public boolean hasDate() {\n return true;\n }", "public boolean isSetRequestDate() {\n return this.RequestDate != null;\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "public boolean isSetRepayDate() {\n return this.repayDate != null;\n }", "public boolean isSetDateSec() {\n return EncodingUtils.testBit(__isset_bitfield, __DATESEC_ISSET_ID);\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "boolean hasStartDate();", "protected boolean validateDateIsPopulated(final String date, final Errors errors, final String field)\n\t{\n\t\tif (StringUtils.isNotEmpty(date))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\trejectValue(errors, field, ERROR_TYPE_NOT_POPULATED);\n\n\t\treturn false;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "boolean isSetAppliesDateTime();", "public boolean hasCreateDate() {\n return fieldSetFlags()[2];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATE_SEC:\n return isSetDateSec();\n case TRADE_ACCOUNT_ID:\n return isSetTradeAccountId();\n case SLED_CONTRACT_ID:\n return isSetSledContractId();\n case START_DATE_TIMESTAMP_MS:\n return isSetStartDateTimestampMs();\n case END_DATE_TIMESTAMP_MS:\n return isSetEndDateTimestampMs();\n }\n throw new IllegalStateException();\n }", "public boolean isSetInsertDate() {\n return this.insertDate != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEFORE:\n return isSetBefore();\n case AFTER:\n return isSetAfter();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEG_TIME:\n return isSetBegTime();\n case END_TIME:\n return isSetEndTime();\n case DATE:\n return isSetDate();\n case OFFICE:\n return isSetOffice();\n case PLAN:\n return isSetPlan();\n case TICKETS:\n return isSetTickets();\n case AVAILABLE:\n return isSetAvailable();\n }\n throw new IllegalStateException();\n }", "public boolean isSetTransactionPostedDate() {\r\n return transactionPostedDate != null;\r\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetCreatetime() {\n return this.createtime != null;\n }", "private boolean hasSetToAndFromDates() {\r\n return (this.fromDateString != null) && (this.toDateString != null);\r\n }", "boolean hasSettlementDate();", "public boolean isCreateDateInitialized() {\n return createDate_is_initialized; \n }", "public boolean isSetCompelteDttm() {\n return this.compelteDttm != null;\n }", "public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TICKET_VALUE:\n return isSetTicketValue();\n }\n throw new IllegalStateException();\n }", "public Boolean validarFecha(LocalDate fechaIngresada);", "public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }", "@JsonIgnore\r\n public boolean hasSetReleaseDate() {\r\n return hasSetReleaseDate;\r\n }", "boolean hasDateTime();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean hasEndDate() {\n return fieldSetFlags()[2];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case E:\n return isSetE();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case E:\n return isSetE();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case E:\n return isSetE();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case E:\n return isSetE();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case E:\n return isSetE();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case E:\n return isSetE();\n }\n throw new IllegalStateException();\n }" ]
[ "0.8226306", "0.76606476", "0.76553684", "0.76173896", "0.7524226", "0.75206524", "0.749542", "0.749542", "0.7393787", "0.73785883", "0.731423", "0.7239801", "0.7217926", "0.7217926", "0.71824497", "0.7134272", "0.70441926", "0.7038473", "0.70249563", "0.70215034", "0.6988961", "0.6988961", "0.69668174", "0.6963044", "0.692024", "0.689843", "0.68926126", "0.68573517", "0.68556535", "0.68377805", "0.67984927", "0.678408", "0.6783517", "0.6765829", "0.6732997", "0.6697375", "0.66804904", "0.6678254", "0.66511595", "0.6611368", "0.6606817", "0.65669173", "0.65666395", "0.65652704", "0.65569776", "0.6556828", "0.6546399", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65430784", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.65402365", "0.6500055", "0.64989716", "0.64989716", "0.64989716", "0.64989716", "0.64989716", "0.64989716" ]
0.80044925
1
Returns true if field office is set (has been assigned a value) and false otherwise
public boolean isSetOffice() { return this.office != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetRegisteredOfficeCity();", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "boolean isSetBranchOfficeList();", "public boolean isSetOe() {\n\t\t\treturn this.oe != null;\n\t\t}", "public boolean isSetUserEmployeeDOS() {\n return this.userEmployeeDOS != null;\n }", "public boolean isSetPe() {\n\t\t\treturn this.pe != null;\n\t\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n case USER_EMPLOYEE_DOS:\n return isSetUserEmployeeDOS();\n }\n throw new java.lang.IllegalStateException();\n }", "@Override\n public boolean isSet() {\n return loci != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case POSITION_ID:\n return isSetPositionId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ACTIVATION_CODEE:\n return isSetActivationCodee();\n case BIND_EMAIL_SOURCE:\n return isSetBindEmailSource();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }", "public boolean isSetStaffType() {\n return this.staffType != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEG_TIME:\n return isSetBegTime();\n case END_TIME:\n return isSetEndTime();\n case DATE:\n return isSetDate();\n case OFFICE:\n return isSetOffice();\n case PLAN:\n return isSetPlan();\n case TICKETS:\n return isSetTickets();\n case AVAILABLE:\n return isSetAvailable();\n }\n throw new IllegalStateException();\n }", "public boolean isSetOpe() {\n\t\treturn this.setOpe;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DEST_APP:\n return is_set_destApp();\n case DEST_PELLET:\n return is_set_destPellet();\n case DATA:\n return is_set_data();\n }\n throw new IllegalStateException();\n }", "public boolean isSetStaffId() {\n return this.staffId != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_NAME_PARTICAL:\n return isSetCompanyNamePartical();\n case COMPANY_USER_NAME_PARTICAL:\n return isSetCompanyUserNamePartical();\n case ORDER_TYPE:\n return isSetOrderType();\n case STATE:\n return isSetState();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetIsStaff() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISSTAFF_ISSET_ID);\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INNER_STR:\n return isSetInner_str();\n case INNER_DOUBLE:\n return isSetInner_double();\n }\n throw new IllegalStateException();\n }", "public boolean isSet() {\n\t\treturn false;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetBirthplace()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BIRTHPLACE$24) != 0;\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case E:\n return isSetE();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case COMPANY_ID:\n return isSetCompanyId();\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case COMPANY_ID:\n return isSetCompanyId();\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetOri() {\n return this.ori != null;\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case COMPANY_ID:\n return isSetCompanyId();\n case PAGE_NUMBER:\n return isSetPageNumber();\n case PAGE_SIZE:\n return isSetPageSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetEmployment_type() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYMENT_TYPE_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TICKET_VALUE:\n return isSetTicketValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case CUSTOM_VALUES:\n return isSetCustomValues();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n case COMPANY_ID:\n return isSetCompanyId();\n case TIMESPAN:\n return isSetTimespan();\n case PAGE_NUM:\n return isSetPageNum();\n case PAGE_SIZE:\n return isSetPageSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n case PESO:\n return isSetPeso();\n case DIRECIONADO:\n return isSetDirecionado();\n case DESCRICAO:\n return isSetDescricao();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n case PESO:\n return isSetPeso();\n case DIRECIONADO:\n return isSetDirecionado();\n case DESCRICAO:\n return isSetDescricao();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case RECOM_ID:\n return isSetRecomId();\n }\n throw new java.lang.IllegalStateException();\n }" ]
[ "0.7083172", "0.6959244", "0.6959244", "0.6702485", "0.65718925", "0.6523045", "0.65194607", "0.64426017", "0.6400348", "0.6343047", "0.6332348", "0.632604", "0.6316332", "0.6316332", "0.6316332", "0.6304401", "0.6289989", "0.62857324", "0.6258531", "0.62519485", "0.62212574", "0.6216395", "0.6207828", "0.6196174", "0.6196174", "0.61955935", "0.61834764", "0.61734897", "0.6166281", "0.6164039", "0.61429566", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.6140497", "0.61304265", "0.6117727", "0.6117727", "0.6116324", "0.6116324", "0.6116324", "0.6116324", "0.6116324", "0.6116324", "0.6116324", "0.6115057", "0.6115057", "0.6111713", "0.61078274", "0.61062783", "0.6102582", "0.61006296", "0.60931057", "0.6089514", "0.6076527", "0.6073994", "0.6073994", "0.60724896", "0.60724896", "0.60724896", "0.60724896", "0.60724896", "0.60718405", "0.60715216" ]
0.8297056
0
Returns true if field plan is set (has been assigned a value) and false otherwise
public boolean isSetPlan() { return EncodingUtils.testBit(__isset_bitfield, __PLAN_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetResourcePlanName() {\n return this.resourcePlanName != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEG_TIME:\n return isSetBegTime();\n case END_TIME:\n return isSetEndTime();\n case DATE:\n return isSetDate();\n case OFFICE:\n return isSetOffice();\n case PLAN:\n return isSetPlan();\n case TICKETS:\n return isSetTickets();\n case AVAILABLE:\n return isSetAvailable();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case RESOURCE_PLAN_NAME:\n return isSetResourcePlanName();\n case POOL_PATH:\n return isSetPoolPath();\n case ALLOC_FRACTION:\n return isSetAllocFraction();\n case QUERY_PARALLELISM:\n return isSetQueryParallelism();\n case SCHEDULING_POLICY:\n return isSetSchedulingPolicy();\n case IS_SET_SCHEDULING_POLICY:\n return isSetIsSetSchedulingPolicy();\n case NS:\n return isSetNs();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case P_ID:\n return isSetPId();\n case PRE_REPAY_AMT:\n return isSetPreRepayAmt();\n case FINE_RATES:\n return isSetFineRates();\n case FINE:\n return isSetFine();\n case IS_ARREARS:\n return isSetIsArrears();\n case IS_REBACK_INTEREST:\n return isSetIsRebackInterest();\n case HAS_OTHER_LOAN:\n return isSetHasOtherLoan();\n case REASON:\n return isSetReason();\n case REPAY_DATE:\n return isSetRepayDate();\n case SURPLUS:\n return isSetSurplus();\n case LOAN_ID:\n return isSetLoanId();\n case REQUEST_STATUS:\n return isSetRequestStatus();\n case REQUEST_DTTM:\n return isSetRequestDttm();\n case COMPELTE_DTTM:\n return isSetCompelteDttm();\n case PRE_REPAY_ID:\n return isSetPreRepayId();\n case STATUS:\n return isSetStatus();\n case PLAN_REPAY_LOAN_DT:\n return isSetPlanRepayLoanDt();\n case PROJECT_ID:\n return isSetProjectId();\n case LOAN_PLAN_ID:\n return isSetLoanPlanId();\n case SHOULD_PREPAYMENT_FEE:\n return isSetShouldPrepaymentFee();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATER_ID:\n return isSetCreaterId();\n case UPDATE_ID:\n return isSetUpdateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DEST_APP:\n return is_set_destApp();\n case DEST_PELLET:\n return is_set_destPellet();\n case DATA:\n return is_set_data();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT:\n return isSetAccount();\n case PASSWORD:\n return isSetPassword();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT:\n return isSetAccount();\n case PASSWORD:\n return isSetPassword();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT:\n return isSetAccount();\n }\n throw new IllegalStateException();\n }", "public boolean isSetLoanPlanId() {\n return EncodingUtils.testBit(__isset_bitfield, __LOANPLANID_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case KAU:\n return isSetKau();\n case RIU:\n return isSetRiu();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TEAM_ID:\n return isSetTeamId();\n case TEAM_NAME:\n return isSetTeamName();\n case TEAM_PRICE:\n return isSetTeamPrice();\n case SOURCE:\n return isSetSource();\n case TEAM_INVENTORY:\n return isSetTeamInventory();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TICKET_VALUE:\n return isSetTicketValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_SIZE:\n return isSetPageSize();\n case PAGE_NO:\n return isSetPageNo();\n case UP_PAGE:\n return isSetUpPage();\n case NEXT_PAGE:\n return isSetNextPage();\n case TOTAL_COUNT:\n return isSetTotalCount();\n case TOTAL_PAGE:\n return isSetTotalPage();\n case PAGE_URL:\n return isSetPageUrl();\n case PARAMS:\n return isSetParams();\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PATH:\n return isSetPath();\n case DST_PATH:\n return isSetDstPath();\n case OPTIONS:\n return isSetOptions();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case REQUESTING_USER:\n return isSetRequesting_user();\n case IS_ADMIN_OP:\n return isSetIs_admin_op();\n case IS_SHOW_CURRENT_ROLES:\n return isSetIs_show_current_roles();\n case GRANT_GROUP:\n return isSetGrant_group();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case DESCRIPTION:\n return isSetDescription();\n case SOURCE_CHARGED:\n return isSetSourceCharged();\n case TARGET_DEPOSIT:\n return isSetTargetDeposit();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case AM_HANDLE:\n return isSetAm_handle();\n case USER:\n return isSetUser();\n case QUEUE:\n return isSetQueue();\n case RESOURCES:\n return isSetResources();\n case GANG:\n return isSetGang();\n case RESERVATION_ID:\n return isSetReservation_id();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }" ]
[ "0.6889818", "0.6889818", "0.65956515", "0.659291", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6507784", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.6488869", "0.64395005", "0.63980484", "0.6394341", "0.6371309", "0.6369864", "0.6369864", "0.63457674", "0.63433313", "0.63433313", "0.6340615", "0.634", "0.632972", "0.63162667", "0.63162667", "0.63065124", "0.63018644", "0.6288307", "0.6287299", "0.62868094", "0.62812424", "0.6277678", "0.6277678", "0.6277678", "0.6277678", "0.6277678", "0.6277678", "0.62747544", "0.6254657", "0.6253908", "0.62528056", "0.62493104", "0.62493104", "0.6236503", "0.62263", "0.6221292", "0.62205505", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304", "0.6219304" ]
0.7440855
0
Returns true if field tickets is set (has been assigned a value) and false otherwise
public boolean isSetTickets() { return this.tickets != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetTicketValue() {\n return this.ticketValue != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TICKET_VALUE:\n return isSetTicketValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetUseTimings()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(USETIMINGS$22) != null;\n }\n }", "public boolean isSetTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPE$32) != 0;\r\n }\r\n }", "public boolean isTicketable();", "public boolean isSetTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPD$34) != 0;\r\n }\r\n }", "public boolean isSet() {\n\t\treturn false;\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n }\n throw new IllegalStateException();\n }", "public boolean isSet() {\r\n\t\tboolean isSet = false;\r\n\r\n\t\tif (this.time != null && this.id != null && this.price != null && this.quantity != null && this.type != null) {\r\n\t\t\tisSet = true;\r\n\r\n\t\t}\r\n\r\n\t\treturn isSet;\r\n\t}", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "public boolean isSetT() {\n return this.t != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEG_TIME:\n return isSetBegTime();\n case END_TIME:\n return isSetEndTime();\n case DATE:\n return isSetDate();\n case OFFICE:\n return isSetOffice();\n case PLAN:\n return isSetPlan();\n case TICKETS:\n return isSetTickets();\n case AVAILABLE:\n return isSetAvailable();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSetTeamPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TEAMPRICE_ISSET_ID);\n }", "boolean hasField3();", "public boolean isSetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPG$30) != 0;\r\n }\r\n }", "public boolean isSet() {\n synchronized (lock) {\n return set;\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }", "public final boolean isValueLockedSetted() {\n\t\treturn engine.isPropertySetted(Properties.VALUE_LOCKED);\n\t}", "public boolean isSetTfoot()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TFOOT$8) != 0;\n }\n }", "public boolean isSetUnassignedTablets() {\n return __isset_bit_vector.get(__UNASSIGNEDTABLETS_ISSET_ID);\n }", "public boolean isSetWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WASNOTGIVEN$4) != 0;\n }\n }", "public boolean isSetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RELEASE$4) != 0;\r\n }\r\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSetThead()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(THEAD$6) != 0;\n }\n }", "boolean isSetIssued();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TEAM_ID:\n return isSetTeamId();\n case TEAM_NAME:\n return isSetTeamName();\n case TEAM_PRICE:\n return isSetTeamPrice();\n case SOURCE:\n return isSetSource();\n case TEAM_INVENTORY:\n return isSetTeamInventory();\n }\n throw new IllegalStateException();\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isInstantTicket() {\n return instantTicket;\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case T:\n return isSetT();\n }\n throw new IllegalStateException();\n }", "public void set()\r\n {\r\n isSet = true;\r\n }", "public boolean inProgress(){return (this.currentTicket != null);}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STAMPEDE_ID:\n return isSetStampedeId();\n case RUN_ID:\n return isSetRunId();\n case TOTAL_RULES_COUNT:\n return isSetTotalRulesCount();\n case RULES_STARTED_COUNT:\n return isSetRulesStartedCount();\n case RULES_FINISHED_COUNT:\n return isSetRulesFinishedCount();\n case RULES_SUCCESS_COUNT:\n return isSetRulesSuccessCount();\n case RULES_FAILURE_COUNT:\n return isSetRulesFailureCount();\n case CACHE_HITS_COUNT:\n return isSetCacheHitsCount();\n case CACHE_MISSES_COUNT:\n return isSetCacheMissesCount();\n case CACHE_IGNORES_COUNT:\n return isSetCacheIgnoresCount();\n case CACHE_ERRORS_COUNT:\n return isSetCacheErrorsCount();\n case CACHE_LOCAL_KEY_UNCHANGED_HITS_COUNT:\n return isSetCacheLocalKeyUnchangedHitsCount();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CTP_TRADE_ID:\n return isSetCtpTradeId();\n case ESUNNY3_TRADE_ID:\n return isSetEsunny3TradeId();\n case ESUNNY9_TRADE_ID:\n return isSetEsunny9TradeId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "boolean hasField0();", "public boolean isSetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WHOLETBL$2) != 0;\n }\n }", "public boolean isSetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ZYHTVO$0) != 0;\n }\n }", "public boolean teamsFilled() {\n\t\ttry {\n\t\t\tif (getTeams().last() == true) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSetQe() {\n return this.qe != null;\n }", "boolean hasField1();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }", "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "public boolean isSetNumRFElements() {\n return (this.numRFElements != null ? this.numRFElements.isSetValue() : false);\n }", "boolean isSetValue();", "boolean isSetValue();", "public boolean isSetDwellTime() {\n return (this.dwellTime != null ? this.dwellTime.isSetValue() : false);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "boolean hasField2();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case FAILURE:\n return isSetFailure();\n case RESULTS:\n return isSetResults();\n case REQUESTS:\n return isSetRequests();\n }\n throw new IllegalStateException();\n }", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "public boolean isSetExpTime() {\n return this.ExpTime != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean updateTicket(Ticket ticket) {\n\t\treturn false;\n\t}", "public boolean isSet() {\n\t\treturn is_set_;\n\t}", "boolean hasFieldId();", "public boolean isSetKeff() {\r\n return isSetAttribute(MEConstants.keff);\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSetTraderID() {\n return this.traderID != null;\n }", "public boolean isSetTeamName() {\n return this.teamName != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSetMemo() {\n return this.memo != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case DO_NOT_CACHE:\n return isSetDo_not_cache();\n case QUEUES:\n return isSetQueues();\n case HANDLES:\n return isSetHandles();\n case RESERVATIONS:\n return isSetReservations();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ASK_PRICE:\n return isSetAskPrice();\n case BID_PRICE:\n return isSetBidPrice();\n case ASK_VOLUME:\n return isSetAskVolume();\n case BID_VOLUME:\n return isSetBidVolume();\n case REQUEST_ID:\n return isSetRequestID();\n case BUSINESS_UNIT:\n return isSetBusinessUnit();\n case ASK_OFFSET_FLAG:\n return isSetAskOffsetFlag();\n case BID_OFFSET_FLAG:\n return isSetBidOffsetFlag();\n case ASK_HEDGE_FLAG:\n return isSetAskHedgeFlag();\n case BID_HEDGE_FLAG:\n return isSetBidHedgeFlag();\n case QUOTE_LOCAL_ID:\n return isSetQuoteLocalID();\n case EXCHANGE_ID:\n return isSetExchangeID();\n case PARTICIPANT_ID:\n return isSetParticipantID();\n case CLIENT_ID:\n return isSetClientID();\n case EXCHANGE_INST_ID:\n return isSetExchangeInstID();\n case TRADER_ID:\n return isSetTraderID();\n case INSTALL_ID:\n return isSetInstallID();\n case NOTIFY_SEQUENCE:\n return isSetNotifySequence();\n case ORDER_SUBMIT_STATUS:\n return isSetOrderSubmitStatus();\n case TRADING_DAY:\n return isSetTradingDay();\n case SETTLEMENT_ID:\n return isSetSettlementID();\n case QUOTE_SYS_ID:\n return isSetQuoteSysID();\n case INSERT_DATE:\n return isSetInsertDate();\n case INSERT_TIME:\n return isSetInsertTime();\n case CANCEL_TIME:\n return isSetCancelTime();\n case QUOTE_STATUS:\n return isSetQuoteStatus();\n case CLEARING_PART_ID:\n return isSetClearingPartID();\n case SEQUENCE_NO:\n return isSetSequenceNo();\n case ASK_ORDER_SYS_ID:\n return isSetAskOrderSysID();\n case BID_ORDER_SYS_ID:\n return isSetBidOrderSysID();\n }\n throw new IllegalStateException();\n }", "public boolean isSetEntries() {\n return this.entries != null;\n }", "public boolean isSetCompelteDttm() {\n return this.compelteDttm != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "private static boolean checkTicketNum(int ticketNum) {\n\n return ticketNum > 0;\n }" ]
[ "0.76982546", "0.7018318", "0.6805247", "0.6805247", "0.62962216", "0.62909055", "0.6289383", "0.6276167", "0.6252516", "0.6234208", "0.6212362", "0.6189523", "0.6179279", "0.6169946", "0.61366564", "0.61261064", "0.6123028", "0.6103809", "0.6055596", "0.60435927", "0.60081476", "0.60081476", "0.6006237", "0.59963304", "0.59935206", "0.5975169", "0.5965513", "0.5963243", "0.5961997", "0.5926712", "0.5920887", "0.5910051", "0.5886788", "0.5883613", "0.58797324", "0.58783585", "0.58756566", "0.58724767", "0.5870089", "0.5865566", "0.58650506", "0.586287", "0.58565205", "0.5854041", "0.5843258", "0.58357066", "0.58335835", "0.5827249", "0.58272415", "0.5823212", "0.5811443", "0.5803203", "0.5803203", "0.57971704", "0.57942545", "0.5792795", "0.57873625", "0.5784419", "0.5783737", "0.57835746", "0.57821065", "0.57821065", "0.57765", "0.5770222", "0.576973", "0.57629937", "0.5760791", "0.57514757", "0.5746807", "0.57365113", "0.573558", "0.57351285", "0.573151", "0.57313395", "0.57246137", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5719168", "0.5717756" ]
0.7952388
0
Returns true if field available is set (has been assigned a value) and false otherwise
public boolean isSetAvailable() { return EncodingUtils.testBit(__isset_bitfield, __AVAILABLE_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case AM_HANDLE:\n return isSetAm_handle();\n case USER:\n return isSetUser();\n case QUEUE:\n return isSetQueue();\n case RESOURCES:\n return isSetResources();\n case GANG:\n return isSetGang();\n case RESERVATION_ID:\n return isSetReservation_id();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEG_TIME:\n return isSetBegTime();\n case END_TIME:\n return isSetEndTime();\n case DATE:\n return isSetDate();\n case OFFICE:\n return isSetOffice();\n case PLAN:\n return isSetPlan();\n case TICKETS:\n return isSetTickets();\n case AVAILABLE:\n return isSetAvailable();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EMAIL_ID:\n return isSetEmailId();\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case COUNTRY:\n return isSetCountry();\n case PHONE:\n return isSetPhone();\n case LAST_LOGGED_IN:\n return isSetLastLoggedIn();\n case ACTIVE:\n return isSetActive();\n case NEWSLETTER:\n return isSetNewsletter();\n case REGISTERED:\n return isSetRegistered();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_SIZE:\n return isSetPageSize();\n case PAGE_NO:\n return isSetPageNo();\n case UP_PAGE:\n return isSetUpPage();\n case NEXT_PAGE:\n return isSetNextPage();\n case TOTAL_COUNT:\n return isSetTotalCount();\n case TOTAL_PAGE:\n return isSetTotalPage();\n case PAGE_URL:\n return isSetPageUrl();\n case PARAMS:\n return isSetParams();\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PROCESS_NAME:\n return isSetProcessName();\n case PROCESS_COUNT:\n return isSetProcessCount();\n case U_ID:\n return isSetUId();\n case SLEEPING:\n return isSetSleeping();\n case FOREGROUND:\n return isSetForeground();\n case FOREGROUND_TIME:\n return isSetForegroundTime();\n case LAUNCH_COUNT:\n return isSetLaunchCount();\n case IMPORTANCE:\n return isSetImportance();\n case CRASH_COUNT:\n return isSetCrashCount();\n case LAST_START_SINCE_BOOT:\n return isSetLastStartSinceBoot();\n case LAST_START_TIMESTAMP:\n return isSetLastStartTimestamp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case DESCRIPTION:\n return isSetDescription();\n case SOURCE_CHARGED:\n return isSetSourceCharged();\n case TARGET_DEPOSIT:\n return isSetTargetDeposit();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ACTIVATION_CODEE:\n return isSetActivationCodee();\n case BIND_EMAIL_SOURCE:\n return isSetBindEmailSource();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEER_LIST:\n return isSetBeerList();\n case STATUS_CODE:\n return isSetStatusCode();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RESULT:\n return isSetResult();\n case SELLER_LIST:\n return isSetSellerList();\n case PAGINATION:\n return isSetPagination();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_INFO:\n return isSetUserInfo();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }" ]
[ "0.7781539", "0.7781539", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.76642966", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.7661297", "0.76304144", "0.76197594", "0.76058966", "0.7558461", "0.75429624", "0.7540188", "0.7525594", "0.7515479", "0.7513938", "0.7502067", "0.7502067", "0.7502067", "0.7502067", "0.7502067", "0.7502067", "0.7499632", "0.7497177", "0.74929076", "0.7489409", "0.7489409", "0.7483957", "0.74804634", "0.74791944", "0.7470515", "0.74702924", "0.7459047", "0.7455568", "0.74512446", "0.74484843", "0.7447606", "0.7446306", "0.74436945", "0.74436945", "0.74426913", "0.7441846", "0.74371004", "0.74371004", "0.74333507", "0.7432716", "0.7427999", "0.7425914", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033", "0.7424033" ]
0.0
-1
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case BEG_TIME: return isSetBegTime(); case END_TIME: return isSetEndTime(); case DATE: return isSetDate(); case OFFICE: return isSetOffice(); case PLAN: return isSetPlan(); case TICKETS: return isSetTickets(); case AVAILABLE: return isSetAvailable(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "boolean hasField0();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }", "boolean hasField1();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }" ]
[ "0.79060566", "0.79060566", "0.7833641", "0.78038526", "0.7793945", "0.77815473", "0.77815473", "0.77815473", "0.77815473", "0.7647787", "0.7548215", "0.75459546", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.7543348", "0.75251406", "0.75207883", "0.75207883", "0.7519157", "0.75180376", "0.75180376", "0.75180376", "0.75180376", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7517682", "0.7508436", "0.7479444", "0.74642724", "0.745146", "0.7447439", "0.7447439", "0.7433175", "0.74131316", "0.73949337", "0.739319", "0.7387528", "0.73828095", "0.73808086", "0.7375486", "0.73728704", "0.7358657", "0.73545486", "0.73483616", "0.73477113", "0.7346053", "0.7346053", "0.7344913", "0.7338774", "0.7333994", "0.7333421", "0.7325606", "0.732516", "0.7320973", "0.732003", "0.7319613", "0.73103184", "0.73103184", "0.73103184", "0.73103184", "0.73103184" ]
0.0
-1
check for required fields alas, we cannot check 'begTime' because it's a primitive and you chose the nonbeans generator. alas, we cannot check 'endTime' because it's a primitive and you chose the nonbeans generator. alas, we cannot check 'date' because it's a primitive and you chose the nonbeans generator. alas, we cannot check 'available' because it's a primitive and you chose the nonbeans generator. check for substruct validity
public void validate() throws org.apache.thrift.TException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void validateTime()\n {\n List<Object> collisions = validateCollisions();\n\n for (Object object : collisions)\n {\n if (DietTreatmentBO.class.isAssignableFrom(object.getClass()))\n {\n _errors.add(String\n .format(\"Die Diätbehandlung '%s' überschneidet sich mit der Diätbehandlung '%s'\",\n _dietTreatment.getDisplayText(),\n ((DietTreatmentBO) object).getName()));\n }\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "protected abstract List<TemporalField> validFields();", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validateSchedular() {\n boolean startDateCheck = false, cronTimeCheck = false, dateFormatCheck = false;\n /*\n Schedular Properties\n */\n\n System.out.println(\"Date: \" + startDate.getValue());\n if (startDate.getValue() != null) {\n System.out.println(\"Date: \" + startDate.getValue());\n startDateCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Start Date should not be empty.\\n\");\n }\n\n if (!cronTime.getText().isEmpty()) {\n cronTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Cron Time should not be empty.\\n\");\n }\n// if (!dateFormat.getText().isEmpty()) {\n// dateFormatCheck = true;\n// } else {\n// execptionData.append((++exceptionCount) + \". Date Format should not be empty.\\n\");\n// }\n\n if (startDateCheck == true && cronTimeCheck == true) {\n schedularCheck = true;\n } else {\n schedularCheck = false;\n startDateCheck = false;\n cronTimeCheck = false;\n dateFormatCheck = false;\n }\n\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validate the following here instead of from within an attribute because\n // we need to make sure that both values are set before we perform the test.\n\n if (endDate != null)\n {\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, whenever comparing jbo\n // Date objects, we have to convert to long values.\n \n long endDateLong = endDate.dateValue().getTime();\n\n // We can assume we have a Start Date or the validation of this \n // value would have thrown an exception.\n \n if (endDateLong < startDate.dateValue().getTime())\n {\n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_END_BAD\"); // Message name\n } \n } \n \n }", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "@Test\r\n void B6007089_test_SemeterMustNotBeNull() {\r\n System.out.println(\"\\n=======================================\");\r\n System.out.println(\"\\nTest Time Must Not Be Null\");\r\n System.out.println(\"\\n=======================================\\n\");\r\n Section section = new Section();\r\n section.setSec(\"1\");\r\n section.setTime(null);\r\n\r\n\r\n Set<ConstraintViolation<Section>> result = validator.validate(section);\r\n assertEquals(1, result.size());\r\n\r\n ConstraintViolation<Section> v = result.iterator().next();\r\n assertEquals(\"must not be null\", v.getMessage());\r\n assertEquals(\"time\", v.getPropertyPath().toString());\r\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "private void fillMandatoryFields() {\n\n }", "public boolean isValid(){\n\t\tif (bigstart != null && bigend != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected abstract List<TemporalField> invalidFields();", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private boolean validateFields(String pickupLocation, String destination, Date time, int noPassengers, ArrayList<String> notes){\n int errors = 0;\n\n if(!Validation.isValidNoPassengers(noPassengers)){\n errors++;\n noPassengersInputContainer.setError(getString(R.string.no_passengers_error));\n }\n\n if(pickupLocation.length() < 3 || pickupLocation.trim().length() == 0){\n errors++;\n pickupLocationInputContainer.setError(getString(R.string.pickup_location_error));\n }\n\n if(destination.length() < 3 || pickupLocation.trim().length() == 0){\n errors++;\n destinationInputContainer.setError(getString(R.string.destination_error));\n }\n\n if(!Validation.isValidBookingTime(time)){\n errors++;\n timeInputContainer.setError(getString(R.string.booking_time_error));\n }\n\n\n return errors == 0;\n }", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "public void validateStartDateAndTime(String date){\n setStartDateAndTimeValid(validateDateAndTime(date));\n }", "public void checkInitTimes(int startTime, int endTime, int bedTime) throws TimeEntryException\n {\n // check for too early start time\n if (startTime < DEFAULT_HOURS.START_TIME.getValue())\n {\n throw new TimeEntryException(ERROR_MESSAGES.START_TIME_TOO_EARLY.getValue());\n }\n\n // check for too late start time\n if (startTime > DEFAULT_HOURS.END_TIME.getValue() + 24)\n {\n throw new TimeEntryException(ERROR_MESSAGES.START_TIME_TOO_LATE.getValue());\n }\n\n // check if end time is too early\n if (endTime + 24 < DEFAULT_HOURS.START_TIME.getValue())\n {\n throw new TimeEntryException(ERROR_MESSAGES.END_TIME_TOO_EARLY.getValue());\n }\n // check if end time is too late\n if (endTime > DEFAULT_HOURS.END_TIME.getValue())\n {\n throw new TimeEntryException(ERROR_MESSAGES.END_TIME_TOO_LATE.getValue());\n }\n\n // check if bed time is too early\n if (bedTime < startTime)\n {\n throw new TimeEntryException(ERROR_MESSAGES.BED_TIME_BEFORE_START_TIME.getValue());\n }\n // check if bed time is too late\n if (bedTime > endTime + 24)\n {\n throw new TimeEntryException(ERROR_MESSAGES.BED_TIME_AFTER_END_TIME.getValue());\n }\n }", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }", "@Override\n\tpublic void validate(Component arg0, Object arg1) throws WrongValueException {\n\t\tif (arg0 instanceof Timebox) {\n\n\t\t\t// no need for checking ?\n\t\t\tif (((Timebox) arg0).isDisabled())\n\t\t\t\treturn;\n\t\t\t\n\t\t\tif (arg1 == null)\n\t\t\t\tthrow new WrongValueException(arg0, \"Campo obligatorio\");\n\t\t\telse{\n\t\t\t\tCalendar validaMinutos = Calendar.getInstance();\n\t\t\t\tvalidaMinutos.setTime((Date)arg1);\n\t\t\t\tint totalMinutos = ((validaMinutos.get(Calendar.HOUR_OF_DAY)*60) + validaMinutos.get(Calendar.MINUTE));\n\t\t\t\t\n\t\t\t\tif(totalMinutos < 15)\n\t\t\t\t\tthrow new WrongValueException(arg0, \"Duración mínima de recesos es de 15 minutos\");\n\t\t\t\telse\n\t\t\t\t\tif(totalMinutos % 5 != 0)\n\t\t\t\t\t\tthrow new WrongValueException(arg0, \"Tiempo no permitido, debe ser múltiplo de 5 minutos\");\n\t\t\t}\n\t\t}\n\t}", "private void getValidity(){\n String start_time = spin_start.getSelectedItem().toString();\n String end_time = spin_end.getSelectedItem().toString();\n String day = spin_day.getSelectedItem().toString();\n\n String[] start = start_time.split(\":\");\n String[] end = end_time.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n boolean valid = true;\n\n if(hourStart == hourEnd && minuteStart >= minuteEnd)\n valid = false;\n if(hourStart > hourEnd)\n valid = false;\n if(valid) {\n valid = isAvailabilityExist(day, start_time, end_time);\n if (valid) {\n valid = isAppointmentExist(day, start_time, end_time);\n if (valid) {\n createAppointment(day, start_time, end_time);\n } else\n Toast.makeText(this, \"There is already an appointment at the time you try to use.\", Toast.LENGTH_LONG).show();\n\n } else\n Toast.makeText(this, \"Please make sure you select an appointment \" +\n \"in the availability of the service provider.\", Toast.LENGTH_LONG).show();\n\n }else\n Toast.makeText(this, \"The time you try to get an appointment is not valid.\", Toast.LENGTH_LONG).show();\n }", "private void validate() throws FlightCreationException {\n validateNotNull(\"number\", number);\n validateNotNull(\"company name\", companyName);\n validateNotNull(\"aircraft\", aircraft);\n validateNotNull(\"pilot\", pilot);\n validateNotNull(\"origin\", origin);\n validateNotNull(\"destination\", destination);\n validateNotNull(\"departure time\", scheduledDepartureTime);\n\n if (scheduledDepartureTime.isPast()) {\n throw new FlightCreationException(\"The departure time cannot be in the past\");\n }\n\n if (origin.equals(destination)) {\n throw new FlightCreationException(\"The origin and destination cannot be the same\");\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private boolean validParams(double dt, double runTime, int startDay, double initPop, String stage, \r\n\t\t\t\t\t\t\t\tdouble gtMultiplier, double harvestLag, double critcalT, double daylightHours) {\r\n\t\tif (dt <= 0 || runTime < 0 || initPop < 0) // positive values (dt > 0)\r\n\t\t\treturn false;\r\n\t\tif (gtMultiplier <= 0 || harvestLag < 0 || harvestLag > 365 || daylightHours < 0 || daylightHours > 24)\r\n\t\t\treturn false;\r\n\t\tfor (int j = 0; j < names.length; j ++) { // stage must be a valid swd lifestage\r\n\t\t\tif (stage.equals(names[j]))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "private void validateData() {\n }", "void check() throws IllegalStateException {\n if (\n title == null ||\n release == null ||\n duration == 0 ||\n synopsis == null ||\n genre == null ||\n cast == null\n )\n throw new IllegalStateException(\"incomplete type\");\n }", "public void validate() throws org.apache.thrift.TException {\n if (statusCode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statusCode' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private static void checkFormat(String str) {\n if (str.length() != 8)\n throw new IllegalArgumentException(\"length has too be 8\");\n try {\n Integer.parseInt(str.substring(0,2)); //Hours\n Integer.parseInt(str.substring(3,5)); //Minutes\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"These numbers are wrong\");\n }\n if (str.charAt(2) != ':') {\n throw new IllegalArgumentException(\"requires colon between times\");\n }\n if (str.charAt(5) != ' ') {\n throw new IllegalArgumentException(\"requires space between time and period\");\n }\n String mStr = str.substring(6);\n if (!mStr.equals(\"PM\") && !mStr.equals(\"AM\")) {\n throw new IllegalArgumentException(\"Must be AM or PM\");\n }\n }", "public boolean validateTimes() {\n if (!allDay) {\n // Convert the time strings to ints\n int startTimeInt = parseTime(startTime);\n int endTimeInt = parseTime(endTime);\n\n if (startTimeInt > endTimeInt) {\n return false;\n }\n }\n return true;\n }", "public void checkFields(){\n }", "@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }", "private boolean validateFields() {\n\t\tList<String> errorMsg = new ArrayList<>();\n\n\t\tif (aliasField.getText().equals(\"\"))\n\t\t\terrorMsg.add(\"Alias cannot be left empty.\\n\");\n\n\t\tif (carComboBox.getValue() == null)\n\t\t\terrorMsg.add(\"A car should be assigned to the trip.\\n\");\n\n\t\tif (routeComboBox.getValue() == null)\n\t\t\terrorMsg.add(\"A route should be assigned to the trip.\\n\");\n\n\t\tfor (StopPoint stopPoint : stopPoints) {\n\t\t\tif (stopPoint.getTime() == null || stopPoint.getTime().equals(\"\"))\n\t\t\t\terrorMsg.add(\"You need to set an arriving time for '\" + stopPoint.toString() + \"'.\\n\");\n\t\t}\n\n\t\tif (endDatePicker.getValue() != null && startDatePicker.getValue() != null)\n\t\t{\n\t\t\tif (startDatePicker.getValue().isBefore(LocalDate.now())) {\n\t\t\t\terrorMsg.add(\"Trip start date should be after current date.\\n\");\n\t\t\t} else if (endDatePicker.getValue().isBefore(startDatePicker.getValue())) {\n\t\t\t\terrorMsg.add(\"Trip end date should be after start date.\\n\");\n\t\t\t} else {\n\t\t\t\tSet<DayOfWeek> recurrence = RecurrenceUtility.parseBitmaskToSet(getRecurrence());\n\t\t\t\tboolean isValidRecurrence = false;\n\t\t\t\tfor (LocalDate now = startDatePicker.getValue(); !now.isAfter(endDatePicker.getValue()); now = now.plusDays(1)) {\n\t\t\t\t\tif (recurrence.contains(now.getDayOfWeek()))\n\t\t\t\t\t\tisValidRecurrence = true;\n\t\t\t\t}\n\t\t\t\tif (!isValidRecurrence) {\n\t\t\t\t\terrorMsg.add(\"No recurrent day exists between trip start date and end date.\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\terrorMsg.add(\"Trip starts date or/and end date is invalid.\\n\");\n\t\t}\n\n\t\t// consistency check\n\t\t// WOF & registration cannot be expired before the end date of recurring trip\n\t\tCar car = carComboBox.getValue();\n\t\tif (endDatePicker.getValue() != null && startDatePicker.getValue() != null && car != null) {\n\t\t\tif (LocalDate.parse(car.getWof()).isBefore(endDatePicker.getValue()) ||\n\t\t\tLocalDate.parse(car.getRegistration()).isBefore(endDatePicker.getValue())) {\n\t\t\t\terrorMsg.add(String.format(\"The expiration date of a recurring trip cannot occur after the expiry date of car's WOF and registration.\\n\" +\n\t\t\t\t\t\t\t\t\"------------------------------------------------\\n\" +\n\t\t\t\t\t\t\t\t\"Details for car [%s]:\\n\" +\n\t\t\t\t\t\t\t\t\" a. WOF expire date is %s.\\n\" +\n\t\t\t\t\t\t\t\t\" b. Registration expire date is %s.\\n\" +\n\t\t\t\t\t\t\t\t\"------------------------------------------------\\n\",\n\t\t\t\t\t\tcar.getPlate(), car.getWof(), car.getRegistration()));\n\t\t\t}\n\t\t}\n\n\t\t// handle and show error message in dialog\n\t\tif (errorMsg.size() != 0) {\n\t\t\tStringBuilder errorString = new StringBuilder(\"Operation failed is caused by: \\n\");\n\t\t\tfor (Integer i = 1; i <= errorMsg.size(); i++) {\n\t\t\t\terrorString.append(i.toString());\n\t\t\t\terrorString.append(\". \");\n\t\t\t\terrorString.append(errorMsg.get(i - 1));\n\t\t\t}\n\t\t\tString headMsg = mode == Mode.ADD_MODE ? \"Failed to add the trip.\" : \"Failed to update the trip.\";\n\t\t\trss.showErrorDialog(headMsg, errorString.toString());\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "public void validate() throws org.apache.thrift.TException {\n if (stampedeId != null) {\n stampedeId.validate();\n }\n if (runId != null) {\n runId.validate();\n }\n }", "@Override\n public boolean isValid() {\n return dateFrom != null && dateTo != null;\n }", "public interface FieldValidator {\n static boolean validateStringIfPresent(Object o, int len) {\n return o == null || o instanceof String && !((String) o).isEmpty() && ((String) o).length() < len;\n }\n\n static boolean validateString(Object o, int len) {\n return !(o == null || !(o instanceof String) || ((String) o).isEmpty() || (((String) o).length() > len));\n }\n\n static boolean validateInteger(Object o) {\n if (o == null) {\n return false;\n }\n try {\n Integer.valueOf(o.toString());\n } catch (NumberFormatException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateDateWithFormat(Object o, DateTimeFormatter formatter, boolean allowedInPast) {\n if (o == null) {\n return false;\n }\n try {\n LocalDate date = LocalDate.parse(o.toString(), formatter);\n if (!allowedInPast) {\n return date.isAfter(LocalDate.now());\n }\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateJsonIfPresent(Object o) {\n return o == null || o instanceof JsonObject && !((JsonObject) o).isEmpty();\n }\n\n static boolean validateJson(Object o) {\n return !(o == null || !(o instanceof JsonObject) || ((JsonObject) o).isEmpty());\n }\n\n static boolean validateJsonArrayIfPresent(Object o) {\n return o == null || o instanceof JsonArray && !((JsonArray) o).isEmpty();\n }\n\n static boolean validateJsonArray(Object o) {\n return !(o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty());\n }\n\n static boolean validateDeepJsonArrayIfPresent(Object o, FieldValidator fv) {\n if (o == null) {\n return true;\n } else if (!(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n } else {\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n }\n return true;\n }\n\n static boolean validateDeepJsonArray(Object o, FieldValidator fv) {\n if (o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n }\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n return true;\n }\n\n static boolean validateBoolean(Object o) {\n return o != null && o instanceof Boolean;\n }\n\n static boolean validateBooleanIfPresent(Object o) {\n return o == null || o instanceof Boolean;\n }\n\n static boolean validateUuid(Object o) {\n try {\n UUID uuid = UUID.fromString((String) o);\n return true;\n } catch (IllegalArgumentException e) {\n return false;\n }\n }\n\n static boolean validateUuidIfPresent(String o) {\n return o == null || validateUuid(o);\n }\n\n boolean validateField(Object value);\n\n Pattern EMAIL_PATTERN =\n Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\");\n\n static boolean validateEmail(Object o) {\n Matcher matcher = EMAIL_PATTERN.matcher((String) o);\n return matcher.matches();\n }\n}", "private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }", "private boolean validateInputs(String iStart, String iEnd, String country, String type) {\n \thideErrors();\n \tint validStart;\n \tint validEnd;\n boolean valid = true;\n// \t//will not occur due to UI interface\n// if (isComboBoxEmpty(type)) {\n// \tvalid = false;\n// \tT3_type_error_Text.setVisible(true);\n// }\n if (isComboBoxEmpty(country)) {\n \tvalid = false;\n \tT3_country_error_Text.setVisible(true);\n }\n \t//checking if start year and end year are set\n if (isComboBoxEmpty(iStart)){\n //start is empty\n T3_start_year_error_Text.setVisible(true);\n valid = false;\n }\n if (isComboBoxEmpty(iEnd)){\n //end is empty\n T3_end_year_error_Text.setVisible(true);\n valid = false;\n }\n \tif (valid){\n //if years are not empty and valid perform further testing\n \t\t//fetch valid data range\n \tPair<String,String> validRange = DatasetHandler.getValidRange(type, country);\n \tvalidStart = Integer.parseInt(validRange.getKey());\n \tvalidEnd = Integer.parseInt(validRange.getValue());\n //check year range validity\n \t\tint start = Integer.parseInt(iStart);\n \t\tint end = Integer.parseInt(iEnd);\n \tif (start>=end) {\n \t\tT3_range_error_Text.setText(\"Start year should be < end year\");\n \t\tT3_range_error_Text.setVisible(true);\n \t\tvalid=false;\n \t}\n// \t//will not occur due to UI interface\n// \telse if (start<validStart) {\n// \t\tT3_range_error_Text.setText(\"Start year should be >= \" + Integer.toString(validStart));\n// \t\tT3_range_error_Text.setVisible(true);\n// \t\tvalid=false;\n// \t}else if (end>validEnd) {\n// \t\tT3_range_error_Text.setText(\"End year should be <= \" + Integer.toString(validEnd));\n// \t\tT3_range_error_Text.setVisible(true);\n// \t\tvalid=false;\n// \t}\n \t}\n// \t//will not occur due to UI interface\n// \tif(isComboBoxEmpty(type)) {\n// \t\t//if type is not set\n// T3_type_error_Text.setVisible(true);\n// \t}\n \t\n if(isComboBoxEmpty(country)) {\n //if country is not set\n T3_country_error_Text.setVisible(true);\n }\n \treturn valid;\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "@Test\r\n void B6007089_test_SecMustNotBeNull() {\r\n System.out.println(\"\\n=======================================\");\r\n System.out.println(\"\\nTest Sec Must Not Be Null\");\r\n System.out.println(\"\\n=======================================\\n\");\r\n Section section = new Section();\r\n section.setSec(null);\r\n section.setTime(\"Tu13:00-15:00 B1231 -- We13:00-15:00 B1125\");\r\n\r\n\r\n Set<ConstraintViolation<Section>> result = validator.validate(section);\r\n assertEquals(1, result.size());\r\n\r\n ConstraintViolation<Section> v = result.iterator().next();\r\n assertEquals(\"must not be null\", v.getMessage());\r\n assertEquals(\"sec\", v.getPropertyPath().toString());\r\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "ImmutableList<SchemaOrgType> getTimeRequiredList();", "private void checkStructure() {\n for (DatabaseUpdateType updateType : DatabaseUpdateType.values()) {\n checkDatabaseStructure(updateType);\n }\n }", "private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "private boolean xmlGenerationRequired() {\r\n boolean xmlOutOfSync = false;\r\n BudgetSubAwardBean budgetSubAwardBean;\r\n for(int index = 0; index < data.size(); index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n if(budgetSubAwardBean.getXmlAcType()!=null || budgetSubAwardBean.getXmlUpdateTimestamp() == null) {\r\n xmlOutOfSync = true;\r\n break;\r\n }\r\n }\r\n \r\n return xmlOutOfSync;\r\n }", "private boolean checkValidity(String startTime, String endTime) {\n\t\tDateFormat formatter = null;\n\t\tformatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\tDate startDate = null;\n\t\tDate endDate = null;\n\t\ttry {\n\t\t\tstartDate = (Date)formatter.parse(startTime);\n\t\t\tendDate = (Date)formatter.parse(endTime);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tif(startDate.getTime() >= endDate.getTime())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateEndDateAndTime(String startDate, String endDate) {\n boolean isValid = false;\n if (!validateDateAndTime(startDate)) {\n isValid = validateDateAndTime(endDate); //End date can still be valid if start date isn't\n } else {\n if (validateDateAndTime(endDate)) {\n // If startDate is valid, then End date must be valid and occur after start date\n Calendar startCal = DateUtility.convertToDateObj(startDate);\n Calendar endCal = DateUtility.convertToDateObj(endDate);\n isValid = startCal.before(endCal);\n }\n }\n setEndDateAndTimeValid(isValid);\n }", "void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Date / Time later than today's date : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (date.after(now))\n\n StringTokenizer t = new StringTokenizer(dateTime, \"- :.\");\n int year = Integer.parseInt(t.nextToken());\n int month = Integer.parseInt(t.nextToken());\n int day = Integer.parseInt(t.nextToken());\n int hour = Integer.parseInt(t.nextToken());\n int minute = Integer.parseInt(t.nextToken());\n boolean isLeapYear = ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0));\n if (isLeapYear) daysOfMonth[1] += 1;\n if (year < 1850) {\n outputError(lineCount + \" - Fatal - \" +\n \"Year before 1850 : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (year < 1850)\n\n if (month > 12) {\n outputError(lineCount + \" - Fatal - \" +\n \"Month invalid ( > 12) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (month > 12)\n\n if (day > daysOfMonth[month-1]) {\n outputError(lineCount + \" - Fatal - \" +\n \"Day invalid ( > no of days in month) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (day > (daysOfMonth[month-1])\n\n if (hour > 23) {\n outputError(lineCount + \" - Fatal - \" +\n \"Hour invalid ( > 23) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (hour > 23)\n\n if (minute > 59) {\n outputError(lineCount + \" - Fatal - \" +\n \"Minute invalid ( > 59) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (minute > 59)\n\n }", "@Test\r\n public void testEndBeforeStartException() {\r\n boolean result = false;\r\n try {\r\n new TimeCell(\r\n LocalDateTime.now(),\r\n LocalDateTime.now().minusDays(1),\r\n LocalDateTime.now(),\r\n new Manager(\"James\"),\r\n new Worker(\"Fred\", TypeOfWork.ANY),\r\n TypeOfWork.ANY);\r\n } catch (ZeroLengthException ex) {\r\n result = false;\r\n } catch (EndBeforeStartException ex) {\r\n result = true;\r\n }\r\n assertTrue(result);\r\n }", "public boolean hasValidFromMillis() {\n return fieldSetFlags()[4];\n }", "private static void checkSchedulerProperties() throws IOException {\r\n\r\n Properties properties = new Properties();\r\n FileInputStream input = new FileInputStream(SCHEDULER_PROPERTIES_PATH);\r\n properties.load(input);\r\n\r\n if (MongoDB.getAll(Timeframe.class).isEmpty()) {\r\n\r\n int days = Integer\r\n .valueOf(properties.getProperty(\"timeframe.days\"));\r\n int timeSlots = Integer.valueOf(properties\r\n .getProperty(\"timeframe.timeSlots\"));\r\n int startHour = Integer.valueOf(properties\r\n .getProperty(\"timeframe.startHour\"));\r\n String[] weekdays = properties.getProperty(\"timeframe.weekdays\")\r\n .replace(\" \", \"\").split(\",\");\r\n\r\n Timeframe timeframe = new Timeframe(days, timeSlots, startHour,\r\n Arrays.asList(weekdays));\r\n MongoDB.store(timeframe);\r\n System.out.println(\"Created default timeframe.\");\r\n }\r\n\r\n if (MongoDB.getAll(Equipment.class).isEmpty()) {\r\n\r\n String[] items = properties.getProperty(\"equipment\")\r\n .replace(\" \", \"\").split(\",\");\r\n Equipment equipment = new Equipment(items);\r\n MongoDB.store(equipment);\r\n System.out.println(\"Created default equipment\");\r\n }\r\n }", "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "@Test\n\tpublic void testCheckForEmptyFields() {\n\t\t\n\t\t// Case 1: when all fields are present\n\t\tRequestData requestDataObj1 = new RequestData();\n\t\trequestDataObj1.setDomain(\"PBTV\");\n\t\trequestDataObj1.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj1.setSourceSystemName(\"CDI\");\n\t\tboolean expectedResponse1 = true;\n\t\tboolean response1 = tokenisationMainObj.checkForEmptyFields(requestDataObj1);\n\t\tassertEquals(response1, expectedResponse1);\n\n\t\t// Case 2: when any of them is empty\n\t\tRequestData requestDataObj2 = new RequestData();\n\t\trequestDataObj2.setDomain(\"PBTV\");\n\t\trequestDataObj2.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj2.setSourceSystemName(\"\");\n\t\tboolean expectedResponse2 = false;\n\t\tboolean response2 = tokenisationMainObj.checkForEmptyFields(requestDataObj2);\n\t\tassertEquals(response2, expectedResponse2);\n\t}", "@Test\n public void testValidateUpdateLifeTimeWithGoodDates() {\n updates.add(mockAssetView(\"endDate\", new Timestamp(20000).toString()));\n updates.add(mockAssetView(\"startDate\", new Timestamp(25000).toString()));\n defaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n verify(assetService).addError(eq(RuleProperty.END_DATE), anyString()); \n }", "private void validateInputParameters(){\n\n }", "@Override\n public void checkInputTime(Set<OpeningHoursDto> dto) {\n dto.forEach(hours -> {\n if (hours.getOpenTime().getHour() > hours.getCloseTime().getHour()) {\n throw new BadRequestException(ErrorMessage.CLOSE_TIME_LATE_THAN_OPEN_TIME);\n }\n if (hours.getBreakTime() != null) {\n if (hours.getBreakTime().getStartTime().getHour() < hours.getOpenTime().getHour()\n || hours.getBreakTime().getEndTime().getHour() > hours.getCloseTime().getHour()) {\n throw new BadRequestException(ErrorMessage.WRONG_BREAK_TIME);\n }\n }\n });\n }", "void birthDateValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setBirthdate(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }", "private void validationEmptyFieldsInWeatherCalender(WeatherCalender weatherCalender) {\n\t\tLocalDate dt = weatherCalender.getCalenderdate();\n\t\tString typCd = weatherCalender.getWeather().getWeatherTypeCd();\n\t\t\n\t\tif(dt == null || typCd == null) {\n\t\t\tthrow new EmptyFieldWeatherCalenderException(dt, typCd);\n\t\t}\n\t}", "private SimulationPropertiesDTO validateSimulationProperties(JSONObject simulationPropertiesConfig)\n throws InvalidConfigException {\n /**\n * checkAvailability() method performs the following checks\n * 1. has\n * 2. isNull\n * 3. isEmpty\n *\n * if checks are successful create simulationPropertiesDTO object\n * */\n try {\n if (!checkAvailability(simulationPropertiesConfig, EventSimulatorConstants.EVENT_SIMULATION_NAME)) {\n throw new InvalidConfigException(\"Simulation name is required for event simulation. Invalid \" +\n \"simulation properties configuration provided : \" + simulationPropertiesConfig.toString());\n }\n if (!checkAvailability(simulationPropertiesConfig, EventSimulatorConstants.SIMULATION_TIME_INTERVAL)) {\n throw new InvalidConfigException(\"Time interval is required for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME) +\n \"'. Invalid simulation properties configuration provided : \"\n + simulationPropertiesConfig.toString());\n }\n /**\n * a simulation must have the timestampStartTime specified or set to null\n * else throw an exception\n * if timestampStartTime is set to null it implies the current system time must be taken as the timestamp\n * start time\n * if null, set timestampStartTime to system current time\n * else if timestampStartTime is specified, and that value is positive use that value as least possible\n * timestamp value\n * */\n long timestampStartTime;\n if (simulationPropertiesConfig.has(EventSimulatorConstants.TIMESTAMP_START_TIME)) {\n if (simulationPropertiesConfig.isNull(EventSimulatorConstants.TIMESTAMP_START_TIME)) {\n timestampStartTime = System.currentTimeMillis();\n } else if (!simulationPropertiesConfig.getString(EventSimulatorConstants.TIMESTAMP_START_TIME)\n .isEmpty()) {\n timestampStartTime = simulationPropertiesConfig\n .getLong(EventSimulatorConstants.TIMESTAMP_START_TIME);\n if (timestampStartTime < 0) {\n throw new InvalidConfigException(\"TimestampStartTime must be a positive value for simulation \" +\n \"'\" + simulationPropertiesConfig.getString(EventSimulatorConstants\n .EVENT_SIMULATION_NAME) + \"'. Invalid simulation properties configuration provided : \"\n + simulationPropertiesConfig.toString());\n }\n } else {\n throw new InvalidConfigException(\"TimestampStartTime is required for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME)\n + \"'. Invalid simulation properties configuration provided : \"\n + simulationPropertiesConfig.toString());\n }\n } else {\n throw new InvalidConfigException(\"TimestampStartTime is required for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME)\n + \"'. Invalid simulation properties configuration provided : \" + simulationPropertiesConfig\n .toString());\n }\n /**\n * either the timestampEndTime or the number of events to be generated must be specified for simulation\n * initialize the timestampEndTime and noOfEventsRequire to -2 to indicate that the values have not been\n * retrieved from the simulation properties configuration\n * check whether the simulation has timestampEndTime, if so it must either be null or a non-empty value.\n * else throw an exception\n * else if timestampEndTime is null set timestampEndTime property as -1. it implies that there is no bound\n * for maximum timestamp possible for an event.\n * else if timestampEndTime is specified, use that as the maximum possible timestamp value\n * check whether the simulation properties configuration has noOfEventsRequired specified.\n * if so it must be set to null or specified\n * else throw an exception\n * if noOfEventRequired is null it implies that there is no limit on the number of events to be generated\n * else set the specified value to property 'noOfEventsRequired'\n * finally check whether both timestampEndTime and noOfEventsRequired is still -2, this implies that\n * neither of the properties have been specified, hence log a warning and set both properties to -1 to\n * imply that there is no restriction on timestampEnfTime or noOfEvents\n * the availability of properties timestampEndTime and noOfEventsRequired will not be tested using an\n * 'else-if' statement since its possible for user to require both properties\n * */\n long timestampEndTime = -2;\n int noOfEventsRequired = -2;\n if (simulationPropertiesConfig.has(EventSimulatorConstants.TIMESTAMP_END_TIME)) {\n if (simulationPropertiesConfig.isNull(EventSimulatorConstants.TIMESTAMP_END_TIME)) {\n timestampEndTime = -1;\n } else if (!simulationPropertiesConfig.getString(EventSimulatorConstants.TIMESTAMP_END_TIME)\n .isEmpty()) {\n timestampEndTime = simulationPropertiesConfig.getLong(EventSimulatorConstants.TIMESTAMP_END_TIME);\n if (timestampEndTime < 0) {\n throw new InvalidConfigException(\"TimestampEndTime must be a positive value for simulation \" +\n \"'\" + simulationPropertiesConfig.getString(EventSimulatorConstants\n .EVENT_SIMULATION_NAME) + \"'. Invalid simulation properties configuration provided : \"\n + simulationPropertiesConfig.toString());\n }\n } else {\n throw new InvalidConfigException(\"TimestampEndTime is required for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME) +\n \"'. TimestampEndTime must be either specified or set to null. Invalid simulation \" +\n \"properties configuration provided : \" + simulationPropertiesConfig.toString());\n }\n }\n if (simulationPropertiesConfig.has(EventSimulatorConstants.NUMBER_OF_EVENTS_REQUIRED)) {\n if (simulationPropertiesConfig.isNull(EventSimulatorConstants.NUMBER_OF_EVENTS_REQUIRED)) {\n noOfEventsRequired = -1;\n } else if (!simulationPropertiesConfig.getString(EventSimulatorConstants.NUMBER_OF_EVENTS_REQUIRED)\n .isEmpty()) {\n noOfEventsRequired = simulationPropertiesConfig\n .getInt(EventSimulatorConstants.NUMBER_OF_EVENTS_REQUIRED);\n if (noOfEventsRequired < 0) {\n throw new InvalidConfigException(\"Number of event to be generated for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME) +\n \"' must be a positive value. Invalid simulation configuration provided : \" +\n simulationPropertiesConfig.toString());\n }\n } else {\n throw new InvalidConfigException(\"Number of event to be generated for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME) + \"' \" +\n \"must be either specified or set to null. Invalid simulation configuration provided : \" +\n simulationPropertiesConfig.toString());\n }\n }\n /**\n * prior to checking whether the timestamp limits are valid, first check whether the timestampEndTime was\n * provided in the simulation configuration, if not assign it to -1 to imply that there is not\n * restriction on the maximum possible timestamp\n * */\n if (timestampEndTime == -2 && noOfEventsRequired == -2) {\n log.warn(\"Either the timestampEndTime or the number of event to be generated \" +\n \"must be either specified for simulation '\" + simulationPropertiesConfig.getString\n (EventSimulatorConstants.EVENT_SIMULATION_NAME) + \"'. TimestampEndTime and number of events \" +\n \"to be generated are set to -1 for simulation configuration : \" + simulationPropertiesConfig\n .toString());\n timestampEndTime = -1;\n noOfEventsRequired = -1;\n }\n if (timestampEndTime != -1 && timestampEndTime < timestampStartTime) {\n throw new InvalidConfigException(\"Either the timestampEndTime must be set to null \" +\n \"or the timestampStartTime must be less than or equal the timestampEndTime. Invalid \" +\n \"simulation properties configuration provided : \" + simulationPropertiesConfig.toString());\n }\n// create simulationPropertiesDTO object\n SimulationPropertiesDTO simulationPropertiesDTO = new SimulationPropertiesDTO();\n simulationPropertiesDTO.setSimulationName(simulationPropertiesConfig\n .getString(EventSimulatorConstants.EVENT_SIMULATION_NAME));\n simulationPropertiesDTO.setTimeInterval(simulationPropertiesConfig\n .getLong(EventSimulatorConstants.SIMULATION_TIME_INTERVAL));\n simulationPropertiesDTO.setTimestampStartTime(timestampStartTime);\n simulationPropertiesDTO.setTimestampEndTime(timestampEndTime);\n simulationPropertiesDTO.setNoOfEventsRequired(noOfEventsRequired);\n return simulationPropertiesDTO;\n } catch (JSONException e) {\n log.error(\"Error occurred when accessing simulation configuration for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME) +\n \"'. Invalid simulation properties configuration provided : \" +\n simulationPropertiesConfig.toString() + \". \",\n e);\n throw new InvalidConfigException(\"Error occurred when accessing simulation configuration for simulation '\" +\n simulationPropertiesConfig.getString(EventSimulatorConstants.EVENT_SIMULATION_NAME) + \"'. Invalid\" +\n \" simulation properties configuration provided : \" + simulationPropertiesConfig.toString() + \". \",\n e);\n }\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "void checkAndUpdateBoundary(Integer requiredChange);", "@Override\n protected Boolean isValidBuild() {\n return frontendFieldToBackendField.entrySet().stream().allMatch(entry -> {\n return (entry.getValue().getWorker() == null && !entry.getValue().getHasDome()) &&\n ((entry.getValue().getBlocks() == entry.getKey().getBlocks() - 1) && entry.getKey().getBlocks() <= 3 && !entry.getKey().getHasDome() ||\n (entry.getValue().getBlocks() <= 3 && entry.getKey().getHasDome() == true));\n });\n }", "@Test\r\n public void testZeroLengthException(){\r\n boolean result = false;\r\n try{\r\n new TimeCell(\r\n LocalDateTime.now(),\r\n LocalDateTime.now(),\r\n LocalDateTime.now(),\r\n new Manager(\"James\"), \r\n new Worker(\"Fred\", TypeOfWork.ANY) {},\r\n TypeOfWork.ANY);\r\n }catch(ZeroLengthException ex){\r\n result = true;\r\n }catch(EndBeforeStartException ex){\r\n result = false;\r\n }\r\n assertTrue(result);\r\n }", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "abstract void birthDateValidity();", "public abstract FieldReport validate(int fieldSequence, Object fieldValue);", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "public boolean DateValidation(String date, String startTime, String currentTime) {\n\n boolean state = false;\n\n //String x = dateChooser.getDate().toString();\n String Hyear = date.substring(24, 28); // get user input date\n String Hmonth = monthToCompare(date);\n String Hdate = date.substring(8, 10);\n String stHr = startTime.substring(0, 2);\n String stMin = startTime.substring(3, 5);\n\n int userYr, userMnth, userDate, userHour, userMin = 0;\n userYr = Integer.parseInt(Hyear); // conversion of user entered year to int\n userMnth = Integer.parseInt(Hmonth);\n userDate = Integer.parseInt(Hdate);\n userHour = Integer.parseInt(stHr);\n userMin = Integer.parseInt(stMin);\n\n String yyr = currentTime.substring(0, 4); // get currrent year from the string f\n String mmnth = currentTime.substring(5, 7);\n String ddt = currentTime.substring(8, 10); // get current date from the string f\n String hours = currentTime.substring(11, 13);\n String mins = currentTime.substring(14, 16);\n\n int yr, mnth, dt, shr, smin = 0;\n yr = Integer.parseInt(yyr); // convert current year from string to int\n mnth = Integer.parseInt(mmnth);\n dt = Integer.parseInt(ddt);\n shr = Integer.parseInt(hours);\n smin = Integer.parseInt(mins);\n\n if ((userYr == yr) || (userYr > yr)) { // if user entered year is the current year or future year, ok \n if (((userYr == yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth < mnth))) {\n if (((userYr == yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate >= dt))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour == shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour > shr) && (userMin < smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))) {\n state = true;\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid day!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid month!\");\n state = false;\n }\n } else {// if the user entered year is already passed\n JOptionPane.showMessageDialog(null, \"Invalid year\");\n state = false;\n }\n return state;\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "private void validateEvent(final Event event) {\n if (null == event) {\n throw new NullPointerException(\"event cannot be null\");\n }\n if (null == event.getAuthor()) {\n throw new NullPointerException(\"author cannot be null\");\n }\n if (null == event.getAuthor().getId()) {\n throw new NullPointerException(\"author ID cannot be null\");\n }\n if (null == event.getCustomer()) {\n throw new NullPointerException(\"customer cannot be null\");\n }\n if (null == event.getCustomer().getId()) {\n throw new NullPointerException(\"customer ID cannot be null\");\n }\n if (null == event.getProcedure()) {\n throw new NullPointerException(\"procedure cannot be null\");\n }\n if (null == event.getProcedure().getId()) {\n throw new NullPointerException(\"procedure ID cannot be null\");\n }\n if (Utensils.stringIsBlank(event.getText())) {\n throw new IllegalArgumentException(\"text cannot be blank\");\n }\n if (0 == event.getText().trim().length()) {\n throw new IllegalArgumentException(\"text cannot be blank\");\n }\n if (Event.Type.IN_CALENDAR == event.enumType()) {\n if (null == event.getStartTime()) {\n throw new NullPointerException(\"start time cannot be null\");\n }\n if (event.getLength() <= 0) {\n throw new IllegalArgumentException(\"length lesser then 0\");\n }\n }\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}", "@Override\r\n public void validate() {\r\n }", "private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + \"'\");\n if ((annotMin != -1) && (annotMax != -1))\n Assert.condition(annotMin <= annotMax,\n \"min isn't <= max: '\" + annotMin + \"', '\" + annotMax + \"'\");\n }" ]
[ "0.68692994", "0.6421967", "0.6398082", "0.63870364", "0.6350174", "0.6283772", "0.6267536", "0.62256235", "0.6210797", "0.62099224", "0.6149806", "0.6127868", "0.6102583", "0.60581017", "0.6056249", "0.6041611", "0.60400116", "0.60257196", "0.598832", "0.5968718", "0.59188247", "0.5911851", "0.58892536", "0.587431", "0.5847545", "0.5832718", "0.5796684", "0.5749569", "0.5737221", "0.57014596", "0.5694981", "0.5675882", "0.5675443", "0.56650543", "0.56397176", "0.56390804", "0.5626857", "0.5617242", "0.56159925", "0.5590651", "0.5572829", "0.55401295", "0.5529683", "0.5529294", "0.5520774", "0.5494065", "0.548329", "0.5481646", "0.54731303", "0.546051", "0.54431397", "0.54321903", "0.5427107", "0.53993726", "0.5363151", "0.534344", "0.53386134", "0.5332475", "0.532768", "0.5299285", "0.52735394", "0.5264213", "0.5260675", "0.52563524", "0.52444637", "0.5243019", "0.5238594", "0.5229915", "0.52245224", "0.52220285", "0.52220285", "0.52220285", "0.5217887", "0.52145994", "0.5205515", "0.520088", "0.5200039", "0.51997125", "0.5195512", "0.5191957", "0.5184098", "0.51840675", "0.5183925", "0.51812273", "0.5172016", "0.5158966", "0.5158209", "0.5155709", "0.5154718", "0.5141756", "0.5139405", "0.51367724", "0.51217693", "0.5117403", "0.51157665", "0.51121926", "0.511059", "0.51026744", "0.5100142", "0.509149", "0.5085804" ]
0.0
-1
obtained from medical id
@Transactional(value = "cleia-txm", readOnly = true) public Medical getMedicalById(long id) { Medical result = entityManager.find(Medical.class, id); if (result != null) { result.getPatient().getUser().getGroups().size(); result.getPatient().getUser().getRoles().size(); result.getPatient().getUser().getIds().size(); result.getPatient().getProcessInstances().size(); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getMedicalid() {\n return medicalid;\n }", "String mo10312id();", "public java.lang.String getIdMedication() {\n java.lang.Object ref = idMedication_;\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 idMedication_ = s;\n return s;\n }\n }", "public String getMetaversalID();", "public java.lang.String getIdMedication() {\n java.lang.Object ref = idMedication_;\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 idMedication_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setMedicalid(Integer medicalid) {\n this.medicalid = medicalid;\n }", "public com.google.protobuf.ByteString\n getIdMedicationBytes() {\n java.lang.Object ref = idMedication_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idMedication_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIdMedicationBytes() {\n java.lang.Object ref = idMedication_;\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 idMedication_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getID();", "public String getMaternalID();", "public int getDwellingID();", "public MyMaid hireMaid(Integer id){\n //return requested Maid\n return mMaidStaff.getMaid(id);\n }", "java.lang.String getPatientId();", "java.lang.String getDataInfoId();", "String getID();", "String getID();", "String getID();", "String getID();", "public abstract long getSdiId();", "java.lang.String getDataId();", "java.lang.String getDataId();", "@Override\n\tpublic Medico findById(Integer id_medico) {\n\t\treturn medicoMapper.findById(id_medico);\n\t}", "String getIdNumber();", "public void obtenerID();", "java.lang.String getRecognitionId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public String getPaternalID();", "public abstract java.lang.Long getAcma_id();", "private void getPatient (String id) throws MqttException {\n MqttMessage message = new MqttMessage(new Gson().toJson(dao.getPatient(id)).getBytes());\n message.setQos(0);\n publishThread(\"patient\", message, UniMed.mqttClient);\n }", "@Override\n\tpublic Danmu getDanmu(String id) {\n\t\tString hql = \"from Danmu m where m.id =?\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setString(0, id);\n\t\treturn (Danmu)query.uniqueResult(); \n\t}", "int getDoctorId();", "int getDoctorId();", "java.lang.String getAoisId();", "@Test\r\n public void testGetDiseaseByOmimDiseaseId() {\r\n String omimDiseaseId = \"OMIM:101600\";\r\n\r\n Disease result = instance.getDiseaseByDiseaseId(omimDiseaseId);\r\n assertEquals(\"PFEIFFER SYNDROME\", result.getTerm());\r\n\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public abstract MediaItem getMediaItem(String id);", "public String getWmoId() {\n String wmoID = \"\";\n if (!(stnm == GempakConstants.IMISSD)) {\n wmoID = String.valueOf(stnm / 10);\n }\n return wmoID;\n }" ]
[ "0.69015217", "0.64997226", "0.64598745", "0.6401356", "0.6380525", "0.63335294", "0.6332991", "0.6326957", "0.6290952", "0.6274403", "0.62002987", "0.6163633", "0.61474335", "0.6111983", "0.6102509", "0.6102509", "0.6102509", "0.6102509", "0.6062667", "0.60411465", "0.60411465", "0.6031971", "0.6016573", "0.5942665", "0.5936254", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.5936198", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.59189713", "0.5883483", "0.5883095", "0.5869666", "0.5858528", "0.58339536", "0.58339536", "0.5798743", "0.5779956", "0.5756198", "0.5756198", "0.5756198", "0.5756198", "0.57449955", "0.57427233" ]
0.0
-1
Search a list of medicals by params
@Transactional(value = "cleia-txm", readOnly = true) public List<Medical> getMedicalUser(GridRequest filters, String username) { List<Medical> lm = new ArrayList<Medical>(); Medical m = (Medical) entityManager.createQuery("select m from Medical m where m.username = :username").setParameter("username", username).getSingleResult(); if (m instanceof Medical) { Medical medical = (Medical) m; medical.getPatient().getUser().getGroups().size(); medical.getPatient().getUser().getRoles().size(); medical.getPatient().getUser().getIds().size(); medical.getPatient().getProcessInstances().size(); lm.add(medical); } return lm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchMoviesSpecific() throws IOException {\n\t\t//the message prints the search parameter they are using by getting the value from the movieMenu map\n\t\tprint(\"Please enter the \"+movieMenu.get(currentSearch)+\" you wish to search for movies by\");\n\t\t//get the search param\n\t\tString searchParam = br.readLine();\n\t\t//more complicated boolean logic: if the currentSearch is 1, search by actor, else, if the currentSearch is 3, search by genre, else, search by title\n\t\tSet<Movie> results = (currentSearch == 1 ? searchByActor(searchParam) : \n\t\t\t(currentSearch == 3 ? searchByGenre(searchParam) : searchByTitle(searchParam)));\n\t\t\n\t\t//printResults() returns a boolean as to whether there is at least one title returned. If it returns true, print out the results\n\t\tif (printResults(results)) for (Movie mov : results) print(mov.getTitle());\n\t\t//print the menu that allows a user to search again or return to the login menu\n\t\tprintMovieMiniMenu();\n\t}", "List<Media> search(double latitude, double longitude, int distance);", "public void search(Map<String, String> searchParam);", "List<Media> search(double latitude, double longitude);", "@Override\n\tpublic void searchByMobile() {\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(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\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}", "private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "public List<Ve> searchVe(String maSearch);", "List<DataTerm> search(String searchTerm);", "@In String search();", "List<MovieListing> searchMovieListingByFilmName(String movieName, List<MovieListing> allMoviesListing);", "List<Media> search(double latitude, double longitude, long maxTimeStamp, long minTimeStamp, int distance);", "public static ArrayList<Result> search(HashMap<String,ArrayList<String>> map) {\n result = new ArrayList<>();\n finalResult = new ArrayList<>();\n \n String input = map.get(\"search\").get(0);\n searchByName(input);\n \n ArrayList<String> type = map.get(\"type\");\n if(type.isEmpty());\n else for(String t:type){\n searchByType(t);\n result = finalResult;\n }\n \n //<editor-fold defaultstate=\"collapsed\" desc=\"FILTERS\">\n ArrayList<ArrayList<String>> filters = new ArrayList<>();\n filters.add(map.get(\"brand\"));\n filters.add(map.get(\"price\"));\n filters.add(map.get(\"os\"));\n filters.add(map.get(\"memory\"));\n filters.add(map.get(\"storage\"));\n filters.add(map.get(\"numberOfSimSlots\"));\n filters.add(map.get(\"f_camera\"));\n filters.add(map.get(\"b_camera\"));\n /**\n * ArrayList of filters from Mobile Phone\n * 0 = Brand | brand\n * 1 = Price | price\n * 2 = OS | os\n * 3 = Memory | memory\n * 4 = Storage | storage\n * 5 = SIM slots | numberOfSimSlots\n * 6 = Camera front | f_camera\n * 7 = Camera back | b_camera\n */\n int filterMode = 0;\n while(filterMode<filters.size()){\n// for(Result r:result){\n// System.out.println(r.getMP().getFullName());\n// }\n// System.out.println(\"filtermode: \"+filterMode);\n finalResult = new ArrayList<>();\n if(filters.get(filterMode).isEmpty()||filters.get(filterMode).get(0).equals(\"\")){\n filterMode++;\n continue;\n }\n filter(filterMode,filters.get(filterMode++));\n result = finalResult;\n }\n //</editor-fold>\n return result;\n }", "public void search() {\r\n \t\r\n }", "abstract public void search();", "public static Medicine search(ArrayList<Medicine> list, int idInput){\n for (Medicine medicine : list) {\n if(idInput == medicine.getMedicineId()){\n // if true return medicine obj\n return medicine ; \n }\n }\n return null;\n }", "List<AlbumVO> searchAlbum(String searchText) throws Exception;", "@Override\r\n public List<Asset> findByKeyWord(Map<String, Object> params) {\n return assetDao.findByKeyWord(params);\r\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"name\")\n public List<MedicalService> getMedicalServicesByName(@RequestParam String name){\n return medicalServiceService.findMedServicesbyName(name);\n }", "public interface SummerhouseSeach {\n List<Summerhouse> search(List<Summerhouse> summerhouses, SummerhouseSearchDto searchDto);\n}", "public List<Product> search(String searchString);", "void search();", "void search();", "List<TypePatientPropertyCondition> search(String query);", "@PostMapping(\"/searchMusician\")\n public String searchMusician(@RequestParam(\"search\") String search,\n Model model, Principal principal){\n User user = userRepo.findByUsername(principal.getName());\n model.addAttribute(\"user\", user);\n\n CompanyProfile companyProfile = compRepo.findByUser(user);\n model.addAttribute(\"companyProfile\", companyProfile);\n\n List<Instruments> instrumentEnums = Arrays.asList(Instruments.values());\n model.addAttribute(\"instruments\", instrumentEnums);\n\n Iterable<MusicianProfile> searchMusicians = musicianRepo.findByFirstNameContainingIgnoreCaseOrLastNameContainingIgnoreCaseOrLocationContainingIgnoreCase(search, search, search);\n model.addAttribute(\"musician\", searchMusicians);\n return \"Search/search\";\n\n }", "@RequestMapping(method=RequestMethod.POST,value = \"/search\")\n public ArrayList<Results> searchMentors(@RequestBody SearchForm s) {\n return resultsRepository.findMentors(s.getFrom(),s.getCourse(),s.getTimeslot());\n }", "List<PilotContainer> Search(String cas, String word);", "@Override\n\tpublic List<Mall> searchMall(Mall mall) {\n\t\treturn iMallDao.searchMall(mall);\n\t}", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = {\"name\",\"page\"})\n public List<MedicalService> getMedicalServicesByNamePaging(@RequestParam String name, @RequestParam int page){\n return medicalServiceService.findMedServicesbyNamePaging(name,page);\n }", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"type\")\n public List<MedicalService> getMedServicesByType(@RequestParam String type){\n return medicalServiceService.findMedServicesByType(type);\n }", "public void searchMovie(ArrayList<Movie> movies)\n {\n int answer = insertSearchMenuAnswer();\n \n if (answer == 1)\n searchedByTitle(movies);\n else\n if (answer == 2)\n searchedByDirectors(movies);\n else\n if (answer == 3)\n return;\n }", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "List<Medicine> getAllMedicines();", "List<MovieListing> searchMovieListingByCineplex(String cineplexName, List<MovieListing> allMoviesListing);", "public interface Search {\n ArrayList<Section> searchSecByTitle(String info);\n\n ArrayList<Section> searchSecByCourse_id(String info);\n}", "public void search(String text){\n filteredList.clear();\n\n if(TextUtils.isEmpty(text)){\n filteredList.addAll(filteredListForSearch);\n }\n\n else{\n String query = text.toLowerCase();\n for(SensorResponse item : filteredListForSearch){\n if(item.getSensor_Type().toLowerCase().contains(query) || Long.toString(item.getBattery()).toLowerCase().contains(query)\n || Long.toString(item.getDate_Time()).toLowerCase().contains(query) || Double.toString(item.getLat()).toLowerCase().contains(query)\n || Double.toString(item.getLong()).toLowerCase().contains(query) || item.getSensorHealth().toLowerCase().contains(query)\n || Long.toString(item.getSensor_ID()).toLowerCase().contains(query) || Double.toString(item.getSensor_Val()).toLowerCase().contains(query)){\n filteredList.add(item);\n }\n }\n }\n removeDuplicates();\n notifyDataSetChanged();\n }", "List<Room> selectRoomListWithSearchCondition(@Param(\"condition\") String condition);", "List<Cemetery> search(String query);", "@Override\r\n\tpublic List<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> searchTeachingMaterialSetByStringFactor(\r\n\t\t\tList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> teachingMaterialSets, String factorName,\r\n\t\t\tString factorValue) {\n\t\tList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> teachingMaterialSet = new ArrayList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>>();\r\n\t\tint num = 0;\r\n\t\tif(factorName.equals(\"teachingMaterialId\")){\r\n\t\t\tnum = 1;\r\n\t\t}else if(factorName.equals(\"setClass\")){\r\n\t\t\tnum = 2;\r\n\t\t}else if(factorName.equals(\"setTime\")){\r\n\t\t\tnum = 3;\r\n\t\t}else if(factorName.equals(\"numberProject\")){\r\n\t\t\tnum = 4;\r\n\t\t}else if(factorName.equals(\"teachingMaterialName\")){\r\n\t\t\tnum = 5;\r\n\t\t}else if(factorName.equals(\"editorName\")){\r\n\t\t\tnum = 6;\r\n\t\t}else if(factorName.equals(\"resultsPostedStatus\")){\r\n\t\t\tnum = 7;\r\n\t\t}else if(factorName.equals(\"submitUser\")){\r\n\t\t\tnum = 8;\r\n\t\t}else if(factorName.equals(\"approvedUser\")){\r\n\t\t\tnum = 9;\r\n\t\t}else if(factorName.equals(\"status\")){\r\n\t\t\tnum = 10;\r\n\t\t}else if(factorName.equals(\"wordsNumbers\")){\r\n\t\t\tnum = 11;\r\n\t\t}else if(factorName.equals(\"remarks\")){\r\n\t\t\tnum = 12;\r\n\t\t}else if(factorName.equals(\"collegeAward\")){\r\n\t\t\tnum = 13;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"输入的factorName值有误!您输入的factorName值:\"+factorName);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<teachingMaterialSets.size();i++){\r\n\t\t\tswitch(num)\r\n\t\t\t{\r\n\t\t\tcase 1:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getTeachingMaterialId().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSetClass().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSetTime().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getNumberProject().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getTeachingMaterialName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:{\r\n\t\t\t\tfor(int j=0;j<teachingMaterialSets.get(i).getModelList().size();j++){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModelList().get(j).getEditorName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 7:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getResultsPostedStatus().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 8:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSubmitUser()!=null){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSubmitUser().getUserName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 9:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getApprovedUser()!=null){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModel().getApprovedUser().getUserName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 10:{\r\n\t\t\t\tint status = java.lang.Integer.parseInt(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getStatus()==status){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 11:{\r\n\t\t\t\tint wordsNumbers = java.lang.Integer.parseInt(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getWordsNumbers()==wordsNumbers){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 12:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getRemarks().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 13:{\r\n\t\t\t\tfloat collegeAward = java.lang.Float.parseFloat(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getCollegeAward()==collegeAward){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdefault :break;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn teachingMaterialSet;\r\n\t}", "List<Card> search(String searchString, long userId) throws PersistenceCoreException;", "private void search(String[] searchItem)\n {\n }", "private void getPhotoList(String query){\n for(Photo p : photolist){\n for(String s : p.getLocationTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n for(String s : p.getPersonTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n }\n }", "List<Material> findMaterial(String title, String language, String keywords,\n String genre, String targetAudience, String type) throws SQLException;", "@Override\r\n\tpublic ResponseWrapper searchMedia(RequestWrapper request ) {\r\n\r\n\t\tIHandler handler = HandlerFactory.getHandler(request.getcategoryType());\r\n\t\t\t\t\t\t\r\n\t\tResponseWrapper response = handler.search(request);\r\n\t\treturn response;\r\n\t}", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }", "private void searchedByDirectors(ArrayList<Movie> movies)\n {\n boolean valid = false;\n Scanner console = new Scanner(System.in);\n String dir1=\"\";\n ArrayList<String> dirSearch = new ArrayList<String>();\n ArrayList<Movie> filmByDir = new ArrayList<Movie>();\n ArrayList<Movie> listMovieNew = new ArrayList<Movie>();\n dir1 = insertDirector();\n dirSearch.add(dir1.toLowerCase());\n \n if (dir1.length() != 0)\n {\n for(int index = 2 ; index > 0 ; index++)\n {\n System.out.print(\"\\t\\tInsert the directors' name(\" + index + \")- press enter to leave blank: \");\n String dirs = console.nextLine().trim().toLowerCase();\n \n if (dirs.length() != 0)\n dirSearch.add(dirs);\n else\n if (dirs.length() == 0)\n break;\n }\n }\n \n for (int index = 0; index < movies.size(); index++)\n {\n listMovieNew.add(movies.get(index));\n }\n \n for (int order = 0; order < dirSearch.size() ; order++)\n {\n for (int sequence = 0; sequence < listMovieNew.size() ; sequence++)\n {\n if ((listMovieNew.get(sequence).getDirector().toLowerCase().contains(dirSearch.get(order).toLowerCase())))\n {\n filmByDir.add(listMovieNew.get(sequence)); \n listMovieNew.remove(sequence);\n }\n }\n }\n \n displayExistanceResultByDir(filmByDir);\n }", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "JsonObject search(JsonObject params, ConcurrentMap<String, String> precisionMap);", "@Override\n\tpublic List<HomeDetails> multimatchquery(String input) {\n\t\treturn null;\n\t}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public void search() {\n }", "private void searchFunction() {\n\t\t\r\n\t}", "List<T> searchByExample(T entity);", "@Override\n\tpublic String imageSearch(QueryBean param) throws IOException {\n\t\treturn new HttpUtil().getHttp(IData.URL_SEARCH + param.toString());\n\t}", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "List<SongVO> searchSong(String searchText) throws Exception;", "public List<Student> searchStudent(Map<String, String> map);", "List<SearchResult> search(SearchQuery searchQuery);", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic List<Guitar> search(String model) {\n\t\tList<Guitar> list=new ArrayList<Guitar>();\n\t\tString sql=\"select * from guitar where model=?\";\n\t\tJDBC jdbc=new JDBC();\n\t\tConnection conn=jdbc.getConnection();\n\t\t\n\t\tPreparedStatement ps;\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tps.setString(1, model);\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuitar guitar=new Guitar();\n\t\t\t\tguitar.setId(rs.getInt(1));\n\t\t\t\tguitar.setModel(model);\n\t\t\t\tguitar.setBuilder(rs.getString(3));\n\t\t\t\tguitar.setType(rs.getString(4));\n\t\t\t\tguitar.setWood(rs.getString(5));\n\t\t\t\tlist.add(guitar);\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tjdbc.closeConnection(conn);\n\t\t}\n\t\treturn null;\n\t}", "public List<Media> searchGenres(String genre,boolean notPrevRented,boolean wonAwards,String emailOfUser)\n\t{\n\tList<Media>\t\t\tmediaSearched;\n\tList<Integer>\t\tmediaIDList;\n\tPreparedStatement \tpState;\n\tResultSet\t\t\trSet;\n\tMedia\t\t\t\tmedia;\n\t\n\tmediaSearched = new ArrayList<Media>();\n\tmediaIDList = new ArrayList<Integer>();\n\tpState = null;\n\trSet = null;\n\t\n\ttry\n\t\t{\n\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\n\t\tif (notPrevRented && !wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M WHERE M.genre LIKE ? AND M.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\tpState.setString(2, emailOfUser);\n\t\t\t}\n\t\telse if (wonAwards && !notPrevRented)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M, Won W WHERE M.genre LIKE ? AND W.movieID = M.mediaID\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\t}\n\t\telse if (notPrevRented && wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M, Won W WHERE W.movieID = M.mediaID AND M.genre LIKE ? AND M.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\tpState.setString(2, emailOfUser);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M WHERE M.genre LIKE ?\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\t}\n\t\t\n\t\trSet = pState.executeQuery();\n\t\t\n\t\twhile(rSet.next())\n\t\t\t{\n\t\t\tmediaIDList.add(rSet.getInt(\"mediaID\"));\n\t\t\t}\n\t\t\n\t\trSet.close(); \n\t\tpState.close(); \n\t\tconnection.close();\n\t\t\n\t\tmediaSearched = getMedia(mediaIDList);\n\t\t\n\t\treturn mediaSearched;\n\t\t}\n\tcatch(SQLException e)\n\t\t{\n\t\tSystem.out.println(\"SQLState = \" + e.getSQLState() + \"\\n\" + e.getMessage());\n\t\treturn mediaSearched;\n\t\t}\n\t}", "void searchProbed (Search search);", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "public List getList(int start, int pernum, SearchParam param);", "public ArrayList <ITunesItem> searchMultipleKey(String searchText, String country, String media) throws IOException\n\t{\n\t\tsearchText = searchText.replace(\" \", \"+\");\n\t\tString query = \"term=\" + searchText;\n\t\tif(!country.isEmpty())\n\t\t{\n\t\t\tquery = query + \"&country=\" + country;\n\t\t}\n\t\tif(!media.isEmpty())\n\t\t{\n\t\t\tquery = query + \"&media=\" + media;\n\t\t}\n\t\treturn searchQuery(query);\n\t}", "private void search(String product) {\n // ..\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public String searchByMaterial(String string, ArrayList<String> materiallist, int count, Set<String> keys, Collection<String> values, Map<String, String> dataTable1) {\nfor(String s:materiallist) {\r\n\t\t\t\r\n\t\t\tif (string.equals(s)) {\r\n\t\t\t//\tSystem.out.print(s);\r\n\t\t\t\tcount--;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t}\r\nSystem.out.println(\"A List of Home that matches the Material \"+string+\":\");\r\n\r\nfor(String k: keys) {\r\n\t\r\n\tarraytoprintkey=k.split(\"_\");\r\n\r\n\r\n\t\r\n\t\tif(arraytoprintkey[1].equals(string)) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.print(k);\r\n\t\t\t\tSystem.out.println(\" \"+dataTable1.get(k));\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n}\r\nSystem.out.println();\r\n\t\tif(count==0) {\r\n\t\t\treturn string;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn null;\r\n\t}", "public abstract ParameterVector searchVector();", "public List<Maid> getAllMaids(Integer pageNo, Integer pageSize, String sortBy, String searchBy);", "@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}", "List<ProductInfoOutput> findList(List<String> productIdList);", "@Override\n // String land, String[] kommune, String[] postnr, String[] lokalitet, String[] vej\n public Collection<KommuneEntity> search(SearchParameters parameters) {\n StringList hql = new StringList();\n StringList join = new StringList();\n ConditionList conditions = new ConditionList(ConditionList.Operator.AND);\n\n hql.append(\"select distinct \"+KommuneEntity.databaseKey+\" from KommuneEntity as \"+KommuneEntity.databaseKey);\n join.setPrefix(\"join \");\n\n conditions.addCondition(KommuneEntity.landCondition(parameters));\n\n conditions.addCondition(KommuneEntity.kommuneCondition(parameters));\n if (parameters.has(Key.LOKALITET)) {\n join.append(KommuneEntity.joinLokalitet());\n conditions.addCondition(LokalitetEntity.lokalitetCondition(parameters));\n }\n if (parameters.has(Key.POST)) {\n Pair<String[],Condition> post = KommuneEntity.joinPost();\n join.append(post.getLeft());\n conditions.addCondition(post.getRight());\n conditions.addCondition(PostNummerEntity.postCondition(parameters));\n }\n if (parameters.has(Key.VEJ)) {\n join.append(KommuneEntity.joinVej());\n conditions.addCondition(VejstykkeEntity.vejCondition(parameters));\n }\n if (parameters.hasGlobalCondition()) {\n // Add any further restrictions from the global condition\n conditions.addCondition(parameters.getGlobalCondition().whereField(\"kommune\"));\n }\n\n // our conditions list should now be complete\n\n if (conditions.hasRequiredJoin()) {\n join.append(conditions.getRequiredJoin());\n }\n\n // our join list should now be complete\n\n if (join.size()>0) {\n hql.append(join.join(\" \"));\n }\n if (conditions.size() > 0) {\n hql.append(\"where\");\n hql.append(conditions.getWhere());\n }\n // Append order clause\n hql.append(\"order by \"+KommuneEntity.databaseKey+\".kode\");\n\n return this.query(hql, conditions, parameters.getGlobalCondition());\n }", "@RestResource(path = \"search1\", rel = \"search1\")\n List<MonographEditors> findByNumOrderAndFirstNameContainingAndLastNameContainingAndMiddleNameContainingAndEmailContainingAndAffiliationsContainingAndPersonIdAllIgnoreCase(\n @Param(\"numOrder\") Integer numOrder,\n @Param(\"firstName\") String firstName,\n @Param(\"lastName\") String lastName,\n @Param(\"middleName\") String middleName,\n @Param(\"email\") String email,\n @Param(\"affiliations\") String affiliations,\n @Param(\"personId\") Long personId);", "List<Map<String, Object>> searchIngredient(String name);", "public MagicSearch createMagicSearch();", "List<Car> getByBrandAndModel(String brand, String model);", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"userid\", globalClass.getId());\n params.put(\"folder_id\", \"0\");\n params.put(\"search_name\", search_text);\n\n Log.d(TAG, \"search \"+params);\n return params;\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 void search(String make, String model, int price, String color, int year, String trans) {\n List<Car> resultList = searchByMake(cars, make);\n resultList = searchByModel(resultList, model);\n resultList = searchByPrice(resultList, price);\n resultList = searchByColor(resultList, color);\n resultList = searchByYear(resultList, year);\n resultList = searchByTrans(resultList, trans);\n //if no results, tell user -- otherwise list matching cars\n if (resultList.isEmpty()) {\n System.out.println(\"No matching cars\");\n }\n else {\n System.out.println(\"Here is the list of cars that match your search:\");\n for (Car c: resultList) {\n System.out.println(c);\n }\n System.out.println(\"Would you like to delete them from the lot?\");\n }\n }", "@RestResource(path = \"search4\", rel = \"search\")\n List<MonographEditors> findByFirstNameContainingAndLastNameContainingAndMiddleNameContainingAndEmailContainingAndAffiliationsContainingAndMonographOfPapersIdAllIgnoreCase(\n @Param(\"firstName\") String firstName,\n @Param(\"lastName\") String lastName,\n @Param(\"middleName\") String middleName,\n @Param(\"email\") String email,\n @Param(\"affiliations\") String affiliations,\n @Param(\"monographOfPapersId\") Long monographOfPapersId);", "@Override\r\n public List<Asset> findList(Map<String, Object> params) {\n return assetDao.findList(params);\r\n }", "List<Corretor> search(String query);", "public List<Media> keywordSearch(String keyword, boolean notPrevRented,boolean wonAwards,String emailOfUser)\n\t{\n\tList<Media>\t\t\tmediaSearched;\n\tList<Integer>\t\tmediaIDList;\n\tPreparedStatement \tpState;\n\tResultSet\t\t\trSet;\n\tMedia\t\t\t\tmedia;\n\t\n\tmediaSearched = new ArrayList<Media>();\n\tmediaIDList = new ArrayList<Integer>();\n\tpState = null;\n\trSet = null;\n\t\n\ttry\n\t\t{\n\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\n\t\tif (notPrevRented && !wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, Works_On wo \"\n\t\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t\t+ \"OR (m.mediaID = g.gameID AND g.platform LIKE ?) \"\n\t\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t\t+ \"w.wname LIKE ?)) \"\n\t\t\t\t\t+ \"AND m.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\t\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(4, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(5, emailOfUser);\n\t\t\t}\n\t\telse if (wonAwards && !notPrevRented)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, \"\n\t\t\t\t\t\t+ \"Works_On wo, Won won \"\n\t\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t\t+ \"w.wname LIKE ?)) AND won.movieID = m.mediaID\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\t}\n\t\telse if (notPrevRented && wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, \"\n\t\t\t\t\t+ \"Works_On wo, Won won \"\n\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t+ \"w.wname LIKE ?)) AND won.movieID = m.mediaID AND m.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(4, emailOfUser);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, Works_On wo \"\n\t\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t\t+ \"OR (m.mediaID = g.gameID AND g.platform LIKE ?) \"\n\t\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t\t+ \"w.wname LIKE ?)) \");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(4, \"%\"+keyword+\"%\");\n\t\t\t}\n\t\t\n\t\trSet = pState.executeQuery();\n\t\t\n\t\twhile(rSet.next())\n\t\t\t{\n\t\t\tmediaIDList.add(rSet.getInt(\"mediaID\"));\n\t\t\t}\n\t\t\n\t\trSet.close(); \n\t\tpState.close(); \n\t\tconnection.close();\n\t\t\n\t\tmediaSearched = getMedia(mediaIDList);\n\t\t\n\t\treturn mediaSearched;\n\t\t}\n\tcatch(SQLException e)\n\t\t{\n\t\tSystem.out.println(\"SQLState = \" + e.getSQLState() + \"\\n\" + e.getMessage());\n\t\treturn mediaSearched;\n\t\t}\n\t}", "@Override\r\n\tpublic void findByname(List<Student> list, Scanner sc) {\n\t\tSystem.out.println(\"请输入要查询的学生姓名\");\r\n\t\tString name=sc.next();\r\n\t\tfor(Student i:list){\r\n\t\t\tif(name.equals(i.getName())){\r\n\t\t\t\ti.info();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/search\", method = { RequestMethod.GET })\r\n\tpublic String search(Model model) {\n\t\tList<String> indexFieldNamesForMM = ecoreMetamodelService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForMM\", indexFieldNamesForMM);\r\n\r\n\t\t// Tags for T. (statics)\r\n\t\t// Get all Transformations tags\r\n\t\tList<String> indexFieldNamesForT = atlTransformationService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForT\", indexFieldNamesForT);\r\n\r\n\t\t// Tags for M. (dinamics)\r\n\t\t// Get all tags\r\n\t\tList<String> indexFieldNamesForM = modelService.getAllIndexTags();\r\n\r\n\t\t// Remove Metamodels and Transformations tags in order to find out only\r\n\t\t// the model tags.\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForMM);\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForT);\r\n\r\n\t\tmodel.addAttribute(\"indexFieldNamesForM\", indexFieldNamesForM);\r\n\r\n\t\treturn \"public.search\";\r\n\t}", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "List<TVmManufacturer> selectByExample(TVmManufacturerExample example);", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"id\")\n public List<MedicalService> getMedicalServicesById(@RequestParam int id){\n return medicalServiceService.findMedicalServicesById(id);\n }", "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "public void search(String movie) {\r\n\t\tlong timestamp = System.currentTimeMillis();\r\n\t\tString searchString = \"0047 SER \" + ip + \" \" + port + \" \" + timestamp + \" \" + movie + \" 0\";\r\n\r\n\t\tint forwardMsgCount = 0;\r\n\t\t// send query to all peers\r\n\t\tfor (NodeInfo info : peerList) {\r\n\t\t\tsend(searchString, info.getIp(), info.getPort());\r\n\t\t\tforwardMsgCount++;\r\n\t\t}\r\n\r\n\t\tList<String> results = movieList.search(movie);\r\n\r\n\t\tString resultString = \"0114 SEROK \" + results.size() + \" \" + ip + \" \" + port + \" \" + 0 + \" \" + timestamp;\r\n\t\tfor (int i = 0; i < results.size(); i++) {\r\n\t\t\tresultString += \" \" + results.get(i);\r\n\t\t}\r\n\t\tonRequest(new Request(ip, port, resultString));\r\n\r\n\t\tSystem.out.println(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\n\t\tapp.printInfo(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\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}" ]
[ "0.6303726", "0.6156082", "0.6135126", "0.6121659", "0.5958553", "0.5906173", "0.5869269", "0.5857643", "0.57957846", "0.57914716", "0.5789885", "0.57370526", "0.57105243", "0.5706391", "0.56991065", "0.5680305", "0.5667874", "0.56535715", "0.5629234", "0.56270117", "0.55977154", "0.55507535", "0.5545153", "0.5545153", "0.55319047", "0.5519933", "0.55174404", "0.551739", "0.55151916", "0.5495975", "0.5488117", "0.54762256", "0.5468099", "0.5435785", "0.5415143", "0.54090834", "0.5405858", "0.5391981", "0.5385828", "0.5385795", "0.53855515", "0.53822017", "0.53818023", "0.5370396", "0.5364796", "0.5362609", "0.5355578", "0.53464663", "0.5330178", "0.53293806", "0.53000706", "0.52978194", "0.5294435", "0.5290519", "0.5287598", "0.52831674", "0.52780765", "0.52722913", "0.52690715", "0.52577883", "0.5256324", "0.52531415", "0.5251875", "0.52480555", "0.5228208", "0.52241796", "0.5219565", "0.5205218", "0.5198436", "0.5196152", "0.5193957", "0.51916385", "0.5186629", "0.5179274", "0.517645", "0.5173603", "0.51724964", "0.51557356", "0.5139966", "0.51352596", "0.51319414", "0.5130617", "0.51275945", "0.51228106", "0.5119543", "0.5103124", "0.50984883", "0.50980127", "0.50965804", "0.50958633", "0.50948954", "0.5091763", "0.5082491", "0.5080438", "0.50803816", "0.5078466", "0.5077996", "0.5062056", "0.5049959", "0.5043766", "0.50416803" ]
0.0
-1
Search a list of medicals by params
@Transactional(value = "cleia-txm", readOnly = true) public List<Medical> getAll(GridRequest filters) { List<Medical> lmedical = this.find(entityManager, "select m from Medical m" + filters.getQL("m", true), filters.getParamsValues(), filters.getStart(), filters.getLimit()); for (Medical medical : lmedical) { medical.getPatient().getUser().getGroups().size(); medical.getPatient().getUser().getRoles().size(); medical.getPatient().getUser().getIds().size(); medical.getPatient().getProcessInstances().size(); } return lmedical; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchMoviesSpecific() throws IOException {\n\t\t//the message prints the search parameter they are using by getting the value from the movieMenu map\n\t\tprint(\"Please enter the \"+movieMenu.get(currentSearch)+\" you wish to search for movies by\");\n\t\t//get the search param\n\t\tString searchParam = br.readLine();\n\t\t//more complicated boolean logic: if the currentSearch is 1, search by actor, else, if the currentSearch is 3, search by genre, else, search by title\n\t\tSet<Movie> results = (currentSearch == 1 ? searchByActor(searchParam) : \n\t\t\t(currentSearch == 3 ? searchByGenre(searchParam) : searchByTitle(searchParam)));\n\t\t\n\t\t//printResults() returns a boolean as to whether there is at least one title returned. If it returns true, print out the results\n\t\tif (printResults(results)) for (Movie mov : results) print(mov.getTitle());\n\t\t//print the menu that allows a user to search again or return to the login menu\n\t\tprintMovieMiniMenu();\n\t}", "List<Media> search(double latitude, double longitude, int distance);", "public void search(Map<String, String> searchParam);", "List<Media> search(double latitude, double longitude);", "@Override\n\tpublic void searchByMobile() {\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(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\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}", "private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "public List<Ve> searchVe(String maSearch);", "List<DataTerm> search(String searchTerm);", "@In String search();", "List<MovieListing> searchMovieListingByFilmName(String movieName, List<MovieListing> allMoviesListing);", "List<Media> search(double latitude, double longitude, long maxTimeStamp, long minTimeStamp, int distance);", "public static ArrayList<Result> search(HashMap<String,ArrayList<String>> map) {\n result = new ArrayList<>();\n finalResult = new ArrayList<>();\n \n String input = map.get(\"search\").get(0);\n searchByName(input);\n \n ArrayList<String> type = map.get(\"type\");\n if(type.isEmpty());\n else for(String t:type){\n searchByType(t);\n result = finalResult;\n }\n \n //<editor-fold defaultstate=\"collapsed\" desc=\"FILTERS\">\n ArrayList<ArrayList<String>> filters = new ArrayList<>();\n filters.add(map.get(\"brand\"));\n filters.add(map.get(\"price\"));\n filters.add(map.get(\"os\"));\n filters.add(map.get(\"memory\"));\n filters.add(map.get(\"storage\"));\n filters.add(map.get(\"numberOfSimSlots\"));\n filters.add(map.get(\"f_camera\"));\n filters.add(map.get(\"b_camera\"));\n /**\n * ArrayList of filters from Mobile Phone\n * 0 = Brand | brand\n * 1 = Price | price\n * 2 = OS | os\n * 3 = Memory | memory\n * 4 = Storage | storage\n * 5 = SIM slots | numberOfSimSlots\n * 6 = Camera front | f_camera\n * 7 = Camera back | b_camera\n */\n int filterMode = 0;\n while(filterMode<filters.size()){\n// for(Result r:result){\n// System.out.println(r.getMP().getFullName());\n// }\n// System.out.println(\"filtermode: \"+filterMode);\n finalResult = new ArrayList<>();\n if(filters.get(filterMode).isEmpty()||filters.get(filterMode).get(0).equals(\"\")){\n filterMode++;\n continue;\n }\n filter(filterMode,filters.get(filterMode++));\n result = finalResult;\n }\n //</editor-fold>\n return result;\n }", "public void search() {\r\n \t\r\n }", "abstract public void search();", "public static Medicine search(ArrayList<Medicine> list, int idInput){\n for (Medicine medicine : list) {\n if(idInput == medicine.getMedicineId()){\n // if true return medicine obj\n return medicine ; \n }\n }\n return null;\n }", "List<AlbumVO> searchAlbum(String searchText) throws Exception;", "@Override\r\n public List<Asset> findByKeyWord(Map<String, Object> params) {\n return assetDao.findByKeyWord(params);\r\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"name\")\n public List<MedicalService> getMedicalServicesByName(@RequestParam String name){\n return medicalServiceService.findMedServicesbyName(name);\n }", "public interface SummerhouseSeach {\n List<Summerhouse> search(List<Summerhouse> summerhouses, SummerhouseSearchDto searchDto);\n}", "public List<Product> search(String searchString);", "void search();", "void search();", "List<TypePatientPropertyCondition> search(String query);", "@PostMapping(\"/searchMusician\")\n public String searchMusician(@RequestParam(\"search\") String search,\n Model model, Principal principal){\n User user = userRepo.findByUsername(principal.getName());\n model.addAttribute(\"user\", user);\n\n CompanyProfile companyProfile = compRepo.findByUser(user);\n model.addAttribute(\"companyProfile\", companyProfile);\n\n List<Instruments> instrumentEnums = Arrays.asList(Instruments.values());\n model.addAttribute(\"instruments\", instrumentEnums);\n\n Iterable<MusicianProfile> searchMusicians = musicianRepo.findByFirstNameContainingIgnoreCaseOrLastNameContainingIgnoreCaseOrLocationContainingIgnoreCase(search, search, search);\n model.addAttribute(\"musician\", searchMusicians);\n return \"Search/search\";\n\n }", "List<PilotContainer> Search(String cas, String word);", "@RequestMapping(method=RequestMethod.POST,value = \"/search\")\n public ArrayList<Results> searchMentors(@RequestBody SearchForm s) {\n return resultsRepository.findMentors(s.getFrom(),s.getCourse(),s.getTimeslot());\n }", "@Override\n\tpublic List<Mall> searchMall(Mall mall) {\n\t\treturn iMallDao.searchMall(mall);\n\t}", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = {\"name\",\"page\"})\n public List<MedicalService> getMedicalServicesByNamePaging(@RequestParam String name, @RequestParam int page){\n return medicalServiceService.findMedServicesbyNamePaging(name,page);\n }", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"type\")\n public List<MedicalService> getMedServicesByType(@RequestParam String type){\n return medicalServiceService.findMedServicesByType(type);\n }", "public void searchMovie(ArrayList<Movie> movies)\n {\n int answer = insertSearchMenuAnswer();\n \n if (answer == 1)\n searchedByTitle(movies);\n else\n if (answer == 2)\n searchedByDirectors(movies);\n else\n if (answer == 3)\n return;\n }", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "List<MovieListing> searchMovieListingByCineplex(String cineplexName, List<MovieListing> allMoviesListing);", "List<Medicine> getAllMedicines();", "public interface Search {\n ArrayList<Section> searchSecByTitle(String info);\n\n ArrayList<Section> searchSecByCourse_id(String info);\n}", "List<Cemetery> search(String query);", "public void search(String text){\n filteredList.clear();\n\n if(TextUtils.isEmpty(text)){\n filteredList.addAll(filteredListForSearch);\n }\n\n else{\n String query = text.toLowerCase();\n for(SensorResponse item : filteredListForSearch){\n if(item.getSensor_Type().toLowerCase().contains(query) || Long.toString(item.getBattery()).toLowerCase().contains(query)\n || Long.toString(item.getDate_Time()).toLowerCase().contains(query) || Double.toString(item.getLat()).toLowerCase().contains(query)\n || Double.toString(item.getLong()).toLowerCase().contains(query) || item.getSensorHealth().toLowerCase().contains(query)\n || Long.toString(item.getSensor_ID()).toLowerCase().contains(query) || Double.toString(item.getSensor_Val()).toLowerCase().contains(query)){\n filteredList.add(item);\n }\n }\n }\n removeDuplicates();\n notifyDataSetChanged();\n }", "List<Room> selectRoomListWithSearchCondition(@Param(\"condition\") String condition);", "List<Card> search(String searchString, long userId) throws PersistenceCoreException;", "@Override\r\n\tpublic List<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> searchTeachingMaterialSetByStringFactor(\r\n\t\t\tList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> teachingMaterialSets, String factorName,\r\n\t\t\tString factorValue) {\n\t\tList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>> teachingMaterialSet = new ArrayList<ModelInfo<TeachingMaterialSetNew, TeachingMaterialEditorNew>>();\r\n\t\tint num = 0;\r\n\t\tif(factorName.equals(\"teachingMaterialId\")){\r\n\t\t\tnum = 1;\r\n\t\t}else if(factorName.equals(\"setClass\")){\r\n\t\t\tnum = 2;\r\n\t\t}else if(factorName.equals(\"setTime\")){\r\n\t\t\tnum = 3;\r\n\t\t}else if(factorName.equals(\"numberProject\")){\r\n\t\t\tnum = 4;\r\n\t\t}else if(factorName.equals(\"teachingMaterialName\")){\r\n\t\t\tnum = 5;\r\n\t\t}else if(factorName.equals(\"editorName\")){\r\n\t\t\tnum = 6;\r\n\t\t}else if(factorName.equals(\"resultsPostedStatus\")){\r\n\t\t\tnum = 7;\r\n\t\t}else if(factorName.equals(\"submitUser\")){\r\n\t\t\tnum = 8;\r\n\t\t}else if(factorName.equals(\"approvedUser\")){\r\n\t\t\tnum = 9;\r\n\t\t}else if(factorName.equals(\"status\")){\r\n\t\t\tnum = 10;\r\n\t\t}else if(factorName.equals(\"wordsNumbers\")){\r\n\t\t\tnum = 11;\r\n\t\t}else if(factorName.equals(\"remarks\")){\r\n\t\t\tnum = 12;\r\n\t\t}else if(factorName.equals(\"collegeAward\")){\r\n\t\t\tnum = 13;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"输入的factorName值有误!您输入的factorName值:\"+factorName);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<teachingMaterialSets.size();i++){\r\n\t\t\tswitch(num)\r\n\t\t\t{\r\n\t\t\tcase 1:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getTeachingMaterialId().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSetClass().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSetTime().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getNumberProject().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getTeachingMaterialName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:{\r\n\t\t\t\tfor(int j=0;j<teachingMaterialSets.get(i).getModelList().size();j++){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModelList().get(j).getEditorName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 7:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getResultsPostedStatus().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 8:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSubmitUser()!=null){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModel().getSubmitUser().getUserName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 9:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getApprovedUser()!=null){\r\n\t\t\t\t\tif(teachingMaterialSets.get(i).getModel().getApprovedUser().getUserName().indexOf(factorValue)!=-1){\r\n\t\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 10:{\r\n\t\t\t\tint status = java.lang.Integer.parseInt(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getStatus()==status){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 11:{\r\n\t\t\t\tint wordsNumbers = java.lang.Integer.parseInt(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getWordsNumbers()==wordsNumbers){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 12:{\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getRemarks().indexOf(factorValue)!=-1){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 13:{\r\n\t\t\t\tfloat collegeAward = java.lang.Float.parseFloat(factorValue);\r\n\t\t\t\tif(teachingMaterialSets.get(i).getModel().getCollegeAward()==collegeAward){\r\n\t\t\t\t\tteachingMaterialSet.add(teachingMaterialSets.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdefault :break;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn teachingMaterialSet;\r\n\t}", "private void search(String[] searchItem)\n {\n }", "private void getPhotoList(String query){\n for(Photo p : photolist){\n for(String s : p.getLocationTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n for(String s : p.getPersonTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n }\n }", "List<Material> findMaterial(String title, String language, String keywords,\n String genre, String targetAudience, String type) throws SQLException;", "@Override\r\n\tpublic ResponseWrapper searchMedia(RequestWrapper request ) {\r\n\r\n\t\tIHandler handler = HandlerFactory.getHandler(request.getcategoryType());\r\n\t\t\t\t\t\t\r\n\t\tResponseWrapper response = handler.search(request);\r\n\t\treturn response;\r\n\t}", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }", "private void searchedByDirectors(ArrayList<Movie> movies)\n {\n boolean valid = false;\n Scanner console = new Scanner(System.in);\n String dir1=\"\";\n ArrayList<String> dirSearch = new ArrayList<String>();\n ArrayList<Movie> filmByDir = new ArrayList<Movie>();\n ArrayList<Movie> listMovieNew = new ArrayList<Movie>();\n dir1 = insertDirector();\n dirSearch.add(dir1.toLowerCase());\n \n if (dir1.length() != 0)\n {\n for(int index = 2 ; index > 0 ; index++)\n {\n System.out.print(\"\\t\\tInsert the directors' name(\" + index + \")- press enter to leave blank: \");\n String dirs = console.nextLine().trim().toLowerCase();\n \n if (dirs.length() != 0)\n dirSearch.add(dirs);\n else\n if (dirs.length() == 0)\n break;\n }\n }\n \n for (int index = 0; index < movies.size(); index++)\n {\n listMovieNew.add(movies.get(index));\n }\n \n for (int order = 0; order < dirSearch.size() ; order++)\n {\n for (int sequence = 0; sequence < listMovieNew.size() ; sequence++)\n {\n if ((listMovieNew.get(sequence).getDirector().toLowerCase().contains(dirSearch.get(order).toLowerCase())))\n {\n filmByDir.add(listMovieNew.get(sequence)); \n listMovieNew.remove(sequence);\n }\n }\n }\n \n displayExistanceResultByDir(filmByDir);\n }", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "JsonObject search(JsonObject params, ConcurrentMap<String, String> precisionMap);", "@Override\n\tpublic List<HomeDetails> multimatchquery(String input) {\n\t\treturn null;\n\t}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public void search() {\n }", "private void searchFunction() {\n\t\t\r\n\t}", "List<T> searchByExample(T entity);", "@Override\n\tpublic String imageSearch(QueryBean param) throws IOException {\n\t\treturn new HttpUtil().getHttp(IData.URL_SEARCH + param.toString());\n\t}", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "List<SongVO> searchSong(String searchText) throws Exception;", "List<SearchResult> search(SearchQuery searchQuery);", "public List<Student> searchStudent(Map<String, String> map);", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic List<Guitar> search(String model) {\n\t\tList<Guitar> list=new ArrayList<Guitar>();\n\t\tString sql=\"select * from guitar where model=?\";\n\t\tJDBC jdbc=new JDBC();\n\t\tConnection conn=jdbc.getConnection();\n\t\t\n\t\tPreparedStatement ps;\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tps.setString(1, model);\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuitar guitar=new Guitar();\n\t\t\t\tguitar.setId(rs.getInt(1));\n\t\t\t\tguitar.setModel(model);\n\t\t\t\tguitar.setBuilder(rs.getString(3));\n\t\t\t\tguitar.setType(rs.getString(4));\n\t\t\t\tguitar.setWood(rs.getString(5));\n\t\t\t\tlist.add(guitar);\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tjdbc.closeConnection(conn);\n\t\t}\n\t\treturn null;\n\t}", "public List<Media> searchGenres(String genre,boolean notPrevRented,boolean wonAwards,String emailOfUser)\n\t{\n\tList<Media>\t\t\tmediaSearched;\n\tList<Integer>\t\tmediaIDList;\n\tPreparedStatement \tpState;\n\tResultSet\t\t\trSet;\n\tMedia\t\t\t\tmedia;\n\t\n\tmediaSearched = new ArrayList<Media>();\n\tmediaIDList = new ArrayList<Integer>();\n\tpState = null;\n\trSet = null;\n\t\n\ttry\n\t\t{\n\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\n\t\tif (notPrevRented && !wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M WHERE M.genre LIKE ? AND M.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\tpState.setString(2, emailOfUser);\n\t\t\t}\n\t\telse if (wonAwards && !notPrevRented)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M, Won W WHERE M.genre LIKE ? AND W.movieID = M.mediaID\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\t}\n\t\telse if (notPrevRented && wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M, Won W WHERE W.movieID = M.mediaID AND M.genre LIKE ? AND M.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\tpState.setString(2, emailOfUser);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT * FROM Media M WHERE M.genre LIKE ?\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+genre+\"%\");\n\t\t\t}\n\t\t\n\t\trSet = pState.executeQuery();\n\t\t\n\t\twhile(rSet.next())\n\t\t\t{\n\t\t\tmediaIDList.add(rSet.getInt(\"mediaID\"));\n\t\t\t}\n\t\t\n\t\trSet.close(); \n\t\tpState.close(); \n\t\tconnection.close();\n\t\t\n\t\tmediaSearched = getMedia(mediaIDList);\n\t\t\n\t\treturn mediaSearched;\n\t\t}\n\tcatch(SQLException e)\n\t\t{\n\t\tSystem.out.println(\"SQLState = \" + e.getSQLState() + \"\\n\" + e.getMessage());\n\t\treturn mediaSearched;\n\t\t}\n\t}", "void searchProbed (Search search);", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "public List getList(int start, int pernum, SearchParam param);", "public ArrayList <ITunesItem> searchMultipleKey(String searchText, String country, String media) throws IOException\n\t{\n\t\tsearchText = searchText.replace(\" \", \"+\");\n\t\tString query = \"term=\" + searchText;\n\t\tif(!country.isEmpty())\n\t\t{\n\t\t\tquery = query + \"&country=\" + country;\n\t\t}\n\t\tif(!media.isEmpty())\n\t\t{\n\t\t\tquery = query + \"&media=\" + media;\n\t\t}\n\t\treturn searchQuery(query);\n\t}", "private void search(String product) {\n // ..\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public String searchByMaterial(String string, ArrayList<String> materiallist, int count, Set<String> keys, Collection<String> values, Map<String, String> dataTable1) {\nfor(String s:materiallist) {\r\n\t\t\t\r\n\t\t\tif (string.equals(s)) {\r\n\t\t\t//\tSystem.out.print(s);\r\n\t\t\t\tcount--;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t}\r\nSystem.out.println(\"A List of Home that matches the Material \"+string+\":\");\r\n\r\nfor(String k: keys) {\r\n\t\r\n\tarraytoprintkey=k.split(\"_\");\r\n\r\n\r\n\t\r\n\t\tif(arraytoprintkey[1].equals(string)) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.print(k);\r\n\t\t\t\tSystem.out.println(\" \"+dataTable1.get(k));\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n}\r\nSystem.out.println();\r\n\t\tif(count==0) {\r\n\t\t\treturn string;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn null;\r\n\t}", "public abstract ParameterVector searchVector();", "public List<Maid> getAllMaids(Integer pageNo, Integer pageSize, String sortBy, String searchBy);", "List<ProductInfoOutput> findList(List<String> productIdList);", "@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}", "@Override\n // String land, String[] kommune, String[] postnr, String[] lokalitet, String[] vej\n public Collection<KommuneEntity> search(SearchParameters parameters) {\n StringList hql = new StringList();\n StringList join = new StringList();\n ConditionList conditions = new ConditionList(ConditionList.Operator.AND);\n\n hql.append(\"select distinct \"+KommuneEntity.databaseKey+\" from KommuneEntity as \"+KommuneEntity.databaseKey);\n join.setPrefix(\"join \");\n\n conditions.addCondition(KommuneEntity.landCondition(parameters));\n\n conditions.addCondition(KommuneEntity.kommuneCondition(parameters));\n if (parameters.has(Key.LOKALITET)) {\n join.append(KommuneEntity.joinLokalitet());\n conditions.addCondition(LokalitetEntity.lokalitetCondition(parameters));\n }\n if (parameters.has(Key.POST)) {\n Pair<String[],Condition> post = KommuneEntity.joinPost();\n join.append(post.getLeft());\n conditions.addCondition(post.getRight());\n conditions.addCondition(PostNummerEntity.postCondition(parameters));\n }\n if (parameters.has(Key.VEJ)) {\n join.append(KommuneEntity.joinVej());\n conditions.addCondition(VejstykkeEntity.vejCondition(parameters));\n }\n if (parameters.hasGlobalCondition()) {\n // Add any further restrictions from the global condition\n conditions.addCondition(parameters.getGlobalCondition().whereField(\"kommune\"));\n }\n\n // our conditions list should now be complete\n\n if (conditions.hasRequiredJoin()) {\n join.append(conditions.getRequiredJoin());\n }\n\n // our join list should now be complete\n\n if (join.size()>0) {\n hql.append(join.join(\" \"));\n }\n if (conditions.size() > 0) {\n hql.append(\"where\");\n hql.append(conditions.getWhere());\n }\n // Append order clause\n hql.append(\"order by \"+KommuneEntity.databaseKey+\".kode\");\n\n return this.query(hql, conditions, parameters.getGlobalCondition());\n }", "@RestResource(path = \"search1\", rel = \"search1\")\n List<MonographEditors> findByNumOrderAndFirstNameContainingAndLastNameContainingAndMiddleNameContainingAndEmailContainingAndAffiliationsContainingAndPersonIdAllIgnoreCase(\n @Param(\"numOrder\") Integer numOrder,\n @Param(\"firstName\") String firstName,\n @Param(\"lastName\") String lastName,\n @Param(\"middleName\") String middleName,\n @Param(\"email\") String email,\n @Param(\"affiliations\") String affiliations,\n @Param(\"personId\") Long personId);", "List<Map<String, Object>> searchIngredient(String name);", "public MagicSearch createMagicSearch();", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "List<Car> getByBrandAndModel(String brand, String model);", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"userid\", globalClass.getId());\n params.put(\"folder_id\", \"0\");\n params.put(\"search_name\", search_text);\n\n Log.d(TAG, \"search \"+params);\n return params;\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 void search(String make, String model, int price, String color, int year, String trans) {\n List<Car> resultList = searchByMake(cars, make);\n resultList = searchByModel(resultList, model);\n resultList = searchByPrice(resultList, price);\n resultList = searchByColor(resultList, color);\n resultList = searchByYear(resultList, year);\n resultList = searchByTrans(resultList, trans);\n //if no results, tell user -- otherwise list matching cars\n if (resultList.isEmpty()) {\n System.out.println(\"No matching cars\");\n }\n else {\n System.out.println(\"Here is the list of cars that match your search:\");\n for (Car c: resultList) {\n System.out.println(c);\n }\n System.out.println(\"Would you like to delete them from the lot?\");\n }\n }", "List<Corretor> search(String query);", "@Override\r\n public List<Asset> findList(Map<String, Object> params) {\n return assetDao.findList(params);\r\n }", "@RestResource(path = \"search4\", rel = \"search\")\n List<MonographEditors> findByFirstNameContainingAndLastNameContainingAndMiddleNameContainingAndEmailContainingAndAffiliationsContainingAndMonographOfPapersIdAllIgnoreCase(\n @Param(\"firstName\") String firstName,\n @Param(\"lastName\") String lastName,\n @Param(\"middleName\") String middleName,\n @Param(\"email\") String email,\n @Param(\"affiliations\") String affiliations,\n @Param(\"monographOfPapersId\") Long monographOfPapersId);", "public List<Media> keywordSearch(String keyword, boolean notPrevRented,boolean wonAwards,String emailOfUser)\n\t{\n\tList<Media>\t\t\tmediaSearched;\n\tList<Integer>\t\tmediaIDList;\n\tPreparedStatement \tpState;\n\tResultSet\t\t\trSet;\n\tMedia\t\t\t\tmedia;\n\t\n\tmediaSearched = new ArrayList<Media>();\n\tmediaIDList = new ArrayList<Integer>();\n\tpState = null;\n\trSet = null;\n\t\n\ttry\n\t\t{\n\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\n\t\tif (notPrevRented && !wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, Works_On wo \"\n\t\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t\t+ \"OR (m.mediaID = g.gameID AND g.platform LIKE ?) \"\n\t\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t\t+ \"w.wname LIKE ?)) \"\n\t\t\t\t\t+ \"AND m.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\t\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(4, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(5, emailOfUser);\n\t\t\t}\n\t\telse if (wonAwards && !notPrevRented)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, \"\n\t\t\t\t\t\t+ \"Works_On wo, Won won \"\n\t\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t\t+ \"w.wname LIKE ?)) AND won.movieID = m.mediaID\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\t}\n\t\telse if (notPrevRented && wonAwards)\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, \"\n\t\t\t\t\t+ \"Works_On wo, Won won \"\n\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t+ \"w.wname LIKE ?)) AND won.movieID = m.mediaID AND m.mediaID NOT IN (SELECT mediaID FROM rental_info WHERE email = ?)\");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(4, emailOfUser);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tpState = connection.prepareStatement(\"SELECT DISTINCT m.* FROM Media m, Games g, Movies mo, Workers w, Works_On wo \"\n\t\t\t\t\t+ \"WHERE (m.title LIKE ? OR m.genre LIKE ? \"\n\t\t\t\t\t+ \"OR (m.mediaID = g.gameID AND g.platform LIKE ?) \"\n\t\t\t\t\t+ \"OR (m.mediaID = mo.movieID AND mo.movieID = wo.movieID AND wo.workerID = w.workerID AND \"\n\t\t\t\t\t\t+ \"w.wname LIKE ?)) \");\n\t\t\tpState.clearParameters();\n\t\t\tpState.setString(1, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(2, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(3, \"%\"+keyword+\"%\");\n\t\t\tpState.setString(4, \"%\"+keyword+\"%\");\n\t\t\t}\n\t\t\n\t\trSet = pState.executeQuery();\n\t\t\n\t\twhile(rSet.next())\n\t\t\t{\n\t\t\tmediaIDList.add(rSet.getInt(\"mediaID\"));\n\t\t\t}\n\t\t\n\t\trSet.close(); \n\t\tpState.close(); \n\t\tconnection.close();\n\t\t\n\t\tmediaSearched = getMedia(mediaIDList);\n\t\t\n\t\treturn mediaSearched;\n\t\t}\n\tcatch(SQLException e)\n\t\t{\n\t\tSystem.out.println(\"SQLState = \" + e.getSQLState() + \"\\n\" + e.getMessage());\n\t\treturn mediaSearched;\n\t\t}\n\t}", "@Override\r\n\tpublic void findByname(List<Student> list, Scanner sc) {\n\t\tSystem.out.println(\"请输入要查询的学生姓名\");\r\n\t\tString name=sc.next();\r\n\t\tfor(Student i:list){\r\n\t\t\tif(name.equals(i.getName())){\r\n\t\t\t\ti.info();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/search\", method = { RequestMethod.GET })\r\n\tpublic String search(Model model) {\n\t\tList<String> indexFieldNamesForMM = ecoreMetamodelService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForMM\", indexFieldNamesForMM);\r\n\r\n\t\t// Tags for T. (statics)\r\n\t\t// Get all Transformations tags\r\n\t\tList<String> indexFieldNamesForT = atlTransformationService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForT\", indexFieldNamesForT);\r\n\r\n\t\t// Tags for M. (dinamics)\r\n\t\t// Get all tags\r\n\t\tList<String> indexFieldNamesForM = modelService.getAllIndexTags();\r\n\r\n\t\t// Remove Metamodels and Transformations tags in order to find out only\r\n\t\t// the model tags.\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForMM);\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForT);\r\n\r\n\t\tmodel.addAttribute(\"indexFieldNamesForM\", indexFieldNamesForM);\r\n\r\n\t\treturn \"public.search\";\r\n\t}", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "List<TVmManufacturer> selectByExample(TVmManufacturerExample example);", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"id\")\n public List<MedicalService> getMedicalServicesById(@RequestParam int id){\n return medicalServiceService.findMedicalServicesById(id);\n }", "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "public void search(String movie) {\r\n\t\tlong timestamp = System.currentTimeMillis();\r\n\t\tString searchString = \"0047 SER \" + ip + \" \" + port + \" \" + timestamp + \" \" + movie + \" 0\";\r\n\r\n\t\tint forwardMsgCount = 0;\r\n\t\t// send query to all peers\r\n\t\tfor (NodeInfo info : peerList) {\r\n\t\t\tsend(searchString, info.getIp(), info.getPort());\r\n\t\t\tforwardMsgCount++;\r\n\t\t}\r\n\r\n\t\tList<String> results = movieList.search(movie);\r\n\r\n\t\tString resultString = \"0114 SEROK \" + results.size() + \" \" + ip + \" \" + port + \" \" + 0 + \" \" + timestamp;\r\n\t\tfor (int i = 0; i < results.size(); i++) {\r\n\t\t\tresultString += \" \" + results.get(i);\r\n\t\t}\r\n\t\tonRequest(new Request(ip, port, resultString));\r\n\r\n\t\tSystem.out.println(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\n\t\tapp.printInfo(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\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}" ]
[ "0.630419", "0.6157019", "0.61388814", "0.6122838", "0.5960766", "0.5909024", "0.5870766", "0.5862425", "0.5801084", "0.5796821", "0.5791898", "0.573778", "0.5713206", "0.57108015", "0.5704023", "0.56811684", "0.56705403", "0.56552964", "0.56334996", "0.5628161", "0.5601176", "0.5556287", "0.554974", "0.554974", "0.55355495", "0.5521709", "0.55214614", "0.5519946", "0.55180883", "0.5497771", "0.5492439", "0.54774296", "0.54704785", "0.54400784", "0.54180616", "0.5408532", "0.5407914", "0.5394912", "0.5390928", "0.5390741", "0.53889596", "0.53854746", "0.53842056", "0.5375621", "0.53694594", "0.5361097", "0.53549236", "0.5353113", "0.533361", "0.5331395", "0.5302246", "0.52997416", "0.52965647", "0.52924347", "0.52913463", "0.5287306", "0.5282398", "0.52766806", "0.5270406", "0.52602464", "0.5260047", "0.52585864", "0.525642", "0.52520585", "0.5229812", "0.5225641", "0.52239025", "0.52060616", "0.520305", "0.5198908", "0.5196898", "0.519572", "0.5188327", "0.51830745", "0.51762635", "0.5175352", "0.5175244", "0.5159512", "0.5142696", "0.51378965", "0.5134405", "0.51315904", "0.5131261", "0.5126429", "0.51220083", "0.51058924", "0.5101571", "0.5100499", "0.5100324", "0.509804", "0.5096952", "0.5095379", "0.50876516", "0.5084041", "0.50821656", "0.50800776", "0.5078699", "0.5066783", "0.5052568", "0.5046072", "0.50454974" ]
0.0
-1
find medical given id
@Transactional(value = "cleia-txm", readOnly = true) public List<Medical> findMedicalsrepeatable(List<Id> asList, Boolean repeatable) throws Exception { List<Medical> m = new ArrayList<Medical>(); if (asList != null && !asList.isEmpty()) { int append = 0; StringBuilder query = new StringBuilder(); query.append("SELECT m FROM Medical m join m.ids idss WHERE idss.id in (select distinct pid.id from Id pid where "); for (Id pid : asList) { if (pid.getValue() != null && !pid.getValue().equals("") && pid.getType() != null && pid.getType().getValue() != null) { append++; if (append != 1) { query.append(" or "); } query.append("pid.value='").append(pid.getValue()).append("'"); if (repeatable != null) { query.append(" and pid.type.repeatable=").append(repeatable); } query.append(" and pid.type.value='").append(pid.getType().getValue()).append("'"); } else { throw new Exception("Error. Ha ocurrido un error en uno de los identificadores"); } } if (append != 0) { query.append(")"); m = entityManager.createQuery(query.toString()).getResultList(); } } return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Medico findById(Integer id_medico) {\n\t\treturn medicoMapper.findById(id_medico);\n\t}", "public MyMaid hireMaid(Integer id){\n //return requested Maid\n return mMaidStaff.getMaid(id);\n }", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "AceMention findMention (String id) {\n\t\tfor (int i=0; i<values.size(); i++) {\n\t\t\tAceValue value = (AceValue) values.get(i);\n\t\t\tAceValueMention mention = value.findMention(id);\n\t\t\tif (mention != null) {\n\t\t\t\treturn mention;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<timeExpressions.size(); i++) {\n\t\t\tAceTimex timex = (AceTimex) timeExpressions.get(i);\n\t\t\tAceTimexMention mention = timex.findMention(id);\n\t\t\tif (mention != null) {\n\t\t\t\treturn mention;\n\t\t\t}\n\t\t}\n\t\treturn findEntityMention (id);\n\t}", "@Override\n\tpublic Optional<MedioPago> findbyid(Integer id) {\n\t\treturn null;\n\t}", "public Patient returnPatFromId(String id)\r\n\t{\r\n\t\tPatient foundPatient = null;// blank patient is made\r\n\r\n\t\tfor(int i=0; arrayPatients[i]!=null ;i++)//loops through the array\r\n\t\t{\r\n\t\t\tif(arrayPatients[i].patientID.equals(id))//if the id passed matches the id of that term in the array it will save that array term \r\n\t\t\t{\r\n\t\t\t\tfoundPatient = arrayPatients[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn foundPatient;// that saved array term is then returned\r\n\t}", "public static Patient find(int id) {\n\tPatient patient = null;\n\tfor (Patient a : patients) {\n\t if (a.getId() == id) {\n\t\tpatient = a;\n\t\tbreak;\n\t }\n\t}\t\n\t\n\treturn patient;\n }", "public Film getFilmById(Integer id);", "public Film find(int id) {\n\t\t\n\t\tString codeFilm = null;\n\t\tString nomFilm = null;\n\t\tFilm film = new Film();\n\t\t\n\t\ttry {\n\t\t\tResultSet result = Connection.selectFrom(\"SELECT codeFilm, nomFilm \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"FROM film \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"WHERE idFilm=\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+id\n\t\t\t\t\t\t\t\t\t\t\t\t\t+\";\");\n\t\t\t\n\t\t\twhile(result.next())\n\t\t\t{\n\t\t\t\tcodeFilm = result.getString(\"codeFilm\");\n\t\t\t\tnomFilm = result.getString(\"nomFilm\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tfilm = new Film(id,codeFilm,nomFilm);\n\t\tConnection.close();\n\t\treturn film;\n\t}", "public Integer getMedicalid() {\n return medicalid;\n }", "@SneakyThrows\n @Override\n public DeveloperSkill findByID(Long id) {\n return null; //parse.get(Math.toIntExact(id));\n }", "@Override\r\n public Damagething damfindById(Integer da_id) {\n return userMapper.damfindById(da_id);\r\n }", "public void setMedicalid(Integer medicalid) {\n this.medicalid = medicalid;\n }", "@Override\n\tpublic HumanFileDig findHumanFileDigById(short id) {\n\t\treturn humanFileDigMapper.selectHumanFileDigById(id);\n\t}", "@Override\n\tpublic Medecin findMedecin(long idM) {\n\t\tOptional<Medecin> medecinOptional = medecinrepository.findById(idM);\n\n\t\tMedecin medecin = new Medecin();\n\t\t\n\t\tif (medecinOptional.isPresent() == true) {\n\t\t\tmedecin = medecinOptional.get();\n\t\t}\n\t\treturn medecin;\n\t}", "public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }", "public abstract MediaItem getMediaItem(String id);", "@Override\n\tpublic Danmu getDanmu(String id) {\n\t\tString hql = \"from Danmu m where m.id =?\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setString(0, id);\n\t\treturn (Danmu)query.uniqueResult(); \n\t}", "private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person : persons) {\n if (id == person.getId()) {\n personReturn = person;\n }\n }\n\n return personReturn;\n }", "public Media getMedia(String id)\n\t\t{\n\t\t\tif (id == null)\n\t\t\t\treturn null;\n\t\t\tfor (Media m : mediasList) {\n\t\t\t\tif (id.equals(m.getId()))\n\t\t\t\t\treturn m;\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "private Request findRecord(String mDeviceId) {\n return ofy().load().type(Request.class).id(mDeviceId).now();\n//or return ofy().load().type(Request.class).filter(\"id\",id).first.now();\n }", "@Transactional(value = \"cleia-txm\")\n public List<Patient> findPatientsByMedicalId(Long id) throws Exception {\n Medical medical = entityManager.find(Medical.class, id);\n \n if (medical == null) {\n throw new Exception(\"Error. El medico no existe\");\n }\n \n medical.getPatients().size();\n \n return medical.getPatients();\n }", "public Device findDeviceById(int id);", "@Override\n\tpublic Material findById(Long id) {\n\t\treturn materialRepository.findById(id).get();\n\t}", "public Film getFilm(int unique_id){\r\n Film return_film = null;\r\n\r\n // Cycle all the films in the cinema's database.\r\n for(Film film : this.cinema_film_list){\r\n if(film.getID() == unique_id){\r\n // If a film by a specific director has been found, add it to found films.\r\n return_film = film;\r\n }\r\n }\r\n return return_film;\r\n }", "D getById(K id);", "public static Medicine search(ArrayList<Medicine> list, int idInput){\n for (Medicine medicine : list) {\n if(idInput == medicine.getMedicineId()){\n // if true return medicine obj\n return medicine ; \n }\n }\n return null;\n }", "AceEntityMention findEntityMention (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tAceEntityMention mention = entity.findMention(id);\n\t\t\tif (mention != null) {\n\t\t\t\treturn mention;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity mention with id \" + id);\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "public Device findById(Long id) throws Exception;", "@Override\n\tpublic Patient findByPatientId(int id) {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the patient details By Id\");\n\t\tOptional<Patient> patient = patientRepo.findById(id);\n\t\tif (!patient.isPresent()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn patient.get();\n\t}", "@Override\r\n\tpublic Film findFilmById(int id) {\n\t\treturn filmRepository.getOne(id);\r\n\t}", "public EntulhoMedida pesquisarEntulhoMedida(Integer idEntulhoMedida) throws ErroRepositorioException{\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tEntulhoMedida retorno = null;\n\n\t\ttry{\n\n\t\t\tCriteria criteria = session.createCriteria(EntulhoMedida.class).add(Expression.eq(\"id\", idEntulhoMedida))\n\t\t\t\t\t\t\t.add(Expression.eq(\"indicadorUso\", ConstantesSistema.INDICADOR_USO_ATIVO));\n\n\t\t\tList<EntulhoMedida> lista = criteria.list();\n\t\t\tif(lista != null && !lista.isEmpty()){\n\t\t\t\tretorno = lista.get(0);\n\t\t\t}\n\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\n\t}", "Media getMedia(long mediaId);", "@Override\n\tpublic MedicalTest findTestById(String testId) {\n\n\t\tOptional<MedicalTest> optional = testDao.findById(testId);\n\t\tif (optional.isPresent()) {\n\t\t\tMedicalTest test = optional.get();\n\t\t\treturn test;\n\t\t}\n\t\tthrow new MedicalTestNotFoundException(\"Test not found for Test Id= \" + testId);\n\t}", "private Group findById(int id){\n assert(inputGroupList.size() > 0);\n for(Group group : inputGroupList){\n if(group.getNumber() == id)\n return group;\n }\n return null;\n }", "public Matiere findById(Integer id){\n return matiereRepository.getOne(id);\n }", "public Multa findById(Integer idMulta) {\n\t\tOptional<Multa> oMulta = repository.findById(idMulta);\n\t\treturn oMulta.orElseThrow(() -> new ObjectNotFoundException(\"Multa não encontrado! id: \" + idMulta)); // orELSEThrow\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// retorna\n\t}", "public static Adage find(int id) {\n\tAdage adage = null;\n\tfor (Adage a : adages) {\n\t if (a.getId() == id) {\n\t\tadage = a;\n\t\tbreak;\n\t }\n\t}\t\n\treturn adage;\n }", "public int binarySearch(RandomAccessFile Din, String id) throws IOException \n {\n int Low = 0;\n int NUM_RECORDS = Integer.parseInt(getNumberOfRecords(\"normal\"));;\n int High = NUM_RECORDS-1;\n int Middle = 0;\n String MiddleId;\n String record = \"\";\n boolean Found = false;\n\n \n while (!Found && (High >= Low)) \n {\n Middle = (High+Low) / 2;\n record = getRecord(\"normal\", Din, Middle+1);\n MiddleId = record.substring(5,45);\n MiddleId = MiddleId.trim();\n int result = MiddleId.compareTo(id);\n\n if (result == 0) {\n // ids match\n return Middle;\n } \n else if (result < 0) {\n Low = Middle + 1;\n }\n else {\n High = Middle - 1;\n }\n }\n\n if (Low > High) {\n record = getRecord(\"normal\", Din, Middle);\n // if (record != \"\") {\n MiddleId = record.substring(5, 45).trim().toUpperCase();\n if (MiddleId.compareTo(id) == 0) {\n return Middle;\n }\n // }\n }\n\n return -1;\n }", "@Transactional(value = \"cleia-txm\", readOnly = true)\n public Medical getMedicalById(long id) {\n Medical result = entityManager.find(Medical.class, id);\n if (result != null) {\n result.getPatient().getUser().getGroups().size();\n result.getPatient().getUser().getRoles().size();\n result.getPatient().getUser().getIds().size();\n result.getPatient().getProcessInstances().size();\n }\n return result;\n }", "public Song findSong(Long id) {\n\t\tOptional<Song> optionalSong = lookifyRepository.findById(id);\n\t\tif (optionalSong.isPresent()) {\n\t\t\treturn optionalSong.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "public Data findById(Object id);", "public MotorCycle findId(String id){\r\n\t\treturn motorCycleDao.findId(id);\r\n\t}", "public int find(int p) {\r\n return id[p];\r\n }", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public com.spirit.medios.entity.PlanMedioMesIf getPlanMedioMes(java.lang.Long id) {\r\n return manager.find(PlanMedioMesEJB.class, id);\r\n }", "public void findById() {\n String answer = view.input(message_get_id);\n if (answer != null){\n try{\n long id = Long.parseLong(answer);\n Customer c = model.findById(id);\n if(c!=null)\n view.showCustomerForm(c);\n else\n view.showMessage(not_found_error);\n }catch(NumberFormatException nfe){\n view.showMessage(\"ID must be number\");\n }\n }\n }", "public int deleteMedID(Integer id) {\n SQLiteDatabase db = this.getWritableDatabase();\n //delete the hash tables\n db.delete(\"Dose\",\n \"medid = ? \",\n new String[]{Integer.toString(id)});\n //delete the medication\n int returnInt = db.delete(\"Med\",\n \"_id = ? \",\n new String[]{Integer.toString(id)});\n return returnInt;\n\n }", "public com.google.protobuf.ByteString\n getIdMedicationBytes() {\n java.lang.Object ref = idMedication_;\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 idMedication_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private EscherRecord findFirstWithId(short id, List<EscherRecord> records) {\n \tfor(Iterator<EscherRecord> it = records.iterator(); it.hasNext();) {\n \t\tEscherRecord r = it.next();\n \t\tif(r.getRecordId() == id) {\n \t\t\treturn r;\n \t\t}\n \t}\n\n \t// Then check our children in turn\n \tfor(Iterator<EscherRecord> it = records.iterator(); it.hasNext();) {\n \t\tEscherRecord r = it.next();\n \t\tif(r.isContainerRecord()) {\n \t\t\tEscherRecord found = findFirstWithId(id, r.getChildRecords());\n \t\t\tif(found != null) {\n \t\t\t\treturn found;\n \t\t\t}\n \t\t}\n \t}\n\n \t// Not found in this lot\n \treturn null;\n }", "@Override\r\n\tpublic Disease findByDiseaseId(int id) {\r\n\t\t// setting logger info\r\n\t\tlogger.info(\"Get the disease details By Id\");\r\n\t\tOptional<Disease> disease = diseaseRepo.findById(id);\r\n\t\tif(!disease.isPresent()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tlogger.info(disease.get());\r\n\t\treturn disease.get();\r\n\t}", "@PUT\n @Path(\"/{id}/verify\")\n @Produces(value = {MediaType.APPLICATION_JSON, MedicalFieldDto.CONTENT_TYPE + \"+json\"})\n public Response verifyMedic(@PathParam(\"id\") final int id) {\n medicService.verifyMedic(id);\n return Response.noContent().build();\n }", "public Researcher getResearcherByID(int id);", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n public Media getMediaById(int id) {\n try {\n return mediaDao.getMediaById(id);\n } catch (ObjectNotFoundException e) {\n throw new RuntimeException(String.format(\"Media instance with id=%s not found\", id));\n } catch (FailedOperationException e) {\n throw new RuntimeException(e.getMessage());\n }\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "public com.google.protobuf.ByteString\n getIdMedicationBytes() {\n java.lang.Object ref = idMedication_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idMedication_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void getDetail(int id) {\n\t\t\n\t}", "@Override\r\n\tpublic LookMast findOne(int id) {\n\t\treturn lookMastRepository.findOne(id);\r\n\t}", "public Doctor findById(int id);", "@Transactional(value = \"cleia-txm\", readOnly = true)\n public List<Id> getIdsForMedical(Long idmedical) {\n List<Medical> lmedical = entityManager.createQuery(\"SELECT m FROM Medical m WHERE m.id=?\").setParameter(1, idmedical).getResultList();\n if (lmedical.size() > 0) {\n return lmedical.get(0).getPatient().getUser().getIds();\n }\n return null;\n }", "@Override\n public Complex findById(final Integer id) throws PersistentException {\n ComplexDao complexDao = transaction.createDao(ComplexDao.class);\n Complex complex = complexDao.read(id);\n if (complex != null) {\n findExercises(complex);\n }\n return complex;\n }", "public MemberPo findMember(final String id);", "public Manufacturer findById(String id) {\n return manufacturerRepository.findById(id).orElse(null);\n }", "@Override\n\tpublic AtiPhoto findById(String id) {\n\t\treturn atiPhotoDao.findOne(id);\n\t}", "public java.lang.String getIdMedication() {\n java.lang.Object ref = idMedication_;\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 idMedication_ = s;\n return s;\n }\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();" ]
[ "0.6874226", "0.6417652", "0.62351304", "0.6145044", "0.61302793", "0.61038774", "0.60931385", "0.607104", "0.6068698", "0.60617703", "0.60559684", "0.5968039", "0.5959824", "0.59598047", "0.59448165", "0.59378266", "0.5928042", "0.58960855", "0.5882152", "0.5876511", "0.58337253", "0.583009", "0.58239883", "0.581894", "0.58087116", "0.57895035", "0.5788263", "0.5782515", "0.578205", "0.57801473", "0.5749264", "0.5736464", "0.5727532", "0.57274127", "0.56911165", "0.5686498", "0.5670808", "0.5665136", "0.5664517", "0.56589776", "0.5656602", "0.5650904", "0.56478834", "0.5642219", "0.562858", "0.56193566", "0.5616805", "0.5612554", "0.56116456", "0.5600652", "0.55999905", "0.5596261", "0.5593328", "0.55903053", "0.55886745", "0.55859745", "0.5583458", "0.55812603", "0.5578575", "0.55774647", "0.55750173", "0.5569427", "0.55664885", "0.55558616", "0.55534947", "0.5545346", "0.5535848", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991", "0.552991" ]
0.0
-1
get List Id medical
@Transactional(value = "cleia-txm", readOnly = true) public List<Id> getIdsForMedical(Long idmedical) { List<Medical> lmedical = entityManager.createQuery("SELECT m FROM Medical m WHERE m.id=?").setParameter(1, idmedical).getResultList(); if (lmedical.size() > 0) { return lmedical.get(0).getPatient().getUser().getIds(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getListId()\n {\n return listId;\n }", "public abstract ArrayList<Integer> getIdList();", "private String addIDsFilmGenre(List<FilmGenre> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "public Integer getMedicalid() {\n return medicalid;\n }", "int getListSnId(int index);", "public BigDecimal getLstId() {\n return lstId;\n }", "@Override\n\tpublic List<MedioPago> getallbyid(List<?> lst) {\n\t\treturn null;\n\t}", "private static <T extends AbstractApiIdentifiableDTO> List<Long> generateIdList(List<T> idList) {\n List<Long> results = new ArrayList<>(idList.size());\n\n for (T idSingle : idList) {\n results.add(idSingle.getId());\n }\n\n return results;\n }", "java.util.List<java.lang.Long> getIdsList();", "public ArrayList<String> get_list_ids(){\n\t\t\treturn list_ids;\n\t\t\t\n\t\t}", "public String getMetaversalID();", "identifierList getIdentifierList();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public List getAllIds();", "int getDoctorId();", "int getDoctorId();", "java.util.List<java.lang.Integer> getListSnIdList();", "public String getId(String s){\n for (int i = 0; i<length; i++){\n if(wallList.get(i).getName().equalsIgnoreCase(s))\n id = wallList.get(i).getId();\n }\n return id;\n }", "private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n results.get(sourceId).add(idSingle);\n } else {\n // ID didn't exist so add a new list\n List<T> list = new ArrayList<>(1);\n list.add(idSingle);\n results.put(sourceId, list);\n }\n }\n\n return results;\n }", "public static List<Long> getIdentifiers(List<? extends AbstractBusinessObject> list) {\n if (list == null) {\n return null;\n }\n List<Long> ids = new ArrayList<Long>();\n\n for (AbstractBusinessObject abo : list) {\n ids.add(abo.getId());\n }\n return ids;\n }", "@Override\n public List<IMedicine> getMedicine() {\n return medicineList;\n }", "public Identificator getId() {\n\t\tIdentificator id = null;\n\t\tif ((getMdht().getIds() != null) && (getMdht().getIds().size() > 0)) {\n\t\t\tid = new Identificator(getMdht().getIds().get(0));\n\t\t}\n\t\treturn id;\n\t}", "public static Medicine search(ArrayList<Medicine> list, int idInput){\n for (Medicine medicine : list) {\n if(idInput == medicine.getMedicineId()){\n // if true return medicine obj\n return medicine ; \n }\n }\n return null;\n }", "Short getId();", "List<UserInfo> getUserListByIdLists(List<Integer> idList);", "int getListData(int list) {\n\t\treturn m_lists.getField(list, 5);\n\t}", "public List<String> getListCourseId();", "public List<String> getListOfIds() {\n return listOfIds;\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "@Override\n\tpublic List<Map<String, Object>> getInfoByIdList(List<String> idList) {\n\t\treturn null;\n\t}", "public static void collectIds(ArrayList <MrMeeseeks> listaMrMee, ArrayList <Integer> listaId){\n\t\tfor(MrMeeseeks mrMeeseeks : listaMrMee){\n\t\t\tlistaId.add(mrMeeseeks.getId());\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n private static <T extends AbstractApiIdentifiableDTO> Map<Long, T> generateIdMap(List<T> idList) {\n Map<Long, T> results = new HashMap<>(idList.size());\n\n for (T idSingle : idList) {\n results.put(idSingle.getId(), idSingle);\n }\n\n return results;\n }", "private String addIDsNew(List<Person> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "java.util.List<java.lang.Integer> getOtherIdsList();", "String getIdNumber();", "Object getId();", "java.lang.String getID();", "java.util.List<java.lang.Integer> getRareIdList();", "java.util.List<java.lang.Integer> getRareIdList();", "String getChildId();" ]
[ "0.6717766", "0.64616346", "0.62889665", "0.61933994", "0.6191569", "0.61737746", "0.61267567", "0.6081456", "0.60651284", "0.6053938", "0.5999892", "0.5938162", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.59344256", "0.5906645", "0.5846038", "0.5846038", "0.5840765", "0.5838801", "0.5826286", "0.5797117", "0.579682", "0.57948995", "0.5792916", "0.5790908", "0.57868016", "0.57782376", "0.577639", "0.57681185", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.576543", "0.57403344", "0.57337266", "0.5723115", "0.5722885", "0.5720717", "0.5716893", "0.5704932", "0.570235", "0.56857604", "0.56857604", "0.56714994" ]
0.6249856
3
enable or disable medical
@Transactional(value = "cleia-txm") public void enableDisableMedical(Long idmedical, boolean enable) throws Exception { Medical medical = entityManager.find(Medical.class, idmedical); String habilitar = ""; if (medical != null) { if ((!medical.getPatient().getUser().isEnabled() && enable) || (medical.getPatient().getUser().isEnabled() && !enable)) { try { medical.getPatient().getUser().setEnabled(enable); } catch (Exception e) { if (enable) { habilitar = "habilitar"; } else { habilitar = "deshabilitar"; } throw new Exception("Error. Ha ocurrido un error al" + habilitar + " al medico " + medical.getPatient().getName() + " " + medical.getPatient().getSurname() + " " + medical.getPatient().getSurname1()); } } else { if (!enable) { habilitar = "deshabilitado"; } else { habilitar = "habilitado"; } throw new Exception("Error. El medico " + medical.getPatient().getName() + " " + medical.getPatient().getSurname() + " " + medical.getPatient().getSurname1() + " ya esta " + habilitar); } } else { throw new Exception("Error. El medico no existe"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableMic(boolean enable);", "void enableDigital();", "public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }", "public void toggleEnable();", "public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\r\n this.onEnable();\r\n else\r\n this.onDisable();\r\n }", "private void actionSampleDetectionModeChanged ()\r\n\t{\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeAuto().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(true);\r\n\t\t}\r\n\t}", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "void enableMod();", "public void setArmed(boolean b) {\n }", "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 static void toggleMute()\n\t{\n\t\tmute = !mute;\n\t\tif (mute)\n\t\t{\n\t\t\t// Stop all sounds\n\t\t\tmusic.stop();\n\t\t\tlaserContinuous.stop();\n\t\t\tlaser.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start sounds\n\t\t\tstartMusic();\n\t\t\tif (laserRunning)\n\t\t\t{\n\t\t\t\tlaserContinuous.loop();\n\t\t\t}\n\t\t}\n\t}", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }", "public void setSensorOff() {\n\n }", "public void enableSound() {\n soundToggle = true;\n }", "public boolean micEnabled();", "public void setSensorOn() {\n\n }", "public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }", "public abstract void onEnable();", "public void setMuteDisabeld(boolean checked) {\n volumeControl.disable(checked);\r\n }", "private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }", "public void setVibrationOn() {\n\n }", "private void updateDemoModeEnabled() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_demo_allowed\", 0) != 0) {\n z = true;\n }\n this.mEnabledSwitch.setChecked(z);\n this.mOnSwitch.setEnabled(z);\n }", "@Override\n public void onClick(View v) {\n Log.d(TAG, \"Set LCD mute ON. (display OFF)\");\n mDisplayControl.setMute(true);\n try{\n Thread.sleep(3000); //3000É~ÉäïbSleepÇ∑ÇÈ\n }catch(InterruptedException e){}\n\n Log.d(TAG, \"Set LCD mute OFF. (display ON)\");\n mDisplayControl.setMute(false);\n }", "public void setVibrationOff() {\n\n }", "public void enableMonsters(){\n enabled = true;\n }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "public void setEngineOff();", "protected void enableActionMute()\n {\n Action action = new Action(\"Mute\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateMute = new DoMute();\n enableAction(action, iDelegateMute);\n }", "public boolean getMute();", "public abstract void Enabled();", "public void setEngineOn();", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "public void enable();", "public boolean setPropertyMute(boolean aValue);", "public boolean getPropertyMute();", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void setMute(boolean mute);", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "private void toggleMode() {\n\t if(freestyle){\n\t\t Toast.makeText(getApplicationContext(), \"Take a picture in any pose\", Toast.LENGTH_LONG).show();\n\t\t \nmodeTextView.setText(\"Freestyle\");\nnewImgButton.setEnabled(false);\ncountdownView.setEnabled(false);\ncountdownView.setText(\"-\");\nframenumTextView.setEnabled(false);\nframenumTextView.setText(\"-\");\n\t }\n\t else{\n\t\t Toast.makeText(getApplicationContext(), \"Try to match the shape and take a picture\", Toast.LENGTH_LONG).show();\n\t\t modeTextView.setText(\"Match\");\n\t\t newImgButton.setEnabled(true);\n\t\t countdownView.setEnabled(true);\n\t\t framenumTextView.setEnabled(true);\n\t }\n\t \n\t\n}", "public void switchOn();", "public boolean setEnabled(boolean enable);", "protected abstract void enable();", "private void meditate() {\n\t\t\tUtils.pause(10_000);\n\t\t\t// System.out.println(this.name + \" is finished meditate\");\n\t\t}", "private void m6584A() {\n this.f5414ea = C1387D.m6761a();\n if (this.f5414ea) {\n this.f5405Y.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n return;\n }\n this.f5405Y.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n }", "private void disableSensor() {\n if (DEBUG) Log.w(TAG, \"<<< Sensor \" + getEmulatorFriendlyName() + \" is disabled.\");\n mEnabledByEmulator = false;\n mValue = \"Disabled by emulator\";\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "private void enableDice() {\n\t\ttogglebtnD1.setDisable(false);\n\t\ttogglebtnD2.setDisable(false);\n\t\ttogglebtnD3.setDisable(false);\n\t\tendTurnButton.setDisable(false);\n\t}", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "default void onEnable() {}", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "private void setAudioState(boolean muted) {\n mMuted = muted;\n mRtcEngine.muteLocalAudioStream(mMuted);\n if (mMuted) {\n mMuteBtn.setImageResource(R.drawable.btn_mic_muted);\n } else {\n mMuteBtn.setImageResource(R.drawable.btn_mic_unmuted);\n }\n }", "void setIsManaged(boolean isManaged);", "@Override\r\n\t\tpublic boolean dmr_getMute() throws RemoteException {\n\t\t\tboolean mute = soundManager.getAudioMuteEnabled();\r\n\t\t\tUtils.printLog(TAG, \"soundManager.getAudioMuteEnabled()\" + mute);\r\n\t\t\treturn mute;\r\n\t\t}", "public void disable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Coast);\n }", "public void onEnable() {\n }", "void powerOn();", "public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }", "private void enableSensor() {\n if (DEBUG) Log.d(TAG, \">>> Sensor \" + getEmulatorFriendlyName() + \" is enabled.\");\n mEnabledByEmulator = true;\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "public void enableAudioMulticast(boolean yesno);", "public void enableVideoCapture(boolean enable);", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "public abstract void wgb_onDisable();", "public abstract void setBlinking(boolean status);", "private void setDishBtnUsability(boolean enable){\n dishBtn1.setEnabled(enable);\n dishBtn2.setEnabled(enable);\n dishBtn3.setEnabled(enable);\n dishBtn4.setEnabled(enable);\n dishBtn5.setEnabled(enable);\n }", "protected void enableActionVolumeDec()\n {\n Action action = new Action(\"VolumeDec\");\n iDelegateVolumeDec = new DoVolumeDec();\n enableAction(action, iDelegateVolumeDec);\n }", "public abstract void onDisable();", "public void meleemode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n firemode = getOthers();\r\n if(getOthers() == 1) {\r\n duelmode(e);\r\n } runaway(e);\r\n }", "void setShutterLEDState(boolean on);", "public void enableInputs();", "@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "void mute() {\n execute(\"player.muted = true\");\n }", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "public void toggle() {\n if (volume == 1f) {\n volume = 0f;\n }\n else if (volume == 0f) {\n volume = 1f;\n }\n\n }", "public void turn_off () {\n this.on = false;\n }", "private void enableRecorderPlayer() {\n\t\tsliderRecordedFileDuration.setDisable(false);\n\t\ttextRecordFileDuration.setDisable(false);\n\t\trecorderButtonPlay.setDisable(false);\n\t\trecorderButtonSave.setDisable(false);\n\t}", "public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}", "void enable();", "public void onEnabled() {\r\n }", "void enablePWM(double initialDutyCycle);", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "public void setScreenOn() {\n mWakeLock = mPowerManager.newWakeLock(PowerManager.ACQUIRE_CAUSES_WAKEUP\n | PowerManager.SCREEN_DIM_WAKE_LOCK, \"Test Acquired!\");\n mWakeLock.acquire();\n mWakeLock.release();\n }", "public void power()\r\n {\r\n powerOn = true;\r\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}", "void disablePWM();", "public void enable() {\n operating = true;\n }", "public void enableAudioAdaptiveJittcomp(boolean enable);", "public abstract void setSensorState(boolean state);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "private void setScreenProperty(boolean on) throws DeviceNotAvailableException {\n CLog.d(\"set svc power stay on \" + on);\n mTestDevice.executeShellCommand(\"svc power stayon \" + on);\n }", "private void enableControls(boolean b) {\n\n\t}", "protected abstract void switchOffCustom();", "void setGodPower(boolean b);" ]
[ "0.6797405", "0.63988906", "0.6190704", "0.6170673", "0.6091517", "0.60015005", "0.5988324", "0.598039", "0.5954054", "0.5938558", "0.59378386", "0.5921082", "0.5898571", "0.58650225", "0.58637995", "0.5835154", "0.582522", "0.5808404", "0.58019644", "0.57950234", "0.5791017", "0.57869583", "0.57584864", "0.5750588", "0.57467735", "0.57360363", "0.57192355", "0.5717078", "0.57085323", "0.5703813", "0.5691634", "0.56831867", "0.5659936", "0.56471956", "0.56202734", "0.56025225", "0.56011176", "0.55943954", "0.5593616", "0.5582664", "0.5581432", "0.5574009", "0.5572953", "0.5564771", "0.5553412", "0.5542304", "0.55414635", "0.5538498", "0.553812", "0.55267996", "0.55248207", "0.5516237", "0.55135435", "0.5512472", "0.55046743", "0.54997075", "0.54989886", "0.5498171", "0.5496838", "0.5494931", "0.54874456", "0.5482925", "0.5473794", "0.54736185", "0.54692334", "0.546436", "0.5461411", "0.54589045", "0.5453282", "0.54386675", "0.54280233", "0.54252476", "0.5423345", "0.542171", "0.5419581", "0.5418732", "0.5417278", "0.54159594", "0.54158854", "0.5413628", "0.54101086", "0.5404363", "0.5401137", "0.5400106", "0.53945", "0.53931004", "0.5392419", "0.53919387", "0.5391846", "0.5381913", "0.53745884", "0.5368381", "0.5366837", "0.5366837", "0.5366837", "0.5366837", "0.53667915", "0.5364542", "0.5347647", "0.53470385" ]
0.5729132
26
enable or disable medical
@Transactional(value = "cleia-txm") public void addpatientMedical(Medical m) throws Exception { if (m != null) { Medical medical = entityManager.find(Medical.class, m.getId()); if (medical != null) { for (Patient p : medical.getPatients()) { p.getMedicals().remove(medical); } medical.getPatients().clear(); entityManager.flush(); addPatients(m.getPatients(), medical); } else { throw new Exception("Error. El medico no existe"); } } else { throw new NullPointerException("Error. El medico no existe"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableMic(boolean enable);", "void enableDigital();", "public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }", "public void toggleEnable();", "public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\r\n this.onEnable();\r\n else\r\n this.onDisable();\r\n }", "private void actionSampleDetectionModeChanged ()\r\n\t{\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeAuto().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(true);\r\n\t\t}\r\n\t}", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "void enableMod();", "public void setArmed(boolean b) {\n }", "public static void toggleMute()\n\t{\n\t\tmute = !mute;\n\t\tif (mute)\n\t\t{\n\t\t\t// Stop all sounds\n\t\t\tmusic.stop();\n\t\t\tlaserContinuous.stop();\n\t\t\tlaser.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start sounds\n\t\t\tstartMusic();\n\t\t\tif (laserRunning)\n\t\t\t{\n\t\t\t\tlaserContinuous.loop();\n\t\t\t}\n\t\t}\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 }", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }", "public void setSensorOff() {\n\n }", "public boolean micEnabled();", "public void enableSound() {\n soundToggle = true;\n }", "public void setSensorOn() {\n\n }", "public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }", "public abstract void onEnable();", "public void setMuteDisabeld(boolean checked) {\n volumeControl.disable(checked);\r\n }", "private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }", "public void setVibrationOn() {\n\n }", "private void updateDemoModeEnabled() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_demo_allowed\", 0) != 0) {\n z = true;\n }\n this.mEnabledSwitch.setChecked(z);\n this.mOnSwitch.setEnabled(z);\n }", "@Override\n public void onClick(View v) {\n Log.d(TAG, \"Set LCD mute ON. (display OFF)\");\n mDisplayControl.setMute(true);\n try{\n Thread.sleep(3000); //3000É~ÉäïbSleepÇ∑ÇÈ\n }catch(InterruptedException e){}\n\n Log.d(TAG, \"Set LCD mute OFF. (display ON)\");\n mDisplayControl.setMute(false);\n }", "public void setVibrationOff() {\n\n }", "public void enableMonsters(){\n enabled = true;\n }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "@Transactional(value = \"cleia-txm\")\n public void enableDisableMedical(Long idmedical, boolean enable) throws Exception {\n Medical medical = entityManager.find(Medical.class, idmedical);\n String habilitar = \"\";\n if (medical != null) {\n if ((!medical.getPatient().getUser().isEnabled() && enable) || (medical.getPatient().getUser().isEnabled() && !enable)) {\n try {\n medical.getPatient().getUser().setEnabled(enable);\n } catch (Exception e) {\n if (enable) {\n habilitar = \"habilitar\";\n } else {\n habilitar = \"deshabilitar\";\n }\n throw new Exception(\"Error. Ha ocurrido un error al\" + habilitar + \" al medico \" + medical.getPatient().getName() + \" \" + medical.getPatient().getSurname() + \" \" + medical.getPatient().getSurname1());\n }\n } else {\n if (!enable) {\n habilitar = \"deshabilitado\";\n } else {\n habilitar = \"habilitado\";\n }\n throw new Exception(\"Error. El medico \" + medical.getPatient().getName() + \" \" + medical.getPatient().getSurname() + \" \" + medical.getPatient().getSurname1() + \" ya esta \" + habilitar);\n }\n } else {\n throw new Exception(\"Error. El medico no existe\");\n }\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "public void setEngineOff();", "protected void enableActionMute()\n {\n Action action = new Action(\"Mute\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateMute = new DoMute();\n enableAction(action, iDelegateMute);\n }", "public boolean getMute();", "public abstract void Enabled();", "public void setEngineOn();", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "public void enable();", "public boolean setPropertyMute(boolean aValue);", "public boolean getPropertyMute();", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void setMute(boolean mute);", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "private void toggleMode() {\n\t if(freestyle){\n\t\t Toast.makeText(getApplicationContext(), \"Take a picture in any pose\", Toast.LENGTH_LONG).show();\n\t\t \nmodeTextView.setText(\"Freestyle\");\nnewImgButton.setEnabled(false);\ncountdownView.setEnabled(false);\ncountdownView.setText(\"-\");\nframenumTextView.setEnabled(false);\nframenumTextView.setText(\"-\");\n\t }\n\t else{\n\t\t Toast.makeText(getApplicationContext(), \"Try to match the shape and take a picture\", Toast.LENGTH_LONG).show();\n\t\t modeTextView.setText(\"Match\");\n\t\t newImgButton.setEnabled(true);\n\t\t countdownView.setEnabled(true);\n\t\t framenumTextView.setEnabled(true);\n\t }\n\t \n\t\n}", "public void switchOn();", "public boolean setEnabled(boolean enable);", "protected abstract void enable();", "private void meditate() {\n\t\t\tUtils.pause(10_000);\n\t\t\t// System.out.println(this.name + \" is finished meditate\");\n\t\t}", "private void m6584A() {\n this.f5414ea = C1387D.m6761a();\n if (this.f5414ea) {\n this.f5405Y.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n return;\n }\n this.f5405Y.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n }", "private void disableSensor() {\n if (DEBUG) Log.w(TAG, \"<<< Sensor \" + getEmulatorFriendlyName() + \" is disabled.\");\n mEnabledByEmulator = false;\n mValue = \"Disabled by emulator\";\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "private void enableDice() {\n\t\ttogglebtnD1.setDisable(false);\n\t\ttogglebtnD2.setDisable(false);\n\t\ttogglebtnD3.setDisable(false);\n\t\tendTurnButton.setDisable(false);\n\t}", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "default void onEnable() {}", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "private void setAudioState(boolean muted) {\n mMuted = muted;\n mRtcEngine.muteLocalAudioStream(mMuted);\n if (mMuted) {\n mMuteBtn.setImageResource(R.drawable.btn_mic_muted);\n } else {\n mMuteBtn.setImageResource(R.drawable.btn_mic_unmuted);\n }\n }", "void setIsManaged(boolean isManaged);", "@Override\r\n\t\tpublic boolean dmr_getMute() throws RemoteException {\n\t\t\tboolean mute = soundManager.getAudioMuteEnabled();\r\n\t\t\tUtils.printLog(TAG, \"soundManager.getAudioMuteEnabled()\" + mute);\r\n\t\t\treturn mute;\r\n\t\t}", "public void disable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Coast);\n }", "void powerOn();", "public void onEnable() {\n }", "public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }", "private void enableSensor() {\n if (DEBUG) Log.d(TAG, \">>> Sensor \" + getEmulatorFriendlyName() + \" is enabled.\");\n mEnabledByEmulator = true;\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "public void enableAudioMulticast(boolean yesno);", "public void enableVideoCapture(boolean enable);", "public abstract void wgb_onDisable();", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "public abstract void setBlinking(boolean status);", "private void setDishBtnUsability(boolean enable){\n dishBtn1.setEnabled(enable);\n dishBtn2.setEnabled(enable);\n dishBtn3.setEnabled(enable);\n dishBtn4.setEnabled(enable);\n dishBtn5.setEnabled(enable);\n }", "protected void enableActionVolumeDec()\n {\n Action action = new Action(\"VolumeDec\");\n iDelegateVolumeDec = new DoVolumeDec();\n enableAction(action, iDelegateVolumeDec);\n }", "public abstract void onDisable();", "public void meleemode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n firemode = getOthers();\r\n if(getOthers() == 1) {\r\n duelmode(e);\r\n } runaway(e);\r\n }", "void setShutterLEDState(boolean on);", "public void enableInputs();", "@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "void mute() {\n execute(\"player.muted = true\");\n }", "public void toggle() {\n if (volume == 1f) {\n volume = 0f;\n }\n else if (volume == 0f) {\n volume = 1f;\n }\n\n }", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "private void enableRecorderPlayer() {\n\t\tsliderRecordedFileDuration.setDisable(false);\n\t\ttextRecordFileDuration.setDisable(false);\n\t\trecorderButtonPlay.setDisable(false);\n\t\trecorderButtonSave.setDisable(false);\n\t}", "public void turn_off () {\n this.on = false;\n }", "public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}", "void enable();", "public void onEnabled() {\r\n }", "void enablePWM(double initialDutyCycle);", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "public void setScreenOn() {\n mWakeLock = mPowerManager.newWakeLock(PowerManager.ACQUIRE_CAUSES_WAKEUP\n | PowerManager.SCREEN_DIM_WAKE_LOCK, \"Test Acquired!\");\n mWakeLock.acquire();\n mWakeLock.release();\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}", "public void power()\r\n {\r\n powerOn = true;\r\n }", "void disablePWM();", "public void enable() {\n operating = true;\n }", "public void enableAudioAdaptiveJittcomp(boolean enable);", "public abstract void setSensorState(boolean state);", "private void setScreenProperty(boolean on) throws DeviceNotAvailableException {\n CLog.d(\"set svc power stay on \" + on);\n mTestDevice.executeShellCommand(\"svc power stayon \" + on);\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "private void enableControls(boolean b) {\n\n\t}", "protected abstract void switchOffCustom();", "void setGodPower(boolean b);" ]
[ "0.67982835", "0.63976645", "0.61916995", "0.61694115", "0.6091422", "0.6001437", "0.5988422", "0.5979618", "0.59548974", "0.59398985", "0.5939406", "0.592234", "0.5899244", "0.5866928", "0.5866337", "0.5835688", "0.5826305", "0.58078974", "0.5803062", "0.5797735", "0.57931274", "0.5786356", "0.57593024", "0.5752473", "0.5746164", "0.5736043", "0.5725306", "0.57192314", "0.5716856", "0.5710265", "0.57074285", "0.56909245", "0.56828344", "0.56613636", "0.5645881", "0.5623102", "0.56058514", "0.5598809", "0.55963635", "0.5595827", "0.55825806", "0.558184", "0.55724627", "0.5570936", "0.5566559", "0.5553591", "0.5541771", "0.55403394", "0.5538936", "0.55379945", "0.55273354", "0.5522936", "0.5516367", "0.55145204", "0.5511123", "0.5508331", "0.5501298", "0.54996014", "0.54988444", "0.5497349", "0.54934496", "0.5489992", "0.54833144", "0.5473333", "0.54728097", "0.5469395", "0.5463366", "0.54629296", "0.5458642", "0.5454496", "0.54396635", "0.5427016", "0.5425365", "0.54229087", "0.5422799", "0.54218745", "0.5418861", "0.5418574", "0.5417481", "0.5417051", "0.541412", "0.54086643", "0.5404029", "0.54005957", "0.5400323", "0.53948575", "0.53941107", "0.5393587", "0.5393401", "0.5392514", "0.5381128", "0.5374923", "0.5367617", "0.53673196", "0.5365169", "0.5365169", "0.5365169", "0.5365169", "0.5363045", "0.5347787", "0.5347528" ]
0.0
-1
Get patients by Medical id
@Transactional(value = "cleia-txm") public List<Patient> findPatientsByMedicalId(Long id) throws Exception { Medical medical = entityManager.find(Medical.class, id); if (medical == null) { throw new Exception("Error. El medico no existe"); } medical.getPatients().size(); return medical.getPatients(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<MedicationPlan> getAllByPatientId(Long id);", "List<MedicalRecord> getAllPatientMedicalRecords(HttpSession session, int patientId);", "@Override\n\tpublic List<Medicine> getMedicationData(String patientId, String start, String end) {\n\t\treturn null;\n\t}", "@GetMapping(\"/biometrics/patient/{id}\")\r\n public List<Biometric> findByPatient(@PathVariable Long id) {\r\n return patientRepository.findById(id).map(biometricRepository::findByPatient).orElse(new ArrayList<>());\r\n }", "PatientInfo getPatientInfo(int patientId);", "@Override\n\tpublic Patient findByPatientId(int id) {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the patient details By Id\");\n\t\tOptional<Patient> patient = patientRepo.findById(id);\n\t\tif (!patient.isPresent()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn patient.get();\n\t}", "@RequestMapping(value = \"/patients\", method = RequestMethod.GET, headers = {\"patient_id\"})\n public Patient getAPatient(@RequestHeader(\"patient_id\") Long id) {\n return patientRepository.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Patient\", \"id\" , id));\n }", "public List<Measurement> findPatientMeasurements(int patientId) {\n return entityManager\n .createQuery(\"SELECT m from Measurement m \" +\n \"WHERE m.patientId.patientId = :patientId\", Measurement.class)\n .setParameter(\"patientId\", patientId)\n .getResultList();\n }", "public static ArrayList<Patient> getPatientsFromMedic(Medic medic) {\n ArrayList<Patient> tempPatientList = new ArrayList<>();\n for (Patient patient :\n patients\n ) {\n for (Consultation consultation :\n patient.getMedicalFile().getConsultationsList()\n ) {\n if (consultation.getMedicId() == medic.getMedicDetails().getMedicId()) {\n tempPatientList.add(patient);\n break;\n }\n }\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(new Object() {\n }.getClass().getEnclosingMethod().getName()).append(\",\").append(new Timestamp(System.currentTimeMillis()));\n writeToAudit(stringBuilder);\n return tempPatientList;\n }", "@GET(PATIENT_BY_ID_PATH)\n\tPatient getPatient(\n\t\t\t@Path(PATIENT_ID_PARAM) long patientId);", "@GetMapping(\"getpatient\")\n\tpublic CustomResponseBody<List<Doctor>> readRecordById(@PathParam(\"id\") Integer id)\n\t\t\tthrows BusinessException, SystemException {\n\t\tlogger.entry(id);\n\t\tif (id == null) {\n\t\t\tid = 0;\n\t\t}\n\t\tCustomResponseBody<List<Doctor>> response = new CustomResponseBody<List<Doctor>>();\n\t\tresponse.setStatus(HttpStatusConstant.OK);\n\t\tresponse.setMessage(doctorOperationDelegate.readRecordById(id));\n\t\tlogger.traceExit(response);\n\t\treturn response;\n\t}", "private void getPatient (String id) throws MqttException {\n MqttMessage message = new MqttMessage(new Gson().toJson(dao.getPatient(id)).getBytes());\n message.setQos(0);\n publishThread(\"patient\", message, UniMed.mqttClient);\n }", "public Patient getPatientByID(int pid) {\r\n\t\tPatient patient=null;\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients WHERE id = ? \";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, pid);\r\n\t\t\tResultSet results= pStatement.executeQuery();\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\t//Patient table\r\n\t\t\t\tint idPatient= results.getInt(1);\r\n\t\t\t\tString fname= results.getString(2);\r\n\t\t\t\tString lname= results.getString(3);\r\n\t\t\t\tString gender= results.getString(4);\r\n\t\t\t\tint age= results.getInt(5);\r\n\t\t\t\tString phone= results.getString(6);\r\n\t\t\t\tString villege= results.getString(7);\r\n\t\t\t\tString commune= results.getString(8);\r\n\t\t\t\tString city= results.getString(9);\r\n\t\t\t\tString province= results.getString(10);\r\n\t\t\t\tString country= results.getString(11);\r\n\t\t\t\tAddress address= new Address(villege, commune, city, province, country);\r\n\t\t\t\tString type= results.getString(12);\r\n\t\t\t\t\r\n\t\t\t\tpatient= new Patient(idPatient, fname, lname, gender, age, phone, address, type);\r\n\t\t\t\tSystem.out.println(\"Get Patients succeed From DatabasePatient\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\t\r\n\t\treturn patient;\r\n\t}", "public static Patient find(int id) {\n\tPatient patient = null;\n\tfor (Patient a : patients) {\n\t if (a.getId() == id) {\n\t\tpatient = a;\n\t\tbreak;\n\t }\n\t}\t\n\t\n\treturn patient;\n }", "public Patient chercherPatientId(int id_patient) {\r\n Patient p = null;\r\n int i = 0;\r\n while (i != patients.size() && patients.get(i).getIdPatient() != id_patient) {\r\n i++;\r\n }\r\n if (i != patients.size()) {\r\n p = patients.get(i);\r\n }\r\n return p;\r\n }", "public static ResultSet getPatientInfo(int id) {\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Patient WHERE ID =?;\");\r\n\t\t\tstmt.setString(1, String.valueOf(id));\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "@Override\n\tpublic Medico findById(Integer id_medico) {\n\t\treturn medicoMapper.findById(id_medico);\n\t}", "public Patient returnPatFromId(String id)\r\n\t{\r\n\t\tPatient foundPatient = null;// blank patient is made\r\n\r\n\t\tfor(int i=0; arrayPatients[i]!=null ;i++)//loops through the array\r\n\t\t{\r\n\t\t\tif(arrayPatients[i].patientID.equals(id))//if the id passed matches the id of that term in the array it will save that array term \r\n\t\t\t{\r\n\t\t\t\tfoundPatient = arrayPatients[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn foundPatient;// that saved array term is then returned\r\n\t}", "@GetMapping(value=\"/get/{medicalRecordId}\")\n\tpublic ResponseEntity<MedicalHistory> getMedicalRecordById(@Valid @PathVariable(value = \"medicalRecordId\") Integer medicalRecordId) throws PatientNotFoundException{\n\t\treturn doctorService.getMedicalRecordById(medicalRecordId); \n\t}", "@Transactional(value = \"cleia-txm\", readOnly = true)\n public List<Id> getIdsForMedical(Long idmedical) {\n List<Medical> lmedical = entityManager.createQuery(\"SELECT m FROM Medical m WHERE m.id=?\").setParameter(1, idmedical).getResultList();\n if (lmedical.size() > 0) {\n return lmedical.get(0).getPatient().getUser().getIds();\n }\n return null;\n }", "public MedicationEvents getMedicationEvents(int medicationEventsId);", "List<Admission> findPAdmissionBYpatientNumber(String patientNumber, Long hospitalId);", "@GetMapping(\"/charts/patient/{id}\")\n @Timed\n public Patient getPatientByChart(@PathVariable Long id) {\n log.debug(\"REST request to get Chart : {}\", id);\n Patient patient = chartService.findPatientByChart(id);\n return patient;\n }", "public MedicalRecord getMedicalRecord(String patient, String index){\n int i = Integer.parseInt(index);\n if(database.containsKey(patient)){\n if(database.get(patient).size() > i){\n return database.get(patient).get(i);\n } else{\n System.out.println(\"No such Medical Records found for \" + patient);\n }\n } else {\n System.out.println(patient + \" Not found in database\");\n }\n return null;\n }", "public abstract List<ClinicalDocument> findByPatientId(long patientId);", "public Patient getPatientByPatientId(long pid) throws PatientExn {\n\t\tTypedQuery<Patient> query = \n\t\t\t\tem.createNamedQuery(\"SearchPatientByPatientID\", Patient.class)\n\t\t\t\t.setParameter(\"pid\", pihhd);\n\t\tList<Patient> patients = query.getResultList();\n\t\tif(patients.size() > 1)\n\t\t\tthrow new PatientExn(\"Duplicate patient records: patient id = \" +pid);\n\t\telse if (patients.size() < 1)\n\t\t\tthrow new PatientExn(\"Patient not found: patient id = \" +pid);\n\t\telse {\n\t\t\tPatient p = patients.get(0);\n\t\t\tp.setTreatmentDAO(this.treatmentDAO);\n\t\t\treturn p;\n\t\t}\n\t}", "@Override\n @Transactional\n public Patient getPatientById(int id) {\n return patientDAO.getById(id);\n }", "@GetMapping(value = \"/selectById\", produces = \"application/json\")\n Patient selectById(@RequestParam int id);", "@Read()\n public Patient read(@IdParam IdType theId) {\n Patient patient = DBService.getPatient(theId.getIdPart());\n if (patient == null) {\n throw new ResourceNotFoundException(theId);\n }\n return patient;\n }", "@GET(DOCTOR_PATIENTS_PATH)\n\tCollection<Patient> getPatients(\n\t\t\t@Path(DOCTOR_ID_PARAM) long doctorId);", "java.lang.String getPatientId();", "@GetMapping(\"/charts-medications/{id}\")\n @Timed\n public List<Chart> getAllChartMedicationsByDate(@PathVariable Long id) {\n log.debug(\"REST request to get all Charts By Facility and with medication by date\");\n return chartService.findAllMedicationsByDay(id);\n }", "@Transactional(value = \"cleia-txm\", readOnly = true)\n public Medical getMedicalById(long id) {\n Medical result = entityManager.find(Medical.class, id);\n if (result != null) {\n result.getPatient().getUser().getGroups().size();\n result.getPatient().getUser().getRoles().size();\n result.getPatient().getUser().getIds().size();\n result.getPatient().getProcessInstances().size();\n }\n return result;\n }", "public ArrayList<MedicalRecord> getPatientRecords(String patient) {\n if (database.containsKey(patient)) {\n return database.get(patient);\n } else {\n System.out.println(\"No such patient found\");\n return null;\n }\n }", "Collection<Patient> findByName(String name, int id);", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"id\")\n public List<MedicalService> getMedicalServicesById(@RequestParam int id){\n return medicalServiceService.findMedicalServicesById(id);\n }", "@GetMapping(value=\"/set/{patientId}\")\n\tpublic ResponseEntity<List<MedicalHistory>> getMedicalHistoryByPatientId(@Valid @PathVariable(value = \"patientId\") Integer patientId) throws PatientNotFoundException{\n\t\treturn doctorService.getMedicalHistoryByPatientId(patientId);\n\t}", "public ResultSet getPatientDetailsByPatientId(int patientId) {\n\t\treturn dbObject.select(\"SELECT * FROM patients where patientId=\"+patientId);\n\n\t}", "public Integer getMedicalid() {\n return medicalid;\n }", "public abstract List<ClinicalDocumentDto> findClinicalDocumentDtoByPatientId(Long patientId);", "List<Medicine> getAllMedicines();", "@Override\n\tpublic Patientstreatments getonepatienttreat(int id) {\n\t\tPatientstreatments pt=patreatrep.findById(id).orElseThrow(()->\n\t\t\t\tnew DataNotFoundException(\"patienttreatments with id \" + id + \" not found\") );\n\t\t\n\t\treturn pt;\n\t}", "@Search()\n\t\tpublic List<Patient> getResourceById(@RequiredParam(name = \"_id\") String theId) {\n\t\t\tPatient patient = getIdToPatient().get(theId);\n\t\t\tif (patient != null) {\n\t\t\t\treturn Collections.singletonList(patient);\n\t\t\t} else {\n\t\t\t\treturn Collections.emptyList();\n\t\t\t}\n\t\t}", "@Override\n public PatientCaseDto getByDoctorPatient(Long patientId, Long doctorId) {\n return null;\n }", "public Patient getPatientById(int patientId) {\n Patient p = null;\n String query = \"SELECT * FROM PATIENTS WHERE patient_id = ? LIMIT 1\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query)) {\n pst.setInt(1, patientId);\n try (ResultSet rs = pst.executeQuery()) {\n if (rs.next()) {\n p = new Patient(rs);\n }\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n return p;\n }", "@ApiOperation(value = \"Api Endpoint to get the patient details\")\n @GetMapping(path = \"/{patientId}\")\n @LogExecutionTime\n public PatientDto getPatientRecords(@PathVariable long patientId) {\n return patientService.getPatientRecords(patientId);\n }", "public Patient readPatientById(int id) throws BusinessException, SystemException {\n\t\tlogger.entry(id);\n\t\tPatient patient = patientCrudHelper.readPatientById(id);\n\t\tlogger.traceExit(patient);\n\t\treturn patient;\n\t}", "List<Patient> findPatients(Employee nurse_id);", "public void setMedicalid(Integer medicalid) {\n this.medicalid = medicalid;\n }", "@Override\n\tpublic Optional<Patient> findOnePatient(int id) {\n\t\treturn null;\n\t}", "@Override\n public PatientCaseDto getByPatient(Long patientId) {\n return null;\n }", "public static ResultSet searchByID(int id) {\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Patient WHERE ID =?;\");\r\n\t\t\tstmt.setString(1, String.valueOf(id));\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "@Override\n public List<PatientCaseDto> getAllByPatient(Long patientId) {\n return null;\n }", "private Collection<String[]> getPatientIds(String subjectCid) throws Throwable {\n\t\tXmlDocMaker doc = new XmlDocMaker(\"args\");\n\t\tdoc.add(\"size\", \"infinity\");\n\t\tdoc.add(\"action\", \"get-meta\");\n\t\tdoc.add(\"where\", \"cid starts with '\" + subjectCid\n\t\t\t\t+ \"' and model='om.pssd.study' and mf-dicom-study has value\");\n\t\tdoc.add(\"pdist\", 0); // Force local\n\t\tXmlDoc.Element r = executor().execute(\"asset.query\", doc.root());\n\t\tCollection<String> dicomStudyCids = r.values(\"asset/cid\");\n\t\tif (dicomStudyCids == null) {\n\t\t\treturn null;\n\t\t}\n\t\tVector<String[]> patientIds = new Vector<String[]>();\n\t\tfor (String dicomCid : dicomStudyCids) {\n\t\t\tString[] patientId = getPatientIdFromDicomStudy(dicomCid);\n\t\t\tif (patientId != null) {\n\t\t\t\tboolean exists = false;\n\t\t\t\tfor (String[] patientId2 : patientIds) {\n\t\t\t\t\tif (patientId2[0].equals(patientId[0])\n\t\t\t\t\t\t\t&& patientId2[1].equals(patientId[1])\n\t\t\t\t\t\t\t&& patientId2[2].equals(patientId[2])) {\n\t\t\t\t\t\texists = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!exists) {\n\t\t\t\t\tpatientIds.add(patientId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn patientIds;\n\n\t}", "@GET\n @Path(\"patients/{ipp}\")\n @Produces(\"application/json\")\n public Patient getPatient(@PathParam(\"ipp\") int IPP) {\n return serv.getPatientByIPP(IPP);\n }", "public String getPatientId()\n {\n return patientId;\n }", "@Read()\n\t\tpublic Patient getResourceById(@IdParam IdType theId) {\n\t\t\tString key = theId.getIdPart();\n\t\t\treturn getIdToPatient().get(key);\n\t\t}", "public static ResultSet getPatientArtRegimen(Connection conn, Long patientId) throws ServletException {\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\t\tString sql = \"SELECT encounter.id AS id, regimen.code AS code, regimen.name AS name, regimen.id AS regimenId \"\r\n\t\t\t\t\t+ \"FROM art_regimen, encounter, regimen \"\r\n\t\t\t\t\t+ \"WHERE encounter.id = art_regimen.id \"\r\n\t\t\t\t\t+ \"AND art_regimen.regimen_1 = regimen.id \"\r\n\t\t\t\t\t+ \"AND encounter.patient_id = ? \"\r\n\t\t\t\t\t+ \"ORDER BY encounter.id DESC\";\r\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\t\tps.setMaxRows(1);\r\n\t\t\t\tps.setLong(1, patientId);\r\n\t\t\t\trs = ps.executeQuery();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlog.error(ex);\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "public String getPatientId(){\n\t\treturn patientId;\n\t}", "public Patient getPatientByDbId(long id) throws PatientExn {\n\t\tPatient p = em.find(Patient.class, id);\n\t\tif (p == null) {\n\t\t\tthrow new PatientExn(\"Patient not found: primary key = \" + id);\n\t\t} else {\n\t\t\tp.setTreatmentDAO(this.treatmentDAO);\n\t\t\treturn p;\n\t\t}\n\t}", "public PatientDetails getSinglePatientDetails(String searchString, EntityManagerFactory entityManagerFactory) {\n String ID = searchString.split(\",\")[0].trim();\n\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n\n Query query_record = entityManager.createNamedQuery(PATIENT_PHR_QUERY);\n query_record.setParameter(\"id\",ID);\n\n long start = System.currentTimeMillis();\n PatientDetails healthRecord = (PatientDetails) query_record.getSingleResult();\n System.out.println(\"\\n** PHR generated in --> \" + (System.currentTimeMillis()-start) + \" msec\");\n\n entityManager.close();\n return healthRecord;\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 }", "@Override\n\tpublic List<AppointmentDto> getAppointmentByMedicalField(String medicalFieldId) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_FOR_MED_FIELD, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t}, medicalFieldId);\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public List<Personagem> findByMembroId(String id);", "public EntulhoMedida pesquisarEntulhoMedida(Integer idEntulhoMedida) throws ErroRepositorioException{\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tEntulhoMedida retorno = null;\n\n\t\ttry{\n\n\t\t\tCriteria criteria = session.createCriteria(EntulhoMedida.class).add(Expression.eq(\"id\", idEntulhoMedida))\n\t\t\t\t\t\t\t.add(Expression.eq(\"indicadorUso\", ConstantesSistema.INDICADOR_USO_ATIVO));\n\n\t\t\tList<EntulhoMedida> lista = criteria.list();\n\t\t\tif(lista != null && !lista.isEmpty()){\n\t\t\t\tretorno = lista.get(0);\n\t\t\t}\n\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\n\t}", "@GetMapping(\"/patient\")\r\n\t@ApiOperation(value = \"To list Patient Directory\")\r\n\t// @Cacheable(value = \"getRecordWithDat\", key = \"#root.methodName\")\r\n\tpublic List<PatientRecord> getAllPatientRecords() {\r\n\t\tlogger.info(\"listAllPatient {}\", patientService.getAll());\r\n\t\t// kafkaTemplate.send(\"kafkaExample\",\r\n\t\t// patientService.getAll().stream().findAny());\r\n\t\treturn patientService.getAll();\r\n\t}", "void dischargePatient(int id);", "public MyMaid hireMaid(Integer id){\n //return requested Maid\n return mMaidStaff.getMaid(id);\n }", "@Transactional(readOnly = true)\n public Patient findOne(Long id) {\n log.debug(\"Request to get Patient : {}\", id);\n Patient patient = patientRepository.findOne(id);\n return patient;\n }", "@Override\n\tpublic Patients findById(Object... valrs) throws Exception {\n\t\treturn null;\n\t}", "public Film getFilmById(Integer id);", "@Override\n\tpublic List<PersonalisationMediaModel> getImageByID(final String imageID)\n\t{\n\t\tfinal String query1 = \"Select {pk} from {PersonalisationMedia} Where {code}=?imageId and {user}=?user\";\n\t\t/**\n\t\t * select distinct {val:pk} from {PersonalisationMediaModel as val join MediaModel as media on\n\t\t * {media:PK}={val.image} join User as user on {user:pk}={val:user} and {media:code}=?imageId and {user:pk}=?user}\n\t\t */\n\t\tfinal UserModel user = getUserService().getCurrentUser();\n\t\tfinal FlexibleSearchQuery fQuery = new FlexibleSearchQuery(query1);\n\t\tfinal Map<String, Object> params = new HashMap<>();\n\t\tparams.put(\"imageId\", imageID);\n\t\tparams.put(\"user\", user);\n\t\tfQuery.addQueryParameters(params);\n\t\tLOG.info(\"getImageByID\" + fQuery);\n\t\tfinal SearchResult<PersonalisationMediaModel> searchResult = flexibleSearchService.search(fQuery);\n\t\treturn searchResult.getResult();\n\t}", "@Override\n\tpublic List<Medicina> listarPorIdPaciente(Integer idPaciente) {\n\t\treturn dao.findMedicinaByPaciente(idPaciente);\n\t}", "public List<Patient> getPatients() {\n List<Patient> patients = new ArrayList<>();\n String query = \"SELECT * FROM PATIENTS\";\n try (PreparedStatement ps = this.transaction.prepareStatement(query); ResultSet rs = ps.executeQuery()) {\n while (rs.next()) {\n patients.add(new Patient(rs));\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n\n return patients;\n }", "public List<Patient> readParticularDoctorPatients(Doctor doctor) throws SystemException, BusinessException {\n\t\tList<Patient> patients = new ArrayList<>();\n\t\ttry {\n\n\t\t\tpatients = patientDb.readParticularDoctorPatients(doctor);\n\n\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\tthrow new BusinessException(e);\n\t\t} catch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t\t\n\t\treturn patients;\n\n\t}", "@Override\n\tpublic Optional<MedioPago> findbyid(Integer id) {\n\t\treturn null;\n\t}", "public Set<Medicine> loadMedicines();", "public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }", "public Doctor findById(int id);", "@SystemAPI\n\tPatient getPatient();", "List<Patient> findAllPatients();", "@RequestMapping(value = \"/medication/{id}\")\n public String medicationDetection(@PathVariable(\"id\") Integer visitId,Model model) {\n // Getting List of All diagnosis in System \n List<Medication> signedMedications=medicationService.getSignedMedications();\n List<Medication> unSignedMedications=medicationService.getUnSignedMedications();\n //// Model Attributes \n model.addAttribute(\"signedMedications\", signedMedications);\n model.addAttribute(\"unSignedMedications\", unSignedMedications);\n model.addAttribute(\"visitId\",visitId);\n // return View\n return PACKAGE_ROOT+\"prescriptions\";\n }", "public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }", "@RequestMapping(value = PatientSvcApi.GETSTATUS_PATH, method = RequestMethod.GET)\n\tpublic @ResponseBody Patient getStatus(@PathVariable(PatientSvcApi.MEDICALRECORDID) String medicalRecordId,\n\t\t\tHttpServletResponse response)\n\t{\n\t\tPatient p = operations.getStatus(medicalRecordId);\n\t\tif (p == null)\n\t\t{\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NOT_FOUND);\n\t\t\treturn null;\n\t\t}\n\t\treturn p;\n\t}", "public interface MedicalRecordRepository extends JpaRepository<MedicalRecordEntity, Integer> {\n\n Optional<MedicalRecordEntity> findByPatientId(int patientId);\n List<MedicalRecordEntity> findAllByPatientId(int patientId);\n Optional<MedicalRecordEntity> findByRecordId(int recordId);\n}", "public List<PersonManage> queryPersonById(String id) {\n\t\treturn getSqlSession().selectList(NAME_SPACE+\".findById\",id);\n\t}", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"medalId\", property=\"medalid\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"bindUserid\", property=\"binduserid\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"remark\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createTime\", property=\"createtime\", jdbcType=JdbcType.TIMESTAMP)\n })\n KDUserMedal selectByPrimaryKey(Long id);", "public People getPeopleById(Long id);", "@GetMapping(value = \"/medicalRecords\")\n\tpublic List<MedicalRecord> get() {\n\t\t\n\t\tlogger.info(\"The user requested the url : /medicalRecords with the GET method\");\n\t\t\n\t\tlogger.info(\"Httpstatus : \" + HttpStatus.OK + \", Message : Response received with success\");\n\n\t\treturn medicalRecordService.getAllMedicalRecords();\n\n\t}", "public Guardia buscarMedico(int dpi){\r\n Guardia med = new Guardia();\r\n\t\tfor (int i = 0;i<medicosenfermeras.size();i++) {\r\n med = medicosenfermeras.get(i);\r\n if((dpi == med.getDpi())&&(med instanceof Medico)){\r\n\t\t\treturn med; \r\n }\r\n\t\t}\r\n return med; \r\n\t}", "public String getPatientId() {\n\t\treturn patientId;\n\t}", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public java.util.Collection findPlanMedioMesById(java.lang.Long id) {\r\n\r\n String queryString = \"from PlanMedioMesEJB e where e.id = :id \";\r\n // Add a an order by on all primary keys to assure reproducable results.\r\n String orderByPart = \"\";\r\n orderByPart += \" order by e.id\";\r\n queryString += orderByPart;\r\n Query query = manager.createQuery(queryString);\r\n query.setParameter(\"id\", id);\r\n return query.getResultList();\r\n }", "private Request findRecord(String mDeviceId) {\n return ofy().load().type(Request.class).id(mDeviceId).now();\n//or return ofy().load().type(Request.class).filter(\"id\",id).first.now();\n }", "ClinicalData selectByPrimaryKey(Long id);", "public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}", "public Collection<Medication> getAllMedications() {\n return this.medicationDAO.getAllMedications();\n }", "@Transactional(readOnly=true)\n\tpublic List<Film> getFilmInfoAboveId(int id) {\n\t\tList<Film> films = filmRepository.findByFilmIdGreaterThan(id);\n\t\t\n\t\tfor(Film film : films) {\n\t\t\t// call the getter to load the data to cache\n\t\t\tfor(FilmActor actor : film.getFilmActors()) {\n\t\t\t\t// do nothing here\n\t \t}\n\t\t}\n\t\n\t\treturn films;\n\t}", "@Override\n\tpublic List<Control> findByIdConsultaMedica(Integer id_consulta_medica)\n\t\t\tthrows Exception {\n\t\treturn controlMapper.findByIdConsultaMedica(id_consulta_medica);\n\t}", "@Override\n public PatientCaseDto getByDoctor(Long doctorId) {\n return null;\n }" ]
[ "0.7278256", "0.70255375", "0.6887139", "0.6843318", "0.68321615", "0.6763737", "0.6605869", "0.66009444", "0.65999275", "0.6558752", "0.65448505", "0.6531066", "0.6505283", "0.6486461", "0.6470298", "0.64668316", "0.64382786", "0.64017427", "0.6398687", "0.6349213", "0.63391167", "0.6315133", "0.6310481", "0.62803465", "0.6276104", "0.623939", "0.6239279", "0.62321895", "0.6211569", "0.62008107", "0.6191591", "0.61719406", "0.61667204", "0.61609185", "0.6145599", "0.61374354", "0.6134279", "0.61308247", "0.6128796", "0.61193943", "0.6103554", "0.605883", "0.6058788", "0.60518277", "0.59891677", "0.59832394", "0.59742725", "0.59654385", "0.59445316", "0.5942142", "0.5932098", "0.5920004", "0.58988214", "0.5882661", "0.58738786", "0.58727396", "0.58623284", "0.5836367", "0.5835862", "0.5829529", "0.5809237", "0.58018184", "0.57884127", "0.5780941", "0.57798404", "0.57734966", "0.57179976", "0.56965786", "0.5687091", "0.5682446", "0.5678533", "0.56604934", "0.5642208", "0.56355464", "0.5631542", "0.5630809", "0.56191903", "0.56183285", "0.5616455", "0.56150985", "0.55970854", "0.559583", "0.5588023", "0.5580257", "0.55605656", "0.5555007", "0.5554868", "0.55546296", "0.5553472", "0.55450183", "0.55436933", "0.5538174", "0.55303776", "0.5523024", "0.5521126", "0.5507923", "0.55076766", "0.5498005", "0.54968446", "0.5493814" ]
0.72627515
1
Backbuffer, this is where we draw stuff.
public Picasso(int width, int height) { this.width = width; this.height = height; debug = new ArrayList<String>(); doDebug = false; canvas = Discette.toCompatibleImage(new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "private void drawFrameBufferContents(GameCanvas.BlendState blend) {\r\n\t\tcanvas.beginCustom(blend, GameCanvas.ChannelState.ALL);\r\n\t\tTexture fbo_t = fbo.getColorBufferTexture();\r\n\t\tfloat fbo_x = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat fbo_y = camera.position.y - canvas.getHeight() / 2 + fbo_t.getHeight();\r\n\t\tcanvas.draw(fbo_t, Color.WHITE, fbo_x, fbo_y, fbo_t.getWidth(), -fbo_t.getHeight());\r\n\t\tcanvas.endCustom();\r\n\t}", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t// get graphics object for drawing on canvas\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t// clear screen before drawing new objects to it\n\t\tg.setColor(style.getBackCol());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t// use style from server to draw time information, only if we have\n\t\t// synced the time with the server.\n\t\tg.setColor(style.getTimeCol());\n\t\tif (tim.TIME_SYNCED) {\n\t\t\t// set font and font size, perhaps font can also be customizable in\n\t\t\t// the future?\n\t\t\tg.setFont(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\tFontMetrics metrics = g.getFontMetrics(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\t// get height to offset text by when drawing.\n\t\t\tint hgt = metrics.getHeight();\n\t\t\t// System.out.println(\"\" +style.getLeft() * WIDTH);\n\t\t\tg.drawString(tim.getTime(), (int) (style.getLeft() * WIDTH), (int) (style.getTop() * HEIGHT + hgt));\n\t\t}\n\t\t// clear graphics from memory and draw screen buffer\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "@Override\n\tpublic void paint(Graphics g) {\n\t\tGraphics2D backBufferG2 = (Graphics2D)backBuffer.getGraphics();\n\t\tbackBufferG2.translate(0, scene.height);\n\t\tbackBufferG2.scale(1, -1);\n\t\t\n\t\t// Clear the buffer image before drawing stuff onto it\n\t\tbackBufferG2.setColor(scene.backgroundColor);\n\t\tbackBufferG2.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t// Now we render the entire scene!\n\t\trenderer.scheduleNodeForRendering(scene); // Render scene + all it's children!\n\t\trenderer.scheduleNodeForRendering(scene.camera); //Need to specify camera individually \n\t\t\t\t\t\t\t\t\t\t\t\t\t//because camera isn't in the scene's children array\n\t\trenderer.renderAllNodes(backBufferG2);\n\t\t\n\t\t// Finally we draw the buffer image onto the main Graphics object\n\t\tg.drawImage(backBuffer, 0 , 0, this);\n\t}", "private void createBackBuffer() {\r\n GraphicsConfiguration gc = getGraphicsConfiguration();\r\n volatileImg = gc.createCompatibleVolatileImage(getWidth(), getHeight());\r\n// volatileImg.setAccelerationPriority(1);\r\n }", "public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}", "public void paint(){\n\t\tif(this.x+GameScreen.backCam<900 && this.x+GameScreen.backCam>-60){\n\t\t\tGraphicsHandler.drawImage(texture,this.x+GameScreen.backCam,this.y+GameScreen.yCam,size,size);\n\t\t}\n\t}", "public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.screen.renderBackground();\n\t\t\n\t\t\n\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\tobstacles.get(i).render(screen);\n\t\t}\n\t\t\n\t\tthis.screen.renderGround();\n\t\t\n\t\t\n\t\tthis.bird.render(screen);\n\n\t\tscreen.renderLeftLim();\n\t\t\n\t\tfor(int i= 0;i<this.pixels.length;i++){\n\t\t\tthis.pixels[i] = this.screen.getPixel(i);\n\t\t}\n\t\n\n\t\t\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tg.drawImage(image,0,0,getWidth(),getHeight(),null);\n\t\tg.setColor(Color.WHITE);\n\t\tg.setFont(new Font(\"Verdana\",0,30));\n\t\tg.drawString(\"\"+this.numGoals, 300, 60);\n\t\tif(this.gameOver){\n\t\t\tif(this.begin){\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(GAMEOVER_MESSAGE, (WIDTH-300)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to restart\", (WIDTH-250)/2, 300);\n\t\t\t\tg.drawString(\"Best score:\"+this.bestScore, (WIDTH-135)/2, 350);\n\t\t\t}else{\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(\"OPEN BIRD\", (WIDTH-270)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to start\", (WIDTH-250)/2, 300);\n\t\t\t}\n\t\t}\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n }else{\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n \n \n if(!gameover){\n player.render(g);\n borrego.render(g);\n rayo.render(g);\n \n for (Enemy brick : enemies) {\n brick.render(g);\n //bomba.render(g);\n }\n \n for (Fortaleza fortaleza : fortalezas) {\n fortaleza.render(g);\n }\n \n for (Bomba bomba: bombas){\n bomba.render(g);\n }\n \n drawScore(g);\n drawLives(g,vidas);\n }else if(gameover){\n drawGameOver(g);\n }\n \n\n if (lost && !gameover){\n drawLost(g);\n }\n if (pause && !lost && !gameover){\n drawPause(g);\n }\n if(win && !lost && !pause && !lost &&!gameover){\n \n drawWin(g);\n }\n \n bs.show();\n g.dispose();\n }\n }", "void withDraw() {\n if (this.pointer != 0) {\n this.pointer--;\n }\n }", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "private void paintBack(Graphics2D g, int x, int y) {\n g.drawImage(getBackImage(), x, y, CARD_WIDTH, CARD_HEIGHT, null);\n }", "public void draw() {\n \n // TODO\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "public void renderGraphics(BufferStrategy b) {\n\t\tGraphics g = b.getDrawGraphics();\n\t\tg.setColor(new Color(135, 206, 235));\n\t\tg.fillRect(0, 0, frame.getWidth(), frame.getHeight());\n\t\t//g.translate(handler.getCamera().getX(), handler.getCamera().getY());\n\t\tnotifyObservers((Object)g);\n\t\tg.dispose();\n\t\tb.show();\n\t}", "private void render()\n {\n //Applicazione di un buffer \"davanti\" alla tela grafica. Prima di disegnare \n //sulla tela grafica il programma disegnerà i nostri oggetti grafici sul buffer \n //che, in seguito, andrà a disegnare i nostri oggetti grafici sulla tela\n bufferStrategico = display.getTelaGrafica().getBufferStrategy();\n \n //Se il buffer è vuoto (== null) vengono creati 3 buffer \"strategici\"\n if(bufferStrategico == null)\n {\n display.getTelaGrafica().createBufferStrategy(3);\n return;\n }\n \n //Viene definito l'oggetto \"disegnatore\" di tipo Graphic che disegnerà i\n //nostri oggetti grafici sui nostri buffer. Può disegnare qualsiasi forma\n //geometrica\n disegnatore = bufferStrategico.getDrawGraphics();\n \n //La riga seguente pulisce lo schermo\n disegnatore.clearRect(0, 0, larghezza, altezza);\n \n //Comando per cambiare colore dell'oggetto \"disegnatore\". Qualsiasi cosa\n //disengata dal disegnatore dopo questo comando avrà questo colore.\n \n /*disegnatore.setColor(Color.orange);*/\n \n //Viene disegnato un rettangolo ripieno. Le prime due cifre indicano la posizione \n //da cui il nostro disegnatore dovrà iniziare a disegnare il rettangolo\n //mentre le altre due cifre indicano le dimensioni del rettangolo\n \n /*disegnatore.fillRect(10, 50, 50, 70);*/\n \n //Viene disegnato un rettangolo vuoto. I parametri hanno gli stessi valori\n //del comando \"fillRect()\"\n \n /*disegnatore.setColor(Color.blue);\n disegnatore.drawRect(0,0,10,10);*/\n \n //I comandi seguenti disegnano un cerchio seguendo la stessa logica dei\n //rettangoli, di colore verde\n \n /*disegnatore.setColor(Color.green);\n disegnatore.fillOval(50, 10, 50, 50);*/\n \n /*Utilizziamo il disegnatore per caricare un'immagine. Il primo parametro\n del comando è l'immagine stessa, il secondo e il terzo parametro sono \n le coordinate dell'immagine (x,y) mentre l'ultimo parametro è l'osservatore\n dell'immagine (utilizzo ignoto, verrà impostato a \"null\" in quanto non\n viene usato)*/\n //disegnatore.drawImage(testImmagine,10,10,null);\n \n /*Comando che disegna uno dei nostri sprite attraverso la classe \"FoglioSprite\".*/\n //disegnatore.drawImage(foglio.taglio(32, 0, 32, 32), 10, 10,null);\n \n /*Viene disegnato un albero dalla classe \"Risorse\" attraverso il disegnatore.*/\n //disegnatore.drawImage(Risorse.omino, x, y,null);\n \n /*Se lo stato di gioco esiste eseguiamo la sua renderizzazione.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().renderizzazione(disegnatore);\n }\n \n //Viene mostrato il rettangolo\n bufferStrategico.show();\n disegnatore.dispose();\n }", "@Override\n\tpublic void draw(Canvas canvas) {\n\t\tcanvas.drawBitmap(bmBack,0,0,null);\n\t\tbtnO.draw(canvas);\n\t\tbtnX.draw(canvas);\n\t}", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "protected void showBackBuffer(final FrameContainer frame, final String filename) {\n if (frame == null) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, null, \"Given a null frame\", \"\"));\n return;\n }\n \n final Path testFile = Paths.get(filename);\n if (Files.exists(testFile)) {\n try {\n final ReverseFileReader file = new ReverseFileReader(testFile);\n // Because the file includes a newline char at the end, an empty line\n // is returned by getLines. To counter this, we call getLines(1) and do\n // nothing with the output.\n file.getLines(1);\n final Stack<String> lines = file.getLines(backbufferLines);\n while (!lines.empty()) {\n frame.addLine(getColouredString(colour, lines.pop()), backbufferTimestamp);\n }\n file.close();\n frame.addLine(getColouredString(colour, \"--- End of backbuffer\\n\"),\n backbufferTimestamp);\n } catch (IOException | SecurityException e) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, e,\n \"Unable to show backbuffer (Filename: \" + filename + \"): \" + e.getMessage(),\n \"\"));\n }\n }\n }", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void render()\n\t{\n\t\t//double buffering is cool\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(2);\n\t\t\tbs = getBufferStrategy();\n\t\t}\n\t\t\t\n\t\tGraphics2D g2 = (Graphics2D)bs.getDrawGraphics();\n\t\n\t\t\n\t\t\n\t\tif (true)\t\n\t\t{\n\t\t\tif (level != 0)\n\t\t\t{\n\t\t\t\tg2.setColor(Color.black);\n\t\t\t\tg2.fillRect(0, 0, width, height);\t\t\t\n\t\t\t}\n\t\t\tgameObjectHandler.render(g2,false);\n\t\t}\n\t\tif(currTransition != null)\n\t\t{\n\t\t\tcurrTransition.render(g2);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tbs.show();\n\t\tg2.dispose();\n\t\n\t}", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "public void redraw() {\n\t\tif(this.getGraphics() != null){\n\t\t\tthis.getGraphics().drawImage(imageBuffer, 0, 0, this); // Swap\n\t\t}\n\t}", "@Override\r\n public void draw() {\n }", "public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }", "@Override\n\tpublic void render() {\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY);\n\t\tfloat posx = startxPos;\n\t\tint[] vboIds;\n\t\tfor(int i=0;i<nbWidth;i++) {\n//\t\t\tindexBuffer = cacheBands.getDataLocalIndex(i); // mapIndexBands[i]\n//\t\t\tindexBuffer.rewind();\n\t\t\tvboIds = cacheBands.getDataLocalIndex(i);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n\t\t\tgl.glVertexPointer(3, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n\t\t\tgl.glTexCoordPointer(2, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n\t\t\tgl.glNormalPointer(GL.GL_FLOAT, 0, 0);\n\n\t\t\t\n\t\t\tgl.glPushMatrix();\n\t\t\tgl.glTranslatef(posx, startyPos,0);\n\t\t\t//gl.glCallList(cacheBands.getDataLocalIndex(i));\n\t // gl.glDrawElements(GL2.GL_QUADS, indices.capacity(), GL.GL_UNSIGNED_SHORT, 0);\n\t gl.glDrawArrays(GL2.GL_QUADS, 0, vboIds[0]); \n\t\t\tgl.glPopMatrix();\n\t\t\tposx+=blockWidth;\n\t\t}\n\t\t// unbind vbo\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glDisableClientState(GL2.GL_VERTEX_ARRAY);\n\n\t}", "public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }", "@Override\n public void draw()\n {\n }", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Sets graphics in screen and clears them\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tscreen.graphics(g);\n\t\tscreen.clear();\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\t\n\t\t//Adds antialiasing to text\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tmanager.render(screen);\n\t\t\n\t\tfor(int i = 0; i < WIDTH*HEIGHT; i++){\n\t\t\tpixels[i] = screen.getPixels()[i];\n\t\t}\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\t//Draw text from string buffer\n\t\tfor(StringObject so : screen.stringBuffer){\n\t\t\tString s = so.string;\n\t\t\tg.setColor(so.color);\n\t\t\tg.setFont(so.font);\n\t\t\tg.drawString(s, so.xp, so.yp);\n\t\t}\n\t\tscreen.stringBuffer.clear();\n\t\t\n\t\t//Draws pause graphics\n\t\tif(screen.pause && manager.getState() == 2){\n\t\t\tg.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255));\n\t\t\tg.fillRect(0, 290, screen.getWidth(), 170);\n\t\t\tg.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255));\n\t\t\tg.fillRect(0, 300, screen.getWidth(), 150);\n\t\t\t\n\t\t\tg.setColor(Color.WHITE);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 90));\n\t\t\tg.drawString(\"PAUSED\", 330, 380);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 30));\n\t\t\tg.drawString(\"Press Escape to Resume\", 340, 420);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "protected void clearToBack()\n {\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,getBackground());\n\trenderFilledRect(g,0,0,width,height);\n }", "@Override\n\tpublic void paint(Graphics g) {\n\t\tif (bufferWidth != getSize().width || bufferHeight != getSize().height\n\t\t\t\t|| bufferImage == null || bufferGraphics == null)\n\t\t\tresetBuffer();\n\t\tif (bufferGraphics != null) {\n\t\t\t// leert das offscreen image damit ein neues gezeichnet werden kann\n\t\t\tbufferGraphics.clearRect(0, 0, bufferWidth, bufferHeight);\n\n\t\t\t// we finaly paint the offscreen image onto the onscreen image\n\t\t\tpaintBuffer(bufferGraphics);\n\t\t\tg.drawImage(bufferImage, 0, 0, this);\n\t\t}\n\t}", "@Override\r\n\tpublic void paint(Graphics g)\r\n\t{\r\n\t\tif (g != null && mImageBuffer != null)\r\n\t\t{\r\n\t\t\tint canvasWidth = getWidth();\r\n\t\t\tint canvasHeight = getHeight();\r\n\t\t\tint imageWidth = mImageBuffer.getWidth(null);\r\n\t\t\tint imageHeight = mImageBuffer.getHeight(null);\r\n\t\t\t\r\n\t\t\t// center the Image in the Canvas\r\n\t\t\tmFrameX = (canvasWidth - imageWidth) / 2;\r\n\t\t\tmFrameY = (canvasHeight - imageHeight) / 2;\r\n\r\n\t\t\tif (imageWidth != canvasWidth || imageHeight != canvasHeight)\r\n\t\t\t{\r\n\t\t\t\tg.clearRect(0, 0, canvasWidth, canvasHeight);\r\n\t\t\t\tg.drawRoundRect(mFrameX - 7, mFrameY - 7, imageWidth + 14, imageHeight + 14, 14, 14);\r\n\t\t\t}\r\n\r\n\t\t\t// ask overlays to paint in the buffer\r\n\t\t\tfor (OverlayContributor overlay : mOverlayManager)\r\n\t\t\t{\r\n\t\t\t\tif (overlay.shouldRun())\r\n\t\t\t\t\toverlay.paintOverlay(this);\r\n\t\t\t}\r\n\r\n\t\t\t// paint the buffer to the screen\r\n\t\t\tg.drawImage(mImageBuffer, mFrameX, mFrameY, null);\r\n\t\t}\r\n\t}", "public void end() {\r\n GL11.glViewport(0, 0, GLContext.getCurrent().getWidth(), GLContext.getCurrent().getHeight());\r\n glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);\r\n }", "protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }", "public void showBgBufferSurface(GraphicBufferEx buffer, Point position) {\n this.mBackgroundBuffer = buffer;\n this.mBackgourndSurface = makeSurfaceController(TAG, buffer.getWidth(), buffer.getHeight());\n attachBufferToSurface(this.mBackgourndSurface, this.mBackgroundBuffer);\n showBackgroundSurface(position);\n }", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(getAnimationFrame(), (int)(x - handler.getCamera().getxOffset()), (int)(y - handler.getCamera().getyOffset()), width, height, null);\n\t //drawBoudingBox(g);\n\t}", "@Override\n public void draw() {\n }", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void blit() {}", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "public void draw() {\n \n }", "public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}", "public void render() {\n backGraphics.drawImage(background, backgroundX, backgroundY, null);\n\n GameObject.renderAll(backGraphics);\n\n //2. Call repaint\n repaint();\n }", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "private void draw() {\n\tSurfaceHolder holder = getSurfaceHolder();\n\tCanvas canvas = null;\n\ttry {\n\t\tcanvas = holder.lockCanvas();\n\t\tif (canvas != null) {\n\t\t\tif (bitmap == null) {\n\t\t\t\tbitmap = iniBitmap(canvas.getWidth(), canvas.getHeight());\n\t\t\t}\n\t\t\tcanvas.drawBitmap(bitmap.getBitmap(), 0, 0, paint);\n\t\t}\n\t} finally {\n\t\tif (canvas != null) holder.unlockCanvasAndPost(canvas);\n\t}\n}", "@Override\n\tpublic void drawForeground(Canvas canvas, int width, int height) {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\r\n\tpublic void draw(Canvas canvas)\r\n\t{\n\t\tsuper.draw(canvas);\r\n\t\tcanvas.drawBitmap(Backgroud,null,new Rect(0, 0, Backgroud.getWidth(), Backgroud.getHeight()),null);\r\n\t\tlabyrinthe.DessinInterface(canvas);\r\n\t\tdepartBalle.draw(canvas);\r\n\r\n\t}", "private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }", "public void bind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle[0]);}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "public void draw(float dt) {\r\n\r\n\r\n\t\tCharacterModel lead = movementController.getLead();\r\n\t\tcanvas.clear();\r\n\r\n\t\tfloat cameraX = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat cameraY = camera.position.y - canvas.getHeight() / 2;\r\n\r\n\t\t// Create the frame buffer if uninitialized\r\n\t\tif (fbo == null) {\r\n\t\t\tfbo = new FrameBuffer(Pixmap.Format.RGBA8888, canvas.getWidth(), canvas.getHeight(), false);\r\n\t\t}\r\n\r\n\t\t// Draw background\r\n\t\tcanvas.beginCustom(GameCanvas.BlendState.NO_PREMULT, GameCanvas.ChannelState.ALL);\r\n//\t\tcanvas.draw(backgroundTexture, Color.WHITE, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\tbackgroundAnimator.setRegion(backgroundTexture);\r\n\t\tbackgroundAnimator.setFrame((int)backgroundAnimeframe);\r\n\t\tcanvas.draw(backgroundAnimator, Color.WHITE, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\tcanvas.endCustom();\r\n\r\n\t\t// Create alpha background if uninitialized\r\n\t\tif (alpha_background == null) {\r\n\t\t\talpha_background = createRectangularTexture(canvas.getWidth(), canvas.getHeight());\r\n\t\t}\r\n\r\n\t\tCharacterModel follower = lead.equals(phobia) ? somni : phobia;\r\n\r\n\t\t// Check if switching and update mask drawing\r\n\t\tif (switching) {\r\n\t\t\tif (!holdingHands) {\r\n\t\t\t\t// Apply fade effect for follower (fading away)\r\n\t\t\t\tdrawFadePlatforms(cameraX, cameraY, follower);\r\n\t\t\t}\r\n\r\n\t\t\t// Draw mask for the mask leader\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, !holdingHands ? 1 : 0, maskLeader);\r\n\r\n\t\t\t// Draw mask for the follower while switching\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1, follower);\r\n\r\n\t\t\t// Draw mask for the mask leader to cover follower's\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1,\r\n\t\t\t\t\tmaskLeader);\r\n\r\n\t\t\t// Increase mask size\r\n\t\t\tmaskWidth += INCREMENT_AMOUNT;\r\n\t\t\tmaskHeight += INCREMENT_AMOUNT;\r\n\t\t\tif (riftCoversCameraBounds(cameraX, cameraY, maskWidth, maskHeight, maskLeader)) {\r\n\t\t\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\t\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\t\t\t\tswitching = false;\r\n\t\t\t\tmaskLeader = follower;\r\n\t\t\t\tbackgroundTexture = backgroundTexture.equals(backgroundLightTexture) ? backgroundDarkTexture :\r\n\t\t\t\t\t\tbackgroundLightTexture;\r\n\t\t\t\tbackgroundAnimator.setRegion(backgroundTexture);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Check if shrinking\r\n\t\t\tboolean shrinking = maskWidth > MIN_MASK_DIMENSIONS.x || maskHeight > MIN_MASK_DIMENSIONS.y;\r\n\t\t\tif (shrinking) {\r\n\t\t\t\t// Apply fade away effect for the lead (fading in)\r\n\t\t\t\tif (!holdingHands) {\r\n\t\t\t\t\tdrawFadePlatforms(cameraX, cameraY, lead);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Make sure the rift is still drawn (to carry over the effect)\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, !holdingHands ? 1 : 0, maskLeader);\r\n\r\n\t\t\t\t// Draw mask for the lead while shrinking\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y,\r\n\t\t\t\t\t\t!holdingHands ? 1 : 0, lead);\r\n\r\n\t\t\t\t// Draw mask for the mask leader to cover follower's\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1,\r\n\t\t\t\t\t\tmaskLeader);\r\n\t\t\t} else {\r\n\t\t\t\t// Draw lead platform\r\n\t\t\t\tif (!holdingHands) {\r\n\t\t\t\t\tcanvas.begin();\r\n\t\t\t\t\tfor (Obstacle obj : lead.equals(somni) ? lightObjects : darkObjects) {\r\n\t\t\t\t\t\tobj.draw(canvas);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcanvas.end();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Draw mask leader's mask AFTER drawing lead platforms (prevents popping platforms)\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, 2, maskLeader);\r\n\r\n\t\t\t\t// Draw mask for the lead to cover maskLeader's\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1, lead);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Decrease mask size to minimum\r\n\t\t\tmaskWidth -= maskWidth <= MIN_MASK_DIMENSIONS.x ? 0 : INCREMENT_AMOUNT;\r\n\t\t\tmaskHeight -= maskHeight <= MIN_MASK_DIMENSIONS.y ? 0 : INCREMENT_AMOUNT;\r\n\t\t}\r\n\r\n\t\t// Draw light and dark platforms if holding hands\r\n\t\tif (holdingHands) {\r\n\t\t\tcanvas.begin();\r\n\t\t\tfor (Obstacle obj : lead.equals(somni) ? lightObjects : darkObjects) {\r\n\t\t\t\tobj.draw(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\t\t\talphaAmount = alphaAmount + alphaIncrement >= 1 ? 1 : alphaAmount + alphaIncrement;\r\n\t\t} else {\r\n\t\t\talphaAmount = alphaAmount - alphaIncrement <= 0 ? 0 : alphaAmount - alphaIncrement;\r\n\t\t\t;\r\n\t\t}\r\n\t\talphaWhite.a = alphaAmount;\r\n\t\tcanvas.begin();\r\n\t\tfor (Obstacle obj : follower.equals(somni) ? lightObjects : darkObjects) {\r\n//\t\t\t((SimpleObstacle) obj).drawWithTint(canvas, alphaWhite);\r\n\t\t\t((PlatformModel) obj).drawWithTint(canvas, alphaWhite);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw shared platforms\r\n\t\tcanvas.begin();\r\n\t\tfor (Obstacle obj : sharedObjects) {\r\n\r\n\t\t\t// Ignore characters which we draw separately\r\n\t\t\tif (!(obj instanceof CharacterModel)) {\r\n\t\t\t\t(obj).draw(canvas);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw current model\r\n\t\tcanvas.begin();\r\n\t\tif (holdingHands) {\r\n\t\t\tcombined.draw(canvas, Color.WHITE);\r\n\t\t} else {\r\n\t\t\talphaWhite.a = 0.5f;\r\n\t\t\tfollower.draw(canvas, alphaWhite);\r\n\t\t\tlead.draw(canvas, Color.WHITE);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw sliders if active\r\n\t\tcanvas.begin();\r\n\t\tif (!createdSliders) {\r\n\t\t\tcreateSliders();\r\n\t\t\tcreatedSliders = true;\r\n\t\t}\r\n\r\n\t\tif (slidersActive()) {\r\n\t\t\tstage.draw();\r\n\t\t\tstage.act();\r\n\t\t\tdisplayFont.getData().setScale(.3f, .3f);\r\n\t\t\tlabelStyle.fontColor = lead == phobia ? Color.BLACK : Color.WHITE;\r\n\t\t\tdrawSliders();\r\n\t\t\tGdx.input.setInputProcessor(stage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw pauseMenu\r\n\t\tcanvas.begin();\r\n\r\n//\t\tif (firstTimeRendered) {\r\n//\t\t\tcreateModalWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRendered = false;\r\n//\t\t}\r\n//\t\tif (firstTimeRenderedWinMenu) {\r\n//\t\t\tcreateWinWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRenderedWinMenu = false;\r\n//\t\t}\r\n//\r\n//\t\tif (firstTimeRenderedFailMenu) {\r\n//\t\t\tcreateFailWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRenderedFailMenu = false;\r\n//\t\t}\r\n\r\n\t\tif (pauseMenuActive()) {\r\n\t\t\tcanvas.draw(blurBackground, Color.BLACK, cameraX, cameraY, canvas.getWidth(), canvas.getWidth());\r\n\t\t\tsetPositionPauseMenu();\r\n\t\t\tfirstPosition = true;\r\n\t\t\tpauseMenuStage.draw();\r\n\t\t\tpauseMenuStage.act(dt);\r\n\r\n\t\t\tif (exitButton.isOver()) {\r\n\t\t\t\tunderline.setSize(exitButton.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(exitButton.getX() + UNDERLINE_OFFSETX, exitButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else if (resumeButton.isOver()) {\r\n\t\t\t\tunderline.setSize(resumeButton.getWidth() + UNDERLINE_WIDTH_OFFSET, resumeButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(resumeButton.getX() + UNDERLINE_OFFSETX, resumeButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else if (restartButton.isOver()) {\r\n\t\t\t\tunderline.setSize(restartButton.getWidth() + UNDERLINE_WIDTH_OFFSET, restartButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(restartButton.getX() + UNDERLINE_OFFSETX, restartButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else {\r\n\t\t\t\tunderline.setVisible(false);\r\n\t\t\t}\r\n\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\tpauseMenu.setBackground(blueRectangle);\r\n\t\t\t\texitButton.getStyle().up = blueExit;\r\n\t\t\t\tresumeButton.getStyle().up = blueResume;\r\n\t\t\t\trestartButton.getStyle().up = blueRestart;\r\n\t\t\t\tunderline.setDrawable(blueUnderline);\r\n\t\t\t\tmusicIcon.setDrawable(blueMusicNote);\r\n\t\t\t\tsoundIcon.setDrawable(blueSound);\r\n\t\t\t\tsliderMusic.getStyle().background = blueSlider;\r\n\t\t\t\tsliderMusic.getStyle().knob = blueKnob;\r\n\t\t\t\tsliderSound.getStyle().background = blueSlider;\r\n\t\t\t\tsliderSound.getStyle().knob = blueKnob;\r\n\t\t\t} else {\r\n\t\t\t\tpauseMenu.setBackground(orangeRectangle);\r\n\t\t\t\texitButton.getStyle().up = orangeExit;\r\n\t\t\t\tresumeButton.getStyle().up = orangeResume;\r\n\t\t\t\trestartButton.getStyle().up = orangeRestart;\r\n\t\t\t\tunderline.setDrawable(orangeUnderline);\r\n\t\t\t\tmusicIcon.setDrawable(orangeMusicNote);\r\n\t\t\t\tsoundIcon.setDrawable(orangeSound);\r\n\t\t\t\tsliderMusic.getStyle().background = orangeSlider;\r\n\t\t\t\tsliderMusic.getStyle().knob = orangeKnob;\r\n\t\t\t\tsliderSound.getStyle().background = orangeSlider;\r\n\t\t\t\tsliderSound.getStyle().knob = orangeKnob;\r\n\t\t\t}\r\n\r\n\t\t\tGdx.input.setInputProcessor(pauseMenuStage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\tcanvas.begin();\r\n\t\tif (firstTimeRenderedPauseButton) {\r\n\t\t\tcreatePauseButton();\r\n\t\t\tfirstTimeRenderedPauseButton = false;\r\n\t\t} else {\r\n\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\tpauseButton.getStyle().up = bluePauseButton;\r\n\t\t\t} else {\r\n\t\t\t\tpauseButton.getStyle().up = orangePauseButton;\r\n\t\t\t}\r\n\t\t\tdrawPauseButton();\r\n\t\t}\r\n\r\n\t\tif (!pauseMenuActive() && gameScreenActive && !slidersActive()) {\r\n\t\t\tGdx.input.setInputProcessor(pauseButtonStage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw debug if active\r\n\t\tif (isDebug()) {\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : sharedObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : lightObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : darkObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\r\n\t\t}\r\n\r\n\t\t// Draw final message when level ends\r\n\t\t// Draw final message when level ends\r\n\t\t//JENNA\r\n\t\tif (isComplete() && !isFailure()) {\r\n\r\n\r\n\t\t\tcanvas.begin();\r\n\t\t\tif (isComplete()) {\r\n\r\n\t\t\t\tsetPositionMenu(winMenu);\r\n\t\t\t\twinMenuStage.draw();\r\n\t\t\t\twinMenuStage.act(dt);\r\n\r\n\t\t\t\tif (exitButtonWin.isOver()) {\r\n\t\t\t\t\tunderlineWinMenu.setSize(exitButtonWin.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButtonWin.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineWinMenu.setPosition(exitButtonWin.getX() + UNDERLINE_OFFSETX, exitButtonWin.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineWinMenu.setVisible(true);\r\n\t\t\t\t} else if (advanceButton.isOver()) {\r\n\t\t\t\t\tunderlineWinMenu.setSize(advanceButton.getWidth() + UNDERLINE_WIDTH_OFFSET, advanceButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineWinMenu.setPosition(advanceButton.getX() + UNDERLINE_OFFSETX, advanceButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineWinMenu.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunderlineWinMenu.setVisible(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\t\twinMenu.setBackground(blueRectangle);\r\n\t\t\t\t\texitButtonWin.getStyle().up = blueExit;\r\n\t\t\t\t\tadvanceButton.getStyle().up = blueNext;\r\n\t\t\t\t\tunderlineWinMenu.setDrawable(blueUnderline);\r\n\t\t\t\t} else {\r\n\t\t\t\t\twinMenu.setBackground(orangeRectangle);\r\n\t\t\t\t\texitButtonWin.getStyle().up = orangeExit;\r\n\t\t\t\t\tadvanceButton.getStyle().up = orangeNext;\r\n\t\t\t\t\tunderlineWinMenu.setDrawable(orangeUnderline);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tGdx.input.setInputProcessor(winMenuStage);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\r\n\r\n\t\t} else if (isFailure()) {\r\n\r\n\t\t\tcanvas.begin();\r\n\t\t\tif (isFailure()) {\r\n\t\t\t\tsetPositionMenu(failMenu);\r\n\t\t\t\tfailMenuStage.draw();\r\n\t\t\t\tfailMenuStage.act(dt);\r\n\r\n\t\t\t\tif (exitButtonFail.isOver()) {\r\n\t\t\t\t\tunderlineFailMenu.setSize(exitButtonFail.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButtonFail.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineFailMenu.setPosition(exitButtonFail.getX() + UNDERLINE_OFFSETX, exitButtonFail.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineFailMenu.setVisible(true);\r\n\t\t\t\t} else if (restartButtonFail.isOver()) {\r\n\t\t\t\t\tunderlineFailMenu.setSize(restartButtonFail.getWidth() + UNDERLINE_WIDTH_OFFSET, restartButtonFail.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineFailMenu.setPosition(restartButtonFail.getX() + UNDERLINE_OFFSETX, restartButtonFail.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineFailMenu.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunderlineFailMenu.setVisible(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\t\tfailMenu.setBackground(blueRectangle);\r\n\t\t\t\t\texitButtonFail.getStyle().up = blueExit;\r\n\t\t\t\t\trestartButtonFail.getStyle().up = blueRestart;\r\n\t\t\t\t\tunderlineFailMenu.setDrawable(blueUnderline);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfailMenu.setBackground(orangeRectangle);\r\n\t\t\t\t\texitButtonFail.getStyle().up = orangeExit;\r\n\t\t\t\t\trestartButtonFail.getStyle().up = orangeRestart;\r\n\t\t\t\t\tunderlineFailMenu.setDrawable(orangeUnderline);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tGdx.input.setInputProcessor(failMenuStage);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\r\n\r\n\t\t}\r\n\t}", "private void render() {\n\t\tBufferStrategy bufferStrategy = getBufferStrategy(); //Create BufferStrategy object\n\n\t\t//If the Buffer Strategy doesn't exist, create one\n\t\tif(bufferStrategy == null) {\n\t\t\tcreateBufferStrategy(3); //Triple buffer\n\t\t\treturn; //Return\n\t\t}\n\n\t\tGraphics g = bufferStrategy.getDrawGraphics(); //Create Graphics object\n\t\tg.setColor(Color.black); //Set the colour of the object to black\n\t\tg.fillRect(0, 0, Game.WIDTH, Game.HEIGHT); //Fill the window\n\n\t\t//Start screen\n\t\tif(!startScreen.start && !player.dead && !player.win) {\n\t\t\tstartScreen.render(g); //Render the start screen\n\t\t\t//If the user presses enter\n\t\t\tif(enter) {\n\t\t\t\tstartScreen.start = true; //Game has started\n\t\t\t}\n\t\t}\n\n\t\t//Playing screen\n\t\tif(!player.dead && !player.win && startScreen.start) {\n\t\t\tlevel.render(g); //Render the level\n\t\t\tplayer.render(g); //Render the player to the graphics object\n\t\t\thp(g); //Render the hit points\n\t\t\tif(paused) {\n\t\t\t\tpauseScreen.render(g);\n\t\t\t}\n\t\t}\n\n\t\t//Dead screen\n\t\tif(player.dead){\n\t\t\tdeadScreen.render(g); //Render the dead screen\n\t\t}\n\n\t\t//Win screen\n\t\tif(player.win) {\n\t\t\twinScreen.render(g); //Render the win screen\n\t\t}\n\t\tg.dispose(); //Dispose of the object\n\t\tbufferStrategy.show(); //Show it\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "public void draw() {\n }", "void reDraw();", "@Override\n\tpublic void draw() {\n\t}", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "public void paintComponent(Graphics g)\n {\n g.drawImage(back, 0, 0, null);\n }", "public void paint() {\r\n\t\tBufferStrategy bf = base.frame.getBufferStrategy();\r\n\t\ttry {\r\n\t\t\tg = bf.getDrawGraphics();\r\n\t\t\tg.clearRect(0, 0, 1024, 768);\r\n\t\t\tg.setFont(normal);\r\n\t\t\tif (gameState == 1) {\r\n\t\t\t\tg.drawImage(playButton, playButtonXM, playButtonYM, playButtonWidthM, playButtonHeightM, this);\t\t\t\t\r\n\t\t\t}else if (gameState == 3){\r\n\t\t\t\tint weaponPosX = ((arrow2X-arrowX) /2) + arrowX - 20;\r\n\t\t\t\tint weaponPosY = arrowY - 15;\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY2ndRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY2ndRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY3rdRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY3rdRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY4thRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY4thRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(playButton, playButtonX, playButtonY, playButtonWidth, playButtonHeight, this);\r\n\r\n\t\t\t\t//text boxes above choices\r\n\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\tg.drawString(\"Weapon\", weaponPosX, weaponPosY);\r\n\t\t\t\tg.drawString(\"Difficulty\", weaponPosX, (arrowY2ndRow - 15));\r\n\t\t\t\tg.drawString(\"Number of AI\", weaponPosX - 12, (arrowY3rdRow - 15));\r\n\t\t\t\tg.drawString(\"Number of players\", weaponPosX - 20, (arrowY4thRow - 15));\r\n\r\n\t\t\t\tif (getDifficulty() == 1){\r\n\t\t\t\t\tg.drawImage(Easy, difficultyXPos, arrowY2ndRow, difficultyWidth , arrowHeight, this);\r\n\t\t\t\t}else if (getDifficulty() == 2) {\r\n\t\t\t\t\tg.drawImage(Normal, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tg.drawImage(Hard, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tif (getAttackStyle() == 2) {\r\n\t\t\t\t\tg.drawImage(Arrowr, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 280, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//due to the sword using all of the x positions the width is slightly different\r\n\t\t\t\t\tg.drawImage(SwordL, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 300, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tint AIXPos = weaponPosX;\r\n\t\t\t\tif (AINum >= 10 && AINum<100) {\r\n\t\t\t\t\tAIXPos -=25;\r\n\t\t\t\t} else if (AINum >= 100 && AINum < 1000) {\r\n\t\t\t\t\t//the reason why this grows by 40 instead of an additional 20 is because we are not storing the variable\r\n\t\t\t\t\t//of current position anywhere so we just add another 20 onto the decrease\r\n\t\t\t\t\tAIXPos-=50;\r\n\t\t\t\t} else if (AINum >= 1000) {\r\n\t\t\t\t\tAIXPos-=75;\r\n\t\t\t\t}\r\n\t\t\t\tg.setFont(numbers);\r\n\t\t\t\tString currentNum = Integer.toString(AINum);\r\n\t\t\t\tString currentPlayerString = Integer.toString(currentPlayer);\r\n\t\t\t\tg.drawString(currentNum, AIXPos, arrowY3rdRow + 72);\r\n\t\t\t\tg.drawString(currentPlayerString, weaponPosX, arrowY4thRow + 72);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ((!escape) && (!dead) &&(!allAIDead)) {\r\n\t\t\t\t\tg.drawImage(picture, 0, 0, base.frame.getWidth(), base.frame.getHeight(), this);\r\n\t\t\t\t\tfor (int i = 0; i < playerObject.length; i++) {\r\n\t\t\t\t\t\tint playerX = (int) playerObject[i].getX();\r\n\t\t\t\t\t\tint playerY = (int) playerObject[i].getY();\r\n\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t// health bar\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, 100, healthY);\r\n\t\t\t\t\t\tg.setColor(Color.red);\r\n\t\t\t\t\t\tg.fillOval(playerX, playerY, 20, 20);\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, (int) (playerObject[i].getHealth()/2) , healthY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//AI\r\n\t\t\t\t\tfor (int i = 0; i < AIObject.length; i++) {\r\n\t\t\t\t\t\tif (!AIObject[i].isDead()) {\r\n\t\t\t\t\t\t\tint AIRoundedX = (int) AIObject[i].getAIX();\r\n\t\t\t\t\t\t\tint AIRoundedY = (int) AIObject[i].getAIY();\r\n\t\t\t\t\t\t\tif (AIObject[i].getColor() == null) {\r\n\t\t\t\t\t\t\t\tint red = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint green = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint blue = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tColor newColor = new Color(red,green,blue);\r\n\t\t\t\t\t\t\t\tg.setColor(newColor);\r\n\t\t\t\t\t\t\t\tAIObject[i].setColor(newColor);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tg.fillOval(AIRoundedX, AIRoundedY, 20, 20);\r\n\t\t\t\t\t\t\tAIDeadCount = 0;\r\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, AI_ORIG_HEALTH/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, (int) AIObject[i].getAIHealth()/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tAIDeadCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// early access banner\r\n\t\t\t\t\tg.drawImage(earlyAccess, 0, 24, this);\r\n\r\n\t\t\t\t\tif (attackStyle == 2) {\r\n\t\t\t\t\t\tif (drawArrow == true) {\r\n\t\t\t\t\t\t\tinFlight = true;\r\n\t\t\t\t\t\t\tshouldPlaySound = true;\r\n\t\t\t\t\t\t\tif ((fireLeft) && (currentlyDrawingArrow != 2)) {\r\n\t\t\t\t\t\t\t\tgoingLeft = true;\r\n\t\t\t\t\t\t\t\tgoingRight = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 1;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowl, Math.round(aX), Math.round(aY), this);\r\n\r\n\t\t\t\t\t\t\t} else if ((fireRight) && (currentlyDrawingArrow != 1)) {\r\n\t\t\t\t\t\t\t\tgoingRight = true;\r\n\t\t\t\t\t\t\t\tgoingLeft = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 2;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowr, Math.round(aX), Math.round(aY), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ((aX >= 1024) || (!drawArrow) || (aX <= 0)) {\r\n\t\t\t\t\t\t\tinFlight = false;\r\n\t\t\t\t\t\t\taX = playerObject[0].getX();\r\n\t\t\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t\t\t\tcurrentlyDrawingArrow = 0;\r\n\t\t\t\t\t\t\tdrawArrow = false;\r\n\t\t\t\t\t\t\tshouldPlaySound = false;\r\n\t\t\t\t\t\t\tnotPlayingSound = false;\r\n\t\t\t\t\t\t\talreadyShot = false;\r\n\t\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint roundedX = Math.round(playerObject[0].getX());\r\n\t\t\t\t\t\tint roundedY = Math.round(playerObject[0].getY());\r\n\t\t\t\t\t\tif (drawSword) {\r\n\t\t\t\t\t\t\tswordCount++;\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX - 45, roundedY - 30, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX - 63, roundedY, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\t//image flip g.drawImage(SwordHorizontalL, Math.round(x) - 2, Math.round(y) - 45, -SwordHorizontalL.getWidth(this),SwordHorizontalL.getHeight(this),this);\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth,swordHorizontalLWidth,this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX + 80, roundedY - 30,\r\n\t\t\t\t\t\t\t\t\t\t\t-sword45LWidth, sword45LHeight, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX +90, roundedY, -swordLWidth, swordLHeight, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth, swordHorizontalLHeight, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\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} else if (shield) {\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX - 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX + 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t-SwordHorizontalL.getWidth(this), SwordHorizontalL.getHeight(this), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tswordCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (escape) {\r\n\t\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawString(\"PAUSED\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t\telse if (dead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"Dead\", 512, 389);\r\n\t\t\t\t} else if(allAIDead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"You win\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t\t// Shows the contents of the backbuffer on the screen.\r\n\t\tbf.show();\r\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "void update() {\n rectToBeDrawn = new Rect((frameNumber * frameSize.x)-1, 0,(frameNumber * frameSize.x + frameSize.x) - 1, frameSize.x);\n\n //now the next frame\n frameNumber++;\n\n //don't try and draw frames that don't exist\n if(frameNumber == numFrames){\n frameNumber = 0;//back to the first frame\n }\n }", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n // tell our stage to do actions and draw itself\n stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));\n\n stage.getBatch().begin();\n backSprite.draw(stage.getBatch());\n stage.getBatch().end();\n\n stage.draw();\n\n\n }", "void render(Graphics2D brush);", "@Override\n public void draw(Batch batch, float alpha) {\n\t\t if(reverse)\n \tbatch.draw(plat,this.getX()+69, this.getY(),plat.getWidth()*px,plat.getHeight()*py,0,0,plat.getWidth(),plat.getHeight(),reverse,false);\n\t\t else\n\t\t\t batch.draw(plat,this.getX(), this.getY(),plat.getWidth()*px,plat.getHeight()*py);\n \tif(!reverse){\n \tbatch.draw(bar1,this.getX()+9,this.getY()+142,330/maxBlood*blood*px,bar1.getHeight()*py);\n \tbatch.draw(bar2,this.getX()+9,this.getY()+95,240*magic/maxMagic*px,bar2.getHeight()*py);\n \t}else{\n \t\tbatch.draw(bar1,this.getX()+688-330/maxBlood*blood*px,this.getY()+142,330/maxBlood*blood*px,bar1.getHeight()*py);\n \tbatch.draw(bar2,this.getX()+688-240*magic/maxMagic*px,this.getY()+95,240*magic/maxMagic*px,bar2.getHeight()*py);\n \t}\n \t}", "private void fadeBuffer(Graphics g) {\n g.setColor(new Color(0,0,0,FADE_RATE));\n g.fillRect(0,0,width,height);\n }", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw(){\n }", "public void Render() {\n\t\tbufferStrat = getBufferStrategy();\n\t\tif (bufferStrat == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tstylus = bufferStrat.getDrawGraphics();\n\t\t\n\t\tstylus.drawImage(buffer, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\tstylus.dispose();\n\t\tbufferStrat.show();\n\t}", "private void draw() {\n\t\tgsm.draw(g);\n\t\tg.setColor(Color.WHITE);\n\t\tif (fps < 25)\n\t\t\tg.setColor(Color.RED);\n\t\tg.drawString(\"FPS: \" + fps, 10, 15);\n\t}", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "private void draw() {\n gsm.draw(g);\n }", "public void beginDrawing();", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.4f, 0.737f, 0.929f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n checkForBack();\n\n stage.act();\n stage.draw();\n }", "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "public void newDrawing()\n {\n //clear the current canvas\n canvas.drawColor(0, PorterDuff.Mode.CLEAR);\n //reprint the screen\n invalidate();\n }", "public void draw(Batch batch) {\n\n //System.out.format(\"currentFrame: %d%n\", currentFrame);\n //System.out.format(\"x: %f y: %f z: %f%n\", position.x, position.y, position.z);\n\n int scrx = (int) this.position.x;\n int scry = (int) this.position.y;\n int shadx = scrx + (int) (this.position.z / 2);\n int shady = scry + (int) (this.position.z / 2);\n\n this.currentFrame = shadx - scrx;\n if (this.currentFrame < 4) {\n //low ball, shadow contained in sprite\n scry += this.position.z / 2;\n if (this.currentFrame >= 0 && this.currentFrame < 8) {\n batch.draw(this.frames[0][this.currentFrame], scrx - SPRITE_WIDTH / 2, scry - SPRITE_HEIGHT / 2);\n }\n } else {\n //draw the shadow\n int shadowFrame = 8;\n batch.draw(this.frames[0][shadowFrame], shadx - SPRITE_WIDTH / 2, shady - SPRITE_HEIGHT / 2);\n //draw the ball\n scry += (this.position.z / 2);\n this.currentFrame = (int) Math.min(3, this.position.z / 32);\n int ballFrame = this.currentFrame + 4;\n batch.draw(this.frames[0][ballFrame], scrx - SPRITE_WIDTH / 2, scry - SPRITE_HEIGHT / 2);\n }\n }", "public void draw() {\n\n }", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\r\n\t\tLog.d(TAG, \"onDrawFrame\"\t);\r\n\t\t\tsetGL(gl);\r\n\t\t\tDrawObjects(gl);\r\n\t\t\tunSetGl(gl);\r\n\t}", "@Override // com.android.server.wm.HwMagicWinSplitAnimation\n public void applyBufferToSurface(SurfaceControl sc, GraphicBufferEx buffer) {\n Surface surface = new Surface(sc);\n Rect bounds = new Rect(0, 0, this.mWidth, this.mHeigth);\n Canvas canvas = null;\n try {\n canvas = surface.lockCanvas(bounds);\n } catch (Surface.OutOfResourcesException | IllegalArgumentException e) {\n SlogEx.i(HwMagicWinSplitAnimation.TAG, \"lockCanvas exception\");\n }\n if (canvas != null) {\n Bitmap blurBitmap = null;\n Bitmap hwBitmap = null;\n try {\n canvas.drawColor(-1);\n hwBitmap = GraphicBufferEx.wrapHardwareBuffer(buffer, (ColorSpace) null);\n blurBitmap = HwBlur.blur(hwBitmap, 10, 1, false);\n canvas.drawBitmap(blurBitmap, (Rect) null, bounds, new Paint(5));\n canvas.drawColor(HwMagicWinSplitAnimation.COVER_COLOR);\n surface.unlockCanvasAndPost(canvas);\n surface.release();\n } finally {\n if (blurBitmap != null && !blurBitmap.isRecycled()) {\n blurBitmap.recycle();\n }\n if (hwBitmap != null && !hwBitmap.isRecycled()) {\n hwBitmap.recycle();\n }\n if (!buffer.isDestroyed()) {\n buffer.destroy();\n }\n }\n }\n }", "private void controlResized() {\n disposeBackBuffer();\n initializeBackBuffer();\n\n redraw();\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "@Override\n\tpublic void draw(){\n\t\tif( HighGui.queryFrame(capture, im) ){\n\t\t\tbackground(70);\n\n\t\t\t// Draw it\n\t\t\timage(PUtils.getPImage(im), 0, 0);\n\n\t\t\tSmoothType type = SmoothType.CV_BLUR;\n\t\t\tif( r.value() != -1) type = SmoothType.values()[(int)r.value()-1];\n\n\t\t\tint size1 = (int)size1_slider.value();\n\t\t\tif( size1%2 == 0 ) size1++;\n\t\t\tint size2 = (int)size2_slider.value();\n\t\t\tif( size2%2 == 0 ) size2++;\n\n\t\t\tImgProc.smooth(im, im_smooth, type, size1, size2, param3_slider.value(), param4_slider.value());\n\t\t\timage(PUtils.getPImage(im_smooth), w, 0);\n\t\t}\n\t}", "protected abstract void draw();" ]
[ "0.7812194", "0.70340925", "0.68929267", "0.67352766", "0.6734889", "0.6658263", "0.6649684", "0.6637065", "0.65877515", "0.658643", "0.6531066", "0.65203434", "0.647528", "0.64644176", "0.6463715", "0.6463681", "0.6453248", "0.64487445", "0.6447394", "0.6407871", "0.64006454", "0.6399543", "0.6390687", "0.6384101", "0.63721967", "0.63704145", "0.6364371", "0.6329761", "0.6329761", "0.6328915", "0.63045996", "0.63019073", "0.6264678", "0.62598747", "0.62526745", "0.6245403", "0.62346035", "0.6231311", "0.62305474", "0.62249976", "0.62102646", "0.6204835", "0.62015015", "0.62002593", "0.6197987", "0.6196837", "0.6192985", "0.6191916", "0.61877126", "0.61826175", "0.61826175", "0.6180873", "0.6180571", "0.61776936", "0.61740255", "0.6170701", "0.61632025", "0.6155144", "0.61524284", "0.6144988", "0.61436415", "0.61436415", "0.61426485", "0.6135917", "0.6133993", "0.6118811", "0.6101686", "0.6100716", "0.61004794", "0.6097609", "0.60934263", "0.6093121", "0.60703564", "0.6068633", "0.60660356", "0.6060825", "0.6053084", "0.60528755", "0.60528654", "0.60436684", "0.60269856", "0.6015578", "0.6011624", "0.6008073", "0.60009587", "0.599831", "0.59946805", "0.5994381", "0.59855443", "0.5985172", "0.59844714", "0.5967944", "0.59657735", "0.59614587", "0.59582466", "0.5943895", "0.59426206", "0.59417474", "0.59379315", "0.59367114", "0.5929957" ]
0.0
-1
read url from property file
public static void main(String[] args) { String url = ConfigurationReader.getProperty("url"); Driver.get().get(url); BrowserUtils.wait(2); Driver.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private URL readURLFromProperties( Properties properties, String propertyName ) {\n\t\tURL url = null;\n\t\tString urlAsString = properties.getProperty(propertyName) ;\n\n\t\tif( urlAsString != null ) {\n\t\t\ttry {\n\t\t\t\turl = new URL( urlAsString);\n\t\t\t} catch( MalformedURLException e ) {\n\t\t\t\tLog.e( getClass( ).getCanonicalName(), \"Invalid URL for \"+propertyName, e);\n\t\t\t}\n\t\t} else {\n\t\t\tLog.e( getClass( ).getCanonicalName(), \"Missing property \"+propertyName);\n\t\t}\n\n\t\treturn url;\n\t}", "public String getURL(String key) {\n return propertiesConfiguration.getString(key);\n }", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}", "public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}", "private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "private static void loadPropertiesFromURL(String url, Properties properties) {\n \t\tif(url == null) throw new IllegalArgumentException(\"url cannot be null\");\n \t\tif(properties == null) throw new IllegalArgumentException(\"properties cannot be null\");\n \t\tURL propertiesLocation;\n \t\ttry {\n \t\t\tpropertiesLocation = new URL(url);\n \t\t} catch (MalformedURLException e1) {\n \t\t\tthrow new IllegalArgumentException(\"Could not load property file from url: \"+url, e1);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(propertiesLocation.openStream());\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}", "private Properties loadProperties(URL url, String suffix) throws IOException {\n \t\tif (suffix != null && !suffix.equals(\"\")) //$NON-NLS-1$\n \t\t\turl = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + suffix);\n \n \t\t// try to load saved configuration file\n \t\tProperties props = new Properties();\n \t\tInputStream is = null;\n \t\ttry {\n \t\t\tis = url.openStream();\n \t\t\tprops.load(is);\n \t\t\t// check to see if we have complete config file\n \t\t\tif (!EOF.equals(props.getProperty(EOF))) {\n \t\t\t\tthrow new IOException(Policy.bind(\"cfig.unableToLoad.incomplete\", url.toString())); //$NON-NLS-1$\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// ignore ...\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn props;\n \t}", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tFileInputStream fis=new FileInputStream(\"D:\\\\QSpiders_2019\\\\html\\\\config.properties.txt\");\r\n\t\t//Create an object of Properties class since getproperty() is a non-static method\r\n\t\tProperties prop=new Properties();\r\n\t\t//load the file into Properties class\r\n\t\tprop.load(fis);\r\n\t\t//read the data from Properties file using Key\r\n\t\tString URL =prop.getProperty(\"url\");\r\n\t\tSystem.out.println(URL);\r\n\t\tSystem.out.println(prop.getProperty(\"username\"));\r\n\t\tSystem.out.println(prop.getProperty(\"password\"));\r\n\t\tSystem.out.println(prop.getProperty(\"browser\"));\r\n\r\n\t}", "public String getHTTP_URL() throws PropertyDoesNotExistException {\r\n\t\tif (this.settings.containsKey(\"HTTP_URL\")) {\r\n\t\t\treturn this.settings.getProperty(\"HTTP_URL\");\r\n\t\t}\r\n\t\tthrow new PropertyDoesNotExistException(\"Can't find property 'HTTP_URL'\");\r\n\t}", "public abstract String getPropertyFile();", "private void loadURL() throws IOException{\n\t\tLOGGER.debug(\"BEGIN\");\n\t\t\t\t\t\n\t\ttry {\n\t\t\tinitCassandra();\n\t\t\tInitialContext initCtx = new InitialContext();\n\t\t\tString location = (String) initCtx.lookup(PropertiesConstants.PROPERTY_URL_JNDI);\n\t\t\tfileInputStream = new FileInputStream(new File(location));\n\t\t\t\n\t\t\tloadPropertyFile(fileInputStream);\n\t\t\t\n\t\t\tLOGGER.debug(\"Loading Property File\" + location);\n\t\t}catch (Exception e) {\n\t\t\tLOGGER.debug(\"No JNDI Settings found. \" + e);\t\t\t\n\t\t}\n\t\tsetLogLevel(getInt(PropertiesConstants.LOG_LEVEL));\n\t\tLOGGER.debug(\"END\");\n\t}", "public String getString(String urlKey) {\n\t\treturn properties.getProperty(urlKey);\t\t\t\t\n\t}", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "public String getUrlFromConfigFile(File configFile) {\n StringBuilder text = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(configFile));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n }\n br.close();\n } catch (IOException ex) {\n Toast.makeText(this, \"Reading file: \" + ex.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n return text.toString();\n }", "public static String fetchMyProperties(String req) throws Exception {\n\n String val;\n\n FileReader reader = new FileReader(\"src\\\\test\\\\java\\\\resources\\\\westpac.properties\");\n Properties p = new Properties();\n p.load(reader);\n val = p.getProperty(req);\n\n return val;// returning the requested value.\n }", "File getPropertiesFile();", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "public static void main(String[] args) throws IOException {\n\n\t\tString filePath=\"configs\\\\Task.properties\";\n\t\t\n\t\tFileInputStream fis=new FileInputStream(filePath);\t\n\t\t\n\t\t\n\t\tProperties prop=new Properties();\n\t\tprop.load(fis);\n\t\t\n\t\tString browser=prop.getProperty(\"browser\");\n\t\tString url=prop.getProperty(\"url\");\n\t\t\n\t\tSystem.out.println(browser+\"-->\"+url);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public File getPropertyFile() { return propertyFile; }", "@Override\r\n public String getURL() {\n return url;\r\n }", "@Test (dataProvider = \"testData\")\n public void readingPropertiesFileTest (final String testUrl, final String userName, final int port) {\n assertWithMessage (\"testurl\").that (testUrl)\n .isNotEmpty ();\n assertWithMessage (\"username\").that (userName)\n .isNotEmpty ();\n assertWithMessage (\"port\").that (port)\n .isNotNull ();\n }", "String getPropertyValue(String filename, String lang, String key);", "public static void main(String[] args) throws FileNotFoundException {\n\r\n\t\r\n\t\tProperties property = new Properties();\r\n\t\t\r\n\t\tFileInputStream input=new FileInputStream(\"C:\\\\Users\\\\MY PC\\\\Desktop\\\\java\\\\SeleniumJava\\\\src\\\\Config\\\\Config.properties.exe\");\r\n\t\tproperty.load(input);\r\n\t\tSystem.out.println(property.getProperty(\"browser\"));\r\n\t\tSystem.out.println(property.getProperty(\"url\"));\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "String getSpecUrl();", "public String getResourceurl() {\n return resourceurl;\n }", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "public String getURL() { return url; }", "public void testRemoteFileDescGetUrl() {\n\t\tSet urns = new HashSet();\n\t\turns.add(HugeTestUtils.URNS[0]);\n\t\tRemoteFileDesc rfd =\n\t\t\tnew RemoteFileDesc(\"www.test.org\", 3000, 10, \"test\", 10, TEST_GUID,\n\t\t\t\t\t\t\t 10, true, 3, true, null, urns, \n false, false,\"\",0, null, -1);\n\t\tURL rfdUrl = rfd.getUrl();\n\t\tString urlString = rfdUrl.toString();\n\t\tString host = rfd.getHost();\n\t\tString colonPort = \":\"+rfd.getPort();\n\t\tassertTrue(\"unexpected beginning of url\", \n\t\t\t\t urlString.startsWith(\"http://\"+host+colonPort));\n\t\tassertEquals(\"unexpected double slash\",\n\t\t urlString.indexOf(colonPort+\"//\"), -1);\n\t\tassertNotEquals(\"unexpected double slash\",\n\t\t -1, urlString.indexOf(\":3000/\"));\n\t}", "public String getURL()\n {\n return getURL(\"http\");\n }", "public URL getURL(String key) {\n\t\tURL defaultValue = (URL) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tURL url = null;\n\t\ttry {\n\t\t\turl = new URL(sp);\n\t\t} catch (MalformedURLException ex) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn url;\n\t}", "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 }", "private URL getURL(String filename) {\n\t\tURL url = null;\r\n\t\ttry { \r\n\t\t\turl = this.getClass().getResource(filename);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn url;\r\n\t}", "public String getURL();", "private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "public String getServerUrl() {\n return props.getProperty(\"url\");\n }", "String getProperty();", "String getProperty();", "String getProperty();", "@AutoEscape\n\tpublic String getFileUrl();", "String fetchProperty(String property)\n\t{\n\t\tif(configProp==null)\n\t\t\tloadPropertiesFile();\n\t\t\n\t\treturn(configProp.getProperty(property));\n\t}", "public static Hashtable getProperties(String url) {\n Hashtable<String, String> h = new Hashtable<String, String>();\n int propPos = url.indexOf(\"?\");\n if (propPos != -1) {\n StringTokenizer st = new StringTokenizer(url.substring(propPos + 1), \"&\");\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n int sep = token.indexOf(\"=\");\n if (sep != -1) {\n h.put(token.substring(0, sep), token.substring(sep + 1));\n }\n }\n }\n return h;\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public String readProperty(String property, String sFilePath) throws Exception {\n try {\n return readPropertyFile(sFilePath).get(property);\n } catch (Exception e) {\n throw new Exception(\"readProperty : \" + e.toString());\n }\n }", "public abstract String getURL();", "String getURL(FsItem f);", "static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\n File f=new File(\"D:\\\\selenium\\\\filehandlingtest\\\\file\\\\Test.properties\");\n FileInputStream fis=new FileInputStream(f);\n Properties prop=new Properties();\n prop.load(fis);\n System.out.println (prop.getProperty(\"domain\"));\n \n Enumeration e= prop.keys();\n\n while (e.hasMoreElements()){\n \tString key = (String) e.nextElement();\n \tSystem.out.println(key+\"----\"+prop.get(key));\n \t\n }\n\t}", "public static URL getURL(String cfgFilename) {\n File file = new File(cfgFilename);\n try {\n return file.toURI().toURL();\n } catch(MalformedURLException ex) {\n LOGGER.error(\"config failed, configFilename = \" + cfgFilename, ex);\n return null;\n }\n }", "java.lang.String getResourceUri();", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "@Property String getDocumentURI();", "@SuppressWarnings(\"IfStatementWithIdenticalBranches\")\n public final String getPropertyFromFile(final String key) {\n final var file = this.getPropertyCatalog();\n String data = \"\";\n File prop = new File(file);\n if (!prop.exists() || prop.length() == 0) {\n data = \"Refuse.Missing property file.\";\n } else {\n try (BufferedReader reader = new BufferedReader(\n new FileReader(file))) {\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.contains(\"=\") && line.contains(key)) {\n if (line.split(\"=\").length >= 2) {\n data = line.split(\"=\")[1];\n break;\n } else {\n data = \"abuse parameter.\";\n break;\n }\n }\n }\n } catch (IOException e) {\n data = \"Refuse.Mistake in-out property file.\";\n }\n }\n return data;\n }", "public String getUrl() { return url; }", "URL getUrl();", "Uri getUrl();", "String getProperty(String property);", "public String getURL() {\r\n return url;\r\n }", "public String getUrl(){\n \treturn url;\n }", "@Override\n public Configuration parseProperties(String fileUrlToProperties) throws Exception {\n fileUrlToProperties = resolvePropertiesSources(fileUrlToProperties);\n if (fileUrlToProperties != null) {\n for (String fileUrl : fileUrlToProperties.split(\",\")) {\n Properties brokerProperties = new InsertionOrderedProperties();\n if (fileUrl.endsWith(\"/\")) {\n // treat as a directory and parse every property file in alphabetical order\n File dir = new File(fileUrl);\n if (dir.exists()) {\n String[] files = dir.list(new FilenameFilter() {\n @Override\n public boolean accept(File file, String s) {\n return s.endsWith(\".properties\");\n }\n });\n if (files != null && files.length > 0) {\n Arrays.sort(files);\n for (String fileName : files) {\n try (FileInputStream fileInputStream = new FileInputStream(new File(dir, fileName));\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.clear();\n brokerProperties.load(reader);\n parsePrefixedProperties(this, fileName, brokerProperties, null);\n }\n }\n }\n }\n } else {\n File file = new File(fileUrl);\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.load(reader);\n parsePrefixedProperties(this, file.getName(), brokerProperties, null);\n }\n }\n }\n }\n parsePrefixedProperties(System.getProperties(), systemPropertyPrefix);\n return this;\n }", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public static String getPropertyValue(String filename,String variable) {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\t\tString result;\n\t\tString home = System.getProperty(\"conf.dir\");\n\t\ttry {\n\t\t\tinput = new FileInputStream(home+\"/\"+filename);\n\t\t\tprop.load(input);\n\t\t\tresult=prop.getProperty(variable);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Error occured while getting properties: \",e);\n\t\t\tresult=null;\n\t\t}\n\t\treturn result;\n\t}", "public void setURL(String _url) { url = _url; }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n url_ = s;\n }\n return s;\n }\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "public URL getURL() throws IOException {\r\n\t\tthrow new FileNotFoundException(getDescription() + \" cannot be resolved to URL\");\r\n\t}", "private String getURLText(URL url) {\n\t\tString path = url.getPath();\n\t\tif (\"blank\".equalsIgnoreCase(path)) {\n\t\t\treturn \"\";\n\t\t} else if (\"java-properties\".equals(path)) {\n\t\t\treturn this.getSystemProperties();\n\t\t} else {\n\t\t\treturn \"[Unknown about path: \" + path + \"]\";\n\t\t}\n\t}", "java.lang.String getProperty();", "public String getPropertyPath();", "public String getPropertyPath();", "java.net.URL getUrl();", "public String url() {\n return this.url;\n }", "private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "public String getEmbeddedUrlRE() {\n return getPropertyAsString(EMBEDDED_URL_RE,\"\");\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n url_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n url_ = s;\n }\n return s;\n }\n }", "public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }", "public void setFileUrl(String fileUrl);", "private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }", "Uri getJurisdiction();", "public java.lang.String getUrl(){\r\n return this.url;\r\n }", "public java.lang.String getURL() {\n return URL;\n }", "public java.lang.CharSequence getURL() {\n return URL;\n }", "public Map executeFileLoader(String propertyFile) {\r\n\t\t\r\n\t\tProperties propertyVals = new Properties();\r\n\t\ttry {\r\n\t\t\tInputStream inputStream = getClass().getClassLoader().getResourceAsStream(propertyFile);\r\n\t\t\tpropertyVals.load(inputStream);\r\n\t\t\t\t\r\n\t\t\tString URL =\tpropertyVals.getProperty(\"URL\");\r\n\t\t\tString Depth =\tpropertyVals.getProperty(\"Depth\");\r\n\t\t\tfactorVals = new HashMap<String, String>();\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<2; i++)\r\n\t\t\t{\r\n\t\t\t\tif(i==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfactorVals.put(\"URL\", URL);\r\n\t\t\t\t\t}\t\r\n\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfactorVals.put(\"Depth\", Depth);\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"File not Found.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn factorVals;\t\r\n\t}" ]
[ "0.7058532", "0.7005143", "0.67907786", "0.6664135", "0.6619965", "0.6574757", "0.63346094", "0.63287276", "0.6235359", "0.612282", "0.6069668", "0.6064935", "0.6039812", "0.6011987", "0.59961355", "0.58879995", "0.58675987", "0.58506143", "0.5795446", "0.57880324", "0.57813096", "0.5676935", "0.5655529", "0.5655478", "0.5654046", "0.5653041", "0.5650992", "0.5645428", "0.56294", "0.5627931", "0.56159747", "0.5604422", "0.5597836", "0.55873364", "0.55783105", "0.5576165", "0.5575006", "0.5567979", "0.5562007", "0.55596644", "0.55596644", "0.55596644", "0.5559629", "0.55306864", "0.5522439", "0.5506898", "0.5506898", "0.5506898", "0.5506898", "0.5506898", "0.5506898", "0.55065566", "0.55059195", "0.54912937", "0.54778475", "0.5473783", "0.54726136", "0.5464635", "0.54466224", "0.54401946", "0.5435767", "0.5432068", "0.5427851", "0.5423809", "0.54236555", "0.5421392", "0.5411284", "0.54072654", "0.54067206", "0.54067206", "0.54067206", "0.54067206", "0.54067206", "0.5402847", "0.5395258", "0.5390361", "0.5388061", "0.5387722", "0.5387722", "0.5377647", "0.53734016", "0.5370952", "0.5368494", "0.5368494", "0.53651494", "0.53596514", "0.5359228", "0.5357954", "0.53528583", "0.5349129", "0.5343033", "0.5342742", "0.5342742", "0.5327039", "0.53265285", "0.5323286", "0.53203", "0.5319133", "0.5315414", "0.53153366", "0.53125525" ]
0.0
-1
TODO Autogenerated method stub
@Override public void insert(BbsDto dto) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void delete(String id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void update(BbsDto dto) { }
{ "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
/ Returns the date for the next notification based on the history of notifications or null if no more notifications are necessary If no history is available, the next notification will be based on the startDate
public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory, long contactId) { ArrayList<NotificationOccurrence> contactNotificationOccurrenceHistory = new ArrayList<NotificationOccurrence>(); for(NotificationOccurrence no : notificationOccurrenceHistory) { if(no.getContactId() == contactId) { contactNotificationOccurrenceHistory.add(no); } } return getNextNotification(contactNotificationOccurrenceHistory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory) {\n\t\tif(interval == NotificationRule.INTERVAL_DATE) {\n\t\t\tif(notificationOccurrenceHistory == null || notificationOccurrenceHistory.size() == 0) {\n\t\t\t\treturn startDate;\n\t\t\t} else {\n\t\t\t\tNotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory);\n\t\t\t\tif(lastOccurrence.getAction() == NotificationOccurrence.ACTION_COMPLETED) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else {\n\t\t\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\t\t\tcalendar.setTime(lastOccurrence.getDate());\n\t\t\t\t\tcalendar.add(Calendar.DATE, 1);\n\t\t\t\t\treturn calendar.getTime();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tNotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory); \n\t\t\tDate lastOccurrenceDate;\n\t\t\tif(lastOccurrence != null) {\n\t\t\t\tlastOccurrenceDate = lastOccurrence.getDate();\n\t\t\t} else {\n\t\t\t\tlastOccurrenceDate = startDate;\n\t\t\t}\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(lastOccurrenceDate);\n\t\t\tif(lastOccurrence != null && lastOccurrence.getAction() == NotificationOccurrence.ACTION_IGNORED) {\n\t\t\t\tcalendar.add(Calendar.DATE, 1);\n\t\t\t} else {\n\t\t\t\tswitch(interval) {\n\t\t\t\t\tcase NotificationRule.INTERVAL_HOURS:\n\t\t\t\t\t\tcalendar.add(Calendar.HOUR, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_DAYS:\n\t\t\t\t\t\tcalendar.add(Calendar.DATE, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_WEEKS:\n\t\t\t\t\t\tcalendar.add(Calendar.DATE, intervalIncrement*7);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_MONTHS:\n\t\t\t\t\t\tcalendar.add(Calendar.MONTH, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_YEARS:\n\t\t\t\t\t\tcalendar.add(Calendar.YEAR, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn calendar.getTime();\n\t\t}\n\t}", "static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) {\n Calendar sentCal = Calendar.getInstance();\n sentCal.setTime(sentDate);\n for (int dayOffset : remindSteps) {\n sentCal.add(Calendar.DAY_OF_YEAR, dayOffset);\n if (sentCal.getTime().compareTo(now) > 0) {\n return sentCal.getTime();\n }\n }\n return null;\n }", "protected abstract void calcNextDate();", "Date getNextTodo();", "Date NextEvent(Date d);", "public java.util.Date getNextAppointmentDate () {\n\t\treturn nextAppointmentDate;\n\t}", "public Date getEarliestFinishingDate();", "public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getNextDate()\n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);\n\t\treturn getTodayDate ();\n\n\t}", "Optional<ZonedDateTime> nextExecution(final ZonedDateTime date);", "public Date getNextScheduledRun() {\n\t\tfinal Calendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 1);\n\t\tcal.set(Calendar.MINUTE, 0);\n\n\t\tif ( cal.before(Calendar.getInstance()) ){\n\t\t\tcal.add(Calendar.DATE, 7);\n\t\t}\n\t\treturn cal.getTime();\n\t\n\t}", "public abstract Date getNextFireTime();", "Date getPriorDate();", "public Date getEarliestStartDate();", "Date PrevEvent(Date d);", "public Date getNextPublished() {\n return nextPublished;\n }", "public Date getDate() {\n/* 150 */ Date[] dates = getDates();\n/* 151 */ if (dates != null) {\n/* 152 */ Date latest = null;\n/* 153 */ for (int i = 0, c = dates.length; i < c; i++) {\n/* 154 */ if (latest == null || dates[i].getTime() > latest.getTime()) {\n/* 155 */ latest = dates[i];\n/* */ }\n/* */ } \n/* 158 */ return latest;\n/* */ } \n/* 160 */ return null;\n/* */ }", "private Date getTo(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n Calendar now = new GregorianCalendar();\n\n switch(ph) {\n case TODAY:\n return now.getTime();\n case YESTERDAY:\n return date.getTime();\n case THIS_WEEK:\n return now.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.SUNDAY);\n return date.getTime();\n case THIS_MONTH:\n return now.getTime();\n case LAST_MONTH:\n date.add(Calendar.MONTH, -1);\n date.set(Calendar.DAY_OF_MONTH, date.getActualMaximum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case T12_HRS:\n return now.getTime();\n case T24_HRS:\n return now.getTime();\n case T2_DAYS:\n return now.getTime();\n case T3_DAYS:\n return now.getTime();\n case T4_DAYS:\n return now.getTime();\n case T5_DAYS:\n return now.getTime();\n case T6_DAYS:\n return now.getTime();\n case T7_DAYS:\n return now.getTime();\n }\n return null;\n\n }", "private static int meetRecentDeadline(LocalDate startdate, LocalDate deadlineDate, String repetition){\n\n LocalDate today = LocalDate.now();\n\n if(deadlineDate.isEqual(today)){\n return MEET_FINAL_DEADLINE;\n }\n switch (repetition){\n case \"{Daily}\":\n if(today.isEqual(startdate.plusDays(1))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Weekly}\":\n if(today.isEqual(startdate.plusDays(7))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Monthly}\":\n if(today.isEqual(startdate.plusMonths(1))){\n return MEET_RECENT_DEADLINE;\n }\n }\n return NO_RECENT_DEADLINE;\n }", "Date NearestPrevEvent(Date d);", "private void nextDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tlong hourMills = this.nextHourMills;\r\n\t\tint day;\r\n\t\t\r\n\t\tcalendar.setTimeInMillis(this.nextHourMills);\r\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\r\n\t\tthis.nextHourMills = calendar.getTimeInMillis();\r\n\t\t\r\n\t\tday = calendar.get(Calendar.DATE);\r\n\t\tif (day != this.day) {\r\n\t\t\t// 날짜가 바뀌었으면 calendar.set(Calendar.HOUR_OF_DAY, 0) 는 불필요. 단지 최종 날짜만 바꾸어준다.\r\n\t\t\tthis.day = day;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// 바뀌지 않았으면\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile dir = new File(this.root, Long.toString(calendar.getTimeInMillis()));\r\n\t\t\tFile file = new File(dir, Long.toString(hourMills));\r\n\t\t\t\r\n\t\t\tthis.data = JSONFile.getJSONObject(file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthis.data = null;\r\n\t\t\t\r\n\t\t\tthis.date.setTimeInMillis(this.nextHourMills);\r\n\t\t}\r\n\t}", "@Override\n protected LocalDateTime CalculateNextFeedTime() {\n return LocalDateTime.now();\n }", "public LocalDate getNextWorkingDay(TradeEntity e) {\r\n\t\tLocalDate date = e.getSettlementDate();\r\n\t\twhile (!isWorkingDay(e.getCurrency(), date.getDayOfWeek())) {\r\n\t\t\tdate = date.plusDays(1);\r\n\t\t}\r\n\t\treturn date;\r\n\t}", "private Date getFrom(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n switch(ph) {\n case TODAY:\n return date.getTime();\n case YESTERDAY:\n date.add(Calendar.DAY_OF_MONTH, -1);\n return date.getTime();\n case THIS_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n return date.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n date.add(Calendar.DAY_OF_MONTH, -7);\n return date.getTime();\n case THIS_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case LAST_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n date.add(Calendar.MONTH, -1);\n return date.getTime();\n case T12_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -12);\n return date.getTime();\n case T24_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -24);\n return date.getTime();\n case T2_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -48);\n return date.getTime();\n case T3_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -72);\n return date.getTime();\n case T4_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -96);\n return date.getTime();\n case T5_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -120);\n return date.getTime();\n case T6_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -144);\n return date.getTime();\n case T7_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -168);\n return date.getTime();\n }\n return null;\n }", "public static String getDisplayDateNext(Date val) {\n\n\t\tif (val != null) {\n\t\t\tDate previous = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn format.format(previous);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "public Date getNextExecutionTime() {\n\t\treturn SchedulerUtil.getNextExecution(this);\n\t}", "Date getEventFiredAt();", "public Date next() {\n if (isValid(month, day + 1, year)) return new Date(month, day + 1, year);\n else if (isValid(month + 1, 1, year)) return new Date(month, 1, year);\n else return new Date(1, 1, year + 1);\n }", "public static String getSQLDateNextLifting(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"date_format('\" + format.format(next) + \" 6:00','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "private LocalDate findPreviousWeekDate() throws IOException {\n\n\t\t/* Iterate historyFolder */\n\t\treturn Files.list(Paths.get(baseHistoryPath)).map(filePath -> {\n\t\t\tString fileName = FilenameUtils.getBaseName(filePath.getFileName().toString()).replace(\"SonarQube_\", \"\");\n\t\t\tString[] splitter = fileName.split(\"-\");\n\t\t\tfinal int year = Integer.parseInt(splitter[0]);\n\t\t\tfinal int month = Integer.parseInt(splitter[1]);\n\t\t\tfinal int dayOfMonth = Integer.parseInt(splitter[2]);\n\n\t\t\treturn LocalDate.of(year, month, dayOfMonth);\n\t\t}).max((final LocalDate d1, final LocalDate d2) -> d1.compareTo(d2)).get();\n\n\t}", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new Date(month + 1, 1, year);\r\n\t\telse\r\n\t\t\treturn new Date(1, 1, year + 1);\r\n\t}", "public java.util.Date getRequestedDate() {\n\t\treturn _dmHistoryMaritime.getRequestedDate();\n\t}", "private void scheduleNextAlarm() {\n // Cancel the currently scheduled Alarm in order to schedule the next.\n if (nextAlarm != null) {\n alarmManager.cancel(createAlarmIntent(this, nextAlarm.getId()));\n nextAlarm = null;\n }\n final Calendar calendar = Calendar.getInstance();\n Alarm alarm;\n int i = 0;\n do {\n // Look for an Alarm that is upcoming from the Calendar day and time.\n alarm = dailyDoDatabaseHelper.getNextAlarmForCalendarDay(calendar);\n if (alarm == null) {\n // If an Alarm was not found for the remainder of the day,\n // then check the next day starting midnight.\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.add(Calendar.DAY_OF_WEEK, 1);\n Log.d(CLASS_NAME, String.format(\"Checking next Calendar=%s for Alarm.\", calendar));\n }\n } while (alarm == null && i++ < 7);\n if (alarm != null) {\n nextAlarm = alarm;\n // Reusing the previous Calendar because it has scope of the future day.\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calendar.set(Calendar.MINUTE, alarm.getMinute());\n calendar.set(Calendar.SECOND, 0);\n alarmManager.set(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n createAlarmIntent(this, alarm.getId()));\n Log.d(CLASS_NAME, String.format(\"Alarm=%s was found, scheduled on Calendar=%s\", alarm.toString(), calendar.toString()));\n } else {\n Log.d(CLASS_NAME, \"No upcoming Alarm(s) found to schedule.\");\n }\n }", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "public Date getNextCheckDate(Date now)\r\n\t{\r\n\t\tsetTime(now);\r\n\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MINUTE:\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MINUTE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_HOUR:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.HALF_DAY:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tint hour = get(Calendar.HOUR_OF_DAY);\r\n\t\t\tif (hour < 12)\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 12);\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\t\tadd(Calendar.DAY_OF_MONTH, 1);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_DAY:\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.DATE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_WEEK:\r\n\t\t\tset(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.WEEK_OF_YEAR, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MONTH:\r\n\t\t\tset(Calendar.DATE, 1);\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MONTH, 1);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalStateException(\"Unknown periodicity type.\");\r\n\t\t}\r\n\t\treturn getTime();\r\n\t}", "public Day getNextStartDay() {\n return getDay(this.days + 1);\n }", "@Test\n public void constructorNullNextNotificationLogId() {\n new NotificationLog(currentNotificationLogId, null, previousNotificationLogId, notifications, true);\n }", "@DISPID(13)\r\n\t// = 0xd. The runtime will prefer the VTID if present\r\n\t@VTID(19)\r\n\tjava.util.Date nextScheduledExecutionDateTime();", "LastProcessingDate findFirstByDateIsNotNull();", "com.google.protobuf.Int64ValueOrBuilder getDeliveryDateBeforeOrBuilder();", "private List<LocalDate> getBackDatedEntitlementDates(List<LocalDate> newChildrenDatesOfBirth, LocalDate cycleStartDate) {\n LocalDate earliestDateOfBirth = min(newChildrenDatesOfBirth);\n LocalDate rollingEntitlementDate = cycleStartDate.minusDays(entitlementCalculationDurationInDays);\n List<LocalDate> backDatedEntitlementDates = new ArrayList<>();\n\n while (rollingEntitlementDate.isAfter(earliestDateOfBirth) || rollingEntitlementDate.isEqual(earliestDateOfBirth)) {\n backDatedEntitlementDates.add(rollingEntitlementDate);\n rollingEntitlementDate = rollingEntitlementDate.minusDays(entitlementCalculationDurationInDays);\n }\n\n return backDatedEntitlementDates;\n }", "private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}", "public void nextDay() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n localDate = LocalDate.parse(irlDate, formatter);\n localDate = localDate.plusDays(1);\n irlDate = DateTimeFormatter.ofPattern(\"d/M/yyyy\").format(localDate);\n System.out.println(irlDate);\n currentDay = Integer.parseInt(DateTimeFormatter.ofPattern(\"d\").format(localDate));\n currentMonth = Integer.parseInt(DateTimeFormatter.ofPattern(\"M\").format(localDate)) - 1;\n currentYear = Integer.parseInt(DateTimeFormatter.ofPattern(\"yyyy\").format(localDate));\n }", "private synchronized EventType scheduleNextEvent()\n {\n Date today = new Date();\n Date today_sunrise = ss.getSunrise(latitude, longitude);\n Date today_sunset = ss.getSunset(latitude, longitude);\n Date today_off = ss.getOff(off);\n\n // get sunrise and sunset time for tomorrow\n Calendar tomorrow = Calendar.getInstance();\n tomorrow.roll(Calendar.DATE, true);\n Date tomorrow_sunrise = ss.getSunrise(latitude, longitude, tomorrow.getTime());\n Date tomorrow_sunset = ss.getSunset(latitude, longitude, tomorrow.getTime());\n Date tomorrow_off = ss.getOff(off);\n\n // determine if sunrise or sunset is the next event\n if (today.after(today_sunset)) {\n // get tomorrow's date time\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + tomorrow_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule tomorrow's sunrise as next event\n timer.schedule(new SunriseTask(), tomorrow_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = tomorrow_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else if (today.after(today_sunrise)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNSET \");\n System.out.println(\" @ \" + today_sunset);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_sunset);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunsetToday;\n return nextEvent;\n } else if (today.after(today_off)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: OFF \");\n System.out.println(\" @ \" + today_off);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_off);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + today_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunrise as next event\n timer.schedule(new SunriseTask(), today_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = today_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseToday;\n return nextEvent;\n }\n }", "private void sendCustomerNotificationsBirthday_MinCompare(Customer customer){\n LocalDate curDateTime = LocalDate.now();\n int nextYear = curDateTime.getYear();\n int maxDay = Integer.MAX_VALUE;\n if (curDateTime.getDayOfYear() > customer.birthDate.getDayOfYear()) {\n nextYear ++;\n }\n\n LocalDate nextBirthDate = LocalDate.of(nextYear, customer.birthDate.getMonthValue(), customer.birthDate.getDayOfMonth());\n Event nearestEvent = null;\n for (Event event : events){\n if (event.eventDate.isAfter(nextBirthDate) || event.eventDate.isEqual(nextBirthDate)) {\n int day = event.eventDate.getDayOfYear();\n if (day < maxDay) {\n nearestEvent = event;\n maxDay = day;\n }\n }\n }\n\n if (nearestEvent != null) {\n System.out.println(String.format(\"sendCustomerNotificationsBirthday_MinCompare : nearest event is %s, event date is %s\", nearestEvent.id, nearestEvent.eventDate));\n } else {\n System.out.println(\"no matched event\");\n }\n }", "@Override\n public void clickDateNextDay() {\n\n if (DateUtil.isLastDate()) {\n final WebElement divElement = DriverConfig.getDriver().findElement(\n By.id(\"ui-datepicker-div\"));\n final WebElement nextElement = retrieveElementByAttributeValueContainsForSubElement(\n DriverConfig.getDriver(), divElement, TAG_SPAN, ATTR_CLASS,\n \"ui-icon ui-icon-circle-triangle-e\", SHORT_TIMEOUT);\n nextElement.click();\n changeAwayDateValue(\"1\");\n } else {\n int current = DateUtil.getCurrentDate();\n changeAwayDateValue(String.valueOf(current + 1));\n }\n }", "public abstract Date getPreviousFireTime();", "default List<ZonedDateTime> getExecutionDates(ZonedDateTime startDate, ZonedDateTime endDate) {\n if (endDate.equals(startDate) || endDate.isBefore(startDate)) {\n throw new IllegalArgumentException(\"endDate should take place later in time than startDate\");\n }\n List<ZonedDateTime> executions = new ArrayList<>();\n ZonedDateTime nextExecutionDate = nextExecution(startDate).orElse(null);\n\n if (nextExecutionDate == null) return Collections.emptyList();\n while(nextExecutionDate != null && (nextExecutionDate.isBefore(endDate) || nextExecutionDate.equals(endDate))){\n executions.add(nextExecutionDate);\n nextExecutionDate = nextExecution(nextExecutionDate).orElse(null);\n }\n return executions;\n }", "public org.drip.analytics.date.JulianDate firstCouponDate()\n\t{\n\t\ttry {\n\t\t\treturn new org.drip.analytics.date.JulianDate (_lsPeriod.get (0).endDate());\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "String getPreviousCloseDate();", "public String processGithubNotifications(GithubNotification[] githubNotifications){\n if(githubNotifications.length > 0)\n return \"You go a new Github Notification\";\n else\n return null;\n }", "@Test\n public void testGetNextAlarm()\n {\n addTask(\"task1\", now.plusMinutes(5), null, false);\n addTask(\"task2\", now.plusDays(5), null, false);\n addTask(\"task3\", now.plusMinutes(5), Type.DAY, false); //due date NOW + 5 min\n addTask(\"task4\", now.minusDays(1), Type.WEEK, false); //due date in 1 week\n addTask(\"task5\", now.plusMinutes(10), null, true); //disabled\n\n new GetNextAlarm().getNextAlarm(now.plusMinutes(5).getMillis(), false);\n\n //this should calculate the next occurrance of task3\n Cursor cursor = taskProvider.query(TaskProvider.TASK_JOIN_REPEAT_URI,\n new TaskTable().getColumns(TASK_ID, REPEAT_NEXT_DUE_DATE),\n REPEAT_NEXT_DUE_DATE+\"=\"+now.plusMinutes(5).plusDays(1).getMillis(),\n null,\n null);\n\n assertThat(cursor.getCount(), is(1));\n cursor.moveToFirst();\n assertThat(cursor.getInt(0), is(3));\n\n }", "public String getLastDateHistory( String code) {\n String query = \"SELECT * FROM \"+ code +\"R where time > '2015-06-01T00:00:00Z'\";\n QueryResult list = InfluxDaoConnector.getPoints(query,dbName);\n\n if (!checker(list))\n return null;\n\n int size = list.getResults().get(0).getSeries().get(0).getValues().size();\n\n\n return (String) list.getResults().get(0).getSeries().get(0).getValues().get(size-1).get(0);\n\n }", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "public static String getSQLDateNext(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"'\" + format.format(next) + \"'\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "public org.apache.xmlbeans.XmlDate xgetJobStartDate()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n return target;\r\n }\r\n }", "private PendingIntent getNotificationIntent() {\n Intent resultIntent = new Intent(this, ScheduleNotificationActivity.class);\n // Because clicking the notification opens a new (\"special\") activity, there's\n // no need to create an artificial back stack.\n return PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_ONE_SHOT\n );\n }", "public List<GlucoseData> getHistoryTillDate (Date date) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyyMMdd\");\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n\n Date datadate = sqlDateFormat.parse(glucosedata.getDate());\n // Adding to list\n if(datadate.after(date)) {\n history.add(glucosedata);\n }\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n // Log.d(TAG, \"Error while trying to get posts from database\");\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }", "public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}", "protected Date getUntilInclusiveDate() {\n\t\treturn untilInclusive;\n\t}", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "private void StartNotifyActivity()\r\n\t{\n \tIntent intent = new Intent();\r\n\t\tintent.setClass(this, NotifyDateActivity.class);\r\n\t\t// Set time\r\n\t\tBundle Parameters = new Bundle();\r\n\t\tParameters.putString(OneNote.KEY_NOTIFYTIME, HelperFunctions.Calendar2String(AddOneNote.NotifyTime));\r\n\t\tParameters.putInt(OneNote.KEY_NOTIFYDURA, AddOneNote.NotifyDura);\r\n\t\tParameters.putString(OneNote.KEY_RINGMUSIC, AddOneNote.RingMusic);\r\n\t\tParameters.putInt(OneNote.KEY_NOTIFYMETHOD, AddOneNote.NotifyMethod);\r\n // Pass it to next activity \r\n\t\tintent.putExtras(Parameters);\r\n\t\t// Go to next activity(set note's notify time activity)\r\n\t\tstartActivityForResult(intent, ProjectConst.ACTIVITY_SET_NOTIFYTIME);\t\t\r\n\t}", "private DeadlineDate minimumOf(DeadlineDate firstDeadlineDate, DeadlineDate secondDeadlineDate) {\n if (firstDeadlineDate.compareTo(secondDeadlineDate) < 0) {\n return firstDeadlineDate;\n } else {\n return secondDeadlineDate;\n }\n }", "protected Date nextStandardDate(Date date, DateTickUnit unit) {\n/* 1122 */ Date previous = previousStandardDate(date, unit);\n/* 1123 */ Calendar calendar = Calendar.getInstance(this.timeZone, this.locale);\n/* 1124 */ calendar.setTime(previous);\n/* 1125 */ calendar.add(unit.getCalendarField(), unit.getMultiple());\n/* 1126 */ return calendar.getTime();\n/* */ }", "public static String getNextDay(String nowdate, int delay)\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:155 */ SimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 115:156 */ String mdate = \"\";\r\n/* 116:157 */ Date d = strToDate(nowdate);\r\n/* 117:158 */ long myTime = d.getTime() / 1000L + delay * 24 * \r\n/* 118:159 */ 60 * 60;\r\n/* 119:160 */ d.setTime(myTime * 1000L);\r\n/* 120:161 */ return format.format(d);\r\n/* 121: */ }\r\n/* 122: */ catch (Exception e) {}\r\n/* 123:166 */ return \"\";\r\n/* 124: */ }", "Optional<ZonedDateTime> lastExecution(final ZonedDateTime date);", "@Override\n public void run() {\n Calendar calendar = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dateTime = simpleDateFormat.format(calendar.getTime());\n\n //Find the current time\n SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat(\"hh:mm:ss a\");\n String currentTime = simpleDateFormat1.format(calendar.getTime());\n\n //Find duration of current date and first day\n Date date1,date2;\n String dateStr1 = data.getDate();\n String dateStr2 = dateTime;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n try{\n date1 = sdf.parse(dateStr1);\n date2 = sdf.parse(dateStr2);\n long diff = date2.getTime() - date1.getTime();\n long totalDay = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(\"My Notification\", \"My Notification\", NotificationManager.IMPORTANCE_DEFAULT);\n NotificationManager manager = getSystemService(NotificationManager.class);\n manager.createNotificationChannel(channel);\n }\n\n //Exercise Time\n if(totalDay==0 || totalDay==1 || (totalDay>4+dayInSpace && totalDay<=10+dayInSpace)){\n if (currentTime.equals(\"05:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay>=5 && totalDay<=4+dayInSpace){\n if (currentTime.equals(\"03:00:00 AM\")) {\n NotificationExercise();\n }\n }\n\n //Eating time (After half hour wake up-breakfast, After five hours wake up-lunch, Before four hours sleep-dinner)\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"07:30:00 AM\") || currentTime.equals(\"12:00:00 PM\") || currentTime.equals(\"07:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:30:00 AM\") || currentTime.equals(\"01:00:00 PM\") || currentTime.equals(\"10:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:30:00 AM\") || currentTime.equals(\"03:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"12:00:00 AM\") || currentTime.equals(\"12:30:00 PM\") || currentTime.equals(\"05:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay>=5 && totalDay<=4+dayInSpace){\n if (currentTime.equals(\"05:00:00 AM\") || currentTime.equals(\"03:30:00 PM\") || currentTime.equals(\"08:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay>4+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"08:30:00 AM\") || currentTime.equals(\"01:00:00 PM\") || currentTime.equals(\"7:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n //Take Melatonin time\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"09:00:00 AM\")) {\n NotificationTakeMelatonin();\n }\n }\n\n if(totalDay>=4+dayInSpace && totalDay<=6+dayInSpace){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationTakeMelatonin();\n }\n }\n\n //Nap time\n if(totalDay>=4 && totalDay<4+dayInSpace){\n if (currentTime.equals(\"06:00:00 PM\")) {\n NotificationNap();\n }\n }\n\n if(totalDay>=4 && totalDay<4+dayInSpace){\n if (currentTime.equals(\"08:00:00 PM\")) {\n NotificationNap();\n }\n }\n\n //Sleep Time\n if(totalDay==0){\n if (currentTime.equals(\"12:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"02:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"04:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"09:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay>=4+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationSleep();\n }\n }\n\n //Wake Up Time\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"07:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"12:00:00 PM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"03:00:00 PM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay>=5+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"08:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n }catch(ParseException e){\n Log.d(\"error\",\"error\");\n }\n }", "public static LocalDate getFirstOfNextMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfNextMonth());\n\t}", "private Callable<List<Price>> fetchDataIfNeeded(Calendar currentDate) {\n return () -> {\n List<Price> fetchedList = Collections.emptyList();\n\n Calendar date = repository.getLastFetchedDate();\n if (date == null) {\n // need to fetch last few days as data for all period is sampled once per two days\n fetchedList = Observable.zip(repository.fetchAllPrices(), repository.fetchPrices(DAYS_TO_FETCH),\n (list1, list2) -> mergeAndSort(list1, list2))\n .blockingFirst();\n } else {\n int dayDifference = calendarUtils.calculateDifferenceInDays(currentDate, date);\n if (dayDifference > 0) {\n fetchedList = repository.fetchPrices(dayDifference).blockingFirst();\n }\n }\n\n return fetchedList;\n };\n }", "@Test\n public void constructorNullPreviousNotificationLogId() {\n new NotificationLog(currentNotificationLogId, nextNotificationLogId, null, notifications, true);\n }", "java.util.Calendar getSearchRecurrenceStart();", "public Date getFirstRelease() {\n return firstRelease;\n }", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "void createDailyMessageRaport(String stringCurrentDate);", "public Group3Date next() {\n\t\t\tif (isValid(month, day + 1, year)) return new Group3Date(month, day + 1, year);\n\t\t\telse if (isValid(month + 1, 1, year)) return new Group3Date(month + 1, 1, year);\n\t\t\telse return new Group3Date(1, 1, year + 1);\n\t\t}", "private void scheduleNotification(Notification notification) {\n\n Intent notificationIntent2 = new Intent(MainActivity.this, NotificationPublisher.class);\n notificationIntent2.putExtra(NotificationPublisher.NOTIFICATION_ID, 1);\n notificationIntent2.putExtra(NotificationPublisher.NOTIFICATION, notification);\n PendingIntent pendingIntent2 = PendingIntent.getBroadcast(MainActivity.this, 0, notificationIntent2, PendingIntent.FLAG_UPDATE_CURRENT);\n Date date = new Date();\n\n Calendar calnoti = Calendar.getInstance();\n calnoti.setTime(date);\n\n calnoti.set(Calendar.HOUR_OF_DAY, mHour-1);\n calnoti.set(Calendar.MINUTE, mMin);\n calnoti.set(Calendar.SECOND, 0);\n calnoti.set(Calendar.YEAR,mYear);\n calnoti.set(Calendar.MONTH,mMonth);\n calnoti.set(Calendar.DAY_OF_MONTH,mDay);\n //long futureInMillis2 = SystemClock.elapsedRealtime() + delay;\n AlarmManager alarmManager2 = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n alarmManager2.set(AlarmManager.RTC_WAKEUP, calnoti.getTimeInMillis(), pendingIntent2);\n }", "public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }", "@Override\n\tpublic List<Email> retrieve(Date minDate, Matcher matcher) throws IOException {\n\t\tif (minDate == null) throw new IllegalArgumentException(\"Minimum date must be specified\");\n\t\tif (matcher == null) matcher = DEFAULT_MATCHER;\n\t\ttry {\n\t\t\tList<Email> emails = fetchEmail(minDate, matcher);\n\t\t\tCollections.sort(emails, EmailComparators.SENT_DATE);\n\t\t\treturn emails;\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new IOException(e);\n\t\t}\n\t}", "public interface NotificationService {\n\t\n /**\n * Save a notification.\n *\n * @param notificationDTO the entity to save\n * @return the persisted entity\n */\n NotificationDTO save(NotificationDTO notificationDTO);\n\n /**\n * Get all the notifications.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<NotificationDTO> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" notification.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<NotificationDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" notification.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n\tPage<NotificationDTO> findAllDateAsc(Pageable pageable);\n\n\t/**\n\t * Get all notifications received by a user after with a timestamp...\n\t * equal or greater than @param startTime\n\t * \n\t * @param pageable the pagination information\n\t * @param userId the user ID to get notifications for\n\t * @param startTime the time to get notifications after\n\t * \n\t */\n\tPage<NotificationDTO> findUserNotificationsAfterTime(Pageable pageable, Long userId, Instant startTime );\n\n}", "com.google.protobuf.Int64Value getDeliveryDateAfter();", "public TimedVariable findNext(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tint sz = vars.size();\n\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\t\telse // the exact time was found. Increment to the next value\n\t\t\tidx++;\n\t\t\n\t\tif (idx < sz)\n\t\t\treturn vars.get(idx);\n\t\telse\n\t\t\treturn null;\n\t}", "public static String getSQLDateTimeNext(Date val) {\n\n\t\t// Adds another day to Date and Time and converts date into SQL format\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd H:mm\");\n\t\t\treturn \"date_format('\" + format.format(next)\n\t\t\t\t\t+ \"','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "@Nullable\n @Generated\n @Selector(\"fetchStartDate\")\n public native NSDate fetchStartDate();", "public Date getToDate()\r\n/* 28: */ {\r\n/* 29:35 */ return this.toDate;\r\n/* 30: */ }", "public Date getFromDate()\r\n/* 18: */ {\r\n/* 19:27 */ return this.fromDate;\r\n/* 20: */ }", "public void setNextAppointmentDate (java.util.Date nextAppointmentDate) {\n\t\tthis.nextAppointmentDate = nextAppointmentDate;\n\t}", "public Date getStartDate();", "public Date getStartDate();", "private void retrieveNotification() { =====================================================\n // Creating Notification Model\n // =====================================================\n\n// Bitmap patientAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_18);\n// Bitmap patientAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_19);\n// Bitmap patientAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_20);\n//\n// Patient patient1 = new Patient(\"Garry\", \"Reese\", \"123AB456\", patientAvatar1);\n// Patient patient2 = new Patient(\"Lillian\", \"Wade\", \"987CD654\", patientAvatar2);\n// Patient patient3 = new Patient(\"Laura\", \"Freeman\", \"AV12G64\", patientAvatar3);\n//\n// Bitmap caregiverAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_01);\n// Bitmap caregiverAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_02);\n// Bitmap caregiverAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_03);\n// Bitmap caregiverAvatar4 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_04);\n// Bitmap caregiverAvatar5 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_05);\n//\n// DateTime date1 = DateTime.now();\n// DateTime date2 = DateTime.now().minusDays(2).minusHours(2);\n// DateTime date3 = DateTime.now().minusDays(5).plusHours(1);\n// DateTime date4 = DateTime.now().minusDays(4).minusHours(2);\n// DateTime date5 = DateTime.now().minusDays(1).plusHours(1);\n// DateTime date6 = DateTime.now().minusDays(3).plusHours(5);\n//\n// String caregiverName1 = \"John Doe\";\n// String caregiverName2 = \"Jane Doe\";\n// String caregiverName3 = \"Tracy Lee\";\n// String caregiverName4 = \"Apple Tan\";\n// String caregiverName5 = \"Bethany Mandler\";\n//\n// String summary1 = \"Updated information of patient Garry Reese\";\n// String summary2 = \"Log new problem for patient Lilian Wade\";\n// String summary3 = \"Create new patient Laura Freeman\";\n// String summary4 = \"Recommended the game category memory to patient Garry Reese\";\n// String summary5 = \"Updated the milk allergy of patient Lillian Wade\";\n// String summary6 = \"Log new problem for patient Garry Reese\";\n//\n// Notification notification1 = new Notification(date1, caregiverName1, caregiverAvatar1, summary1, patient1, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_FIELD);\n// Notification notification2 = new Notification(date2, caregiverName2, caregiverAvatar2, summary2, patient2, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n// Notification notification3 = new Notification(date3, caregiverName3, caregiverAvatar3, summary3, patient3, Notification.STATUS_NONE, Notification.TYPE_NEW_PATIENT);\n// Notification notification4 = new Notification(date4, caregiverName4, caregiverAvatar4, summary4, patient1, Notification.STATUS_NONE, Notification.TYPE_GAME_RECOMMENDATION);\n// Notification notification5 = new Notification(date5, caregiverName5, caregiverAvatar5, summary5, patient2, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_OBJECT);\n// Notification notification6 = new Notification(date6, caregiverName3, caregiverAvatar3, summary6, patient1, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n//\n ArrayList<Notification> notificationList = new ArrayList<>();\n//// notificationList.add(notification1);\n//// notificationList.add(notification2);\n//// notificationList.add(notification3);\n//// notificationList.add(notification4);\n//// notificationList.add(notification5);\n//// notificationList.add(notification6);\n\n dbfile db = new dbfile();\n notificationList = db.prepareNotificationList(getApplicationContext());\n Log.v(\"WHY LIKE THAT\", String.valueOf(notificationList.size()));\n // =====================================================\n // Building the Notification Group based on the notification\n // =====================================================\n\n HashMap patientAndNotificationGroupMap = new HashMap();\n\n for(Notification notification:notificationList) {\n Patient currentPatient = notification.getAffectedPatient();\n String patientNric = currentPatient.getNric();\n\n if (patientAndNotificationGroupMap.containsKey(patientNric)) {\n NotificationGroup notifGroup = (NotificationGroup) patientAndNotificationGroupMap.get(patientNric);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n notifGroup.getUnprocessedNotif().add(notification);\n } else {\n notifGroup.getProcessedNotif().add(notification);\n }\n } else {\n NotificationGroup newNotifGroup = new NotificationGroup();\n newNotifGroup.setAffectedPatient(currentPatient);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n newNotifGroup.getUnprocessedNotif().add(notification);\n } else {\n newNotifGroup.getProcessedNotif().add(notification);\n }\n patientAndNotificationGroupMap.put(patientNric, newNotifGroup);\n }\n }\n\n ArrayList<NotificationGroup> notificationGroupList = new ArrayList<>();\n NotificationComparator comparator = new NotificationComparator();\n for (Object obj : patientAndNotificationGroupMap.values()) {\n NotificationGroup notificationGroup = (NotificationGroup) obj;\n\n // Set notification status\n UtilsUi.setNotificationGroupStatus(this, notificationGroup);\n\n // Sort the notifications by date\n Collections.sort(notificationGroup.getProcessedNotif(), comparator);\n Collections.sort(notificationGroup.getUnprocessedNotif(), comparator);\n\n // Set the summary\n UtilsUi.setNotificationGroupSummary(this, notificationGroup);\n\n notificationGroupList.add(notificationGroup);\n }\n\n DataHolder.setNotificationGroupList(notificationGroupList);\n }", "public Date getFirstSelectionDate()\n/* */ {\n/* 186 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.first();\n/* */ }", "public void lookUpNextDate(int i) throws IllegalCommandArgumentException {\n if (i < wordsOfInput.length-2) { \n if (wordsOfInput[i+2].toLowerCase().matches(Constants.DAYS)) {\n // by next (day)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(wordsOfInput[i+2], 1);\n \n // by next day (starttime)\n if (i < wordsOfInput.length-3 && wordsOfInput[i+3].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+3];\n \n // by next day starttime (endtime)\n if (i < wordsOfInput.length - 5 && \n wordsOfInput[i+4].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+5);\n }\n } \n } else if (wordsOfInput[i+2].toLowerCase().matches(\"week|wk\")) {\n // by next (week)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 2);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"month|mth\")) {\n // by next (month)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 3);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"year|yr\")) {\n // by next (year)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 4);\n }\n }\n }", "Optional<Duration> timeToNextExecution(final ZonedDateTime date);", "protected Date findFirstGenDate(GenCtx ctx)\n\t{\n\t\treturn EX.assertn(ctx.get(Date.class));\n\t}", "public void updateDateFreezed (String email, String periodical, Timestamp newDate){\r\n try (Connection connection = jdbcUtils.getConnection();){\r\n preparedStatement = connection.prepareStatement(SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL);\r\n preparedStatement.setTimestamp(NEXTDATE_SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL_NUMBER, newDate);\r\n preparedStatement.setString(EMAIL_SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL_NUMBER, email);\r\n preparedStatement.setString(PERIODICAL_SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL_NUMBER, periodical);\r\n preparedStatement.executeUpdate();\r\n } catch (SQLException ex) {\r\n configLog.init();\r\n logger.info(LOG_SQL_EXCEPTION_MESSAGE + AdminDao.class.getName());\r\n Logger.getLogger(AdminDao.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new RuntimeException();\r\n }\r\n }", "public Date getNextChargeTime() {\n return nextChargeTime;\n }", "void generateResponseHistory(LocalDate from, LocalDate to);" ]
[ "0.7788827", "0.73946863", "0.58573353", "0.5768462", "0.5733754", "0.5685831", "0.5674187", "0.56659925", "0.56353784", "0.561018", "0.55648965", "0.55483794", "0.5444162", "0.5337498", "0.53231555", "0.5320322", "0.52463704", "0.524588", "0.52024007", "0.51939845", "0.5162021", "0.5114516", "0.51097316", "0.51033586", "0.5101051", "0.50941616", "0.5043313", "0.5040242", "0.5023654", "0.5015501", "0.50009733", "0.49996325", "0.49912003", "0.49890676", "0.49735355", "0.4962211", "0.49589163", "0.49421853", "0.49257043", "0.4922606", "0.4878368", "0.48667434", "0.48562092", "0.4848597", "0.48350334", "0.48107606", "0.48020053", "0.47944623", "0.4780324", "0.47725505", "0.4766919", "0.47642365", "0.47436276", "0.47377095", "0.4733856", "0.47315466", "0.47218403", "0.47160986", "0.47114417", "0.47103977", "0.4700308", "0.46986842", "0.4682082", "0.46785626", "0.46733907", "0.46728408", "0.46708524", "0.46702355", "0.46608472", "0.46557668", "0.46540946", "0.46457335", "0.464222", "0.46389687", "0.46369988", "0.46369988", "0.46369988", "0.46321943", "0.46259928", "0.4602217", "0.4601081", "0.45751223", "0.45686433", "0.4566377", "0.4565586", "0.45634264", "0.45567095", "0.45476928", "0.4538989", "0.45314294", "0.4517289", "0.4517289", "0.45149484", "0.45149377", "0.45104524", "0.45094705", "0.45000133", "0.44998407", "0.4487961", "0.44855" ]
0.695599
2
/ Returns the date for the next notification based on the history of notifications or null if no more notifications are necessary If no history is available, the next notification will be based on the startDate
public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory) { if(interval == NotificationRule.INTERVAL_DATE) { if(notificationOccurrenceHistory == null || notificationOccurrenceHistory.size() == 0) { return startDate; } else { NotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory); if(lastOccurrence.getAction() == NotificationOccurrence.ACTION_COMPLETED) { return null; } else { Calendar calendar = Calendar.getInstance(); calendar.setTime(lastOccurrence.getDate()); calendar.add(Calendar.DATE, 1); return calendar.getTime(); } } } else { NotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory); Date lastOccurrenceDate; if(lastOccurrence != null) { lastOccurrenceDate = lastOccurrence.getDate(); } else { lastOccurrenceDate = startDate; } Calendar calendar = Calendar.getInstance(); calendar.setTime(lastOccurrenceDate); if(lastOccurrence != null && lastOccurrence.getAction() == NotificationOccurrence.ACTION_IGNORED) { calendar.add(Calendar.DATE, 1); } else { switch(interval) { case NotificationRule.INTERVAL_HOURS: calendar.add(Calendar.HOUR, intervalIncrement); break; case NotificationRule.INTERVAL_DAYS: calendar.add(Calendar.DATE, intervalIncrement); break; case NotificationRule.INTERVAL_WEEKS: calendar.add(Calendar.DATE, intervalIncrement*7); break; case NotificationRule.INTERVAL_MONTHS: calendar.add(Calendar.MONTH, intervalIncrement); break; case NotificationRule.INTERVAL_YEARS: calendar.add(Calendar.YEAR, intervalIncrement); break; default: return null; } } return calendar.getTime(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) {\n Calendar sentCal = Calendar.getInstance();\n sentCal.setTime(sentDate);\n for (int dayOffset : remindSteps) {\n sentCal.add(Calendar.DAY_OF_YEAR, dayOffset);\n if (sentCal.getTime().compareTo(now) > 0) {\n return sentCal.getTime();\n }\n }\n return null;\n }", "public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory, long contactId) {\n\t\tArrayList<NotificationOccurrence> contactNotificationOccurrenceHistory = new ArrayList<NotificationOccurrence>();\n\t\tfor(NotificationOccurrence no : notificationOccurrenceHistory) {\n\t\t\tif(no.getContactId() == contactId) {\n\t\t\t\tcontactNotificationOccurrenceHistory.add(no);\n\t\t\t}\n\t\t}\n\t\treturn getNextNotification(contactNotificationOccurrenceHistory);\n\t}", "protected abstract void calcNextDate();", "Date getNextTodo();", "Date NextEvent(Date d);", "public java.util.Date getNextAppointmentDate () {\n\t\treturn nextAppointmentDate;\n\t}", "public Date getEarliestFinishingDate();", "public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getNextDate()\n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);\n\t\treturn getTodayDate ();\n\n\t}", "Optional<ZonedDateTime> nextExecution(final ZonedDateTime date);", "public Date getNextScheduledRun() {\n\t\tfinal Calendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 1);\n\t\tcal.set(Calendar.MINUTE, 0);\n\n\t\tif ( cal.before(Calendar.getInstance()) ){\n\t\t\tcal.add(Calendar.DATE, 7);\n\t\t}\n\t\treturn cal.getTime();\n\t\n\t}", "public abstract Date getNextFireTime();", "Date getPriorDate();", "public Date getEarliestStartDate();", "Date PrevEvent(Date d);", "public Date getNextPublished() {\n return nextPublished;\n }", "public Date getDate() {\n/* 150 */ Date[] dates = getDates();\n/* 151 */ if (dates != null) {\n/* 152 */ Date latest = null;\n/* 153 */ for (int i = 0, c = dates.length; i < c; i++) {\n/* 154 */ if (latest == null || dates[i].getTime() > latest.getTime()) {\n/* 155 */ latest = dates[i];\n/* */ }\n/* */ } \n/* 158 */ return latest;\n/* */ } \n/* 160 */ return null;\n/* */ }", "private Date getTo(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n Calendar now = new GregorianCalendar();\n\n switch(ph) {\n case TODAY:\n return now.getTime();\n case YESTERDAY:\n return date.getTime();\n case THIS_WEEK:\n return now.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.SUNDAY);\n return date.getTime();\n case THIS_MONTH:\n return now.getTime();\n case LAST_MONTH:\n date.add(Calendar.MONTH, -1);\n date.set(Calendar.DAY_OF_MONTH, date.getActualMaximum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case T12_HRS:\n return now.getTime();\n case T24_HRS:\n return now.getTime();\n case T2_DAYS:\n return now.getTime();\n case T3_DAYS:\n return now.getTime();\n case T4_DAYS:\n return now.getTime();\n case T5_DAYS:\n return now.getTime();\n case T6_DAYS:\n return now.getTime();\n case T7_DAYS:\n return now.getTime();\n }\n return null;\n\n }", "private static int meetRecentDeadline(LocalDate startdate, LocalDate deadlineDate, String repetition){\n\n LocalDate today = LocalDate.now();\n\n if(deadlineDate.isEqual(today)){\n return MEET_FINAL_DEADLINE;\n }\n switch (repetition){\n case \"{Daily}\":\n if(today.isEqual(startdate.plusDays(1))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Weekly}\":\n if(today.isEqual(startdate.plusDays(7))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Monthly}\":\n if(today.isEqual(startdate.plusMonths(1))){\n return MEET_RECENT_DEADLINE;\n }\n }\n return NO_RECENT_DEADLINE;\n }", "Date NearestPrevEvent(Date d);", "private void nextDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tlong hourMills = this.nextHourMills;\r\n\t\tint day;\r\n\t\t\r\n\t\tcalendar.setTimeInMillis(this.nextHourMills);\r\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\r\n\t\tthis.nextHourMills = calendar.getTimeInMillis();\r\n\t\t\r\n\t\tday = calendar.get(Calendar.DATE);\r\n\t\tif (day != this.day) {\r\n\t\t\t// 날짜가 바뀌었으면 calendar.set(Calendar.HOUR_OF_DAY, 0) 는 불필요. 단지 최종 날짜만 바꾸어준다.\r\n\t\t\tthis.day = day;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// 바뀌지 않았으면\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile dir = new File(this.root, Long.toString(calendar.getTimeInMillis()));\r\n\t\t\tFile file = new File(dir, Long.toString(hourMills));\r\n\t\t\t\r\n\t\t\tthis.data = JSONFile.getJSONObject(file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthis.data = null;\r\n\t\t\t\r\n\t\t\tthis.date.setTimeInMillis(this.nextHourMills);\r\n\t\t}\r\n\t}", "@Override\n protected LocalDateTime CalculateNextFeedTime() {\n return LocalDateTime.now();\n }", "public LocalDate getNextWorkingDay(TradeEntity e) {\r\n\t\tLocalDate date = e.getSettlementDate();\r\n\t\twhile (!isWorkingDay(e.getCurrency(), date.getDayOfWeek())) {\r\n\t\t\tdate = date.plusDays(1);\r\n\t\t}\r\n\t\treturn date;\r\n\t}", "private Date getFrom(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n switch(ph) {\n case TODAY:\n return date.getTime();\n case YESTERDAY:\n date.add(Calendar.DAY_OF_MONTH, -1);\n return date.getTime();\n case THIS_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n return date.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n date.add(Calendar.DAY_OF_MONTH, -7);\n return date.getTime();\n case THIS_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case LAST_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n date.add(Calendar.MONTH, -1);\n return date.getTime();\n case T12_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -12);\n return date.getTime();\n case T24_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -24);\n return date.getTime();\n case T2_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -48);\n return date.getTime();\n case T3_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -72);\n return date.getTime();\n case T4_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -96);\n return date.getTime();\n case T5_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -120);\n return date.getTime();\n case T6_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -144);\n return date.getTime();\n case T7_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -168);\n return date.getTime();\n }\n return null;\n }", "public static String getDisplayDateNext(Date val) {\n\n\t\tif (val != null) {\n\t\t\tDate previous = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn format.format(previous);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "public Date getNextExecutionTime() {\n\t\treturn SchedulerUtil.getNextExecution(this);\n\t}", "Date getEventFiredAt();", "public Date next() {\n if (isValid(month, day + 1, year)) return new Date(month, day + 1, year);\n else if (isValid(month + 1, 1, year)) return new Date(month, 1, year);\n else return new Date(1, 1, year + 1);\n }", "public static String getSQLDateNextLifting(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"date_format('\" + format.format(next) + \" 6:00','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new Date(month + 1, 1, year);\r\n\t\telse\r\n\t\t\treturn new Date(1, 1, year + 1);\r\n\t}", "private LocalDate findPreviousWeekDate() throws IOException {\n\n\t\t/* Iterate historyFolder */\n\t\treturn Files.list(Paths.get(baseHistoryPath)).map(filePath -> {\n\t\t\tString fileName = FilenameUtils.getBaseName(filePath.getFileName().toString()).replace(\"SonarQube_\", \"\");\n\t\t\tString[] splitter = fileName.split(\"-\");\n\t\t\tfinal int year = Integer.parseInt(splitter[0]);\n\t\t\tfinal int month = Integer.parseInt(splitter[1]);\n\t\t\tfinal int dayOfMonth = Integer.parseInt(splitter[2]);\n\n\t\t\treturn LocalDate.of(year, month, dayOfMonth);\n\t\t}).max((final LocalDate d1, final LocalDate d2) -> d1.compareTo(d2)).get();\n\n\t}", "public java.util.Date getRequestedDate() {\n\t\treturn _dmHistoryMaritime.getRequestedDate();\n\t}", "private void scheduleNextAlarm() {\n // Cancel the currently scheduled Alarm in order to schedule the next.\n if (nextAlarm != null) {\n alarmManager.cancel(createAlarmIntent(this, nextAlarm.getId()));\n nextAlarm = null;\n }\n final Calendar calendar = Calendar.getInstance();\n Alarm alarm;\n int i = 0;\n do {\n // Look for an Alarm that is upcoming from the Calendar day and time.\n alarm = dailyDoDatabaseHelper.getNextAlarmForCalendarDay(calendar);\n if (alarm == null) {\n // If an Alarm was not found for the remainder of the day,\n // then check the next day starting midnight.\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.add(Calendar.DAY_OF_WEEK, 1);\n Log.d(CLASS_NAME, String.format(\"Checking next Calendar=%s for Alarm.\", calendar));\n }\n } while (alarm == null && i++ < 7);\n if (alarm != null) {\n nextAlarm = alarm;\n // Reusing the previous Calendar because it has scope of the future day.\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calendar.set(Calendar.MINUTE, alarm.getMinute());\n calendar.set(Calendar.SECOND, 0);\n alarmManager.set(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n createAlarmIntent(this, alarm.getId()));\n Log.d(CLASS_NAME, String.format(\"Alarm=%s was found, scheduled on Calendar=%s\", alarm.toString(), calendar.toString()));\n } else {\n Log.d(CLASS_NAME, \"No upcoming Alarm(s) found to schedule.\");\n }\n }", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "public Date getNextCheckDate(Date now)\r\n\t{\r\n\t\tsetTime(now);\r\n\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MINUTE:\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MINUTE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_HOUR:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.HALF_DAY:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tint hour = get(Calendar.HOUR_OF_DAY);\r\n\t\t\tif (hour < 12)\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 12);\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\t\tadd(Calendar.DAY_OF_MONTH, 1);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_DAY:\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.DATE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_WEEK:\r\n\t\t\tset(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.WEEK_OF_YEAR, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MONTH:\r\n\t\t\tset(Calendar.DATE, 1);\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MONTH, 1);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalStateException(\"Unknown periodicity type.\");\r\n\t\t}\r\n\t\treturn getTime();\r\n\t}", "public Day getNextStartDay() {\n return getDay(this.days + 1);\n }", "@Test\n public void constructorNullNextNotificationLogId() {\n new NotificationLog(currentNotificationLogId, null, previousNotificationLogId, notifications, true);\n }", "@DISPID(13)\r\n\t// = 0xd. The runtime will prefer the VTID if present\r\n\t@VTID(19)\r\n\tjava.util.Date nextScheduledExecutionDateTime();", "LastProcessingDate findFirstByDateIsNotNull();", "com.google.protobuf.Int64ValueOrBuilder getDeliveryDateBeforeOrBuilder();", "private List<LocalDate> getBackDatedEntitlementDates(List<LocalDate> newChildrenDatesOfBirth, LocalDate cycleStartDate) {\n LocalDate earliestDateOfBirth = min(newChildrenDatesOfBirth);\n LocalDate rollingEntitlementDate = cycleStartDate.minusDays(entitlementCalculationDurationInDays);\n List<LocalDate> backDatedEntitlementDates = new ArrayList<>();\n\n while (rollingEntitlementDate.isAfter(earliestDateOfBirth) || rollingEntitlementDate.isEqual(earliestDateOfBirth)) {\n backDatedEntitlementDates.add(rollingEntitlementDate);\n rollingEntitlementDate = rollingEntitlementDate.minusDays(entitlementCalculationDurationInDays);\n }\n\n return backDatedEntitlementDates;\n }", "private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}", "public void nextDay() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n localDate = LocalDate.parse(irlDate, formatter);\n localDate = localDate.plusDays(1);\n irlDate = DateTimeFormatter.ofPattern(\"d/M/yyyy\").format(localDate);\n System.out.println(irlDate);\n currentDay = Integer.parseInt(DateTimeFormatter.ofPattern(\"d\").format(localDate));\n currentMonth = Integer.parseInt(DateTimeFormatter.ofPattern(\"M\").format(localDate)) - 1;\n currentYear = Integer.parseInt(DateTimeFormatter.ofPattern(\"yyyy\").format(localDate));\n }", "private synchronized EventType scheduleNextEvent()\n {\n Date today = new Date();\n Date today_sunrise = ss.getSunrise(latitude, longitude);\n Date today_sunset = ss.getSunset(latitude, longitude);\n Date today_off = ss.getOff(off);\n\n // get sunrise and sunset time for tomorrow\n Calendar tomorrow = Calendar.getInstance();\n tomorrow.roll(Calendar.DATE, true);\n Date tomorrow_sunrise = ss.getSunrise(latitude, longitude, tomorrow.getTime());\n Date tomorrow_sunset = ss.getSunset(latitude, longitude, tomorrow.getTime());\n Date tomorrow_off = ss.getOff(off);\n\n // determine if sunrise or sunset is the next event\n if (today.after(today_sunset)) {\n // get tomorrow's date time\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + tomorrow_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule tomorrow's sunrise as next event\n timer.schedule(new SunriseTask(), tomorrow_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = tomorrow_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else if (today.after(today_sunrise)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNSET \");\n System.out.println(\" @ \" + today_sunset);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_sunset);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunsetToday;\n return nextEvent;\n } else if (today.after(today_off)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: OFF \");\n System.out.println(\" @ \" + today_off);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_off);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + today_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunrise as next event\n timer.schedule(new SunriseTask(), today_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = today_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseToday;\n return nextEvent;\n }\n }", "private void sendCustomerNotificationsBirthday_MinCompare(Customer customer){\n LocalDate curDateTime = LocalDate.now();\n int nextYear = curDateTime.getYear();\n int maxDay = Integer.MAX_VALUE;\n if (curDateTime.getDayOfYear() > customer.birthDate.getDayOfYear()) {\n nextYear ++;\n }\n\n LocalDate nextBirthDate = LocalDate.of(nextYear, customer.birthDate.getMonthValue(), customer.birthDate.getDayOfMonth());\n Event nearestEvent = null;\n for (Event event : events){\n if (event.eventDate.isAfter(nextBirthDate) || event.eventDate.isEqual(nextBirthDate)) {\n int day = event.eventDate.getDayOfYear();\n if (day < maxDay) {\n nearestEvent = event;\n maxDay = day;\n }\n }\n }\n\n if (nearestEvent != null) {\n System.out.println(String.format(\"sendCustomerNotificationsBirthday_MinCompare : nearest event is %s, event date is %s\", nearestEvent.id, nearestEvent.eventDate));\n } else {\n System.out.println(\"no matched event\");\n }\n }", "@Override\n public void clickDateNextDay() {\n\n if (DateUtil.isLastDate()) {\n final WebElement divElement = DriverConfig.getDriver().findElement(\n By.id(\"ui-datepicker-div\"));\n final WebElement nextElement = retrieveElementByAttributeValueContainsForSubElement(\n DriverConfig.getDriver(), divElement, TAG_SPAN, ATTR_CLASS,\n \"ui-icon ui-icon-circle-triangle-e\", SHORT_TIMEOUT);\n nextElement.click();\n changeAwayDateValue(\"1\");\n } else {\n int current = DateUtil.getCurrentDate();\n changeAwayDateValue(String.valueOf(current + 1));\n }\n }", "public abstract Date getPreviousFireTime();", "default List<ZonedDateTime> getExecutionDates(ZonedDateTime startDate, ZonedDateTime endDate) {\n if (endDate.equals(startDate) || endDate.isBefore(startDate)) {\n throw new IllegalArgumentException(\"endDate should take place later in time than startDate\");\n }\n List<ZonedDateTime> executions = new ArrayList<>();\n ZonedDateTime nextExecutionDate = nextExecution(startDate).orElse(null);\n\n if (nextExecutionDate == null) return Collections.emptyList();\n while(nextExecutionDate != null && (nextExecutionDate.isBefore(endDate) || nextExecutionDate.equals(endDate))){\n executions.add(nextExecutionDate);\n nextExecutionDate = nextExecution(nextExecutionDate).orElse(null);\n }\n return executions;\n }", "public org.drip.analytics.date.JulianDate firstCouponDate()\n\t{\n\t\ttry {\n\t\t\treturn new org.drip.analytics.date.JulianDate (_lsPeriod.get (0).endDate());\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "String getPreviousCloseDate();", "public String processGithubNotifications(GithubNotification[] githubNotifications){\n if(githubNotifications.length > 0)\n return \"You go a new Github Notification\";\n else\n return null;\n }", "@Test\n public void testGetNextAlarm()\n {\n addTask(\"task1\", now.plusMinutes(5), null, false);\n addTask(\"task2\", now.plusDays(5), null, false);\n addTask(\"task3\", now.plusMinutes(5), Type.DAY, false); //due date NOW + 5 min\n addTask(\"task4\", now.minusDays(1), Type.WEEK, false); //due date in 1 week\n addTask(\"task5\", now.plusMinutes(10), null, true); //disabled\n\n new GetNextAlarm().getNextAlarm(now.plusMinutes(5).getMillis(), false);\n\n //this should calculate the next occurrance of task3\n Cursor cursor = taskProvider.query(TaskProvider.TASK_JOIN_REPEAT_URI,\n new TaskTable().getColumns(TASK_ID, REPEAT_NEXT_DUE_DATE),\n REPEAT_NEXT_DUE_DATE+\"=\"+now.plusMinutes(5).plusDays(1).getMillis(),\n null,\n null);\n\n assertThat(cursor.getCount(), is(1));\n cursor.moveToFirst();\n assertThat(cursor.getInt(0), is(3));\n\n }", "public String getLastDateHistory( String code) {\n String query = \"SELECT * FROM \"+ code +\"R where time > '2015-06-01T00:00:00Z'\";\n QueryResult list = InfluxDaoConnector.getPoints(query,dbName);\n\n if (!checker(list))\n return null;\n\n int size = list.getResults().get(0).getSeries().get(0).getValues().size();\n\n\n return (String) list.getResults().get(0).getSeries().get(0).getValues().get(size-1).get(0);\n\n }", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "public static String getSQLDateNext(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"'\" + format.format(next) + \"'\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "public org.apache.xmlbeans.XmlDate xgetJobStartDate()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n return target;\r\n }\r\n }", "private PendingIntent getNotificationIntent() {\n Intent resultIntent = new Intent(this, ScheduleNotificationActivity.class);\n // Because clicking the notification opens a new (\"special\") activity, there's\n // no need to create an artificial back stack.\n return PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_ONE_SHOT\n );\n }", "public List<GlucoseData> getHistoryTillDate (Date date) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyyMMdd\");\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n\n Date datadate = sqlDateFormat.parse(glucosedata.getDate());\n // Adding to list\n if(datadate.after(date)) {\n history.add(glucosedata);\n }\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n // Log.d(TAG, \"Error while trying to get posts from database\");\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }", "public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}", "protected Date getUntilInclusiveDate() {\n\t\treturn untilInclusive;\n\t}", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "private void StartNotifyActivity()\r\n\t{\n \tIntent intent = new Intent();\r\n\t\tintent.setClass(this, NotifyDateActivity.class);\r\n\t\t// Set time\r\n\t\tBundle Parameters = new Bundle();\r\n\t\tParameters.putString(OneNote.KEY_NOTIFYTIME, HelperFunctions.Calendar2String(AddOneNote.NotifyTime));\r\n\t\tParameters.putInt(OneNote.KEY_NOTIFYDURA, AddOneNote.NotifyDura);\r\n\t\tParameters.putString(OneNote.KEY_RINGMUSIC, AddOneNote.RingMusic);\r\n\t\tParameters.putInt(OneNote.KEY_NOTIFYMETHOD, AddOneNote.NotifyMethod);\r\n // Pass it to next activity \r\n\t\tintent.putExtras(Parameters);\r\n\t\t// Go to next activity(set note's notify time activity)\r\n\t\tstartActivityForResult(intent, ProjectConst.ACTIVITY_SET_NOTIFYTIME);\t\t\r\n\t}", "protected Date nextStandardDate(Date date, DateTickUnit unit) {\n/* 1122 */ Date previous = previousStandardDate(date, unit);\n/* 1123 */ Calendar calendar = Calendar.getInstance(this.timeZone, this.locale);\n/* 1124 */ calendar.setTime(previous);\n/* 1125 */ calendar.add(unit.getCalendarField(), unit.getMultiple());\n/* 1126 */ return calendar.getTime();\n/* */ }", "private DeadlineDate minimumOf(DeadlineDate firstDeadlineDate, DeadlineDate secondDeadlineDate) {\n if (firstDeadlineDate.compareTo(secondDeadlineDate) < 0) {\n return firstDeadlineDate;\n } else {\n return secondDeadlineDate;\n }\n }", "public static String getNextDay(String nowdate, int delay)\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:155 */ SimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 115:156 */ String mdate = \"\";\r\n/* 116:157 */ Date d = strToDate(nowdate);\r\n/* 117:158 */ long myTime = d.getTime() / 1000L + delay * 24 * \r\n/* 118:159 */ 60 * 60;\r\n/* 119:160 */ d.setTime(myTime * 1000L);\r\n/* 120:161 */ return format.format(d);\r\n/* 121: */ }\r\n/* 122: */ catch (Exception e) {}\r\n/* 123:166 */ return \"\";\r\n/* 124: */ }", "Optional<ZonedDateTime> lastExecution(final ZonedDateTime date);", "@Override\n public void run() {\n Calendar calendar = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dateTime = simpleDateFormat.format(calendar.getTime());\n\n //Find the current time\n SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat(\"hh:mm:ss a\");\n String currentTime = simpleDateFormat1.format(calendar.getTime());\n\n //Find duration of current date and first day\n Date date1,date2;\n String dateStr1 = data.getDate();\n String dateStr2 = dateTime;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n try{\n date1 = sdf.parse(dateStr1);\n date2 = sdf.parse(dateStr2);\n long diff = date2.getTime() - date1.getTime();\n long totalDay = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(\"My Notification\", \"My Notification\", NotificationManager.IMPORTANCE_DEFAULT);\n NotificationManager manager = getSystemService(NotificationManager.class);\n manager.createNotificationChannel(channel);\n }\n\n //Exercise Time\n if(totalDay==0 || totalDay==1 || (totalDay>4+dayInSpace && totalDay<=10+dayInSpace)){\n if (currentTime.equals(\"05:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay>=5 && totalDay<=4+dayInSpace){\n if (currentTime.equals(\"03:00:00 AM\")) {\n NotificationExercise();\n }\n }\n\n //Eating time (After half hour wake up-breakfast, After five hours wake up-lunch, Before four hours sleep-dinner)\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"07:30:00 AM\") || currentTime.equals(\"12:00:00 PM\") || currentTime.equals(\"07:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:30:00 AM\") || currentTime.equals(\"01:00:00 PM\") || currentTime.equals(\"10:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:30:00 AM\") || currentTime.equals(\"03:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"12:00:00 AM\") || currentTime.equals(\"12:30:00 PM\") || currentTime.equals(\"05:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay>=5 && totalDay<=4+dayInSpace){\n if (currentTime.equals(\"05:00:00 AM\") || currentTime.equals(\"03:30:00 PM\") || currentTime.equals(\"08:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay>4+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"08:30:00 AM\") || currentTime.equals(\"01:00:00 PM\") || currentTime.equals(\"7:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n //Take Melatonin time\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"09:00:00 AM\")) {\n NotificationTakeMelatonin();\n }\n }\n\n if(totalDay>=4+dayInSpace && totalDay<=6+dayInSpace){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationTakeMelatonin();\n }\n }\n\n //Nap time\n if(totalDay>=4 && totalDay<4+dayInSpace){\n if (currentTime.equals(\"06:00:00 PM\")) {\n NotificationNap();\n }\n }\n\n if(totalDay>=4 && totalDay<4+dayInSpace){\n if (currentTime.equals(\"08:00:00 PM\")) {\n NotificationNap();\n }\n }\n\n //Sleep Time\n if(totalDay==0){\n if (currentTime.equals(\"12:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"02:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"04:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"09:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay>=4+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationSleep();\n }\n }\n\n //Wake Up Time\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"07:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"12:00:00 PM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"03:00:00 PM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay>=5+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"08:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n }catch(ParseException e){\n Log.d(\"error\",\"error\");\n }\n }", "public static LocalDate getFirstOfNextMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfNextMonth());\n\t}", "private Callable<List<Price>> fetchDataIfNeeded(Calendar currentDate) {\n return () -> {\n List<Price> fetchedList = Collections.emptyList();\n\n Calendar date = repository.getLastFetchedDate();\n if (date == null) {\n // need to fetch last few days as data for all period is sampled once per two days\n fetchedList = Observable.zip(repository.fetchAllPrices(), repository.fetchPrices(DAYS_TO_FETCH),\n (list1, list2) -> mergeAndSort(list1, list2))\n .blockingFirst();\n } else {\n int dayDifference = calendarUtils.calculateDifferenceInDays(currentDate, date);\n if (dayDifference > 0) {\n fetchedList = repository.fetchPrices(dayDifference).blockingFirst();\n }\n }\n\n return fetchedList;\n };\n }", "@Test\n public void constructorNullPreviousNotificationLogId() {\n new NotificationLog(currentNotificationLogId, nextNotificationLogId, null, notifications, true);\n }", "java.util.Calendar getSearchRecurrenceStart();", "public Date getFirstRelease() {\n return firstRelease;\n }", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "void createDailyMessageRaport(String stringCurrentDate);", "public Group3Date next() {\n\t\t\tif (isValid(month, day + 1, year)) return new Group3Date(month, day + 1, year);\n\t\t\telse if (isValid(month + 1, 1, year)) return new Group3Date(month + 1, 1, year);\n\t\t\telse return new Group3Date(1, 1, year + 1);\n\t\t}", "private void scheduleNotification(Notification notification) {\n\n Intent notificationIntent2 = new Intent(MainActivity.this, NotificationPublisher.class);\n notificationIntent2.putExtra(NotificationPublisher.NOTIFICATION_ID, 1);\n notificationIntent2.putExtra(NotificationPublisher.NOTIFICATION, notification);\n PendingIntent pendingIntent2 = PendingIntent.getBroadcast(MainActivity.this, 0, notificationIntent2, PendingIntent.FLAG_UPDATE_CURRENT);\n Date date = new Date();\n\n Calendar calnoti = Calendar.getInstance();\n calnoti.setTime(date);\n\n calnoti.set(Calendar.HOUR_OF_DAY, mHour-1);\n calnoti.set(Calendar.MINUTE, mMin);\n calnoti.set(Calendar.SECOND, 0);\n calnoti.set(Calendar.YEAR,mYear);\n calnoti.set(Calendar.MONTH,mMonth);\n calnoti.set(Calendar.DAY_OF_MONTH,mDay);\n //long futureInMillis2 = SystemClock.elapsedRealtime() + delay;\n AlarmManager alarmManager2 = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n alarmManager2.set(AlarmManager.RTC_WAKEUP, calnoti.getTimeInMillis(), pendingIntent2);\n }", "public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }", "@Override\n\tpublic List<Email> retrieve(Date minDate, Matcher matcher) throws IOException {\n\t\tif (minDate == null) throw new IllegalArgumentException(\"Minimum date must be specified\");\n\t\tif (matcher == null) matcher = DEFAULT_MATCHER;\n\t\ttry {\n\t\t\tList<Email> emails = fetchEmail(minDate, matcher);\n\t\t\tCollections.sort(emails, EmailComparators.SENT_DATE);\n\t\t\treturn emails;\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new IOException(e);\n\t\t}\n\t}", "public interface NotificationService {\n\t\n /**\n * Save a notification.\n *\n * @param notificationDTO the entity to save\n * @return the persisted entity\n */\n NotificationDTO save(NotificationDTO notificationDTO);\n\n /**\n * Get all the notifications.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<NotificationDTO> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" notification.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<NotificationDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" notification.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n\tPage<NotificationDTO> findAllDateAsc(Pageable pageable);\n\n\t/**\n\t * Get all notifications received by a user after with a timestamp...\n\t * equal or greater than @param startTime\n\t * \n\t * @param pageable the pagination information\n\t * @param userId the user ID to get notifications for\n\t * @param startTime the time to get notifications after\n\t * \n\t */\n\tPage<NotificationDTO> findUserNotificationsAfterTime(Pageable pageable, Long userId, Instant startTime );\n\n}", "com.google.protobuf.Int64Value getDeliveryDateAfter();", "public TimedVariable findNext(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tint sz = vars.size();\n\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\t\telse // the exact time was found. Increment to the next value\n\t\t\tidx++;\n\t\t\n\t\tif (idx < sz)\n\t\t\treturn vars.get(idx);\n\t\telse\n\t\t\treturn null;\n\t}", "public static String getSQLDateTimeNext(Date val) {\n\n\t\t// Adds another day to Date and Time and converts date into SQL format\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd H:mm\");\n\t\t\treturn \"date_format('\" + format.format(next)\n\t\t\t\t\t+ \"','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "@Nullable\n @Generated\n @Selector(\"fetchStartDate\")\n public native NSDate fetchStartDate();", "public Date getToDate()\r\n/* 28: */ {\r\n/* 29:35 */ return this.toDate;\r\n/* 30: */ }", "public Date getFromDate()\r\n/* 18: */ {\r\n/* 19:27 */ return this.fromDate;\r\n/* 20: */ }", "public void setNextAppointmentDate (java.util.Date nextAppointmentDate) {\n\t\tthis.nextAppointmentDate = nextAppointmentDate;\n\t}", "public Date getStartDate();", "public Date getStartDate();", "private void retrieveNotification() { =====================================================\n // Creating Notification Model\n // =====================================================\n\n// Bitmap patientAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_18);\n// Bitmap patientAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_19);\n// Bitmap patientAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_20);\n//\n// Patient patient1 = new Patient(\"Garry\", \"Reese\", \"123AB456\", patientAvatar1);\n// Patient patient2 = new Patient(\"Lillian\", \"Wade\", \"987CD654\", patientAvatar2);\n// Patient patient3 = new Patient(\"Laura\", \"Freeman\", \"AV12G64\", patientAvatar3);\n//\n// Bitmap caregiverAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_01);\n// Bitmap caregiverAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_02);\n// Bitmap caregiverAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_03);\n// Bitmap caregiverAvatar4 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_04);\n// Bitmap caregiverAvatar5 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_05);\n//\n// DateTime date1 = DateTime.now();\n// DateTime date2 = DateTime.now().minusDays(2).minusHours(2);\n// DateTime date3 = DateTime.now().minusDays(5).plusHours(1);\n// DateTime date4 = DateTime.now().minusDays(4).minusHours(2);\n// DateTime date5 = DateTime.now().minusDays(1).plusHours(1);\n// DateTime date6 = DateTime.now().minusDays(3).plusHours(5);\n//\n// String caregiverName1 = \"John Doe\";\n// String caregiverName2 = \"Jane Doe\";\n// String caregiverName3 = \"Tracy Lee\";\n// String caregiverName4 = \"Apple Tan\";\n// String caregiverName5 = \"Bethany Mandler\";\n//\n// String summary1 = \"Updated information of patient Garry Reese\";\n// String summary2 = \"Log new problem for patient Lilian Wade\";\n// String summary3 = \"Create new patient Laura Freeman\";\n// String summary4 = \"Recommended the game category memory to patient Garry Reese\";\n// String summary5 = \"Updated the milk allergy of patient Lillian Wade\";\n// String summary6 = \"Log new problem for patient Garry Reese\";\n//\n// Notification notification1 = new Notification(date1, caregiverName1, caregiverAvatar1, summary1, patient1, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_FIELD);\n// Notification notification2 = new Notification(date2, caregiverName2, caregiverAvatar2, summary2, patient2, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n// Notification notification3 = new Notification(date3, caregiverName3, caregiverAvatar3, summary3, patient3, Notification.STATUS_NONE, Notification.TYPE_NEW_PATIENT);\n// Notification notification4 = new Notification(date4, caregiverName4, caregiverAvatar4, summary4, patient1, Notification.STATUS_NONE, Notification.TYPE_GAME_RECOMMENDATION);\n// Notification notification5 = new Notification(date5, caregiverName5, caregiverAvatar5, summary5, patient2, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_OBJECT);\n// Notification notification6 = new Notification(date6, caregiverName3, caregiverAvatar3, summary6, patient1, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n//\n ArrayList<Notification> notificationList = new ArrayList<>();\n//// notificationList.add(notification1);\n//// notificationList.add(notification2);\n//// notificationList.add(notification3);\n//// notificationList.add(notification4);\n//// notificationList.add(notification5);\n//// notificationList.add(notification6);\n\n dbfile db = new dbfile();\n notificationList = db.prepareNotificationList(getApplicationContext());\n Log.v(\"WHY LIKE THAT\", String.valueOf(notificationList.size()));\n // =====================================================\n // Building the Notification Group based on the notification\n // =====================================================\n\n HashMap patientAndNotificationGroupMap = new HashMap();\n\n for(Notification notification:notificationList) {\n Patient currentPatient = notification.getAffectedPatient();\n String patientNric = currentPatient.getNric();\n\n if (patientAndNotificationGroupMap.containsKey(patientNric)) {\n NotificationGroup notifGroup = (NotificationGroup) patientAndNotificationGroupMap.get(patientNric);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n notifGroup.getUnprocessedNotif().add(notification);\n } else {\n notifGroup.getProcessedNotif().add(notification);\n }\n } else {\n NotificationGroup newNotifGroup = new NotificationGroup();\n newNotifGroup.setAffectedPatient(currentPatient);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n newNotifGroup.getUnprocessedNotif().add(notification);\n } else {\n newNotifGroup.getProcessedNotif().add(notification);\n }\n patientAndNotificationGroupMap.put(patientNric, newNotifGroup);\n }\n }\n\n ArrayList<NotificationGroup> notificationGroupList = new ArrayList<>();\n NotificationComparator comparator = new NotificationComparator();\n for (Object obj : patientAndNotificationGroupMap.values()) {\n NotificationGroup notificationGroup = (NotificationGroup) obj;\n\n // Set notification status\n UtilsUi.setNotificationGroupStatus(this, notificationGroup);\n\n // Sort the notifications by date\n Collections.sort(notificationGroup.getProcessedNotif(), comparator);\n Collections.sort(notificationGroup.getUnprocessedNotif(), comparator);\n\n // Set the summary\n UtilsUi.setNotificationGroupSummary(this, notificationGroup);\n\n notificationGroupList.add(notificationGroup);\n }\n\n DataHolder.setNotificationGroupList(notificationGroupList);\n }", "public Date getFirstSelectionDate()\n/* */ {\n/* 186 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.first();\n/* */ }", "public void lookUpNextDate(int i) throws IllegalCommandArgumentException {\n if (i < wordsOfInput.length-2) { \n if (wordsOfInput[i+2].toLowerCase().matches(Constants.DAYS)) {\n // by next (day)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(wordsOfInput[i+2], 1);\n \n // by next day (starttime)\n if (i < wordsOfInput.length-3 && wordsOfInput[i+3].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+3];\n \n // by next day starttime (endtime)\n if (i < wordsOfInput.length - 5 && \n wordsOfInput[i+4].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+5);\n }\n } \n } else if (wordsOfInput[i+2].toLowerCase().matches(\"week|wk\")) {\n // by next (week)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 2);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"month|mth\")) {\n // by next (month)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 3);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"year|yr\")) {\n // by next (year)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 4);\n }\n }\n }", "Optional<Duration> timeToNextExecution(final ZonedDateTime date);", "public void updateDateFreezed (String email, String periodical, Timestamp newDate){\r\n try (Connection connection = jdbcUtils.getConnection();){\r\n preparedStatement = connection.prepareStatement(SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL);\r\n preparedStatement.setTimestamp(NEXTDATE_SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL_NUMBER, newDate);\r\n preparedStatement.setString(EMAIL_SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL_NUMBER, email);\r\n preparedStatement.setString(PERIODICAL_SET_NEW_NEXT_DATE_TO_FOLLOWERS_SQL_NUMBER, periodical);\r\n preparedStatement.executeUpdate();\r\n } catch (SQLException ex) {\r\n configLog.init();\r\n logger.info(LOG_SQL_EXCEPTION_MESSAGE + AdminDao.class.getName());\r\n Logger.getLogger(AdminDao.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new RuntimeException();\r\n }\r\n }", "protected Date findFirstGenDate(GenCtx ctx)\n\t{\n\t\treturn EX.assertn(ctx.get(Date.class));\n\t}", "public Date getNextChargeTime() {\n return nextChargeTime;\n }", "void generateResponseHistory(LocalDate from, LocalDate to);" ]
[ "0.73943436", "0.6956202", "0.58571666", "0.5768366", "0.5733433", "0.56862473", "0.567343", "0.5666244", "0.56358236", "0.56094253", "0.5565065", "0.55481726", "0.5443571", "0.5337419", "0.5322657", "0.53202724", "0.5245228", "0.52450824", "0.5200442", "0.51926905", "0.51619995", "0.51149946", "0.5109792", "0.5102404", "0.5100692", "0.50940895", "0.50431913", "0.5039403", "0.5024586", "0.50155103", "0.5000591", "0.49996835", "0.49903172", "0.4989061", "0.4973642", "0.49607062", "0.4959532", "0.49436375", "0.49256265", "0.4921078", "0.48780477", "0.4867213", "0.48552954", "0.4848776", "0.48348966", "0.48098615", "0.48016518", "0.4794004", "0.47807023", "0.47729486", "0.47665226", "0.4764464", "0.47433984", "0.4736523", "0.4733466", "0.47317326", "0.47220185", "0.47165394", "0.4712242", "0.4709089", "0.47003457", "0.46990836", "0.4682619", "0.46781683", "0.46732172", "0.46732125", "0.46711797", "0.46686092", "0.46595708", "0.4656367", "0.46537766", "0.46471125", "0.46418306", "0.4638528", "0.4637292", "0.4637292", "0.4637292", "0.4631882", "0.46268457", "0.4602712", "0.46016768", "0.45746115", "0.45689237", "0.45664698", "0.45645848", "0.45636263", "0.45580265", "0.4547692", "0.45391265", "0.45316663", "0.45173374", "0.45173374", "0.45144832", "0.45143238", "0.45097", "0.45083907", "0.44995776", "0.44995582", "0.44882447", "0.4485664" ]
0.7789209
0
defines if the current workbook has to process some cell formulas
private void setHasFormulasToEvaluate() { this.hasFormulasToEvaluate = this.mempoiSubFooter instanceof FormulaSubFooter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFormulaUsed() {\n return getBooleanProperty(\"IsFormulaUsed\");\n }", "public boolean getForceFormulaRecalculation() {\n\t\treturn false;\n\t}", "private void runFormulas() {\r\n // updates all of the formula cells in the excel file to display the\r\n // changes that were made to the parameter values\r\n FormulaEvaluator evaluator = workbook.getCreationHelper().createFormulaEvaluator();\r\n for (Row r : currentWorksheet) {\r\n for (Cell c : r) {\r\n if (c.getCellType() == Cell.CELL_TYPE_FORMULA) {\r\n try {\r\n evaluator.evaluateFormulaCell(c);\r\n } catch (Throwable t) {\r\n t.printStackTrace();\r\n }\r\n \r\n }\r\n }\r\n }\r\n }", "public void setForceFormulaRecalculation(boolean arg0) {\n\n\t}", "private Boolean checkWorkbook(){\n //Ensure exactly 2 sheets\n if (workbook == null || workbook.getNumberOfSheets() != 2) return false;\n invoiceSheet = workbook.getSheetAt(0);\n return (!isSheetEmpty(invoiceSheet));\n }", "private void initialize(WorkbookSettings ws, ExternalSheet es, WorkbookMethods nt)\r\n/* 68: */ {\r\n/* 69:150 */ if (this.copiedFrom != null)\r\n/* 70: */ {\r\n/* 71:152 */ initializeCopiedFormula(ws, es, nt);\r\n/* 72:153 */ return;\r\n/* 73: */ }\r\n/* 74:156 */ this.parser = new FormulaParser(this.formulaToParse, es, nt, ws);\r\n/* 75: */ try\r\n/* 76: */ {\r\n/* 77:160 */ this.parser.parse();\r\n/* 78:161 */ this.formulaString = this.parser.getFormula();\r\n/* 79:162 */ this.formulaBytes = this.parser.getBytes();\r\n/* 80: */ }\r\n/* 81: */ catch (FormulaException e)\r\n/* 82: */ {\r\n/* 83:166 */ logger.warn(\r\n/* 84:167 */ e.getMessage() + \r\n/* 85:168 */ \" when parsing formula \" + this.formulaToParse + \" in cell \" + \r\n/* 86:169 */ getSheet().getName() + \"!\" + \r\n/* 87:170 */ CellReferenceHelper.getCellReference(getColumn(), getRow()));\r\n/* 88: */ try\r\n/* 89: */ {\r\n/* 90:175 */ this.formulaToParse = \"ERROR(1)\";\r\n/* 91:176 */ this.parser = new FormulaParser(this.formulaToParse, es, nt, ws);\r\n/* 92:177 */ this.parser.parse();\r\n/* 93:178 */ this.formulaString = this.parser.getFormula();\r\n/* 94:179 */ this.formulaBytes = this.parser.getBytes();\r\n/* 95: */ }\r\n/* 96: */ catch (FormulaException e2)\r\n/* 97: */ {\r\n/* 98:184 */ logger.error(\"\", e2);\r\n/* 99: */ }\r\n/* 100: */ }\r\n/* 101: */ }", "private void initializeCopiedFormula(WorkbookSettings ws, ExternalSheet es, WorkbookMethods nt)\r\n/* 104: */ {\r\n/* 105: */ try\r\n/* 106: */ {\r\n/* 107:202 */ this.parser = new FormulaParser(this.formulaBytes, this, es, nt, ws);\r\n/* 108:203 */ this.parser.parse();\r\n/* 109:204 */ this.parser.adjustRelativeCellReferences(\r\n/* 110:205 */ getColumn() - this.copiedFrom.getColumn(), \r\n/* 111:206 */ getRow() - this.copiedFrom.getRow());\r\n/* 112:207 */ this.formulaString = this.parser.getFormula();\r\n/* 113:208 */ this.formulaBytes = this.parser.getBytes();\r\n/* 114: */ }\r\n/* 115: */ catch (FormulaException e)\r\n/* 116: */ {\r\n/* 117: */ try\r\n/* 118: */ {\r\n/* 119:215 */ this.formulaToParse = \"ERROR(1)\";\r\n/* 120:216 */ this.parser = new FormulaParser(this.formulaToParse, es, nt, ws);\r\n/* 121:217 */ this.parser.parse();\r\n/* 122:218 */ this.formulaString = this.parser.getFormula();\r\n/* 123:219 */ this.formulaBytes = this.parser.getBytes();\r\n/* 124: */ }\r\n/* 125: */ catch (FormulaException e2)\r\n/* 126: */ {\r\n/* 127:225 */ logger.error(\"\", e2);\r\n/* 128: */ }\r\n/* 129: */ }\r\n/* 130: */ }", "boolean hasCelExpression();", "@Override\r\n public boolean evaluate(Map<Integer, Boolean> vars) {\n for (Formula formula : getParts()){\r\n if(formula.evaluate(vars)==false){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private boolean isPreEvalSymobl()\r\n\t{\r\n\t\t//if the expression is empty return false\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn false;\r\n\t\tString lastChar = expression.substring(expression.length() - 1, expression.length());\r\n\t\tfor(String str : evalSymbol)\r\n\t\t\tif(str.equals(lastChar))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public void addFormulas() {\n countFormulas++;\n }", "boolean isSkipCalculations();", "public boolean has_unprocessed_rules();", "private static boolean addIfAxiomIsAbsent(final List<OWLLogicalAxiom> correctFormulas, final OWLClassAssertionAxiom axiom) {\r\n boolean isAxiomAlreadyPresent = false;\r\n final int size = correctFormulas.size();\r\n for (int i = 0; i < size && !isAxiomAlreadyPresent; i++) {\r\n final OWLLogicalAxiom _ax = correctFormulas.get(i);\r\n if (_ax instanceof OWLClassAssertionAxiom) {\r\n final OWLClassAssertionAxiom ax = (OWLClassAssertionAxiom) _ax;\r\n final Set<OWLClass> axClassesInSignature = ax.getClassesInSignature();\r\n final OWLIndividual axIndividual = ax.getIndividual();\r\n\r\n final Set<OWLClass> axiomClassesInSignature = axiom.getClassesInSignature();\r\n final OWLIndividual axiomIndividual = axiom.getIndividual();\r\n\r\n final boolean areEqualClassesInSignature = axClassesInSignature.equals(axiomClassesInSignature);\r\n isAxiomAlreadyPresent = (areEqualClassesInSignature && axIndividual.isAnonymous() && axiomIndividual.isAnonymous());\r\n }\r\n }\r\n\r\n return !isAxiomAlreadyPresent && correctFormulas.add(axiom);\r\n }", "@java.lang.Override\n public boolean hasFunctionApproximation() {\n return calibratorCase_ == 1;\n }", "@Override\n\tpublic boolean hasStyleIssues() {\n\t\treturn sheets.hasErrorsOrWarnings() || getErrorHandler().hasErrors() || getErrorHandler().hasWarnings();\n\t}", "@java.lang.Override\n public boolean hasFunctionApproximation() {\n return calibratorCase_ == 1;\n }", "private void findReferencedCells() {\n\t\tfor(int i = 0; i< workbook.getNumberOfSheets();i++) {\n\t\t\tcurrentSheet = workbook.getSheetAt(i);\n\t\t\tIterator <Row> rowIterator = currentSheet.iterator();\n\t\t\twhile(rowIterator.hasNext()){\n\t\t\t\tRow row = rowIterator.next();\n\t\t\t\tIterator<Cell> cellIterator = row.cellIterator();\n\t\t\t\twhile(cellIterator.hasNext()) {\n\t\t\t\t\tCell cell = cellIterator.next();\n\n\t\t\t\t\tif(cell.getCellType()==Cell.CELL_TYPE_FORMULA) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessFormulaReferences(cell);\n\t\t\t\t\t\t} catch (ParsingException e) {\n\t\t\t\t\t\t\t//ignore bad formulas\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\tcondenseInputCellReferencesFromAllSheets();\n\t\tcountFormulaCellsReferenced();\n\t}", "public boolean needsProcessing() {\r\n return !INTL_NODE.getOutMarbles().isEmpty();\r\n }", "private boolean initSpreadsheet()\n {\n boolean bOk = true;\n XSpreadsheets aSheets = maSpreadsheetDoc.getSheets();\n try\n {\n XIndexAccess aSheetsIA = (XIndexAccess) UnoRuntime.queryInterface( XIndexAccess.class, aSheets );\n maSheet = (XSpreadsheet) UnoRuntime.queryInterface(XSpreadsheet.class, aSheetsIA.getByIndex( 0 ));\n\n // enter some values in B3:B11\n for( int iCounter=1; iCounter < 10; iCounter++ )\n {\n XCell aCell = maSheet.getCellByPosition( 1, 1 + iCounter );\n aCell.setValue( (double) iCounter );\n }\n }\n catch( Exception ex )\n {\n System.err.println( \"Couldn't initialize Spreadsheet Document: \" + ex );\n ex.printStackTrace();\n bOk = false;\n }\n return bOk;\n }", "public boolean isCalculated() {\n\t\treturn getCalculator() != null && getCalculator().trim().length() > 0;\n\t}", "public default boolean hasRoi() {\n\t\treturn false;\n\t}", "public boolean allCalculationsDone() {\r\n return progressBarMap.isEmpty();\r\n }", "@Override\n\tpublic boolean evaluar(Calculable cal) {\n\t\treturn false;\n\t}", "@Override\r\n public boolean isManualShape ()\r\n {\r\n return getGrade() == Evaluation.MANUAL;\r\n }", "private Formulas() { }", "private boolean allowCombinedFDRScoreCalculation() {\n if ((checkCreatePSMSets != null)\n && (checkCalculateAllFDR != null)) {\n return checkCreatePSMSets.isSelected()\n && checkCalculateAllFDR.isSelected();\n } else {\n return false;\n }\n }", "boolean isAtom(Formula f);", "boolean isUF(Formula f);", "boolean hasFunctionApproximation();", "public void setFormula(String formula) {\r\n this.formula = formula;\r\n }", "public String getFormula() {\n\t\treturn null;\n\t}", "private void initSpreadSheet()\n {\n if (documentFile != null && (documentFile.getName().endsWith(\".docx\") || documentFile.getName().endsWith(\".odt\")))\n {\n setIsSpreadsheet(false);\n }\n else\n {\n setIsSpreadsheet(true);\n }\n }", "@java.lang.Override\n public boolean hasBasis() {\n return basis_ != null;\n }", "private boolean addCellReferenceIfFound()\n {\n logger.trace(\" aCRIF: Trying to match \\\"{}\\\".\", myCellReference);\n if (myCellReference != null)\n {\n if (CELL_REF_PATTERN.matcher(myCellReference).matches())\n {\n CellRef ref;\n\n logger.trace(\" aCRIF: Cell Reference is \\\"{}\\\".\", myCellReference);\n if (mySheetName != null)\n ref = new CellRef(SheetNameFormatter.format(mySheetName) + \"!\" + myCellReference);\n else\n ref = new CellRef(myCellReference);\n if (myDefaultValue != null)\n {\n logger.trace(\" aCRIF: Default value found is \\\"{}\\\".\", myDefaultValue);\n ref.setDefaultValue(myDefaultValue);\n }\n\n logger.trace(\" aCRIF: Cell Reference detected: {}\", ref.formatAsString());\n // Don't add duplicates.\n if (!myCellReferences.contains(ref))\n {\n logger.trace(\" aCRIF: Not in list, adding ref: row={}, col={}, rowAbs={}, colAbs={}.\",\n ref.getRow(), ref.getCol(), ref.isRowAbsolute(), ref.isColAbsolute());\n myCellReferences.add(ref);\n }\n }\n else if (mySheetName == null)\n {\n // Allow non-String tokens to be a part of the sheet name.\n // This allows sheet names constructed for implicit cloning\n // purposes to be recognized in JETT formulas, e.g.\n // $[SUM(${dvs.name}$@i=n;l=10;v=s;r=DNE!B3)]\n // Else the Excel Operator \"=\" will make this reference the\n // shortened \"DNE!B3\" erroneously.\n return true;\n }\n }\n mySheetName = null;\n myCellReference = null;\n myDefaultValue = null;\n return false;\n }", "public boolean getUseDefaultRMMRules()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USEDEFAULTRMMRULES$8, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "boolean isQuantification(Formula f);", "private void treatmentBooleanDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_BOOLEAN,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeBooleanCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN));\n\t\t}\n\t}", "public static boolean isModelInitialized() {\r\n return cellModel != null;\r\n }", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "@SuppressWarnings(\"unchecked\")\n private boolean checkPersonSelectionFormula(String userSelectionFormula,\n NotesDocument personDoc) throws RepositoryException {\n Vector<Double> vecEvalResult = (Vector<Double>) notesSession.evaluate(\n userSelectionFormula, personDoc);\n // A Selection formula will return a vector of doubles.\n return (1 == vecEvalResult.elementAt(0).intValue());\n }", "public boolean isNotNullFns() {\n return genClient.cacheValueIsNotNull(CacheKey.fns);\n }", "@Override\n protected void check(Workbook workbook)\n {\n Sheet total = workbook.getSheetAt(0);\n assertEquals(58, TestUtility.getNumericCellValue(total, 1, 1), DELTA);\n assertEquals(17, TestUtility.getNumericCellValue(total, 1, 2), DELTA);\n assertEquals(38070496, TestUtility.getNumericCellValue(total, 2, 1), DELTA);\n assertEquals(1998257, TestUtility.getNumericCellValue(total, 2, 2), DELTA);\n assertEquals(180979, TestUtility.getNumericCellValue(total, 3, 1), DELTA);\n assertEquals(16106, TestUtility.getNumericCellValue(total, 3, 2), DELTA);\n assertEquals(404224, TestUtility.getNumericCellValue(total, 4, 1), DELTA);\n assertEquals(284401, TestUtility.getNumericCellValue(total, 4, 2), DELTA);\n assertEquals(1222, TestUtility.getNumericCellValue(total, 5, 1), DELTA);\n assertEquals(971, TestUtility.getNumericCellValue(total, 5, 2), DELTA);\n assertEquals(51960, TestUtility.getNumericCellValue(total, 6, 1), DELTA);\n assertEquals(47001, TestUtility.getNumericCellValue(total, 6, 2), DELTA);\n }", "public boolean mo1291g() {\n return !this.f2111i.isEmpty() || !this.f2113k.isEmpty() || !this.f2112j.isEmpty() || !this.f2110h.isEmpty() || !this.f2118p.isEmpty() || !this.f2119q.isEmpty() || !this.f2117o.isEmpty() || !this.f2120r.isEmpty() || !this.f2115m.isEmpty() || !this.f2114l.isEmpty() || !this.f2116n.isEmpty();\n }", "public boolean mo7630q() {\n return !this.f4373c.isEmpty() && !this.f4372b.isEmpty();\n }", "public boolean hasComputeSum() {\n return computeSum_ != null;\n }", "boolean isEvaluable();", "private boolean canReduceBins() {\n\t\tint oldBinCount = binCount;\n\t\tboolean canReduce = false;\n\t\tbinCount = binCount / 2;\n\t\tint[] chromosome = eliteChromosome.clone();\n\n\t\tif (getFitness(chromosome) <= binCount)\n\t\t\tcanReduce = true;\n\t\telse\n\t\t\tcanReduce = false;\n\t\tbinCount = oldBinCount; //no side effects\n\t\treturn canReduce;\n\t}", "boolean isFreeVariable(Formula f);", "static Boolean createFinalExcel(HSSFWorkbook workbook, String excelName) {\n\t\tFileOutputStream fos = null;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(new File( excelName));\n\n\t\t\tworkbook.write(fos);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn Boolean.FALSE;\n\t\t} finally {\n\t\t\tif (fos != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfos.flush();\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\treturn Boolean.TRUE;\n\t}", "public String mo81e() {\n throw new RuntimeException(\"3D references need a workbook to determine formula text\");\n }", "@java.lang.Override\n public boolean hasSigmoidCalibration() {\n return calibratorCase_ == 3;\n }", "private boolean factor() {\r\n return MARK(ATOM) && atom() && postops();\r\n }", "@java.lang.Override\n public boolean hasSigmoidCalibration() {\n return calibratorCase_ == 3;\n }", "public boolean isSetUseDefaultRMMRules()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(USEDEFAULTRMMRULES$8) != 0;\n }\n }", "public abstract boolean promulgationDataDefined();", "public boolean isNotNullSupportsTipAdjust() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsTipAdjust);\n }", "boolean shouldRescore() {\n return false;\n }", "public boolean usesExternalOperator()\n {\n return m_extOperator.trim().length() > 0;\n }", "public boolean hasBasis() {\n return basisBuilder_ != null || basis_ != null;\n }", "protected boolean func_70041_e_() { return false; }", "protected String getIntermediateFormula() {\n if ( isGlobal() ) {\n return globalConstraint;\n } else if ( isRoleBased() ) {\n return roleMapToFormula();\n } else {\n // rls is disabled\n return EMPTY_STRING;\n }\n }", "public final boolean mo5181g() {\n return mo5182h() && this.f9479a != 0;\n }", "protected boolean bugfixesIncluded() {\n\t\treturn this.bugfixesIncluded;\n\t}", "public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }", "protected void checkIfAfloat() {\n boolean isAllHit = Arrays.stream(cells).allMatch(val -> val.getType() == CellType.FiredHit);\n if(isAllHit) {\n for (var cell :\n cells) {\n cell.setType(CellType.Sunk);\n }\n }\n }", "public Excel(Workbook workbook){\n this.workbook = workbook;\n isValid = false;\n initialized = false;\n }", "private boolean allCellsCorrect() {\n for (int i = 0;i < btArray.length;i++) {\n for (int j = 0;j < btArray[0].length;j++) {\n int cellState = mainField.getCellState(i,j);\n // if the cell has a mine\n if (mainField.getValue(i,j) == -1) {\n // tests to see if it isn't marked\n if (cellState != mainField.MARKED) {\n // returns false if it isn't, because it should be marked if the game is complete\n return false;\n }\n }\n // if it isn't a mine\n else {\n // tests to see if the cell is marked\n if (cellState == mainField.MARKED) {\n // returns false, because this nonmine cell should not be marked if the game is complete\n return false;\n }\n }\n }\n }\n return true;\n }", "public boolean checkJobExsit(String fileName) {\n return jobConfDB.getJob(fileName) != null;\n }", "private boolean canRedo() {\n return !frozen && !future.isEmpty();\n }", "public boolean shouldImageProcess() {\r\n\t\treturn table.getBoolean(SHOULD_IMAGE_PROCESS_KEY, false);\r\n\t}", "@Override\r\n\tpublic String asFormula(){\n\t\treturn null;\r\n\t}", "private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }", "public void isSatisfiable() throws SolverException, InterruptedException {\n final BooleanFormulaManager bmgr = context.getFormulaManager().getBooleanFormulaManager();\n if (bmgr.isFalse(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"satisfiable\"),\n Fact.fact(\"but was\", \"trivially unsatisfiable\"));\n return;\n }\n\n try (ProverEnvironment prover = context.newProverEnvironment()) {\n prover.push(formulaUnderTest);\n if (!prover.isUnsat()) {\n return; // success\n }\n }\n\n reportUnsatCoreForUnexpectedUnsatisfiableFormula();\n }", "@Test\r\n\tpublic void testThatFormulaWorksWithManyCells () {\r\n\t\tSheet sheet = new Sheet();\r\n\t\tsheet.put(\"A1\", \"10\");\r\n\t\tsheet.put(\"A2\", \"=A1+B1\");\r\n\t\tsheet.put(\"A3\", \"=A2+B2\");\r\n\t\tsheet.put(\"A4\", \"=A3\");\r\n\t\tsheet.put(\"B1\", \"7\");\r\n\t\tsheet.put(\"B2\", \"=A2\");\r\n\t\tsheet.put(\"B3\", \"=A3-A2\");\r\n\t\tsheet.put(\"B4\", \"=A4+B3\");\r\n\r\n\t\tassertEquals(\"multiple expressions - A4\", \"34\", sheet.get(\"A4\"));\r\n\t\tassertEquals(\"multiple expressions - B4\", \"51\", sheet.get(\"B4\"));\r\n\t}", "@Override\n public boolean isEnabled() {\n if (!isInitCalled) {\n synchronized (this) {\n if (!isInitCalled) {\n isXgboostPresent = initXgboost();\n isInitCalled = true;\n }\n }\n }\n return isXgboostPresent;\n }", "private void processAxioms(){\n if(isComplexAxiom()){\n isTerminology = false;\n isTerminologyWithRCIs = false;\n }\n else{\n inspectAxiomLHS();\n\n Predicate<OWLClass> repeatedEquality = e -> equalityNameCount.get(e) > 1;\n Predicate<OWLClass> repeatedInclusion = e -> inclusionNameCount.get(e) > 1;\n\n //No shared names or repeated equalities\n if(containsSharedNames() || equalityNameCount.keySet().stream().anyMatch(repeatedEquality)){\n isTerminology = false;\n isTerminologyWithRCIs = false;\n }\n //Has some repeated inclusions\n else if(inclusionNameCount.keySet().stream().anyMatch(repeatedInclusion)){\n isTerminology = false;\n isTerminologyWithRCIs = true;\n }\n else{\n //Is a terminology hence is a terminology with RCIs\n isTerminology = true;\n isTerminologyWithRCIs = true;\n }\n\n }\n }", "public void mo81399j() {\n if (this.f58069a != null) {\n m81846c(true);\n }\n }", "public boolean isSetFunctionName() {\n return this.functionName != null;\n }", "public synchronized boolean allEvaluatorsAreClosed() {\n synchronized (this.evaluators) {\n for (final EvaluatorManager eval : this.evaluators.values()) {\n if (!eval.isClosed()) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n\tpublic boolean has_lambda_term() {\n\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasMemo() {\n return instance.hasMemo();\n }", "@java.lang.Override\n public boolean hasMemo() {\n return instance.hasMemo();\n }", "@java.lang.Override\n public boolean hasMemo() {\n return instance.hasMemo();\n }", "private boolean m91740N() {\n if (C32891b.m106468a().f85831a || ((m91739M() && C32891b.m106468a().f85832b) || CleanModeManager2.m106210b(mo71539v()))) {\n return true;\n }\n return false;\n }", "boolean isExecutableValidationEnabled();", "public boolean mo20821e() {\n return this.f18932b.isEmpty();\n }", "public boolean isSetNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NWCELL$26) != 0;\n }\n }", "public boolean hasComputeSum() {\n return computeSumBuilder_ != null || computeSum_ != null;\n }", "private static boolean m29700j() {\n if (!f27244b) {\n try {\n C6326a.m19642a(\"npth\", C9918j.m29342g());\n f27244b = true;\n } catch (Throwable unused) {\n }\n }\n return f27244b;\n }", "public boolean isFunction() {\n return false;\n }", "public /* synthetic */ boolean m9769LB() {\n return this.brz != null && this.brz.mo23521Ly() == 0;\n }", "private Boolean isSheetEmpty(Sheet sheet){\n Cell name;\n Cell accNumber;\n //Ensure that the row is not null\n\n if(sheet.getRow(1)==null || sheet.getRow(2)==null) return true;\n\n name = sheet.getRow(1).getCell(4);\n accNumber = sheet.getRow(2).getCell(11);\n //Ensure that the cells are not null\n if (name==null||accNumber==null) return true;\n\n //Ensure that the cell types are correct\n //Return false if not empty\n return (name.getCellTypeEnum()!=CellType.STRING | \n accNumber.getCellTypeEnum()!=CellType.FORMULA);\n }", "public void setFormula(String text) {\n\t\t\n\t}", "public boolean mo7079r() {\n return false;\n }", "boolean hasComputeSum();", "boolean hasAutomatic();", "public boolean hasAsynchronousReset(EdifCell cell) {\n String str = cell.getName().toLowerCase();\n\n if (str.startsWith(\"fdc\"))\n return true;\n if (str.startsWith(\"fddrcpe\"))\n return true;\n if (str.startsWith(\"fdp\"))\n return true;\n return false;\n }", "public boolean isUsed()\n {\n return (_isUsed(\n getNativeSVGProxyHandle(),\n getHandle()) > 0 ? true : false);\n }" ]
[ "0.6667246", "0.6456831", "0.6130114", "0.5818151", "0.573216", "0.550791", "0.54589546", "0.54410887", "0.53495055", "0.5344863", "0.52034926", "0.51689124", "0.51334184", "0.5132712", "0.51271176", "0.51193506", "0.51117796", "0.50771123", "0.50246704", "0.49940318", "0.49912673", "0.499073", "0.49900123", "0.49799395", "0.49607703", "0.4941825", "0.4941585", "0.49257758", "0.4907327", "0.48632446", "0.48392805", "0.4792322", "0.47865382", "0.47788614", "0.47516906", "0.47493047", "0.47398052", "0.47323415", "0.47253224", "0.4712173", "0.47021535", "0.47011805", "0.46601027", "0.465383", "0.46482334", "0.46421608", "0.4636424", "0.46341628", "0.4629027", "0.46259964", "0.46240732", "0.46200413", "0.46193743", "0.4612148", "0.45917863", "0.45902625", "0.45807323", "0.45683247", "0.45669672", "0.45608488", "0.45420823", "0.4535141", "0.4534633", "0.45320967", "0.4527068", "0.45257968", "0.45245737", "0.45244718", "0.45198724", "0.4505065", "0.45046532", "0.45024008", "0.45008022", "0.44966465", "0.4491184", "0.4484977", "0.4483682", "0.44778365", "0.44686237", "0.44663075", "0.44656652", "0.44610384", "0.4460732", "0.4460732", "0.4460732", "0.44604158", "0.44596356", "0.4458981", "0.44533125", "0.4452352", "0.44493484", "0.44471335", "0.44453424", "0.44210115", "0.44171357", "0.44137213", "0.4411215", "0.44105044", "0.4406985", "0.44019973" ]
0.7049373
0
Permette di ottenere il valore della variabile d'istanza che modella il prodotto
public String getProdotto() { return prodotto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "float getIva();", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "private float parametroEstadistico(int e) {\n\n int[] porError={20,10,9,8,7,6,5};\n float[] z = {(float) 1.28,(float) 1.65,(float) 1.69,(float) 1.75,(float) 1.81,(float) 1.88,(float) 1.96 };\n float valor=0;\n\n for(int i = 0 ; i < porError.length ; i++){\n if(e == porError[i]) {\n valor = z[i];\n }\n }\n return valor;\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public Valvula(String muni, int hab){\n municipio = muni;\n habitantes = hab;\n estado = true;\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "public interface TilinsiirtoValittaja {\n\n boolean tilisiirto(String nimi, int viitenumero, String tililta, String tilille, int summa);\n\n}", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public int getEstValue(){\r\n return this.estValue;\r\n }", "void aprovarAnalise();", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "double getDiametro(){\n return raggio * 2;\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public Edificio() {\n leer = new Scanner(System.in);\n int pisoActual = 0;\n System.out.println(\"Dime el piso actual\");\n pisoActual = leer.nextInt();\n PisoActual(pisoActual);\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public boolean tieneRepresentacionGrafica();", "public abstract double getPreis();", "public void setPreco(Double preco);", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "float getMonatl_kosten();", "public void setPreco(Float preco) { this.preco = preco; }", "public ValorVariavel() {\r\n }", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}", "public double getMontoCatalogoEstimado(){\n return localMontoCatalogoEstimado;\n }", "public Boolean tambahNilaiKriteriaVarietas(float[] nilai) {\n ArrayList<Kriteria> kriteriaAll = new Kriteria().allKriteria();\n Varietas varietasBaru = getVarietasTerbaru();\n try {\n for (int i = 0; i < kriteriaAll.size(); i++) {\n String sql\n = \"INSERT INTO `kriteria_varietas`(`id`,`varietas_id`, `kriteria_id`, `nilai` ) VALUES (NULL,\"\n + varietasBaru.getId() + \",\" + kriteriaAll.get(i).\n getId() + \",\" + nilai[i] + \")\";\n stt = con.createStatement();\n stt.executeUpdate(sql);\n }\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }", "public void inicializarVariables(boolean inicializa){\n\t\tif(inicializa){\n\t\t\tx = 1;\n\t\t\ty = 3*x;\n\t\t\t//TODO cómo se resuelve este problema?\n\t\t\tDouble temp = Math.pow(x, 2) + y;\n\n\t\t\tz = temp.intValue(); \n\t\t\tSystem.out.println(\"Valor de z\"+z);\n\t\t}else{\n\t\t\t// No hacer nada\n\t\t}\t\t\n\t}", "Object getValor();", "private void setPrecioVentaBaterias() throws Exception {\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tlong idListaPrecio = this.selectedDetalle.getListaPrecio().getId();\n\t\tString codArticulo = this.selectedDetalle.getArticulo().getCodigoInterno();\t\t\n\t\tArticuloListaPrecioDetalle lista = rr.getListaPrecioDetalle(idListaPrecio, codArticulo);\n\t\tString formula = this.selectedDetalle.getListaPrecio().getFormula();\n\t\tif (lista != null && formula == null) {\n\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? lista.getPrecioGs_contado() : lista.getPrecioGs_credito());\n\t\t} else {\n\t\t\tdouble costo = this.selectedDetalle.getArticulo().getCostoGs();\n\t\t\tint margen = this.selectedDetalle.getListaPrecio().getMargen();\n\t\t\tdouble precio = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\n\t\t\t// formula lista precio mayorista..\n\t\t\tif (idListaPrecio == 2 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado();\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito();\n\t\t\t\t\tdouble formulaCont = cont + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble formulaCred = cred + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t// formula lista precio minorista..\n\t\t\t} else if (idListaPrecio == 3 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tdouble formulaCont = (cont * 1.15) / 0.8;\n\t\t\t\t\tdouble formulaCred = (cred * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = ((precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10)) * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.selectedDetalle.setPrecioGs(precio);\n\t\t\t}\t\t\n\t\t}\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public int getG(Estado e)\n{\n return e.getProfundidad();\n}", "public double getPreco();", "public double getPreco();", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "abstract int estimationParameter1();", "public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\r\n\t\tSystem.out.println(\"determine o Maior Valor\");\r\n\t\tEstatistica estatistica = new Estatistica(reader.nextInt());\r\n\t\tSystem.out.println(\"somatorio dos numeros entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.somatorio(estatistica.maiorValor));\r\n\t\tSystem.out.println(\"media entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.media(estatistica.maiorValor));\r\n\t\tSystem.out.println(\"variancia entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.variancia(estatistica.maiorValor));\r\n\t\testatistica.paresImpares(estatistica.maiorValor);\r\n\t}", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "public int getFilial();", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public Boolean ubahNilaiKriteriaVarietas(int id, float[] nilai) {\n ArrayList<Kriteria> kriteriaAll = new Kriteria().allKriteria();\n try {\n for (int i = 0; i < kriteriaAll.size(); i++) {\n String sql = \"UPDATE kriteria_varietas SET nilai='\" + nilai[i]\n + \"' WHERE varietas_id=\" + id + \" AND kriteria_id=\"\n + kriteriaAll.get(i).getId() + \";\";\n stt = con.createStatement();\n stt.executeUpdate(sql);\n }\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }", "public double getMontoFacturado(){\n return localMontoFacturado;\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public int getValore() {\n return valore;\n }", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "public int getPrecio(){\n return precio;\n }", "public Valvula(){}", "public interface Sconto {\n\t/**\n\t * Restituisce il valore dello sconto\n\t * @param costoIntero costo di tutti i biglietti snza sconto\n\t * @return importo dello sconto\n\t */\n\tpublic double getImportoSconto(double costoIntero);\n}", "public double getMontoSolicitado(){\n return localMontoSolicitado;\n }", "public int getFila(){\n\t\treturn fila;\n\t}", "public double ValidaValor(){\n\t return 0;\n }", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "int getStamina();", "private void estadoInicial(){\n double referencias[] = new double[sigmas.length];\n for(int i=0;i<sigmas.length;i++){\n referencias[i] = (ppl.limiteSuperiorR(i+1)+ppl.limiteInferiorR(i+1))/2;\n System.out.printf(\"limS:%g, limI:%g, Referencias[%d] = %g\\n\",ppl.limiteSuperiorR(i+1),ppl.limiteInferiorR(i+1),i,referencias[i]);\n }\n\n double Zc = ppl.Z(referencias[0],referencias[1]);\n TActual = Zc*0.2;\n System.out.printf(\"TActual:T%g \\n\",TActual);\n\n estadoMejor = new Estado(\n iteracionActual, \n TActual, \n referencias,\n Zc);\n\n calcularSoluciones(estadoMejor);\n calcularProbabilidadAceptacion(estadoMejor);\n\n historialEstados.add(estadoMejor);\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public double getPercepcion(){\n return localPercepcion;\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public double getMontoEstimado(){\n return localMontoEstimado;\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public int obtenerFilas(){\n return FILAS;\n }", "String getPrecio();", "public int FitVal(){\r\n return _FitVal;\r\n}", "public void setValuesJTableVectorPrioridadesCriterios(){\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(1, criterios);\n jTableVectorPrioridadesCriterios.setModel(modelo);\n jTableVectorPrioridadesCriterios.setEnabled(false);\n jTableVectorPrioridadesCriterios.getTableHeader().setResizingAllowed(false);\n jTableVectorPrioridadesCriterios.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableVectorPrioridadesCriterios.getColumnCount();i++){\n jTableVectorPrioridadesCriterios.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int c = 0; c < criterios; c++){\n modelo.setValueAt(df.format(views.useController().getProblema().getCriteriaWeight().getPriorityVector().get(c, 0)), 0, c); \n }\n }", "private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }", "public int getPantallaActual() {\r\n return this.iPantallaActual;\r\n }", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "public KlijentPovezanaOsobaRs procitajSvePovezaneOsobePOVIJEST(KlijentPovezanaOsobaVo value) {\r\n return null;\r\n }", "public void validerSaisie();", "public Valore getValore() {\n\t\treturn valore;\n\t}", "private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public Double getPotencia(){\n return this.valor;\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "int getIndividualStamina();", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "public interface Calisan {\n double oran = 0.7;\n double ucret();\n void calisanBolumu();\n void ucretBelirle(double ucretSabiti);\n}" ]
[ "0.59756976", "0.59707075", "0.5920155", "0.5909148", "0.5894441", "0.5888246", "0.5887449", "0.58781797", "0.58766294", "0.5845492", "0.5812426", "0.5810802", "0.5789723", "0.578737", "0.5778996", "0.5759276", "0.57500464", "0.57296365", "0.57116205", "0.5694025", "0.5683617", "0.5676586", "0.5651032", "0.5650887", "0.5650438", "0.56445485", "0.56198174", "0.5617205", "0.56162035", "0.56073576", "0.55902076", "0.55839527", "0.5580983", "0.5567241", "0.5552577", "0.55519897", "0.55453694", "0.5541256", "0.5537462", "0.5533368", "0.5530825", "0.5530056", "0.5524264", "0.55216736", "0.55185086", "0.55156153", "0.5509464", "0.55054134", "0.5481733", "0.5481733", "0.5472474", "0.54563427", "0.5449243", "0.5444142", "0.54387033", "0.54383135", "0.5437331", "0.5436145", "0.5433118", "0.54327196", "0.542702", "0.5420969", "0.54171956", "0.54160094", "0.5406859", "0.54036546", "0.54030627", "0.53979623", "0.5392347", "0.53881294", "0.53880835", "0.53871036", "0.5385294", "0.5385237", "0.53829557", "0.53796655", "0.5375338", "0.53710055", "0.53653765", "0.53636956", "0.5360978", "0.5356034", "0.5348937", "0.5347149", "0.5343014", "0.5341506", "0.5338096", "0.53343827", "0.5333731", "0.5330675", "0.53294265", "0.5329351", "0.5324827", "0.5323969", "0.53228587", "0.5322413", "0.53200233", "0.5309871", "0.53091556", "0.5306913", "0.53052175" ]
0.0
-1
Permette di modificare il valore della variabile d'istanza che modella il prodotto
public void setProdotto(String prodotto) { this.prodotto = prodotto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "protected void eventoUscitaCampoModificato(Campo campo) {\n /* variabili e costanti locali di lavoro */\n Campo unCampo;\n\n try { // prova ad eseguire il codice\n\n /* quando si modifica il campo data inizio modifica\n * il campo data fine */\n if (campo.equals(this.getCampo(nomeDataIni))) {\n unCampo = this.getCampo(nomeDataFine);\n unCampo.setValore(campo.getValore());\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public void setValuesJTableVectorPrioridadesCriterios(){\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(1, criterios);\n jTableVectorPrioridadesCriterios.setModel(modelo);\n jTableVectorPrioridadesCriterios.setEnabled(false);\n jTableVectorPrioridadesCriterios.getTableHeader().setResizingAllowed(false);\n jTableVectorPrioridadesCriterios.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableVectorPrioridadesCriterios.getColumnCount();i++){\n jTableVectorPrioridadesCriterios.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int c = 0; c < criterios; c++){\n modelo.setValueAt(df.format(views.useController().getProblema().getCriteriaWeight().getPriorityVector().get(c, 0)), 0, c); \n }\n }", "@Override\n\tpublic void setParametri(Grafica grafica, GameStateDTO gameStateDTO) {\n\t\tgrafica.mostraMessaggio(\"Hai vinto un bonus tessera permesso!\\nScegli una tessera permesso\\n\");\n\n\t\tTesseraPermessoDTO tesseraPermessoDTO = grafica.scegliTesseraPermessoUsataONonUsata(\n\t\t\t\tgameStateDTO.getGiocatoreDTO().getTesserePermesso(),\n\t\t\t\tgameStateDTO.getGiocatoreDTO().getTesserePermessoUsate());\n\t\tbonusTesseraAcquistataNDTO.setTesseraPermesso(tesseraPermessoDTO);\n\t}", "public void setPreco(Double preco);", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public void editarAlimento(int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas ,float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "private void setPrecioVentaBaterias() throws Exception {\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tlong idListaPrecio = this.selectedDetalle.getListaPrecio().getId();\n\t\tString codArticulo = this.selectedDetalle.getArticulo().getCodigoInterno();\t\t\n\t\tArticuloListaPrecioDetalle lista = rr.getListaPrecioDetalle(idListaPrecio, codArticulo);\n\t\tString formula = this.selectedDetalle.getListaPrecio().getFormula();\n\t\tif (lista != null && formula == null) {\n\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? lista.getPrecioGs_contado() : lista.getPrecioGs_credito());\n\t\t} else {\n\t\t\tdouble costo = this.selectedDetalle.getArticulo().getCostoGs();\n\t\t\tint margen = this.selectedDetalle.getListaPrecio().getMargen();\n\t\t\tdouble precio = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\n\t\t\t// formula lista precio mayorista..\n\t\t\tif (idListaPrecio == 2 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado();\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito();\n\t\t\t\t\tdouble formulaCont = cont + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble formulaCred = cred + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t// formula lista precio minorista..\n\t\t\t} else if (idListaPrecio == 3 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tdouble formulaCont = (cont * 1.15) / 0.8;\n\t\t\t\t\tdouble formulaCred = (cred * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = ((precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10)) * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.selectedDetalle.setPrecioGs(precio);\n\t\t\t}\t\t\n\t\t}\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public void setPreco(Float preco) { this.preco = preco; }", "public void setModeloProblema(ModeloProblemaLinear modeloProblema) {\r\n this.modeloProblema = modeloProblema;\r\n }", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "public void setValuesJTableResultados(){\n int alternativas = views.useController().getProblema().getAlternativas();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, 1);\n jTableVectorResultados.setModel(modelo);\n jTableVectorResultados.setEnabled(false);\n jTableVectorResultados.getTableHeader().setResizingAllowed(false);\n jTableVectorResultados.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n jTableVectorResultados.getColumnModel().getColumn(0).setHeaderValue(\" \"); \n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getPriorityVector().get(f, 0)), f, 0);\n } \n }", "public void setAnio(int p) { this.anio = p; }", "public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public abstract void setCod_localidad(java.lang.String newCod_localidad);", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void setCodProd(IProduto codigo);", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "private void remplirPrestaraireData() {\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "private void save() {\n Vector<Vector> dataVector = getTableModel().getDataVector();\n constantsList.clear();\n dataVector.stream().forEach((dataRow) -> {\n String name = (String) dataRow.get(0);\n String type = (String) dataRow.get(1);\n Object value = dataRow.get(2);\n ValuedParameterDescriptor newParam = new ValuedParameterDescriptor(name, type, value);\n constantsList.add(newParam);\n });\n constantsProperty.setValueAndUpdate(constantsList); // almost certainly redundant\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }", "public void editarData(){\n\t\talunoTurmaService.inserirAlterar(alunoTurmaAltera);\n\t\t\n\t\t\n\t\tmovimentacao.setDataMovimentacao(alunoTurmaAltera.getDataMudanca());\n\t\tmovimentacaoService.inserirAlterar(movimentacao);\n\t\t\n\t\tFecharDialog.fecharDialogDATAAluno();\n\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\talunoTurmaAltera = new AlunoTurma();\n\t\tmovimentacao = new Movimentacao();\n\t\t\n\t\tatualizarListas();\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void setLocacion(String locacion);", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "public abstract void setCntPoa(int cntPoa);", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "void setPosiblesValores(int[] valores);", "@Test\r\n public void testSetPrecio() {\r\n int expResult = 3;\r\n articuloPrueba.setPrecio(expResult);\r\n assertEquals(expResult, articuloPrueba.getPrecio());\r\n }", "public void setPapeles(int avenida, int calle, int cant);", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "void setMonto(double monto);", "void setMonto(double monto);", "private void ruotaNuovoStatoPaziente() {\r\n\t\tif(nuovoStatoPaziente==StatoPaziente.WAITING_WHITE)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_YELLOW;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_YELLOW)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_RED;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_RED)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_WHITE;\r\n\t\t\r\n\t}", "public void validerSaisie();", "private void saveValues() {\r\n this.pl_expert.setParam(\"displayNodeDegree\", (String) this.nodeDegreeSpinner.getValue());\r\n this.pl_expert.setParam(\"displayEdges\", (String) this.displayEdgesSpinner.getValue());\r\n this.pl_expert.setParam(\"scale\", (String) this.scaleSpinner.getValue());\r\n this.pl_expert.setParam(\"minWeight\", (String) this.minweightSpinner.getValue());\r\n this.pl_expert.setParam(\"iterations\", (String) this.iterationsSpinner.getValue());\r\n this.pl_expert.setParam(\"mutationParameter\", this.mutationParameter.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"Update_param\", this.Update_param.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"vote_value\", (String) this.vote_value.getValue());\r\n this.pl_expert.setParam(\"keep_value\", (String) this.keep_value.getValue());\r\n this.pl_expert.setParam(\"mut_value\", (String) this.mut_value.getValue());\r\n this.pl_expert.setParam(\"only_sub\", new Boolean(this.only_sub.isSelected()).toString());\r\n\r\n this.is_alg_started = false;\r\n }", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "void aprovarAnalise();", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public interface TilinsiirtoValittaja {\n\n boolean tilisiirto(String nimi, int viitenumero, String tililta, String tilille, int summa);\n\n}", "public void setPrecio(float precio) {\r\n this.precio = precio;\r\n }", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "private void getSavedValues() {\r\n\r\n if (this.pl_expert.getParam(\"displayNodeDegree\") != null) {\r\n this.display_node_degree_current = this.pl_expert.getParam(\"displayNodeDegree\");\r\n } else {\r\n this.display_node_degree_current = display_node_degree_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"displayEdges\") != null) {\r\n this.display_edges_current = this.pl_expert.getParam(\"displayEdges\");\r\n } else {\r\n this.display_edges_current = display_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"scale\") != null) {\r\n this.scale_current = this.pl_expert.getParam(\"scale\");\r\n } else {\r\n this.scale_current = scale_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"minWeight\") != null) {\r\n this.minweight_edges_current = this.pl_expert.getParam(\"minWeight\");\r\n } else {\r\n this.minweight_edges_current = minweight_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"iterations\") != null) {\r\n this.iterations_current = this.pl_expert.getParam(\"iterations\");\r\n } else {\r\n this.iterations_current = iterations_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"vote_value\") != null) {\r\n this.vote_value_current = this.pl_expert.getParam(\"vote_value\");\r\n } else {\r\n this.vote_value_current = vote_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"keep_value\") != null) {\r\n this.keepclass_value_current = this.pl_expert.getParam(\"keep_value\");\r\n } else {\r\n this.keepclass_value_current = keepclass_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mut_value\") != null) {\r\n this.mut_value_current = this.pl_expert.getParam(\"mut_value\");\r\n } else {\r\n this.mut_value_current = mut_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mutationParameter\") != null) {\r\n this.mut_option_current = this.pl_expert.getParam(\"mutationParameter\");\r\n } else {\r\n this.mut_option_current = mut_option_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Update_param\") != null) {\r\n this.update_param_current = this.pl_expert.getParam(\"Update_param\");\r\n } else {\r\n this.update_param_current = update_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Alg_param\") != null) {\r\n this.alg_param_current = this.pl_expert.getParam(\"Alg_param\");\r\n } else {\r\n this.alg_param_current = alg_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"only_sub\") != null) {\r\n this.display_sub_current = new Boolean(this.pl_expert.getParam(\"only_sub\")).booleanValue();\r\n } else {\r\n this.display_sub_current = display_sub_default;\r\n }\r\n\r\n this.is_alg_started = false;\r\n }", "@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void setBunga(int tipeBunga){\n }", "public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "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 editPAParameters() {\r\n \t\tdialogFactory.getDialog(new ParametricAnalysisPanel(model, model, model, this), \"Define What-if analysis parameters\");\r\n \t}", "@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public KlijentPovezanaOsobaRs procitajSvePovezaneOsobePOVIJEST(KlijentPovezanaOsobaVo value) {\r\n return null;\r\n }", "@Override\n\tpublic void prossimo_stato(Model_context model, ArrayList<String> dati_input) {\n\t\tswitch(dati_input.get(0)) {\n\t\t\tcase \"1\":{\n\t\t\t\tmodel.set_stato_attuale(new Stato_inserisci_descrizione_libro_ricerca(get_attore()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"2\":{\n\t\t\t\tmodel.set_stato_attuale(new Stato_inserisci_descrizione_film_ricerca(get_attore()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:{\n\t\t\t\tmodel.set_stato_attuale(new Stato_errore(new Stato_ricerca_visualizza(get_attore()), this, \"inserisci un valore corretto\", get_attore()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tISHORARIO_IDISHORARIO=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tISAULA_IDISAULA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tISCURSO_IDISCURSO=valor;\n\t\t}\n\t\t\n\t}", "private void inizia() throws Exception {\n this.setClasse((new ArrayList<Boolean>()).getClass());\n this.setValoreVuoto(null);\n }", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tIDISFICHA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tNOTAS=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tANOTACIONES=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tNOTAS_EJERCICIOS=valor;\n\t\t}\n\t}", "public void actualizarPais(Paises pais);", "public Edificio() {\n leer = new Scanner(System.in);\n int pisoActual = 0;\n System.out.println(\"Dime el piso actual\");\n pisoActual = leer.nextInt();\n PisoActual(pisoActual);\n }", "@Override\n public void saveValues() {\n \n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public interface Plateau {\r\n\r\n\t/**\r\n\t * Pour afficher la solution pendant le jeu\r\n\t * \r\n\t * @param msg\r\n\t * solution à afficher en mode dev\r\n\t */\r\n\tpublic void setMsgDev(String msg); // afficher le code chercher\r\n\r\n\t/**\r\n\t * Effacer le champs de proposition\r\n\t */\r\n\tpublic void cleanProposition();\r\n\r\n\t/**\r\n\t * Rajouter des valeurs dans le tableau de jeu\r\n\t * \r\n\t * @param results\r\n\t * tableau de jeu (propositions et resultats précédents)\r\n\t */\r\n\tpublic void setValues(String[][] results);\r\n\r\n\t/**\r\n\t * Faire une proposition de combinaison\r\n\t * \r\n\t * @param string\r\n\t * combinaison\r\n\t */\r\n\tpublic void setProposition(String string);\r\n\r\n\t/**\r\n\t * valide la combinaison saisie\r\n\t */\r\n\tpublic void validerSaisie();\r\n\r\n\t/**\r\n\t * actualise l'affichage en cas de changement\r\n\t */\r\n\tpublic void actualiserAffichage();\r\n}", "void setTitolo(String titolo);", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ {\r\n/* 160:274 */ this.predeterminado = predeterminado;\r\n/* 161: */ }", "public Valvula(String muni, int hab){\n municipio = muni;\n habitantes = hab;\n estado = true;\n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public void setValues(RutaParams params){\n this.costo = params.costo;\n this.tiempoVuelo = params.tiempoVuelo;\n this.piloto =encriptar(params.piloto);\n }", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "@Test\r\n public void testSetAnalizar() {\r\n System.out.println(\"setAnalizar\");\r\n String analizar = \"3+(\";\r\n RevisorParentesis instance = null;\r\n instance.setAnalizar(analizar);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "@Override\n\tpublic void procesar() throws WrongValuesException, ExcEntradaInconsistente {\n\n\t}", "public MVCModelo(int capacidad)\n\t{\n\t\tllave = \"\";\n\t\tvalue = 0.0;\n\t}", "private void inicializaValores(){\n /**\n * Reinicia los valores de las variables.\n */\n ce.setVariables();\n valorA.setText(null);\n valorB.setText(null);\n valorC.setText(null);\n x1.setText(null);\n x2.setText(null);\n \n }" ]
[ "0.61286247", "0.60879034", "0.60732204", "0.60501087", "0.6038791", "0.60320157", "0.60042953", "0.5973978", "0.5935925", "0.59242344", "0.5857401", "0.5844895", "0.5841015", "0.58061004", "0.5805613", "0.576837", "0.5754497", "0.57256794", "0.57159686", "0.5703205", "0.5693876", "0.5679621", "0.56778926", "0.5663763", "0.56567293", "0.5655778", "0.56530255", "0.5638972", "0.5638668", "0.5636505", "0.5626704", "0.56243557", "0.5592844", "0.5585158", "0.55708104", "0.5570395", "0.5567723", "0.55623925", "0.55600464", "0.55583453", "0.5556071", "0.5543175", "0.553969", "0.55354214", "0.5522569", "0.5515009", "0.5513928", "0.54983073", "0.54978186", "0.5493418", "0.5487528", "0.5481961", "0.5469959", "0.5465315", "0.5464866", "0.54639524", "0.54624635", "0.5462282", "0.54556626", "0.5453993", "0.5453993", "0.54473716", "0.5444993", "0.5430128", "0.5422198", "0.5421464", "0.54209006", "0.5420046", "0.54198647", "0.5415037", "0.54096186", "0.54017633", "0.5397412", "0.53935206", "0.5393221", "0.53823704", "0.5380782", "0.5380265", "0.53709376", "0.53669953", "0.5366869", "0.5363664", "0.53635246", "0.5362062", "0.5361157", "0.5358465", "0.53494304", "0.5348042", "0.53466153", "0.5335224", "0.53335136", "0.53305686", "0.5328367", "0.53280413", "0.53264356", "0.53156096", "0.53097904", "0.53080976", "0.5305242", "0.5299172", "0.52947843" ]
0.0
-1
Permette di ottenere il valore della variabile d'istanza che modella la misura della taglia
public String getMisura() { return misura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getIva();", "void setIVA(float iva);", "public interface TilinsiirtoValittaja {\n\n boolean tilisiirto(String nimi, int viitenumero, String tililta, String tilille, int summa);\n\n}", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "int getFeatureValue();", "public boolean tieneRepresentacionGrafica();", "public void emissionProbabilities() {\r\n /**\r\n * Word and Tag List.\r\n */\r\n final TreeSet<String> words = new TreeSet(), tags = new TreeSet();\r\n Iterator<Kata> iterSatu = MarkovCore.LIST_KATA.iterator();\r\n while (iterSatu.hasNext()) {\r\n final Kata kata = iterSatu.next();\r\n words.add(kata.getKata());\r\n tags.add(kata.getTag());\r\n }\r\n System.out.println(\"Jumlah Kata: \" + words.size());\r\n System.out.println(\"Jumlah Tag: \" + tags.size());\r\n System.out.println();\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Emissions Calculation\">\r\n /**\r\n * Perhitungan Emisi.\r\n */\r\n Iterator<String> iterDua = words.iterator();\r\n while (iterDua.hasNext()) {\r\n final String kata = iterDua.next();\r\n Iterator<String> iterTiga = tags.iterator();\r\n while (iterTiga.hasNext()) {\r\n final StrBuilder strBuilder = new StrBuilder(10);\r\n final String tag = iterTiga.next();\r\n strBuilder.append(\"P(\");\r\n strBuilder.append(kata + \"|\");\r\n strBuilder.append(tag + \") = \");\r\n final Emissions emissions = new Emissions(kata, tag, strBuilder.toString());\r\n emissionses.add(emissions);\r\n }\r\n }\r\n\r\n final HashMap<String, Double> penyebut = new HashMap();\r\n Iterator<Kata> iterEmpat = MarkovCore.LIST_KATA.iterator();\r\n while (iterEmpat.hasNext()) {\r\n final Kata kata = iterEmpat.next();\r\n if (penyebut.get(kata.getTag()) == null) {\r\n penyebut.put(kata.getTag(), 1.0);\r\n } else {\r\n penyebut.put(kata.getTag(), penyebut.get(kata.getTag()) + 1);\r\n }\r\n }\r\n\r\n Iterator<Emissions> iterTiga = emissionses.iterator();\r\n while (iterTiga.hasNext()) {\r\n final Emissions emissions = iterTiga.next();\r\n double pembilang = 0.0;\r\n Iterator<Kata> iterKata = MarkovCore.LIST_KATA.iterator();\r\n while (iterKata.hasNext()) {\r\n Kata kata = iterKata.next();\r\n if (StringUtils.equalsIgnoreCase(kata.getKata(), emissions.word) && StringUtils.equalsIgnoreCase(kata.getTag(), emissions.tag)) {\r\n pembilang++;\r\n }\r\n }\r\n\r\n /**\r\n * WARNING - Laplace Smoothing is Activated.\r\n */\r\n// emissions.setEmissionsProbability(pembilang + 1, penyebut.get(emissions.tag) + this.uniqueWords.size(), (pembilang + 1) / (penyebut.get(emissions.tag) + this.uniqueWords.size()));\r\n emissions.setEmissionsProbability(pembilang, penyebut.get(emissions.tag), pembilang / penyebut.get(emissions.tag));\r\n }\r\n//</editor-fold>\r\n\r\n// System.out.println(emissionses.size());\r\n Iterator<Emissions> emissionsIterator = emissionses.iterator();\r\n while (emissionsIterator.hasNext()) {\r\n final Emissions emissions = emissionsIterator.next();\r\n this.emissionsMap.put(new MultiKey(emissions.word, emissions.tag), emissions.emissionsProbability);\r\n// System.out.println(emissions);\r\n }\r\n// System.out.println(this.emissionsMap.size());\r\n }", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public Valvula(String muni, int hab){\n municipio = muni;\n habitantes = hab;\n estado = true;\n }", "public void setVega(double value) {\r\n this.vega = value;\r\n }", "void aprovarAnalise();", "int getLikelihoodValue();", "public IVA getIva() {\n return iva;\n }", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "public Boolean ubahNilaiKriteriaVarietas(int id, float[] nilai) {\n ArrayList<Kriteria> kriteriaAll = new Kriteria().allKriteria();\n try {\n for (int i = 0; i < kriteriaAll.size(); i++) {\n String sql = \"UPDATE kriteria_varietas SET nilai='\" + nilai[i]\n + \"' WHERE varietas_id=\" + id + \" AND kriteria_id=\"\n + kriteriaAll.get(i).getId() + \";\";\n stt = con.createStatement();\n stt.executeUpdate(sql);\n }\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public int getNiveauIA() {\n\t\treturn niveauIA;\r\n\t}", "int getStamina();", "public interface EvolvingSIDiseaseModelLabelValue extends SILabelValue {\n}", "Tarifas(int tipoTarifa, double costeMinuto, String nombreTarifa)\n {\n this.tipoTarifa = tipoTarifa;\n this.costeMinuto = costeMinuto;\n this.nombreTarifa = nombreTarifa;\n }", "public Boolean tambahNilaiKriteriaVarietas(float[] nilai) {\n ArrayList<Kriteria> kriteriaAll = new Kriteria().allKriteria();\n Varietas varietasBaru = getVarietasTerbaru();\n try {\n for (int i = 0; i < kriteriaAll.size(); i++) {\n String sql\n = \"INSERT INTO `kriteria_varietas`(`id`,`varietas_id`, `kriteria_id`, `nilai` ) VALUES (NULL,\"\n + varietasBaru.getId() + \",\" + kriteriaAll.get(i).\n getId() + \",\" + nilai[i] + \")\";\n stt = con.createStatement();\n stt.executeUpdate(sql);\n }\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }", "public void setBunga(int tipeBunga){\n }", "public int getNiveau() {\r\n return niveau;\r\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "public void setPoistumisaika(double poistumisaika) {\n\t\tthis.poistumisaika = poistumisaika + ThreadLocalRandom.current().nextDouble(1, 10);\n\t}", "private float parametroEstadistico(int e) {\n\n int[] porError={20,10,9,8,7,6,5};\n float[] z = {(float) 1.28,(float) 1.65,(float) 1.69,(float) 1.75,(float) 1.81,(float) 1.88,(float) 1.96 };\n float valor=0;\n\n for(int i = 0 ; i < porError.length ; i++){\n if(e == porError[i]) {\n valor = z[i];\n }\n }\n return valor;\n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public static String seuraavaArvaus(HashMap<String, Integer> muisti, String viimeisimmat, String kaikki) {\n if (kaikki.length() < 3) {\n return \"k\";\n }\n\n String viimKivi = viimeisimmat + \"k\";\n String viimPaperi = viimeisimmat + \"p\";\n String viimSakset = viimeisimmat + \"s\";\n \n int viimKiviLkm = 0;\n int viimPaperiLkm = 0;\n int viimSaksetLkm = 0;\n String arvaus = \"k\";\n int viimValueMax = 0;\n /*\n Sopivan valinnan etsiminen tehdään tarkastelemalla käyttäjän kahta viimeistä\n syötettä ja vertailemalla niitä koko historiaan. Mikäli historian mukaan\n kahta viimeistä syötettä seuraa useimmin kivi, tekoälyn tulee pelata paperi.\n Mikäli kahta viimeistä syötettä seuraa useimmin paperi, tekoälyn tulee \n pelata sakset. Mikäli taas kahta viimeistä syötettä seuraa useimmin sakset, \n tekoälyn tulee pelata kivi. Muissa tapauksissa pelataan kivi.\n */\n if (muisti.containsKey(viimKivi)) {\n viimKiviLkm = muisti.get(viimKivi);\n }\n if (muisti.containsKey(viimPaperi)) {\n viimPaperiLkm = muisti.get(viimPaperi);\n }\n if (muisti.containsKey(viimSakset)) {\n viimSaksetLkm = muisti.get(viimSakset);\n }\n\n if (viimKiviLkm > viimPaperiLkm && viimKiviLkm > viimSaksetLkm) {\n return \"p\";\n }\n if (viimPaperiLkm > viimKiviLkm && viimPaperiLkm > viimSaksetLkm) {\n return \"s\";\n }\n if (viimSaksetLkm > viimKiviLkm && viimSaksetLkm > viimPaperiLkm) {\n return \"k\";\n }\n\n return arvaus;\n }", "public double getVega() {\r\n return vega;\r\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public void setNiveau(int niveau) {\r\n this.niveau = niveau;\r\n }", "public int getOilValue(){\n\t\treturn oil_value;\n\t}", "double getDiametro(){\n return raggio * 2;\n }", "public int vecinos(){\n int v=0;\n if(fila<15 && columna<15 && fila>0 && columna>0){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;} \n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n }\n else{v=limitesX();}\n return v;\n }", "double getArea(){\n return 3.14 * raggio * raggio;\n }", "public int getNatureFilter();", "int getIndividualStamina();", "public interface EvolvingSEIRDiseaseModelLabelValue extends SEIRLabelValue {\n}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public int getNOficina ()\r\n {\r\n return this.nOficina;\r\n }", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "SintagmaPreposicional createSintagmaPreposicional();", "private void transformVariatesToView() {\n\n //GCP-4378 NEW SCHEMA CHANGES - indexoutofboundsexception\n if (factorsDtoTrial != null && factorsDtoTrial.size() > 0) {\n // transform Variate list to Constants\n List<Constant> constantsData = new ArrayList<Constant>();\n Integer numeroDeInstancias = factorsDtoTrial.get(0).getSizeLevels();\n for (Variate variate : variatesDtoConstants) {\n for (int i = 0; i < numeroDeInstancias; i++) {\n ibfb.domain.core.Constant constant = ConverterDTOtoDomain.getConstant(variate);\n // TODO ajustar estructura para que se recupere los datos tipo numero sin el .0\n // if(variate.getDtype().equals(\"N\")){\n // constant.setValue(DecimalUtils.getValueAsString((Double)variate.getDataObject(i)));\n // }else{\n // constant.setValue(variate.getDataObject(i));\n constant.setValue(DecimalUtils.getValueAsString(variate.getDataObject(i)));\n // }\n constant.setInstance(i + 1);\n // constant.setOunitid(variate.getOunitidObject(i));\n constant.setVariateId(variate.getVariatid());\n constant.setStudyId(variate.getStudyid());\n constants.add(constant);\n }\n }\n }\n\n Comparator<Constant> constantComparator = new Comparator<Constant>() {\n\n @Override\n public int compare(Constant o1, Constant o2) {\n return o1.getInstance().compareTo(o2.getInstance());\n }\n };\n\n Collections.sort(constants, constantComparator);\n\n // transform Variate list to Variate(from view)\n for (Variate variate : variatesDTO) {\n ibfb.domain.core.Variate variateToAdd = ConverterDTOtoDomain.getVariate(variate);\n variates.add(variateToAdd);\n }\n\n\n workbookStudy.setConstants(constants);\n workbookStudy.setConstantsData(constants);\n\n workbookStudy.setVariates(variates);\n workbookStudy.setVariatesData(variates);\n }", "public SolutionAttributes(String name, String type, double lbound,double ubound, \n\t\t\tdouble granularity, double rateOfEvolution, double value, String dfault, String flag, String unit){\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tthis.lbound = lbound;\n\t\tthis.ubound = ubound;\n\t\tthis.granularity = granularity;\n\t\tthis.rateOfEvolution = rateOfEvolution;\n\t\tthis.value = value;\n\t\tthis.dfault = dfault;\n\t\tthis.flag = flag;\n\t\tthis.unit = unit;\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public int dameFila() {\n return this.fila;\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public int getFila(){\n\t\treturn fila;\n\t}", "float getMonatl_kosten();", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "int getRegionValue();", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public void tagOnlyNomorDua() {\r\n Iterator<Kalimat> iterSatu = MarkovCore.TAG_ONLY.iterator();\r\n while (iterSatu.hasNext()) {\r\n Kalimat kalimat = iterSatu.next();\r\n System.out.println(kalimat.getRawKalimat());\r\n System.out.println(kalimat.getBigramProbability(Kalimat.TAG_ONLY));\r\n }\r\n }", "public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}", "public StatisticVariable getStatisticVariable();", "public Torretta1(int danno, int x, int y, ArrayList<Proiettile> proiettili) {\r\n super();\r\n velocitàAttacco = 5000;\r\n attacco = danno;\r\n this.proiettili = proiettili;\r\n this.x = x * 40;\r\n this.y = y * 40 - 40;\r\n range = new Ellipse2D.Double();\r\n range.setFrame(this.x - 40, this.y - 40, 119, 119);\r\n temposparo = 200;\r\n finestrasparo = 0;\r\n costoAcquisto = 10;\r\n tipo='a';\r\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "private void 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}", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "@Test\n @Tag(\"bm1000\")\n public void testLOTFI() {\n CuteNetlibCase.doTest(\"LOTFI.SIF\", \"-25.26470606188002\", null, NumberContext.of(7, 4));\n }", "@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }", "public int initialiser()\n\t{\n\n\t\tint nombreE;\n\t\tint k = 0;\n\t\t//int max = randInt(2,10);\n\t\ttableauPeres_ = new Case[longueur_][longueur_];\n\t\tint i, j = 0;\n\t\tfor(i=0; i<longueur_; ++i)\n\t\t{\n\t\t\tfor(j=0; j<longueur_; ++j)\n\t\t\t{\n\t\t\t\ttableauPeres_[i][j] = new Case(i, j, 0);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Combien d'étoiles souhaitez vous pour chaque joueur ?\");\n\t\tnombreE = clavier.nextInt();\n\t\twhile (k < nombreE)\n\t\t{\n\t\t\taddEtoile(\"bleu\");\n\t\t\taddEtoile(\"rouge\");\n\t\t\t++k;\n\t\t}\n\t\treturn nombreE;\n\t}", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "public static int getVelocidade() {\n return velocidade;\n }", "public String getFeatVect();", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public void leerVariable(String nombre, Dato variable);", "private void initializeTag()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext())\n {\n it.next().setTag(Double.POSITIVE_INFINITY);\n }\n }", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }", "public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }", "public void setGi( int value) {\n\n\t\tthis.gi = value;\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSTAIR() {\n CuteNetlibCase.doTest(\"STAIR.SIF\", \"-251.26695119296787\", \"-208.79999\", NumberContext.of(7, 2));\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public final int[] luoData() {\r\n int x = super.getRandom().nextInt(2);\r\n\r\n if (x == 0) {\r\n return this.luoSatunnainenNormaaliJakautunutData();\r\n } else {\r\n return this.luoSatunnainenData();\r\n }\r\n }", "@Override\r\n\tprotected void initVariableSet() {\n\t\tthis.lineImpetanz = this.initVariable(\"lineImpetance\", new NumericValue(0.1,0.2), EnumUnit.ohm, true, true);\r\n\t\tthis.lineCharge = this.initVariable(\"lineCharge\", new NumericValue(0), EnumUnit.ohm, true, true);\r\n\t\t\t\t\r\n\t}", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public void setNOficina (Integer pNOficina)\r\n {\r\n this.nOficina=pNOficina;\r\n }", "public abstract IDecisionVariable getVariable();", "public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }", "public interface IGoto {\n\n int[] productionIds();\n\n int gotoStateId();\n\n}", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "public double getVolga() {\r\n return volga;\r\n }", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "public void addTrainingData(String value,String label);", "public int getVelocidadBala() {\n return velocidadBala;\n }" ]
[ "0.6102487", "0.5709841", "0.56900585", "0.55775774", "0.55715233", "0.55351025", "0.5510349", "0.55075866", "0.54986507", "0.5492404", "0.5409", "0.53841", "0.53385574", "0.53062797", "0.53057116", "0.5274547", "0.52644414", "0.5259569", "0.52528375", "0.52506936", "0.5241504", "0.5240274", "0.52385837", "0.52343345", "0.52329075", "0.5230831", "0.5228724", "0.52242196", "0.5222106", "0.52132905", "0.5201161", "0.5199063", "0.51919943", "0.5191205", "0.51905483", "0.5180164", "0.5180056", "0.51789796", "0.5170291", "0.5161623", "0.516139", "0.5152866", "0.5152302", "0.51473093", "0.5124703", "0.5120622", "0.51169693", "0.5115936", "0.51150155", "0.51124066", "0.51112586", "0.51084745", "0.51062477", "0.5104738", "0.5101065", "0.5100889", "0.5098906", "0.5097756", "0.5096349", "0.50955296", "0.5091885", "0.50893974", "0.50874555", "0.50741136", "0.507374", "0.5062804", "0.50619036", "0.50611824", "0.5056561", "0.5034611", "0.5033119", "0.5029484", "0.5028148", "0.5025167", "0.5022464", "0.50218356", "0.5019505", "0.5012662", "0.5012367", "0.50118613", "0.5011034", "0.49978188", "0.4993945", "0.49913466", "0.4987999", "0.49801773", "0.4978861", "0.49762923", "0.49762923", "0.4974936", "0.4969276", "0.49691427", "0.49679708", "0.49658486", "0.49652892", "0.49625906", "0.49591848", "0.49582747", "0.4958002", "0.4955186", "0.49544373" ]
0.0
-1
Permette di modificare il valore della variabile d'istanza che modella la misura della taglia
public void setMisura(String misura) { this.misura = misura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setIVA(float iva);", "public void editarAlimento(int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas ,float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void setBunga(int tipeBunga){\n }", "public interface TilinsiirtoValittaja {\n\n boolean tilisiirto(String nimi, int viitenumero, String tililta, String tilille, int summa);\n\n}", "@Setteri\n public void asetaLiite(Tiedosto liite){\n this.liite = liite;\n }", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void setLOAI( String LOAI )\n {\n this.LOAI = LOAI;\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void setCgg_jur_anticipo(com.besixplus.sii.objects.Cgg_jur_anticipo inCgg_jur_anticipo){\n\t\tthis.myCgg_jur_anticipo = inCgg_jur_anticipo;\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void setLocacion(String locacion);", "public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }", "public interface EvolvingSIDiseaseModelLabelValue extends SILabelValue {\n}", "public Boolean ubahNilaiKriteriaVarietas(int id, float[] nilai) {\n ArrayList<Kriteria> kriteriaAll = new Kriteria().allKriteria();\n try {\n for (int i = 0; i < kriteriaAll.size(); i++) {\n String sql = \"UPDATE kriteria_varietas SET nilai='\" + nilai[i]\n + \"' WHERE varietas_id=\" + id + \" AND kriteria_id=\"\n + kriteriaAll.get(i).getId() + \";\";\n stt = con.createStatement();\n stt.executeUpdate(sql);\n }\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }", "void setTitolo(String titolo);", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "public abstract void setCod_localidad(java.lang.String newCod_localidad);", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void setAcideAmine(String codon) {\n switch (codon) {\n \n case \"GCU\" :\n case \"GCC\" :\n case \"GCA\" :\n case \"GCG\" : \n this.acideAmine = \"Alanine\";\n break;\n case \"CGU\" :\n case \"CGC\" :\n case \"CGA\" :\n case \"CGG\" :\n case \"AGA\" :\n case \"AGG\" :\n this.acideAmine = \"Arginine\";\n break;\n case \"AAU\" :\n case \"AAC\" :\n this.acideAmine = \"Asparagine\";\n break;\n case \"GAU\" :\n case \"GAC\" :\n this.acideAmine = \"Aspartate\";\n break;\n case \"UGU\" :\n case \"UGC\" :\n this.acideAmine = \"Cysteine\";\n break;\n case \"GAA\" :\n case \"GAG\" :\n this.acideAmine = \"Glutamate\";\n break;\n case \"CAA\" :\n case \"CAG\" :\n this.acideAmine = \"Glutamine\";\n break;\n case \"GGU\" :\n case \"GGC\" :\n case \"GGA\" :\n case \"GGG\" :\n this.acideAmine = \"Glycine\";\n break;\n case \"CAU\" :\n case \"CAC\" :\n this.acideAmine = \"Histidine\";\n break;\n case \"AUU\" :\n case \"AUC\" :\n case \"AUA\" :\n this.acideAmine = \"Isoleucine\";\n break;\n case \"UUA\" :\n case \"UUG\" :\n case \"CUU\" :\n case \"CUC\" :\n case \"CUA\" :\n case \"CUG\" :\n this.acideAmine = \"Leucine\";\n break;\n case \"AAA\" :\n case \"AAG\" :\n this.acideAmine = \"Lysine\";\n break;\n case \"AUG\" :\n this.acideAmine = \"Methionine\";\n break;\n case \"UUU\" :\n case \"UUC\" :\n this.acideAmine = \"Phenylalanine\";\n break;\n case \"CCU\" :\n case \"CCC\" :\n case \"CCA\" :\n case \"CCG\" :\n this.acideAmine = \"Proline\";\n break;\n case \"UAG\" :\n this.acideAmine = \"Pyrrolysine\";\n break;\n case \"UGA\" :\n this.acideAmine = \"Selenocysteine\";\n break;\n case \"UCU\" :\n case \"UCC\" :\n case \"UCA\" :\n case \"UCG\" :\n case \"AGU\" :\n case \"AGC\" :\n this.acideAmine = \"Serine\";\n break;\n case \"ACU\" :\n case \"ACC\" :\n case \"ACA\" :\n case \"ACG\" :\n this.acideAmine = \"Threonine\";\n break;\n case \"UGG\" :\n this.acideAmine = \"Tryptophane\";\n break;\n case \"UAU\" :\n case \"UAC\" :\n this.acideAmine = \"Tyrosine\";\n break;\n case \"GUU\" :\n case \"GUC\" :\n case \"GUA\" :\n case \"GUG\" :\n this.acideAmine = \"Valine\";\n break;\n case \"UAA\" :\n this.acideAmine = \"Marqueur\";\n break;\n }\n }", "void aprovarAnalise();", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "void setCodiceFiscale(String codiceFiscale);", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "public void setTei( String tei )\n {\n this.trackedEntity = tei;\n }", "public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public Cgg_jur_anticipo(\n\t\tcom.besixplus.sii.objects.Cgg_jur_anticipo inCgg_jur_anticipo\n\t){\n\t\tthis.setCgg_jur_anticipo(inCgg_jur_anticipo);\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public interface EvolvingSEIRDiseaseModelLabelValue extends SEIRLabelValue {\n}", "public void setPartitaIva(String partitaIva) {\n this.partitaIva = partitaIva;\n }", "@Override\n\tpublic void attributeReplaced(ServletContextAttributeEvent evento_atributo) {\n\t\t// CONTROL DEL NOMBRE DEL ATRIBUTO\n\t\tString nombre_atributo = evento_atributo.getName();\n\t\tif (this.seguir_Proceso(nombre_atributo)) {\n\t\t\tObject valor = evento_atributo.getValue();\n\t\t\tString valor_texto = this.coger_Valor(valor);\n\t\t\tString tipo = null;\n\t\t\ttipo = valor.getClass().getSimpleName();\n\t\t\tregistro(\"*** Modificado el atributo de aplicacion del tipo \" + tipo + \" nombre: \" + nombre_atributo + \" valor modificado: \" + valor_texto);\n\t\t}\n\t}", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "void editAssetValue(int newVal);", "public void validerSaisie();", "public void setAnio(int p) { this.anio = p; }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public Valvula(String muni, int hab){\n municipio = muni;\n habitantes = hab;\n estado = true;\n }", "public void setLien(String lien) {\n this.lien1 = lien;\n this.lien2 = lien;\n this.lien3 = lien;\n this.lien4 = lien;\n this.lien5 = lien;\n }", "public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "public void leerVariable(String nombre, Dato variable);", "@Override\r\n\tpublic void getValuesFromTrazi(Record selectedRecord) {\r\n\t\tsetFieldValue(PISARNICA_OIB,selectedRecord.getAttributeAsObject(\"oib\"));\r\n\t}", "float getIva();", "public void setTaxiEnOptimo(AID t, Boolean b) {\n sigueEnOptimo.put(t,b);\n }", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "void setVida(int vida)\n\t{\n\t\t// variable declarada anteriormente igual a la declarada en el set\n\t\tthis.vida = vida;\n\t}", "public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void setFixed(entity.LocationNamedInsured value);", "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "public void asetaTeksti(){\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "private void initializeTag()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext())\n {\n it.next().setTag(Double.POSITIVE_INFINITY);\n }\n }", "private void transformVariatesToView() {\n\n //GCP-4378 NEW SCHEMA CHANGES - indexoutofboundsexception\n if (factorsDtoTrial != null && factorsDtoTrial.size() > 0) {\n // transform Variate list to Constants\n List<Constant> constantsData = new ArrayList<Constant>();\n Integer numeroDeInstancias = factorsDtoTrial.get(0).getSizeLevels();\n for (Variate variate : variatesDtoConstants) {\n for (int i = 0; i < numeroDeInstancias; i++) {\n ibfb.domain.core.Constant constant = ConverterDTOtoDomain.getConstant(variate);\n // TODO ajustar estructura para que se recupere los datos tipo numero sin el .0\n // if(variate.getDtype().equals(\"N\")){\n // constant.setValue(DecimalUtils.getValueAsString((Double)variate.getDataObject(i)));\n // }else{\n // constant.setValue(variate.getDataObject(i));\n constant.setValue(DecimalUtils.getValueAsString(variate.getDataObject(i)));\n // }\n constant.setInstance(i + 1);\n // constant.setOunitid(variate.getOunitidObject(i));\n constant.setVariateId(variate.getVariatid());\n constant.setStudyId(variate.getStudyid());\n constants.add(constant);\n }\n }\n }\n\n Comparator<Constant> constantComparator = new Comparator<Constant>() {\n\n @Override\n public int compare(Constant o1, Constant o2) {\n return o1.getInstance().compareTo(o2.getInstance());\n }\n };\n\n Collections.sort(constants, constantComparator);\n\n // transform Variate list to Variate(from view)\n for (Variate variate : variatesDTO) {\n ibfb.domain.core.Variate variateToAdd = ConverterDTOtoDomain.getVariate(variate);\n variates.add(variateToAdd);\n }\n\n\n workbookStudy.setConstants(constants);\n workbookStudy.setConstantsData(constants);\n\n workbookStudy.setVariates(variates);\n workbookStudy.setVariatesData(variates);\n }", "private void inizia() throws Exception {\n this.setClasse((new ArrayList<Boolean>()).getClass());\n this.setValoreVuoto(null);\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}", "public void setITALoc(int ITAIndex, int loc){\r\n\t\tif(ITAIndex < 0 || ITAIndex > Model.getITACount())\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.locVec[ITAIndex] = loc;\r\n\t}", "public void setFilial(int filial);", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "private void remplirUtiliseData() {\n\t}", "public void setPoistumisaika(double poistumisaika) {\n\t\tthis.poistumisaika = poistumisaika + ThreadLocalRandom.current().nextDouble(1, 10);\n\t}", "public SolutionAttributes(String name, String type, double lbound,double ubound, \n\t\t\tdouble granularity, double rateOfEvolution, double value, String dfault, String flag, String unit){\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tthis.lbound = lbound;\n\t\tthis.ubound = ubound;\n\t\tthis.granularity = granularity;\n\t\tthis.rateOfEvolution = rateOfEvolution;\n\t\tthis.value = value;\n\t\tthis.dfault = dfault;\n\t\tthis.flag = flag;\n\t\tthis.unit = unit;\n\t}", "public void setValuesJTableResultados(){\n int alternativas = views.useController().getProblema().getAlternativas();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, 1);\n jTableVectorResultados.setModel(modelo);\n jTableVectorResultados.setEnabled(false);\n jTableVectorResultados.getTableHeader().setResizingAllowed(false);\n jTableVectorResultados.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n jTableVectorResultados.getColumnModel().getColumn(0).setHeaderValue(\" \"); \n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getPriorityVector().get(f, 0)), f, 0);\n } \n }", "public void rumoreAltroSettore(int idGioc, String value){\n\t\t partita.rumore(idGioc, value);\n\t}", "public void azzera() { setEnergia(0.0); }", "public abstract void setLibelle(String unLibelle);", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "@Override\r\n\tprotected void initVariableSet() {\n\t\tthis.lineImpetanz = this.initVariable(\"lineImpetance\", new NumericValue(0.1,0.2), EnumUnit.ohm, true, true);\r\n\t\tthis.lineCharge = this.initVariable(\"lineCharge\", new NumericValue(0), EnumUnit.ohm, true, true);\r\n\t\t\t\t\r\n\t}", "public void setValuesJTableVectorPrioridadesCriterios(){\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(1, criterios);\n jTableVectorPrioridadesCriterios.setModel(modelo);\n jTableVectorPrioridadesCriterios.setEnabled(false);\n jTableVectorPrioridadesCriterios.getTableHeader().setResizingAllowed(false);\n jTableVectorPrioridadesCriterios.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableVectorPrioridadesCriterios.getColumnCount();i++){\n jTableVectorPrioridadesCriterios.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int c = 0; c < criterios; c++){\n modelo.setValueAt(df.format(views.useController().getProblema().getCriteriaWeight().getPriorityVector().get(c, 0)), 0, c); \n }\n }", "public void setLydoTraVe(String lydoTraVe);", "public void setCodProd(IProduto codigo);", "public void setCodigo_agencia(java.lang.String newCodigo_agencia);", "@Override\n\tpublic void setParametri(Grafica grafica, GameStateDTO gameStateDTO) {\n\t\tgrafica.mostraMessaggio(\"Hai vinto un bonus tessera permesso!\\nScegli una tessera permesso\\n\");\n\n\t\tTesseraPermessoDTO tesseraPermessoDTO = grafica.scegliTesseraPermessoUsataONonUsata(\n\t\t\t\tgameStateDTO.getGiocatoreDTO().getTesserePermesso(),\n\t\t\t\tgameStateDTO.getGiocatoreDTO().getTesserePermessoUsate());\n\t\tbonusTesseraAcquistataNDTO.setTesseraPermesso(tesseraPermessoDTO);\n\t}", "public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void saveMissingTagAndBiGram(){\n BiGram newBiGram;\n for(Tag tag1 : Tag.values()){\n if(!tagMap.containsKey(tag1))\n tagMap.put(tag1, (long)1);\n for (Tag tag2 :Tag.values()){\n newBiGram = new BiGram(tag1, tag2);\n if(!biGramMap.containsKey(newBiGram))\n biGramMap.put(newBiGram, (long)1);\n }\n }\n }", "public void setIva(int iva) {\n\t\tproducto.setIva(iva);\n\t}", "void setPosiblesValores(int[] valores);", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public void setProfesorAsig (Profesor val) {\n this.ProfesorAsig = val;\n }", "public void changeRegion(ValueChangeEvent valueChangeEvent) {\n WABEAN mybean = new WABEAN();\r\n mybean.AccessAttribute(\"Country\").setInputValue(null);// second level attribunte\r\n // makes also the third level attribute to null \r\n // mybean.AccessAttribute(\"City\").setInputValue(null);// thierd level no need to make it null\r\n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "public void setNombreTI(String nombreTI) {\n this.nombreTI = nombreTI;\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public void setVega(double value) {\r\n this.vega = value;\r\n }", "public void addTrainingData(String value,String label);", "@Setteri\n public void asetaTunniste(int tunniste)throws IllegalArgumentException{\n if(tunniste>0){\n this.tunniste = tunniste;\n }\n else\n throw new IllegalArgumentException();\n }", "private void setEntropiaF(Map<String, Integer> categoriasFrequencia, int totalFrequencia) {\n\t\t\n\t}", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }" ]
[ "0.57442147", "0.57293785", "0.5691183", "0.56821346", "0.5610294", "0.5603179", "0.5529957", "0.54583216", "0.54556656", "0.5424763", "0.5403151", "0.5390819", "0.5379544", "0.53745043", "0.5345407", "0.53312916", "0.53233933", "0.53223234", "0.53194237", "0.53066105", "0.52970296", "0.5282696", "0.52783245", "0.5272818", "0.5269261", "0.5265069", "0.5247359", "0.5243677", "0.522953", "0.5218999", "0.5210824", "0.52075595", "0.5205038", "0.52019036", "0.52006066", "0.5197476", "0.51958257", "0.5194266", "0.5191973", "0.51894045", "0.51881415", "0.5185744", "0.5184433", "0.5178142", "0.5177176", "0.5176587", "0.5164721", "0.51616234", "0.51506746", "0.5149374", "0.51360047", "0.513332", "0.5124845", "0.51183945", "0.5114791", "0.5110912", "0.5110105", "0.51086605", "0.5102915", "0.5093417", "0.509144", "0.5091135", "0.5087663", "0.5083535", "0.5079509", "0.5078962", "0.50777805", "0.50769454", "0.50746995", "0.50708175", "0.5068573", "0.50625217", "0.505862", "0.50563186", "0.5056226", "0.5054689", "0.5054605", "0.50542307", "0.5052204", "0.505008", "0.5047677", "0.50472665", "0.5046632", "0.5044748", "0.5043349", "0.50430495", "0.5040902", "0.503636", "0.503412", "0.5031997", "0.50319844", "0.50319093", "0.5029448", "0.50292474", "0.50275934", "0.5022145", "0.501586", "0.5012871", "0.5012742", "0.50063473", "0.500472" ]
0.0
-1
An item was selected. You can retrieve the selected item using parent.getItemAtPosition(pos)
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { baudRate = Integer.parseInt(parent.getSelectedItem().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int pos, long id) {\n\t\t\t\tSystem.out.println(\"Selected \" + pos);\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n //System.out.println(position);\n }", "public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n Object item = parent.getItemAtPosition(pos);\n System.out.println(item.toString());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tAppInfo mApp = mApps.get(position);\n\t\t\t\tmApp.setSelected(!mApp.isSelected());\n\t\t\t\tmApps.set(position, mApp);\n\t\t\t\t\n\t\t\t\t// Let the adapter know you selected something\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n /*Intent people_intent= new Intent();\n people_intent.putExtra(\"people\",item);\n setResult(RESULT_OK,people_intent);\n finish();*/\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "void onItemSelected(int index, T item) throws RemoteException;", "public void onItemSelected(int position);", "@Override\n public void onItemSelected(AdapterView<?> parent3, View view3, int position3, long id3) {\n }", "private void itemSelected(int position) {\n\t\tmessageToPasteFromTheListView=arrayAdapter.getItem(position).getMessage();\n\t\tgetActivity().showDialog(((MainActivity)getActivity()).dialogID);\n\t}", "public Item getSelectedItem() {\n return this.itemList.getSelectedValue();\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n itemname = parent.getItemAtPosition(position).toString();\n }", "@Override\n public void onItemSelected(View view, int position) {\n }", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) \r\n\t{\n\t\tString food = parent.getItemAtPosition(position).toString();\r\n\t\t\r\n // Showing selected spinner item\r\n Toast.makeText(parent.getContext(), \"You selected: \" + food,\r\n Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}", "public void onItemStateChanged(String id, boolean selected);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = (String) parent.getItemAtPosition(position);\n selectedSports = item;\n Log.d(\"testing Spinner\", \"Spinner item selected is: \" + selectedSports + \" \" + item.toString());\n }", "public void onSelectedItem(int position) {\n\t\t\t\t\n\t\t\t\tviewInfo.intentUri = customDialog.mAppList.get(position).intentUri;\n\t\t\t\t\n\t\t\t\tviewInfo.icon = customDialog.mAppList.get(position).icon;\n\t\t\t\tviewInfo.label = customDialog.mAppList.get(position).label;\n\t\t\t\t\n\t\t\t\tmUiManager.addItemToPanel(null\n\t\t\t\t,viewInfo\n\t\t\t\t,mDatabaseUtil);\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "public ItemT getSelectedItem() {\n return selectedItem;\n }", "@Override\n public void onClick(View v) {\n if (fragment instanceof ItemListFragment)\n ((ItemListFragment) fragment).onItemSelected(position, AppConstants.AMMUNATION_SELECTED);\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "public interface OnSelectedItemChangeListener {\n void OnSelectedItemChange(PieMenuView source, int currentItem);\n }", "void onChildSelected(ViewGroup parent, View view, int position, long id);", "public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }", "public void itemSelected(boolean selected);", "public Gnome getSelectedItem() {\n return selectedItem;\n }", "@Override\n public void onItemClick(View view, int position) {\n presenter.onSelectedCarreer(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (position >= 0) {\n Drawing drawing = mItems.get(position);\n Log.d(TAG, \"onItemClick with drawing id \" + drawing.getId());\n mCallBacks.onDrawingSelected(drawing.getId());\n }\n }", "public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }", "private void selectItem(int position) {\n if(position==0){\n Intent myIntent= new Intent(this, ConnectActivity.class);\n startActivity(myIntent);}\n if(position==1){\n Intent myIntent= new Intent(this, ShowActivity.class);\n startActivity(myIntent);}\n if(position==2){\n Intent myIntent= new Intent(this, DiagnosisActivity.class);\n startActivity(myIntent);}\n if(position==3){\n Intent myIntent= new Intent(this, RemoteActivity.class);\n startActivity(myIntent);}\n if(position==4){\n Intent myIntent= new Intent(this, CommandActivity.class);\n startActivity(myIntent);}\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n showModal(position);\n view.setSelected(true);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id2) {\n }", "public void onItemSelected(AdapterView<?> parent, View view, int pos, long id){\n this.mAssessmentType = parent.getItemAtPosition(pos).toString();\n }", "@Override\n public void onItemClick(int pos) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n\t\tToast.makeText(this, \"Selected=\"+data[position], Toast.LENGTH_SHORT).show();\n\t}", "@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n SkillModel md = (SkillModel) l.getAdapter().getItem(position);\n //SkillModel md = ((pro_adapter)getListAdapter()).getItem(position);\n String pos = Integer.toString(position);\n Log.d(\"click\", pos);\n com.itemSelected(md.id);\n\n\n\n }", "public BrowseItem getSelectedItem()\r\n\t{\r\n\t\treturn this.selectedItem;\r\n\t}", "public int getSelectedItem() {\n return mSelectedItem;\n }", "@Override\n public void onItemSelected(AdapterView<?> parent4, View view4, int position4, long id4) {\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n\n try {\n title = ((MyRecyclerViewAdapter) mRecyclerView.getAdapter()).getTitle();\n notes = ((MyRecyclerViewAdapter) mRecyclerView.getAdapter()).getNotes();\n position = ((MyRecyclerViewAdapter) mRecyclerView.getAdapter()).getPosition();\n Log.i(TAG, \"title: \" + title);\n Log.i(TAG, \"note: \" + notes);\n Log.i(TAG, \"position: \" + position);\n } catch (Exception e) {\n Log.d(TAG, e.getLocalizedMessage());\n return super.onContextItemSelected(item);\n }\n if (item.getTitle() == \"Edit\") {\n editItem(title, notes);\n } else if (item.getTitle() == \"Delete\") {\n removeItem(title, position);\n } else if (item.getTitle() == \"Share via\") {\n shareItem(title, notes);\n } else if (item.getTitle() == \"Share via Facebook\") {\n shareItemFacebook(title, notes);\n } else {\n item.collapseActionView();\n }\n return super.onContextItemSelected(item);\n }", "void onItemSelected(Bundle args);", "public interface OnSelectedItemListener {\n /**\n * On selected item.\n *\n * @param view the view\n * @param position the position\n */\n void onSelectedItem(View view, int position);\n }", "private void selectItem(int position) {\n mDrawerList.setItemChecked(position, true);\n // setTitle(mPlanetTitles[position]);\n setTitle(getResources().getStringArray(R.array.planets_array)[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n // simpleTV.setText(position + \"\");\n\n\n }", "public void selectItem(int position, boolean value) {\n if (value) {\n mSelectedItems.put(position, value);\n notifyItemChanged(position);\n } else {\n mSelectedItems.delete(position);\n notifyItemChanged(position);\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_dokter2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_dokter2,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void OnItemClick(int position) {\n }", "protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }", "@Override\n\t public void onItemSelected(AdapterView<?> arg0, View arg1,int position, long id) {\n\t \tGlobal gs = (Global) getApplication();\n\t \t\tgs.mQblockSettings.selected_chemist=position;\n\t \t\tgs.SaveSettings();\n\t }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }", "public void onListItemSelect(int position) {\n storageGridViewAdapter.toggleSelection(position);//Toggle the selection\n\n boolean hasCheckedItems = storageGridViewAdapter.getSelectedCount() > 0;//Check if any items are already selected or not\n\n if (hasCheckedItems && mActionMode == null)\n // there are some selected items, start the actionMode\n mActionMode = startSupportActionMode(new ToolbarActionModeCallback(PictureActivity.this, storageGridViewAdapter, allImages));\n else if (!hasCheckedItems && mActionMode != null)\n // there no selected items, finish the actionMode\n mActionMode.finish();\n\n if (mActionMode != null)\n //set action mode title on item selection\n mActionMode.setTitle(String.valueOf(storageGridViewAdapter.getSelectedCount()) + \" selected\");\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }", "public void onItemSelected(int id);", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent5, View view5, int position5, long id5) {\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\t\n\t}", "void onItemSelected();", "void onItemSelected();", "void itemSelected(OutlineItem item);", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View paramView, int arg2, long arg3) {\n\t\t\t\tmItemListCurPosition = arg2;\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tfocusView.initFocusView(paramView, false, 0);\n\t\t\t\t}\n\t\t\t\tfocusView.moveTo(paramView);\n\t\t\t\tif (mTextView != null) {\n\t\t\t\t\tmTextView.setTextColor(mContext.getResources().getColor(R.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tif (mTextViewSetting != null) {\n\t\t\t\t\tmTextViewSetting.setTextColor(mContext.getResources().getColor(\n\t\t\t\t\t\t\tR.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tmTextView = (TextView) paramView.findViewById(R.id.item_name);\n\t\t\t\tmTextViewSetting = (TextView) paramView.findViewById(R.id.item_setting);\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tisFirstInit = false;\n\t\t\t\t\tmTextColorChangeFlag = true;\n\t\t\t\t\tlistTextColorSet();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n expertise_selected = adapterView.getItemAtPosition(i).toString();\n }", "@Override\r\n \tpublic boolean onContextItemSelected(MenuItem item) {\n \t\tAdapterContextMenuInfo info = (AdapterContextMenuInfo) item\r\n \t\t\t\t.getMenuInfo();\r\n \r\n \t\tm_cursor.moveToPosition(info.position);\r\n \t\tString contactId = m_cursor.getString(m_cursor\r\n \t\t\t\t.getColumnIndex(ContactsContract.Contacts._ID)), name = m_cursor\r\n \t\t\t\t.getString(m_cursor\r\n \t\t\t\t\t\t.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\r\n \r\n \t\tLog.i(tag, \"position is: \" + info.position + \", contactId: \"\r\n \t\t\t\t+ contactId + \", name: \" + name);\r\n \t\t// Retrieve the item that was clicked on\r\n \t\t// Object o = adapter.getItem(info.position);\r\n \r\n \t\tif (item.getTitle() == \"Remove from group\") {\r\n \t\t\tLog.i(tag, \"Remove: \" + item.getItemId());\r\n \t\t\tremoveFromGroup(contactId);\r\n \t\t} else if (item.getTitle() == \"Call\") {\r\n \t\t\t// call the guy\r\n \t\t\tcallFromGroup(contactId);\r\n \t\t} else if (item.getTitle() == \"Edit\") {\r\n \t\t\tshowEdit(contactId);\r\n \t\t} else if(item.getTitle() == \"view\"){\r\n \t\t\tshowContact(contactId);\r\n \t\t}\r\n \t\telse {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n \t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tadapter.setSelectedItem(which);\n\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tadapter.notifyDataSetInvalidated();\n\t\t\t\t\t\t\t}" ]
[ "0.74735963", "0.7277004", "0.7276765", "0.72598535", "0.72573906", "0.7165072", "0.7164617", "0.7144116", "0.71167636", "0.70937085", "0.70887554", "0.70573455", "0.7053659", "0.70456266", "0.7013089", "0.7007699", "0.7007699", "0.7004385", "0.70010775", "0.6978187", "0.69702023", "0.69118696", "0.69118696", "0.68964577", "0.68810844", "0.68795", "0.6867678", "0.6861309", "0.6861309", "0.6851055", "0.6843796", "0.68046486", "0.6803671", "0.67868495", "0.6767625", "0.6762989", "0.6762017", "0.67504823", "0.6749598", "0.6742807", "0.67421633", "0.6722047", "0.67195904", "0.6702482", "0.66823447", "0.6680873", "0.66651255", "0.6663242", "0.6663242", "0.6663242", "0.66624576", "0.66457576", "0.66457576", "0.663648", "0.663602", "0.6631729", "0.66265476", "0.6604924", "0.6576249", "0.6573623", "0.6559379", "0.655876", "0.6545316", "0.65425783", "0.6535405", "0.6533065", "0.65325725", "0.65320945", "0.6526095", "0.6521983", "0.65126616", "0.6510269", "0.65076786", "0.6502932", "0.6490735", "0.64802116", "0.64758766", "0.6459264", "0.6449695", "0.6445012", "0.64439565", "0.64439553", "0.6440174", "0.6439765", "0.6439478", "0.64344746", "0.6433519", "0.64317405", "0.64312065", "0.64282286", "0.64177746", "0.6416913", "0.64162695", "0.6406461", "0.63953954", "0.63953954", "0.63890123", "0.6383256", "0.6380443", "0.6374086", "0.637281" ]
0.0
-1
getNames produces a list of the names of the attributes. You can iterate through this list using the getValue call to find the values of the attributes
public String [] getNames () { return this.listAttributes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}", "public List getAttributeNames() {\n log.debug(\"getAttributeNames()\");\n ResultSet resultSet = attrNST.selectRows(\"name\");\n return resultSet.toStringList(1);\n }", "public Set<String> getAttributeNames();", "public List<String> getAttributeNames() {\n\t\treturn new ArrayList<>(attributes.keySet());\n\t}", "public String[] getAttributeNames()\n {\n return attributeNames;\n }", "public String[] getAttributeNames()\n {\n String superNames[] = super.getAttributeNames();\n\n if (localfs.isUnixFS())\n {\n StringList list = new StringList(superNames);\n list.add(LocalFSFactory.unixFSAttributeNames);\n return list.toArray();\n }\n\n return superNames;\n }", "@Override\n public java.lang.Object getNames() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.NAMES_);\n return (java.lang.Object)retnValue;\n }", "public List<String> getAttributeNames(String tableName) {\r\n\tArrayList<String> result = new ArrayList<String>();\r\n\r\n\tStatement stat = null;\r\n\tResultSet rs = null;\r\n\r\n\ttry {\r\n\t stat = conn.createStatement();\r\n\r\n\t rs = stat.executeQuery(\"PRAGMA table_info('\" + tableName + \"');\");\r\n\r\n\t while (rs.next()) {\r\n\t\tString attributeName = rs.getString(\"name\");\r\n\r\n\t\tif (attributeName != null && attributeName.length() > 0) {\r\n\t\t result.add(attributeName);\r\n\t\t}\r\n\t }\r\n\r\n\t} catch (Exception e) {\r\n\t System.out.print(StackTraceUtil.toString(e));\r\n\t} finally {\r\n\t Cleanup(stat, rs);\r\n\t}\r\n\r\n\treturn result;\r\n }", "@Override\n\t\tpublic Set<String> getAttributeNames() {\n\t\t\treturn null;\n\t\t}", "public static String[] getAttributeNames()\n\t{\n\t\tList<String> attributeNames = new ArrayList<String>();\n\t\tfor ( PwdPolicy attr : PwdPolicy.values() )\n\t\t{\n\t\t\tattributeNames.add( attr.getAttribute() );\n\t\t}\n\t\tString[] result = attributeNames.toArray( new String[attributeNames.size()] );\n\t\tlogger.log( loglevel, \"Returning attribute names: \"+Arrays.toString(result) );\n\t\treturn result;\n\t}", "public abstract String[] getRequiredAttributeNames();", "@Override\n\tpublic String[] getAttrNames() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Enumeration<String> getAttributeNames() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Enumeration<String> getAttributeNames() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String[] getAttributeNames() {\n\t\treturn null;\r\n\t}", "public java.util.Collection getAttributes();", "@Override\n\t\tpublic Enumeration getAttributeNames() {\n\t\t\treturn null;\n\t\t}", "ArrayList getAttributes();", "default List<String> getPrimaryAttributeNames() {\n\t\treturn getPrimaryAttributes().stream().map(attr -> attr.getName()).collect(Collectors.toList());\n\t}", "public ArrayList<String> getStatsNames() {\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\tNodeList nl = getStats();\n\t\tint len = nl.getLength();\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tString name = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"name\");\n\t\t\tif (name != null) {\n\t\t\t\tarr.add(name);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public ArrayList<String> getNames(){\r\n \t\tArrayList<String> names = new ArrayList<String>();\r\n \t\tfor (Enumeration<Tag> temp = tags.elements(); temp.hasMoreElements();) \r\n \t\t\tnames.add(temp.nextElement().getName());\r\n \t\treturn names;\r\n \t}", "public List<TLAttribute> getAttributes();", "Map<String, String> getAttributes();", "public abstract List<String> getPreFacesRequestAttrNames();", "public Enumeration enumeratePropertyNames() {\n return this.attributes.keys();\n }", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public Set<String> getAttributes() {\r\n return attributeMap.keySet();\r\n }", "public ArrayList<String> getAttributeNames(String table) throws QueryFailedException {\n String query = String.format(\"SELECT COLUMN_NAME FROM information_schema.Columns WHERE TABLE_NAME = '%s' AND TABLE_SCHEMA = '%s'\", table, database.getDatabaseName());\n try {\n ResultSet rs = this.execute(query);\n ArrayList<String> attributeNames = new ArrayList<String>();\n while(rs.next()) {\n attributeNames.add(rs.getString(\"COLUMN_NAME\"));\n }\n return attributeNames;\n } catch (QueryFailedException | SQLException e) {\n e.printStackTrace();\n throw new QueryFailedException(\"Failed getting attribute names\");\n }\n }", "public String[] getFieldNames();", "public Map<String, String> getAttributes();", "Attributes getAttributes();", "public String[] getRelevantAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public String[] getPropertyNames();", "Set<String> getNames();", "@Nonnull List<String> getNameList();", "public String[] getAttributeValues() {\n return m_attributeValues;\n }", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}", "@DISPID(10) //= 0xa. The runtime will prefer the VTID if present\r\n @VTID(17)\r\n java.lang.String[] getNames();", "public final String[] getAttributes() {\n return this.attributes;\n }", "@Override\n\tpublic Enumeration<String> getAttributeNames(int arg0) {\n\t\treturn null;\n\t}", "@Override\n public List<ConfigurationNode> getAttributes(String name)\n {\n return attributes.getSubNodes(name);\n }", "public Set<String> attributeKeys()\r\n\t{\r\n\t\treturn this.attributes.stringPropertyNames();\r\n\t}", "String[] getMetadataNames();", "public Set<String> getNames() {\n\t\t//\t\tArrayList<String> names = new ArrayList<String>();\n\t\t//\t\tfor (NameSSA n : name.values())\n\t\t//\t\t\tnames.add(n.current());\n\t\treturn name.keySet();\n\t}", "java.util.Enumeration getPropertyNames();", "public String[] getNames() {\n Enumeration namesEnum = keys();\n String[] namesArray = new String[size()];\n for (int i = 0; i < size(); i++) {\n namesArray[i] = (String) namesEnum.nextElement();\n }\n return namesArray;\n }", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "public String[] getItemNames();", "public String[] getResourceAttributeNames()\n {\n return null;\n }", "public String getAttribute(String name);", "List<Attribute<T, ?>> getAttributes();", "public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }", "public Map<String, Object> getAttributeValues()\n\t{\n\t\tMap<String, Object> retval = new TreeMap<>();\n\t\t\n\t\tfor (ClassAttribute attribute : attributes.keySet())\n\t\t{\n\t\t\tretval.put(attribute.shortName, attributes.get(attribute));\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "Collection<String> names();", "public String[] getNames() {\r\n\t\tfinal List<String> names=new ArrayList<>();\r\n\r\n\t\tString s;\r\n\t\tfor (Map.Entry<String,Map<String,Object>> entry1: data.entrySet()) {\r\n\t\t\ts=entry1.getKey();\r\n\t\t\tif (names.indexOf(s)<0) names.add(s);\r\n\t\t\tfor (Map.Entry<String,Object> entry2: entry1.getValue().entrySet()) {\r\n\t\t\t\ts=entry2.getKey();\r\n\t\t\t\tif (names.indexOf(s)<0) names.add(s);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn names.toArray(new String[0]);\r\n\t}", "private void buildAttrNamesSet() {\r\n\t\tFileReader file = null;\r\n\t\tString fileName = \"data/attributesType.txt\";\r\n\r\n\t\ttry {\r\n\t\t\tfile = new FileReader(fileName);\r\n\t\t\tBufferedReader reader = new BufferedReader(file);\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString strLine[] = line.split(\" \");\r\n\t\t\t\tint type = Integer.parseInt(strLine[1]);\r\n\t\t\t\thmAttrNames.put(strLine[0], new Integer(type));\r\n\t\t\t}\r\n\r\n\t\t\tfile.close();\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NumberFormatException 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\r\n\t\t/*\r\n\t\t * // Get a set of the entries Set set = hmAttrNames.entrySet(); // Get\r\n\t\t * an iterator Iterator i = set.iterator(); // Display elements while\r\n\t\t * (i.hasNext()) { Map.Entry me = (Map.Entry) i.next();\r\n\t\t * System.out.print(me.getKey() + \": \");\r\n\t\t * System.out.println(me.getValue()); } System.out.println();\r\n\t\t */\r\n\t}", "java.lang.String getAttribute();", "public List<String> getNames() {\n return names;\n }", "public ArrayList<String> getNames() {\n return names;\n }", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "@Override\n public ImmutableList<String> getNameParts() {\n return names.toImmutable();\n }", "public Map<String, Object> getAttrs();", "public List<String> listItemAttributes(final String itemType, final String itemName){\n\t\tactivate();\n\t\tfinal List<String> names = new ArrayList<>();\n\t\tDisplay.syncExec(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n DefaultCTabItem tabItem = new DefaultCTabItem(1);\n\t\t\t\ttabItem.activate();\n\t\t\t\tModelEditorItemAttributeMatcher matcher = new ModelEditorItemAttributeMatcher(\"\", itemType, itemName);\n\t\t\t\t\n\t\t\t\tGraphicalViewer viewer = ((IEditorPart) tabItem.getSWTWidget().getData()).getAdapter(GraphicalViewer.class);\n\t\t\t\tViewerHandler.getInstance().getEditParts(viewer, matcher);\n\t\t\t\tnames.addAll(matcher.getAllAttributeNames());\n\t\t\t}\n\t\t});\n\t\treturn names;\n\t}", "public List<String> attributes() {\n return this.attributes;\n }", "public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;", "private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "public abstract Map<String, Object> getAttributes();", "@java.lang.Override\n public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n return attributes_;\n }", "public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "public void testGetAttributeNames() {\n String result[] = { \"some node\" };\n sessionControl.expectAndReturn(session.getAttributeNames(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getAttributeNames(), result);\n }", "public ArrayList<Attribute> getAttributeList(){\n\t\t\n\t\treturn(child.getAttributeList());\n\t}", "public ArrayList<Attribute> getAttributeList(){\n\t\t\n\t\treturn(child.getAttributeList());\n\t}", "IAttributes getAttributes();", "@Override\n public List<String[]> namesAndValues() {\n List<String[]> nAv = new ArrayList<>();\n String[] m = {\"Meno\", this.meno};\n String[] i = {\"Iso\", this.iso};\n String[] b = {\"Brummitt 1\", this.brumit1.getMeno(), \"F Brumit1\"};\n nAv.add(m);\n nAv.add(i);\n nAv.add(b);\n return nAv;\n }", "public ArrayList<Attribute> getAttributeList(){\n\t\treturn child.getAttributeList();\n\t}", "public VAttribute[] getAttributes(String names[]) throws VlException \n {\n VAttribute[] attrs = new VAttribute[names.length];\n\n for (int i = 0; i < names.length; i++)\n {\n if (names[i]!=null)\n attrs[i] = getAttribute(names[i]);\n else\n attrs[i]=null; \n }\n\n return attrs;\n }", "public final String getName() {\n String ret = null;\n for (String s : getNameFields()) {\n if (ret == null) {\n ret = get(s);\n } else {\n ret = ret + \",\" + get(s);\n }\n }\n return ret;\n }", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "private ArrayList<String> getJoinedAttributeNames(List<Table> tables) {\n\t\tArrayList<String> rtn = new ArrayList<String>(); \n\n\t\ttry {\n\t\t\tfor(int iterator = 0; iterator < tables.size(); iterator++) {\n\t\t\t\tTable table = tables.get(iterator);\n\t\t\t\tFile root = new File(\"src\");\n\t\t\t\tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n\t\t\t\tClass<?> cl = Class.forName(table.getName(), true, classLoader);\n\t\t\t\t\n\t\t\t\tField fields[] = cl.getDeclaredFields();\n\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\tField field = fields[i];\n\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\trtn.add(field.getName());\n\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e)\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn rtn;\n\t}", "public String[] getAllAttributes() {\n\t\treturn allAttributes;\n\t}", "public WSLAttributeList getAttributes() {return attributes;}", "String getAttributeName(Object attr);", "public Object getAttribute(String name);", "public Map<String, Set<String>> getAttributes() {\n return attributes;\n }", "@Override\r\n\tpublic ArrayList<Object> getAttributesValues() {\n\t\tArrayList<Object> listValeur = super.getAttributesValues();\r\n\t\tlistValeur.add(nombreMaxPassagers);\r\n\t\treturn listValeur;\r\n\t}", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "public Map<String, String> getNames() {\n return names;\n }", "public String[] getNames() {\n\t\tString[] names = new String[functions.size()];\n\t\tint index = 0;\n\t\tfor (Enumeration en = functions.keys(); en.hasMoreElements(); index++) {\n\t\t\tnames[index] = (String) en.nextElement();\n\t\t}\n\t\treturn names;\n\t}", "public Set<String> getStringPropertyNames();", "public Set<String> getName() {\r\n return this.name;\r\n }" ]
[ "0.8133729", "0.81332475", "0.79300594", "0.77901953", "0.7562845", "0.71722096", "0.7108751", "0.71026635", "0.7089728", "0.70829356", "0.7009044", "0.699582", "0.699379", "0.699379", "0.69385153", "0.6915239", "0.6884365", "0.68480456", "0.6749133", "0.6745037", "0.6730307", "0.66434646", "0.66153693", "0.6602325", "0.6595169", "0.6568525", "0.65237844", "0.6504366", "0.6488554", "0.6488554", "0.6488554", "0.6479435", "0.6472824", "0.64706963", "0.64550745", "0.6438286", "0.6351621", "0.6340977", "0.6340977", "0.63379747", "0.63367885", "0.63343716", "0.6325332", "0.6311812", "0.6268623", "0.6255695", "0.6255672", "0.6224384", "0.62087154", "0.6155941", "0.61433625", "0.61420953", "0.6141647", "0.6123717", "0.611899", "0.6118718", "0.6113142", "0.61110413", "0.61094165", "0.61019075", "0.60937667", "0.6084875", "0.60729384", "0.6069633", "0.6061457", "0.6061207", "0.60596746", "0.6052071", "0.6047774", "0.6037361", "0.6035427", "0.6033086", "0.6020077", "0.601355", "0.60073364", "0.5993654", "0.5992136", "0.59795815", "0.59783995", "0.5977847", "0.5977847", "0.59746075", "0.5972906", "0.5967712", "0.595869", "0.5955406", "0.59509176", "0.59509176", "0.59307367", "0.59260756", "0.5922874", "0.5922542", "0.592203", "0.59098685", "0.59052944", "0.5904411", "0.5897484", "0.5887414", "0.5882793", "0.58822966" ]
0.81937546
0
added by Simon on 20/02/02 rough and ready implementation as an experiment
public String toSL() { String results = new String(""); String attribute; ValueFunction value; for(Enumeration enum = this.keys(); enum.hasMoreElements(); ) { attribute = (String) enum.nextElement(); value = (ValueFunction) this.get(attribute); results += ":" + attribute + " " + value + " "; } return results.trim() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private void m50366E() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n public void perish() {\n \n }", "private SBomCombiner()\n\t{}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void method_4270() {}", "public void mo12628c() {\n }", "public void mo4359a() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public abstract void mo56925d();", "void mo57277b();", "private static int zzaz(java.lang.String r5) {\n /*\n int r0 = r5.hashCode()\n r1 = 0\n r2 = 3\n r3 = 2\n r4 = 1\n switch(r0) {\n case -1095064472: goto L_0x002a;\n case 187078296: goto L_0x0020;\n case 1504578661: goto L_0x0016;\n case 1505942594: goto L_0x000c;\n default: goto L_0x000b;\n }\n L_0x000b:\n goto L_0x0034\n L_0x000c:\n java.lang.String r0 = \"audio/vnd.dts.hd\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 3\n goto L_0x0035\n L_0x0016:\n java.lang.String r0 = \"audio/eac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 1\n goto L_0x0035\n L_0x0020:\n java.lang.String r0 = \"audio/ac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 0\n goto L_0x0035\n L_0x002a:\n java.lang.String r0 = \"audio/vnd.dts\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 2\n goto L_0x0035\n L_0x0034:\n r5 = -1\n L_0x0035:\n if (r5 == 0) goto L_0x0045\n if (r5 == r4) goto L_0x0043\n if (r5 == r3) goto L_0x0041\n if (r5 == r2) goto L_0x003e\n return r1\n L_0x003e:\n r5 = 8\n return r5\n L_0x0041:\n r5 = 7\n return r5\n L_0x0043:\n r5 = 6\n return r5\n L_0x0045:\n r5 = 5\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zzaz(java.lang.String):int\");\n }", "public abstract void mo6549b();", "protected void mo6255a() {\n }", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "void mo57278c();", "public void skystonePos4() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "double passer();", "public abstract int mo9754s();", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "public abstract void mo27385c();", "public void mo21877s() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private void c() {\n /*\n r14 = this;\n r12 = android.os.SystemClock.elapsedRealtime();\n r8 = r14.d();\n r0 = r14.t;\n if (r0 == 0) goto L_0x007a;\n L_0x000c:\n r0 = 1;\n r7 = r0;\n L_0x000e:\n r0 = r14.r;\n r0 = r0.a();\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n if (r7 == 0) goto L_0x007d;\n L_0x0018:\n r0 = 1;\n r10 = r0;\n L_0x001a:\n if (r10 != 0) goto L_0x0095;\n L_0x001c:\n r0 = r14.d;\n r0 = r0.b;\n if (r0 != 0) goto L_0x0028;\n L_0x0022:\n r0 = -1;\n r0 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1));\n if (r0 != 0) goto L_0x0032;\n L_0x0028:\n r0 = r14.p;\n r0 = r12 - r0;\n r2 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0095;\n L_0x0032:\n r14.p = r12;\n r0 = r14.d;\n r1 = r14.f;\n r1 = r1.size();\n r0.a = r1;\n r0 = r14.c;\n r1 = r14.f;\n r2 = r14.o;\n r4 = r14.m;\n r6 = r14.d;\n r0.getChunkOperation(r1, r2, r4, r6);\n r0 = r14.d;\n r0 = r0.a;\n r0 = r14.a(r0);\n r1 = r14.d;\n r1 = r1.b;\n if (r1 != 0) goto L_0x0080;\n L_0x0059:\n r4 = -1;\n L_0x005b:\n r0 = r14.b;\n r2 = r14.m;\n r1 = r14;\n r6 = r10;\n r0 = r0.update(r1, r2, r4, r6);\n if (r7 == 0) goto L_0x0087;\n L_0x0067:\n r0 = r14.v;\n r0 = r12 - r0;\n r2 = r14.u;\n r2 = (long) r2;\n r2 = r14.c(r2);\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 < 0) goto L_0x0079;\n L_0x0076:\n r14.e();\n L_0x0079:\n return;\n L_0x007a:\n r0 = 0;\n r7 = r0;\n goto L_0x000e;\n L_0x007d:\n r0 = 0;\n r10 = r0;\n goto L_0x001a;\n L_0x0080:\n if (r0 == 0) goto L_0x0095;\n L_0x0082:\n r4 = r14.d();\n goto L_0x005b;\n L_0x0087:\n r1 = r14.r;\n r1 = r1.a();\n if (r1 != 0) goto L_0x0079;\n L_0x008f:\n if (r0 == 0) goto L_0x0079;\n L_0x0091:\n r14.f();\n goto L_0x0079;\n L_0x0095:\n r4 = r8;\n goto L_0x005b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer.chunk.ChunkSampleSource.c():void\");\n }", "private void m50367F() {\n }", "private void parseData() {\n\t\t\r\n\t}", "private java.lang.String a(java.lang.String r6, com.google.b5 r7, com.google.e5 r8, java.lang.String r9) {\n /*\n r5 = this;\n r2 = F;\n r0 = r7.e();\n r1 = r5.o;\n r3 = r7.i();\n r1 = r1.a(r3);\n r3 = r1.matcher(r6);\n r1 = \"\";\n r1 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0092 }\n if (r8 != r1) goto L_0x004b;\n L_0x001b:\n if (r9 == 0) goto L_0x004b;\n L_0x001d:\n r1 = r9.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x0023:\n r1 = r7.d();\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x002d:\n r1 = r7.d();\n r4 = f;\n r1 = r4.matcher(r1);\n r1 = r1.replaceFirst(r9);\n r4 = z;\n r0 = r4.matcher(r0);\n r0 = r0.replaceFirst(r1);\n r1 = r3.replaceAll(r0);\n if (r2 == 0) goto L_0x009c;\n L_0x004b:\n r1 = r7.k();\n r4 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0098 }\n if (r8 != r4) goto L_0x006b;\n L_0x0053:\n if (r1 == 0) goto L_0x006b;\n L_0x0055:\n r4 = r1.length();\t Catch:{ RuntimeException -> 0x009a }\n if (r4 <= 0) goto L_0x006b;\n L_0x005b:\n r4 = z;\n r4 = r4.matcher(r0);\n r1 = r4.replaceFirst(r1);\n r1 = r3.replaceAll(r1);\n if (r2 == 0) goto L_0x009c;\n L_0x006b:\n r0 = r3.replaceAll(r0);\n L_0x006f:\n r1 = com.google.e5.RFC3966;\n if (r8 != r1) goto L_0x0091;\n L_0x0073:\n r1 = p;\n r1 = r1.matcher(r0);\n r2 = r1.lookingAt();\n if (r2 == 0) goto L_0x0086;\n L_0x007f:\n r0 = \"\";\n r0 = r1.replaceFirst(r0);\n L_0x0086:\n r0 = r1.reset(r0);\n r1 = \"-\";\n r0 = r0.replaceAll(r1);\n L_0x0091:\n return r0;\n L_0x0092:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0094 }\n L_0x0094:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0096:\n r0 = move-exception;\n throw r0;\n L_0x0098:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x009a }\n L_0x009a:\n r0 = move-exception;\n throw r0;\n L_0x009c:\n r0 = r1;\n goto L_0x006f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.b5, com.google.e5, java.lang.String):java.lang.String\");\n }", "public abstract long mo9229aD();", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "double seBlesser();", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo9848a() {\n }", "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 }", "private void test() {\n\t\tCoordinate[] polyPts = new Coordinate[]{ \n\t\t\t\t new Coordinate(-98.50165524249245,45.216163960194365), \n\t\t\t\t new Coordinate(-96.07562805826798,39.725652270504796), \t\n\t\t\t\t new Coordinate(-88.95179971518155,39.08088689505274), \t\n\t\t\t\t new Coordinate(-87.96893561066132,44.647653935023214),\n\t\t \t\t new Coordinate(-89.72876449996915,41.54448973482366)\n\t\t\t\t };\n Coordinate[] seg = new Coordinate[2]; \n \n \tCoordinate midPt = new Coordinate();\n \tmidPt.x = ( polyPts[ 0 ].x + polyPts[ 2 ].x ) / 2.0 - 1.0;\n \tmidPt.y = ( polyPts[ 0 ].y + polyPts[ 2 ].y ) / 2.0 - 1.0;\n seg[0] = polyPts[ 0 ];\n seg[1] = midPt; \n \n \n\t\tfor ( int ii = 0; ii < (polyPts.length - 2); ii++ ) {\n\t\t\tfor ( int jj = ii + 2; jj < (polyPts.length); jj ++ ) {\n\t\t seg[0] = polyPts[ii];\n\t\t seg[1] = polyPts[jj]; \n\t\t \n\t\t\t boolean good = polysegIntPoly( seg, polyPts );\n\t String s;\n\t\t\t if ( good ) {\n\t\t\t\t\ts = \"Qualify!\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ts = \"Not qualify\";\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t\t\n\t\t\t System.out.println( \"\\npoint \" + ii + \"\\t<Point Lat=\\\"\" + \n\t\t\t\t\t polyPts[ii].y + \"\\\" Lon=\\\"\" + polyPts[ii].x + \"\\\"/>\" \n\t\t\t\t\t + \"\\t=>\\t\" + \"point \" + jj+ \"\\t<Point Lat=\\\"\" + \n polyPts[jj].y + \"\\\" Lon=\\\"\" + polyPts[jj].x + \"\\\"/>\"\n + \"\\t\" + s );\n \n\t\t\t}\n\t }\n\n\t}", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "@RepeatedTest(20)\n void subTest(){\n assertEquals(f.sub(f), new Float(decimal-decimal));\n assertEquals(f.sub(g), new Float(decimal-random));\n assertEquals(f.sub(i), new Float(decimal-seed));\n assertEquals(f.sub(bi), new Float(decimal-bi.toInt(bi.getBinary())));\n assertEquals(i.sub(f), new Float(seed-decimal));\n assertEquals(i.sub(i), new Int(seed-seed));\n assertEquals(i.sub(bi), new Int(seed-bi.toInt(bi.getBinary())));\n\n //nulls\n //Bool - ITypes\n assertEquals(bot.sub(st),Null);\n assertEquals(bof.sub(st),Null);\n assertEquals(bot.sub(bot),Null);\n assertEquals(bof.sub(bot), Null);\n assertEquals(bot.sub(f), Null);\n assertEquals(bof.sub(i), Null);\n assertEquals(bot.sub(bi), Null);\n //Float - ITypes \\ {Numbers}\n assertEquals(f.sub(st), Null);\n assertEquals(f.sub(bot), Null);\n assertEquals(f.sub(bof), Null);\n //Int - ITypes \\ {Numbers}\n assertEquals(i.sub(st), Null);\n assertEquals(i.sub(bot),Null);\n assertEquals(i.sub(bof), Null);\n //Binary - ITypes \\ {Int, Binary}\n assertEquals(bi.sub(st), Null);\n assertEquals(bi.sub(bot), Null);\n assertEquals(bi.sub(f), Null);\n //NullType subtractions\n assertEquals(Null.sub(st), Null);\n assertEquals(Null.sub(bof), Null);\n assertEquals(Null.sub(f), Null);\n assertEquals(Null.sub(i), Null);\n assertEquals(Null.sub(bi), Null);\n assertEquals(Null.sub(Null), Null);\n assertEquals(st.sub(Null), Null);\n assertEquals(bot.sub(Null), Null);\n assertEquals(f.sub(Null), Null);\n assertEquals(i.sub(Null), Null);\n assertEquals(bi.sub(Null), Null);\n }", "private void iterativeDataPropertyMetrics() {\n\t}", "protected abstract Set method_1559();", "public void mo21794S() {\n }", "StackManipulation cached();", "private S(com.google.ad r9, com.google.h r10) {\n /*\n r8 = this;\n r0 = 0;\n r1 = -1;\n r7 = 2;\n r2 = 1;\n r5 = org.whispersystems.Y.r;\n r8.<init>();\n r8.k = r1;\n r8.n = r1;\n r8.c();\n r6 = com.google.eV.g();\n r1 = r0;\n L_0x0015:\n if (r0 != 0) goto L_0x006f;\n L_0x0017:\n r3 = r9.z();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n switch(r3) {\n case 0: goto L_0x0085;\n case 10: goto L_0x00c6;\n case 18: goto L_0x0055;\n default: goto L_0x001e;\n };\n L_0x001e:\n r3 = r8.a(r9, r6, r10, r3);\t Catch:{ fN -> 0x0089, IOException -> 0x00aa }\n if (r3 != 0) goto L_0x006d;\n L_0x0024:\n if (r5 == 0) goto L_0x00c4;\n L_0x0026:\n r3 = r2;\n L_0x0027:\n r0 = 0;\n r4 = r8.h;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r4 & 1;\n if (r4 != r2) goto L_0x00c1;\n L_0x002e:\n r0 = r8.f;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r0 = r0.w();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r0;\n L_0x0035:\n r0 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r9.a(r0, r10);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = (org.whispersystems.Y) r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n if (r4 == 0) goto L_0x004c;\n L_0x0041:\n r0 = r8.f;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r4.a(r0);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r4.a();\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n L_0x004c:\n r0 = r8.h;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n r0 = r0 | 1;\n r8.h = r0;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n if (r5 == 0) goto L_0x00bf;\n L_0x0054:\n r0 = r3;\n L_0x0055:\n r3 = r1 & 2;\n if (r3 == r7) goto L_0x0062;\n L_0x0059:\n r3 = new java.util.ArrayList;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.<init>();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r8.l = r3;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r1 = r1 | 2;\n L_0x0062:\n r3 = r8.l;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r9.a(r4, r10);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.add(r4);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x006d:\n if (r5 == 0) goto L_0x0015;\n L_0x006f:\n r0 = r1 & 2;\n if (r0 != r7) goto L_0x007b;\n L_0x0073:\n r0 = r8.l;\t Catch:{ fN -> 0x00bb }\n r0 = java.util.Collections.unmodifiableList(r0);\t Catch:{ fN -> 0x00bb }\n r8.l = r0;\t Catch:{ fN -> 0x00bb }\n L_0x007b:\n r0 = r6.d();\n r8.e = r0;\n r8.b();\n return;\n L_0x0085:\n if (r5 == 0) goto L_0x00c4;\n L_0x0087:\n r0 = r2;\n goto L_0x001e;\n L_0x0089:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x008b:\n r0 = move-exception;\n r0 = r0.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x0091:\n r0 = move-exception;\n r1 = r1 & 2;\n if (r1 != r7) goto L_0x009e;\n L_0x0096:\n r1 = r8.l;\t Catch:{ fN -> 0x00bd }\n r1 = java.util.Collections.unmodifiableList(r1);\t Catch:{ fN -> 0x00bd }\n r8.l = r1;\t Catch:{ fN -> 0x00bd }\n L_0x009e:\n r1 = r6.d();\n r8.e = r1;\n r8.b();\n throw r0;\n L_0x00a8:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00aa:\n r0 = move-exception;\n r2 = new com.google.fN;\t Catch:{ all -> 0x0091 }\n r0 = r0.getMessage();\t Catch:{ all -> 0x0091 }\n r2.<init>(r0);\t Catch:{ all -> 0x0091 }\n r0 = r2.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x00b9:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00bb:\n r0 = move-exception;\n throw r0;\n L_0x00bd:\n r0 = move-exception;\n throw r0;\n L_0x00bf:\n r0 = r3;\n goto L_0x006d;\n L_0x00c1:\n r4 = r0;\n goto L_0x0035;\n L_0x00c4:\n r0 = r2;\n goto L_0x006d;\n L_0x00c6:\n r3 = r0;\n goto L_0x0027;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.whispersystems.S.<init>(com.google.ad, com.google.h):void\");\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void skystonePos6() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo21793R() {\n }", "private stendhal() {\n\t}", "void mo60893b();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public void mo21878t() {\n }", "private static void iterator() {\n\t\t\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public abstract void mo2624j();", "public void mo21782G() {\n }", "public void mo21785J() {\n }", "public void mo115190b() {\n }", "public abstract int mo9753r();", "void mo21072c();", "public void mo3376r() {\n }", "void mo72113b();", "public void mo12930a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public abstract Object mo1185b();", "public abstract void mo27386d();", "void mo67924c();", "private void a(String paramString, boolean paramBoolean)\r\n/* 282: */ {\r\n/* 283:293 */ for (int i1 = 0; i1 < paramString.length(); i1++)\r\n/* 284: */ {\r\n/* 285:294 */ char c1 = paramString.charAt(i1);\r\n/* 286: */ int i2;\r\n/* 287: */ int i3;\r\n/* 288:296 */ if ((c1 == '§') && (i1 + 1 < paramString.length()))\r\n/* 289: */ {\r\n/* 290:297 */ i2 = \"0123456789abcdefklmnor\".indexOf(paramString.toLowerCase().charAt(i1 + 1));\r\n/* 291:299 */ if (i2 < 16)\r\n/* 292: */ {\r\n/* 293:300 */ this.r = false;\r\n/* 294:301 */ this.s = false;\r\n/* 295:302 */ this.v = false;\r\n/* 296:303 */ this.u = false;\r\n/* 297:304 */ this.t = false;\r\n/* 298:305 */ if ((i2 < 0) || (i2 > 15)) {\r\n/* 299:306 */ i2 = 15;\r\n/* 300: */ }\r\n/* 301:309 */ if (paramBoolean) {\r\n/* 302:310 */ i2 += 16;\r\n/* 303: */ }\r\n/* 304:313 */ i3 = this.f[i2];\r\n/* 305:314 */ this.q = i3;\r\n/* 306:315 */ cjm.c((i3 >> 16) / 255.0F, (i3 >> 8 & 0xFF) / 255.0F, (i3 & 0xFF) / 255.0F, this.p);\r\n/* 307: */ }\r\n/* 308:316 */ else if (i2 == 16)\r\n/* 309: */ {\r\n/* 310:317 */ this.r = true;\r\n/* 311: */ }\r\n/* 312:318 */ else if (i2 == 17)\r\n/* 313: */ {\r\n/* 314:319 */ this.s = true;\r\n/* 315: */ }\r\n/* 316:320 */ else if (i2 == 18)\r\n/* 317: */ {\r\n/* 318:321 */ this.v = true;\r\n/* 319: */ }\r\n/* 320:322 */ else if (i2 == 19)\r\n/* 321: */ {\r\n/* 322:323 */ this.u = true;\r\n/* 323: */ }\r\n/* 324:324 */ else if (i2 == 20)\r\n/* 325: */ {\r\n/* 326:325 */ this.t = true;\r\n/* 327: */ }\r\n/* 328:326 */ else if (i2 == 21)\r\n/* 329: */ {\r\n/* 330:327 */ this.r = false;\r\n/* 331:328 */ this.s = false;\r\n/* 332:329 */ this.v = false;\r\n/* 333:330 */ this.u = false;\r\n/* 334:331 */ this.t = false;\r\n/* 335: */ \r\n/* 336:333 */ cjm.c(this.m, this.n, this.o, this.p);\r\n/* 337: */ }\r\n/* 338:336 */ i1++;\r\n/* 339: */ }\r\n/* 340: */ else\r\n/* 341: */ {\r\n/* 342:340 */ i2 = \"\".indexOf(c1);\r\n/* 343:342 */ if ((this.r) && (i2 != -1))\r\n/* 344: */ {\r\n/* 345: */ do\r\n/* 346: */ {\r\n/* 347:345 */ i3 = this.b.nextInt(this.d.length);\r\n/* 348:346 */ } while (this.d[i2] != this.d[i3]);\r\n/* 349:347 */ i2 = i3;\r\n/* 350: */ }\r\n/* 351:353 */ float f1 = this.k ? 0.5F : 1.0F;\r\n/* 352:354 */ int i4 = ((c1 == 0) || (i2 == -1) || (this.k)) && (paramBoolean) ? 1 : 0;\r\n/* 353:356 */ if (i4 != 0)\r\n/* 354: */ {\r\n/* 355:357 */ this.i -= f1;\r\n/* 356:358 */ this.j -= f1;\r\n/* 357: */ }\r\n/* 358:360 */ float f2 = a(i2, c1, this.t);\r\n/* 359:361 */ if (i4 != 0)\r\n/* 360: */ {\r\n/* 361:362 */ this.i += f1;\r\n/* 362:363 */ this.j += f1;\r\n/* 363: */ }\r\n/* 364:366 */ if (this.s)\r\n/* 365: */ {\r\n/* 366:367 */ this.i += f1;\r\n/* 367:368 */ if (i4 != 0)\r\n/* 368: */ {\r\n/* 369:369 */ this.i -= f1;\r\n/* 370:370 */ this.j -= f1;\r\n/* 371: */ }\r\n/* 372:372 */ a(i2, c1, this.t);\r\n/* 373:373 */ this.i -= f1;\r\n/* 374:374 */ if (i4 != 0)\r\n/* 375: */ {\r\n/* 376:375 */ this.i += f1;\r\n/* 377:376 */ this.j += f1;\r\n/* 378: */ }\r\n/* 379:378 */ f2 += 1.0F;\r\n/* 380: */ }\r\n/* 381: */ ckx localckx;\r\n/* 382: */ VertexBuffer localciv;\r\n/* 383:381 */ if (this.v)\r\n/* 384: */ {\r\n/* 385:382 */ localckx = ckx.getInstance();\r\n/* 386:383 */ localciv = localckx.getBuffer();\r\n/* 387:384 */ cjm.x();\r\n/* 388:385 */ localciv.begin();\r\n/* 389:386 */ localciv.addVertex(this.i, this.j + this.a / 2, 0.0D);\r\n/* 390:387 */ localciv.addVertex(this.i + f2, this.j + this.a / 2, 0.0D);\r\n/* 391:388 */ localciv.addVertex(this.i + f2, this.j + this.a / 2 - 1.0F, 0.0D);\r\n/* 392:389 */ localciv.addVertex(this.i, this.j + this.a / 2 - 1.0F, 0.0D);\r\n/* 393:390 */ localckx.draw();\r\n/* 394:391 */ cjm.w();\r\n/* 395: */ }\r\n/* 396:394 */ if (this.u)\r\n/* 397: */ {\r\n/* 398:395 */ localckx = ckx.getInstance();\r\n/* 399:396 */ localciv = localckx.getBuffer();\r\n/* 400:397 */ cjm.x();\r\n/* 401:398 */ localciv.begin();\r\n/* 402:399 */ int i5 = this.u ? -1 : 0;\r\n/* 403:400 */ localciv.addVertex(this.i + i5, this.j + this.a, 0.0D);\r\n/* 404:401 */ localciv.addVertex(this.i + f2, this.j + this.a, 0.0D);\r\n/* 405:402 */ localciv.addVertex(this.i + f2, this.j + this.a - 1.0F, 0.0D);\r\n/* 406:403 */ localciv.addVertex(this.i + i5, this.j + this.a - 1.0F, 0.0D);\r\n/* 407:404 */ localckx.draw();\r\n/* 408:405 */ cjm.w();\r\n/* 409: */ }\r\n/* 410:408 */ this.i += (int)f2;\r\n/* 411: */ }\r\n/* 412: */ }\r\n/* 413: */ }", "void mo21076g();", "abstract String mo1748c();", "private void method_4318() {\r\n String[] var1;\r\n int var11;\r\n label68: {\r\n var1 = class_752.method_4253();\r\n class_758 var10000 = this;\r\n if(var1 != null) {\r\n if(this.field_3417 != null) {\r\n label71: {\r\n var11 = this.field_3417.field_3012;\r\n if(var1 != null) {\r\n if(this.field_3417.field_3012) {\r\n var10000 = this;\r\n if(var1 != null) {\r\n if(!this.field_2990.field_1832) {\r\n this.method_409(this.field_3404, class_1691.method_9334((class_1036)null), 10.0F);\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var10000.field_3417 = null;\r\n if(var1 != null) {\r\n break label71;\r\n }\r\n }\r\n\r\n var11 = this.field_3029 % 10;\r\n }\r\n\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 == 0) {\r\n float var13;\r\n var11 = (var13 = this.method_406() - this.method_405()) == 0.0F?0:(var13 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 < 0) {\r\n this.method_4188(this.method_406() + 1.0F);\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var11 = var10000.field_3028.nextInt(10);\r\n }\r\n\r\n if(var11 == 0) {\r\n float var2 = 32.0F;\r\n List var3 = this.field_2990.method_2157(class_705.class, this.field_3004.method_7097((double)var2, (double)var2, (double)var2));\r\n class_705 var4 = null;\r\n double var5 = Double.MAX_VALUE;\r\n Iterator var7 = var3.iterator();\r\n\r\n while(true) {\r\n if(var7.hasNext()) {\r\n class_705 var8 = (class_705)var7.next();\r\n double var9 = var8.method_3891(this);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n label43: {\r\n double var12 = var9;\r\n if(var1 != null) {\r\n if(var9 >= var5) {\r\n break label43;\r\n }\r\n\r\n var12 = var9;\r\n }\r\n\r\n var5 = var12;\r\n var4 = var8;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.field_3417 = var4;\r\n break;\r\n }\r\n }\r\n\r\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "void mo41086b();", "public boolean[] map(LocusContext context, SAMRecord read) {\n boolean[] errorsPerCycle = new boolean[read.getReadLength() + 1];\n \n byte[] bases = read.getReadBases();\n byte[] contig = context.getReferenceContig().getBases();\n byte[] sq = (byte[]) read.getAttribute(\"SQ\");\n \n int totalMismatches = 0;\n \n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) {\n byte compBase;\n \n switch (contig[offset]) {\n case 'A':\n case 'a': compBase = 'A'; break;\n case 'C':\n case 'c': compBase = 'C'; break;\n case 'G':\n case 'g': compBase = 'G'; break;\n case 'T':\n case 't': compBase = 'T'; break;\n default: compBase = '.'; break;\n }\n \n if (compBase != '.') {\n if (useNextBestBase) {\n int nextBestBaseIndex = QualityUtils.compressedQualityToBaseIndex(sq[cycle]);\n byte nextBestBase;\n switch (nextBestBaseIndex) {\n case 0: nextBestBase = 'A'; break;\n case 1: nextBestBase = 'C'; break;\n case 2: nextBestBase = 'G'; break;\n case 3: nextBestBase = 'T'; break;\n default: nextBestBase = '.'; break;\n }\n \n if (nextBestBase != '.') {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase || nextBestBase == compBase);\n totalMismatches = (!(bases[cycle] == compBase || nextBestBase == compBase)) ? 1 : 0;\n }\n } else {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase);\n totalMismatches += (!(bases[cycle] == compBase)) ? 1 : 0;\n }\n }\n }\n \n /*\n if (totalMismatches > 4) {\n for (int cycle = 0; cycle < bases.length; cycle++) { System.out.print((char) bases[cycle]); } System.out.print(\"\\n\");\n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) { System.out.print((char) contig[offset]); } System.out.print(\"\\n\");\n System.out.println(totalMismatches + \"\\n\");\n }\n */\n\n // We encode that we saw a read in the last position of the array.\n // That way we know what to normalize by, and we get thread safety!\n errorsPerCycle[errorsPerCycle.length - 1] = true;\n \n return errorsPerCycle;\n }" ]
[ "0.53400445", "0.5266308", "0.524114", "0.5225529", "0.5225164", "0.5143072", "0.5100749", "0.5079111", "0.5070107", "0.5059357", "0.50004286", "0.49930352", "0.49858183", "0.49790406", "0.49653476", "0.49637726", "0.4960963", "0.4939201", "0.4936793", "0.4929744", "0.4928319", "0.49189186", "0.49077642", "0.49076837", "0.49076837", "0.48940778", "0.489119", "0.48761693", "0.4875822", "0.4871873", "0.48577148", "0.4852258", "0.48460364", "0.48375043", "0.48362944", "0.48311654", "0.48297238", "0.48077357", "0.48063603", "0.48038477", "0.47839195", "0.47608387", "0.47602892", "0.47573668", "0.47537082", "0.47451866", "0.47421965", "0.4740482", "0.47327363", "0.47280356", "0.47269207", "0.4725414", "0.4725414", "0.4725414", "0.4725414", "0.4725414", "0.4725414", "0.4725414", "0.47218806", "0.47122732", "0.471063", "0.47070786", "0.47041267", "0.47008756", "0.46985894", "0.46890166", "0.46874875", "0.4683869", "0.46780846", "0.4670838", "0.46629527", "0.4661551", "0.46571606", "0.4653923", "0.4653057", "0.4649043", "0.46391687", "0.46347064", "0.46309334", "0.46302167", "0.46292982", "0.46289706", "0.46276", "0.46253917", "0.46248665", "0.46221352", "0.46208116", "0.4619948", "0.46181992", "0.46170187", "0.4616495", "0.46140018", "0.46136275", "0.46117145", "0.46113214", "0.4610485", "0.46096075", "0.46089965", "0.4607097", "0.46062022", "0.46051422" ]
0.0
-1
Put your code here
public void init() throws ServletException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n public void execute() {\n \n \n }", "@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}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void execute() {\n \n }", "protected void execute() {\n\n\n \n }", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n public void perish() {\n \n }", "@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\tprotected void doPre() {\n\t\t\r\n\t}", "public void logic(){\r\n\r\n\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n // TODO Insert awesome here!\n \n }", "void pramitiTechTutorials() {\n\t\n}", "@Override\n protected void execute() {\n \n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }", "@Override\n protected void onPreExecute() {\n\n\n }", "@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}", "@Override\n\t protected void onPreExecute() {\n\t }", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\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}", "public void run() {\n\n }", "@Override\n\tpublic void view() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "public void themesa()\n {\n \n \n \n \n }", "@Override\n public void preRun() {\n super.preRun();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\n protected void onPreExecute() {\n \n }", "@Override\n public void run() {\n \t\n }", "@Override\n\tpublic void onPreExecute()\n\t{\n\t\t\n\t}", "@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}", "public void ganar() {\n // TODO implement here\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected void execute() {\n\n\t}", "@Override\n\tpublic void postRun() {\n\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}", "@Override\n public void feedingHerb() {\n\n }", "@Override\r\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected void display() {\n\r\n\t}", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void run(){\n }", "@Override\n public void Execute() {\n\n }", "@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}", "public static void generateCode()\n {\n \n }" ]
[ "0.5977403", "0.5899802", "0.58468777", "0.58468777", "0.5833966", "0.58169836", "0.5769323", "0.57639146", "0.57394433", "0.57335854", "0.57162195", "0.57096714", "0.5698843", "0.5690859", "0.5673046", "0.5651847", "0.5647382", "0.5640211", "0.5638415", "0.5638415", "0.5626334", "0.5621884", "0.56160563", "0.5615725", "0.56109154", "0.5607041", "0.5594874", "0.559477", "0.5572286", "0.5572286", "0.5572286", "0.5572286", "0.5572286", "0.5572286", "0.5572286", "0.5572286", "0.5572286", "0.5568254", "0.5568112", "0.5561885", "0.5548089", "0.55446637", "0.55446637", "0.55391806", "0.55391806", "0.5534809", "0.5529885", "0.5527619", "0.5515717", "0.55155694", "0.55100757", "0.55068314", "0.5496006", "0.5496006", "0.5496006", "0.5495508", "0.54945076", "0.549169", "0.5487634", "0.5485654", "0.54855585", "0.5482597", "0.54736733", "0.5469367", "0.546884", "0.54682976", "0.54682976", "0.5458183", "0.5457544", "0.5454107", "0.5453738", "0.5442541", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.54345304", "0.5431911", "0.5431911", "0.5431911", "0.5431911", "0.5431911", "0.5431911", "0.5431911", "0.542781", "0.542781", "0.5426075", "0.54155797", "0.5415388", "0.541248" ]
0.0
-1
THIS METHOD SHOULD BE CALLED IN THE METHOD computeFitness BEFORE ALL THE SIMULATIONS START.
public void setPredatorsWeights(double[] weights) { int k = 0; for (Predator predator : predators) { predator.setWeights(weights, k); if(controller == ControllerType.HETEROGENEO){ k += (weights.length/predators.size()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "void ComputeFitness(){\n\t\tint i, pos;\n\t\t// individual t;\n\t\tdouble min, sum = 0, sumSize = 0, tm;\n\t\t// First Compute Raw fitness\n\t\tfor(i = 0; i < poplen; i++)\n\t\t{\n\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t}\n\t\t\t\n\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t}\n\t\t//tim individual co fitness be nhat\n\t\tmin = oldpop[0].fitness;\n\t\tpos = 0;\n\t\tsum = oldpop[0].fitness;\n\t\tsumSize = oldpop[0].size;\n\t\t\n\t\tfor(i = 1; i < poplen; i++) {\n\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\tmin = oldpop[i].fitness;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t\tsum += oldpop[i].fitness;\n\t\t\tsumSize += oldpop[i].size;\n//\t\t\tpopSize[gen][i]= oldpop[i].size;\n\t\t}\n\t\t// copy the best and average\n\t\tbestcurrent[gen] = new individual();\n\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n\t\taverage[gen] = sum /poplen;\n\t\taverageSize[gen] = sumSize /poplen;\n\t\t// Third Compute Adjusted fitness\n\t\tAdjustFitness();\n\t\t// Finally Compute nomarlized fitness\n \t\tNormalizeFitness();\n\t}", "public abstract double evaluateFitness();", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "public void fitnessFunction()\n\t{\n\t\t\n\t}", "void ComputeFitnessBefore(){\n\t\t\t\tint i, pos;\n\t\t\t\t// individual t;\n\t\t\t\tdouble min, sum = 0, tm;\n\t\t\t\t// First Compute Raw fitness\n\t\t\t\tfor(i = 0; i < poplen; i++)\n\t\t\t\t{\n\t\t\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t\t\t}\n\t\t\t\t//tim individual co fitness be nhat\n\t\t\t\tmin = oldpop[0].fitness;\t\t\t\n\t\t\t\tsum = oldpop[0].fitness;\t\t\t\n\t\t\t\t\n\t\t\t\tfor(i = 1; i < poplen; i++) {\n\t\t\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\t\t\tmin = oldpop[i].fitness;\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tsum += oldpop[i].fitness;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// copy the best and average\n//\t\t\t\tbestBeforeFitness[gen]=min;\n//\t\t\t\tavgBeforeFitness[gen]=sum/poplen;\n//\t\t\t\tbestcurrent[gen] = new individual();\n//\t\t\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n//\t\t\t\taverage[gen] = sum /poplen;\t\t\t\n\t\t\t\t\n\t\t\t}", "public abstract void updateFitness();", "protected float getFitness()\t\t\t{\treturn fitness;\t\t}", "private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }", "public void incrementFitness()\n {\n this.fitness++;\n }", "public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }", "protected void setFitness(float fit)\t{\tfitness = fit;\t\t}", "@Override\r\n\t\t\tpublic void populationUpdate(PopulationData<? extends Solution> data) {\n//\t\t\t\tbuffer.append(data.getPopulationSize());\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tdouble fit = data.getBestCandidateFitness();\r\n//\t\t\t\tSystem.out.println(fit);\r\n\t\t\t\tbuffer.delete(0, buffer.length());\r\n\t\t\t\tbuffer.append(fit);\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tif (Run10FastExternalizer.initialFitness.getDbl() == -1.0) {\r\n\t\t\t\t\tRun10FastExternalizer.initialFitness.setDbl(fit);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fit == 0.0){\r\n\t\t\t\t\tArrayList<Student> studentsCopy = new ArrayList<>();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: students){\r\n\t\t\t\t\t\tstudentsCopy.add(student.clone());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: studentsCopy){\r\n\t\t\t\t\t\tstudent.register(data.getBestCandidate().getBlocks());\r\n//\t\t\t\t\t\tSystem.out.println(student.getSchedule());\r\n//\t\t\t\t\t\tbuffer.append(student.getSchedule().toString());\r\n//\t\t\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\t\tsb.append(student.getSchedule().toString());\r\n\t\t\t\t\t\tsb.append(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tsuperValue = sb.toString();\r\n\t\t\t\t}\r\n\t\t\t}", "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts();\n\n\t\t// Convert to a weighted percentage.\n\t\tbestScore = worstScore - population.get(minimum()).conflicts();\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tthisChromo = population.get(i);\n\t\t\tthisChromo.fitness((worstScore - thisChromo.conflicts()) * 100.0 / bestScore);\n\t\t}\n\n\t\treturn;\n\t}", "void calcFittest(){\n System.out.println(\"Wall hugs\");\n System.out.println(this.wallHugs);\n\n System.out.println(\"Freedom points\");\n System.out.println(this.freedomPoints);\n\n System.out.println(\"Visited points\");\n System.out.println(this.vistedPoints);\n\n this.fitnessScore = freedomPoints - wallHugs - vistedPoints;\n System.out.println(\"Individual fit score: \" + fitnessScore);\n }", "protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\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\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "private void calculateFitness() {\n\t\tint day1=this.getNumberOfHours()*this.getNumberOfClasses();\n\t\tint day2=2*day1;\n\t\tint day3=3*day1;\n\t\tint day4=4*day1;\n\t\tint day5=5*day1;\n\t\tTeacher_lesson temp=null;\n\t\t//day 1//\n\t\tHashSet<Integer> closedSet=new HashSet<Integer>();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<day1;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day1;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t\t//day2//\n\t\tclosedSet.clear();;\n\t\t\n\t\tfor(int i=day1;i<day2;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day2;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day3//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day2;i<day3;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day3;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//day4//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day3;i<day4;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day4;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\t\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day5//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day4;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t\t\t\n\t\t}\n\t\t\t/*if(temp.get_td_hour()<0){this.fitness=this.fitness-100;}//adunato na ginei giati o ka8igitis exei parapanw wres apo oti mporei na kanei//\n\t\t\t\telse if (temp.get_td_hour()==0){this.fitness=this.fitness-2;}//meiwnoume giati o ka8igitis 8a epivarin8ei oles tou tis wres thn idia mera//\n\t\t\t\telse{++this.fitness;}//kalh prosegisi*/\n\t\t}\n\t\t//*********************END OF DAILY EVALUATION*****************************//\n\t\t\n\t\t//**********************START OF WEEKLY EVALUATION************************//\n\t\t\n\t\tclosedSet.clear();\n\t\t\n\t int \t_weeklyhours = 1;\n\t \n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tif(!closedSet.contains(this.genes[i])){\n\t\t\t\t\n\t\t\t\n\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\t\t++_weeklyhours; }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t/*if(_weeklyhours>temp.get_tw_hour()){\n\t\t\t\tthis.fitness=this.fitness-100 ; //adunato na kanei parapanw wres ma8hma//\n\t\t\t}else\n\t\t\t\t{++this.fitness;}*/\n\t\t\tif(_weeklyhours<temp.get_tw_hour()){++this.fitness;}\n\t\t\tclosedSet.add(this.genes[i]);}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//*************END OF WEEKLY EVALUATION**********//\n\t\n\t\t//**START OF LESSON EVALUATION***//\n\t\tArraylistLesson set=new ArraylistLesson();\n\t\tclass_lid templ=null;\n\t\tTeacher_lesson tempj=null;\n\t\tint lid=0;\n\t\tString _class;\n\t\tint _classhours=1;\n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tlid=temp.get_lid();\n\t\t\t_class=temp.get_class();\n\t\t\ttempl=new class_lid(lid,_class);\n\t\t\tif(!set.contains(templ)){\n\t\t\t\t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\t\ttempj=getdata(this.genes[j]);{\n\t\t\t\t\t\tif(tempj!=null){\n\t\t\t\t\t\t\tif(temp.get_tid()==tempj.get_tid()){\n\t\t\t\t\t\t\t\tif(temp.get_lid()==tempj.get_lid()&&temp.get_class().equalsIgnoreCase(tempj.get_class())){\n\t\t\t\t\t\t\t\t\t++_classhours;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tint hours;\n\t\t\t\thours=temp.get_lhours();\n\t\t\t\n\t\tif(_classhours==hours){\n\t\t\t++this.fitness;\n\t\t}\n\t\tset.add(templ);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }", "public void setFitness(int fit)\n {\n this.fitness=fit;\n }", "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "@Override\n public void computeSatisfaction() {\n\n }", "protected float calcFitness(Individual ind) {\n\t\t\tdouble w = (double) ind.getWait();\n\t\t\tdouble g = (double) ind.getMove();\n\t\t\treturn (float) (g/(w+g));\n\t\t}", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }", "public void evaluate()\r\n {\r\n\tdouble max = ff.evaluate(chromos.get(0),generation());\r\n\tdouble min = max;\r\n\tdouble sum = 0;\r\n\tint max_i = 0;\r\n\tint min_i = 0;\r\n\r\n\tdouble temp = 0;\r\n\r\n\tfor(int i = 0; i < chromos.size(); i++)\r\n\t {\r\n\t\ttemp = ff.evaluate(chromos.get(i),generation());\r\n\t\tif(temp > max)\r\n\t\t {\r\n\t\t\tmax = temp;\r\n\t\t\tmax_i = i;\r\n\t\t }\r\n\r\n\t\tif(temp < min)\r\n\t\t {\r\n\t\t\tmin = temp;\r\n\t\t\tmin_i = i;\r\n\t\t }\r\n\t\tsum += temp;\r\n\t }\r\n\r\n\tbestFitness = max;\r\n\taverageFitness = sum/chromos.size();\r\n\tworstFitness = min;\r\n\tbestChromoIndex = max_i;;\r\n\tworstChromoIndex = min_i;\r\n\tbestChromo = chromos.get(max_i);\r\n\tworstChromo = chromos.get(min_i);\r\n\t\r\n\tevaluated = true;\r\n }", "private void runBest() {\n }", "public void findTotalFit() {\n\tfor (int i=0;i<popSize;i++) {\n\t totalFitness+=this.getFitness(i);\n\t}\n }", "public int getFitness(){\n return fitness;\n }", "private static void calculateFitnessOfPopulation(ArrayList<Chromosome> population) {\n for (Chromosome chromosome : population) {\n // if the fitness of the chromosome has not yet been calculated (i.e. is still -1)\n fitnessFunction(chromosome);\n }\n }", "public void updateFitness() {\n Particle p;\n for (int i = 0; i < SWARM_SIZE; i++) {\n p = swarm.get(i);\n p.setFitnessValue(getFitnessValue(p.getVector().getPos()));\n p.setpBestFitness(getFitnessValue(p.getpBest().getPos()));\n }\n }", "public void evaluatePopulation() {\n // reset the total fitness score\n totalFitness = 0;\n\n for (int i = 0; i < populationSize; i++) {\n population.get(i).setRawFitness(\n FeederCollection.getFeeders().get(i).GetFitness());\n totalFitness += population.get(i).getRawFitness();\n }\n\n // set the normalized fitness for each population member\n for (Genotype g : population) {\n // normalized fitness = raw fitness / total fitness\n g.setNormalizedFitness((g.getRawFitness() / totalFitness));\n }\n\n // sort the popoulation\n Collections.sort(population, Genotype.FitnessOrder);\n\n highFitnesses.add(population.get(0).getRawFitness());\n avgFitnesses.add(totalFitness / population.size());\n\n\n }", "public void setFitness(double fit) {\n fitness = fit;\n }", "private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }", "public void setFitness(int f){\n this.fitness = f;\n }", "public ArrayList execute() {//(MultivariateFunction func, double[] xvec, double tolfx, double tolx) \n num_Function_Evaluation = 0;\n double[] stat = {0.0, 0.0};\n double[] storeBest = null;\n double[] storeMean = null;\n double[] storeStd = null;\n if (isOptimization) {\n storeBest = new double[101];\n storeMean = new double[101];\n storeStd = new double[101];\n //System.out.println(\"Initialization Done\");\n }\n int storeIndex = 0;\n\n //f = func;\n //bestSolution = xvec;\n // Create first generation\n firstGeneration();\n //System.out.println(iRet+\" \"+returnResult[iRet]);\n //stopCondition(fx, bestSolution, tolfx, tolx, true);\n\n //main iteration loop\n while (true) {\n boolean xHasChanged;\n do {\n //printing steps\n if (isPrintSteps) {\n if (currGen % printStep == 0) {\n if (isOptimization) {\n if (storeIndex < 101) {\n storeBest[storeIndex] = fx;\n stat = computFitnessStat();\n storeMean[storeIndex] = stat[0];\n storeStd[storeIndex] = stat[1];\n storeIndex++;\n }\n }\n System.out.printf(\" MH algo It: %5d Best: %.9f Mean: %.9f Std: %.9f \\n\", currGen, fx, stat[0], stat[1]);\n }//printsteps\n }//isPrintSteps\n\n xHasChanged = nextGeneration();\n if (currGen >= maxIter) {//if (maxFun > 0 && numFun > maxFun)\n break;\n }\n //if (prin > 1 && currGen % 20 == 0)\n //printStatistics();\n } while (!xHasChanged);\n //if (stopCondition(fx, bestSolution, tolfx, tolx, false) || (maxFun > 0 && numFun > maxFun))\n if (currGen >= maxIter) {\n break;\n }\n if (fx < 0.0000001) {\n //System.out.println(\"treshold\" + fx);\n //break;\n }\n }//while\n //printing final step\n if (isPrintFinal) {\n if (isOptimization) {\n if (storeIndex < 101) {\n storeBest[storeIndex] = fx;\n stat = computFitnessStat();\n storeMean[storeIndex] = stat[0];\n storeStd[storeIndex] = stat[1];\n storeIndex++;\n }\n }\n System.out.printf(\" MH algo It: %5d Best: %.9f Mean: %.9f Std: %.9f \\nTotal Fun Evaluations: %d\\n\", currGen, fx, stat[0], stat[1], num_Function_Evaluation);\n }\n ArrayList array = new ArrayList();\n array.add(storeBest);\n array.add(storeMean);\n array.add(storeStd);\n return array;\n }", "public void run() {\n\n long startTime = System.nanoTime();\n\n /*\"*********************************\n * Getting data from the algorithm *\n ***********************************/\n\n // Posterior values, get them from memory instead of propagating again. Since this method is called write,\n // it should only write.\n HashMap<Variable, TablePotential> results = algorithm.getLastPosteriorValues();\n\n // Samples\n double[][] sampleStorage;\n try {\n sampleStorage = algorithm.getSamples();\n if (sampleStorage.length == 0) { // Case of empty database\n throw new NullPointerException();\n }\n\n } catch (NullPointerException e) { // Case of empty database and no database\n logger.error(\"No samples found to write\");\n LocalizedException NoDatabaseException =\n new LocalizedException(new OpenMarkovException(\"Exception.NoDatabase\"), this.dialog);\n NoDatabaseException.showException();\n return;\n }\n\n // Variables\n List<Variable> sampledVariables = algorithm.getVariablesToSample();\n\n // The maximum number of states defines the number of columns of the second sheet in Excel.\n int maxNStates = 0;\n for (Variable variable : sampledVariables) {\n if (variable.getNumStates() > maxNStates) {\n maxNStates = variable.getNumStates();\n }\n }\n\n // Evidence variables\n EvidenceCase evidence = algorithm.getFusedEvidence();\n List<Variable> evidenceVariables = evidence.getVariables();\n\n // Time measuring for this phase\n long elapsedMS = (System.nanoTime() - startTime) / 1000000;\n logger.info(\"Data obtained from the algorithm: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Data obtained from the algorithm: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"***********************\n * Creating the workbook *\n *************************/\n\n SXSSFWorkbook workbook = new SXSSFWorkbook(1000);\n\n /* Styles */\n\n // Styles to convey graphically the weight\n\n // Weight = 0\n XSSFCellStyle incompatibleSample = (XSSFCellStyle) workbook.createCellStyle();\n incompatibleSample.setFillForegroundColor(new XSSFColor(INCOMPATIBLE_SAMPLE));\n incompatibleSample.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n // Weight = 1\n XSSFCellStyle compatibleSample = (XSSFCellStyle) workbook.createCellStyle();\n compatibleSample.setFillForegroundColor(new XSSFColor(COMPATIBLE_SAMPLE));\n compatibleSample.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\n /// Font with big emphasis for the next styles\n XSSFFont bigBoldArial = (XSSFFont) workbook.createFont();\n bigBoldArial.setFontName(\"Arial\");\n bigBoldArial.setFontHeightInPoints((short) 11);\n bigBoldArial.setBold(true);\n\n // Header of table\n XSSFCellStyle topTable = (XSSFCellStyle) workbook.createCellStyle();\n\n topTable.setFillForegroundColor(new XSSFColor(HEADER_COLOR));\n topTable.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n topTable.setAlignment(HorizontalAlignment.LEFT);\n topTable.setFont(bigBoldArial);\n\n // Header of table centered\n XSSFCellStyle centeredTopTable = (XSSFCellStyle) workbook.createCellStyle();\n\n centeredTopTable.setFillForegroundColor(new XSSFColor(HEADER_COLOR_2));\n centeredTopTable.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n centeredTopTable.setAlignment(HorizontalAlignment.CENTER);\n centeredTopTable.setFont(bigBoldArial);\n\n\n /// Font with some emphasis\n XSSFFont bigArial = (XSSFFont) workbook.createFont();\n bigArial.setFontName(\"Arial\");\n bigArial.setFontHeightInPoints((short) 10);\n bigArial.setBold(true);\n\n // Chance node\n XSSFCellStyle chanceNode = (XSSFCellStyle) workbook.createCellStyle();\n\n chanceNode.setFillForegroundColor(new XSSFColor(CHANCE_NODE_COLOR));\n chanceNode.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n chanceNode.setFont(bigArial);\n\n // Algorithm name\n XSSFCellStyle subTopTable = (XSSFCellStyle) workbook.createCellStyle();\n\n subTopTable.setFont(bigArial);\n\n\n /// Font with some emphasis and white for contrast\n XSSFFont bigWhiteArial = (XSSFFont) workbook.createFont();\n bigWhiteArial.setFontName(\"Arial\");\n bigWhiteArial.setFontHeightInPoints((short) 11);\n bigWhiteArial.setColor(new XSSFColor(new Color(255, 255, 255)));\n\n // Node with finding\n XSSFCellStyle findingNode = (XSSFCellStyle) workbook.createCellStyle();\n\n findingNode.setFillForegroundColor(new XSSFColor(FINDING_NODE_COLOR));\n findingNode.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n findingNode.setFont(bigWhiteArial);\n\n\n\n // No more than four decimal places\n XSSFCellStyle smartDecimals = (XSSFCellStyle) workbook.createCellStyle();\n smartDecimals.setDataFormat(workbook.createDataFormat().getFormat(\"0.0000\"));\n\n // No more than two decimal places\n XSSFCellStyle smartFewDecimals = (XSSFCellStyle) workbook.createCellStyle();\n smartFewDecimals.setDataFormat(workbook.createDataFormat().getFormat(\"0.##\"));\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Workbook styles created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Workbook styles created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"******************\n * Sheet of samples *\n ********************/\n SXSSFSheet samples = workbook.createSheet(dialog.stringDatabase.getString(\"SheetNames.Samples\"));\n\n /* Title row */\n Row titlesRow = samples.createRow(0);\n titlesRow.createCell(0).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.SampleN\"));\n for (int colNum = 1; colNum < sampledVariables.size() + 1; colNum++) { // Names of variables\n titlesRow.createCell(colNum).setCellValue(sampledVariables.get(colNum - 1).toString());\n }\n titlesRow.createCell(sampledVariables.size() + 1).setCellValue(dialog.stringDatabase.\n getString(\"ColumnTitles.Weight\"));\n\n // Apply header style\n for (int colNum = 0; colNum < sampledVariables.size() + 2; colNum++) {\n titlesRow.getCell(colNum).setCellStyle(topTable);\n }\n\n // Auto-size columns of first sheet\n for (int colNum = 0; colNum < sampledVariables.size() + 2; colNum++) {\n samples.trackAllColumnsForAutoSizing();\n samples.autoSizeColumn(colNum);\n }\n\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Header of samples sheet: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Header of samples sheet: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /* Sample's rows */\n int rowNum;\n\n // Sample's loop\n for (rowNum = 1; rowNum < algorithm.getSampleSize() + 1; rowNum++) {\n\n Row sampleRow = samples.createRow(rowNum);\n sampleRow.createCell(0).setCellValue(rowNum);\n double weight = sampleStorage[rowNum - 1][sampledVariables.size()];\n for (int colNum = 1; colNum < sampledVariables.size() + 2; colNum++) { // Sampled states\n sampleRow.createCell(colNum).setCellValue(sampleStorage[rowNum - 1][colNum - 1]);\n if (weight == 0) {\n sampleRow.getCell(colNum).setCellStyle(incompatibleSample);\n } else {\n sampleRow.getCell(colNum).setCellStyle(compatibleSample);\n }\n }\n }\n\n\n\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Sample rows created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Sample rows created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"************************\n * Sheet of general stats *\n **************************/\n\n SXSSFSheet generalStats = workbook.createSheet(dialog.stringDatabase.getString(\"SheetNames.GeneralStats\"));\n\n /* Rows of algorithm data */\n\n rowNum = 0;\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.Algorithm\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(dialog.algorithmName);\n generalStats.getRow(rowNum).getCell(1).setCellStyle(subTopTable);\n\n rowNum++; // Row 1\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.TotalSamples\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getSampleSize());\n\n rowNum++; // Row 2\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.RuntimePerSample\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).\n setCellValue(algorithm.getAlgorithmExecutionTime()/algorithm.getSampleSize());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartDecimals);\n\n rowNum++; // Row 3\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.Runtime\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).\n setCellValue(algorithm.getAlgorithmExecutionTime());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartFewDecimals);\n\n rowNum++; // Row 4\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.ValidSamples\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getNumPositiveSamples());\n\n rowNum++; // Row 5\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.AccumulatedWeight\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getAccumulatedWeight());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartFewDecimals);\n\n rowNum++; // Row 6\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.ExactAlgorithmName\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(dialog.stringDatabase.getString(\"Algorithms.Hugin\"));\n\n // Empty row\n\n rowNum +=2; // rows written until now\n\n /* Row of titles */\n titlesRow = generalStats.createRow(rowNum);\n titlesRow.createCell(0).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.Variable\"));\n\n // Big long cell for state names\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n titlesRow.createCell(1).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.States\"));\n\n // Set header style\n for (int colNum = 0; colNum < 2; colNum++) {\n titlesRow.getCell(colNum).setCellStyle(centeredTopTable);\n }\n\n // Empty row for clarity\n if (evidenceVariables.size() > 0) {\n rowNum++ ;\n }\n\n // Write about evidence variables that have not been sampled\n for (Variable evidenceVariable : evidenceVariables) {\n if (!sampledVariables.contains(evidenceVariable)) {\n\n /* Row of names */\n Row namesRow = generalStats.createRow(rowNum);\n // Write the name of the variable\n Cell variableName = namesRow.createCell(0);\n variableName.setCellValue(evidenceVariable.toString());\n variableName.setCellStyle(findingNode); // The color marks it as a finding\n\n // and then the names of their states\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n Cell stateName = namesRow.createCell(colNum);\n stateName.setCellValue(evidenceVariable.getStateName(colNum - 1));\n stateName.setCellStyle(findingNode);\n }\n\n /* Row of occurrences */\n // Write \"non-sampled\"\n Row occurrencesRow = generalStats.createRow(rowNum + 1);\n Cell nSamples = occurrencesRow.createCell(0);\n nSamples.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Ocurrences\"));\n\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n occurrencesRow.createCell(colNum)\n .setCellValue(dialog.stringDatabase.getString(\"NonSampled\"));\n }\n\n /* Row of finding */\n // Write the finding\n Row approxProbsRow = generalStats.createRow(rowNum + 2);\n Cell approximateProbs = approxProbsRow.createCell(0);\n approximateProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Finding\"));\n\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n int value = 0;\n if (evidence.getState(evidenceVariable) == colNum - 1) {\n value = 1;\n }\n approxProbsRow.createCell(colNum).setCellValue(value);\n }\n\n // Empty row\n Row emptyRow = generalStats.createRow(rowNum + 4);\n emptyRow.setHeight((short) 120);\n\n rowNum += 4; // Go to the next variable (each variable uses 4 rows)\n }\n }\n\n rowNum++; // Empty row for clarity.\n\n // Write sampled variables\n for (int variablePosition = 0; variablePosition < sampledVariables.size(); variablePosition++) {\n\n Variable variableToWrite = sampledVariables.get(variablePosition);\n\n /* Row of names */\n Row namesRow = generalStats.createRow(rowNum);\n // Write the name of the variable\n Cell variableName = namesRow.createCell(0);\n variableName.setCellValue(sampledVariables.get(variablePosition).toString());\n\n // and then the names of its states\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n Cell stateName = namesRow.createCell(colNum);\n stateName.setCellValue(variableToWrite.getStateName(colNum - 1));\n }\n\n // In logical sampling, evidence variables are samples. If so, mark them as findings.\n if (evidenceVariables.contains(variableToWrite)) {\n for (int colNum = 0; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n namesRow.getCell(colNum).setCellStyle(findingNode);\n }\n } else {\n for (int colNum = 0; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n namesRow.getCell(colNum).setCellStyle(chanceNode);\n }\n }\n\n /* Row of occurrences */\n Row occurrencesRows = generalStats.createRow(rowNum + 1);\n // Write the title of the row\n Cell nSamples = occurrencesRows.createCell(0);\n nSamples.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Ocurrences\"));\n // Write how many times each state has been sampled\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n occurrencesRows.createCell(colNum)\n .setCellValue(getStateOccurrences(sampleStorage, variablePosition,colNum - 1));\n }\n\n /* Row of approximate probabilities */\n Row approxProbsRow = generalStats.createRow(rowNum + 2);\n // Write the title of the row\n Cell approximateProbs = approxProbsRow.createCell(0);\n approximateProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.ApproximateProbability\"));\n // Write the sampled probability\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n if (evidenceVariables.contains(variableToWrite)) {\n // Logic Sampling: in case of a sampled evidence variable, probability = 1 for the finding.\n int value = 0;\n if (evidence.getState(variableToWrite) == colNum - 1) {\n value = 1;\n }\n approxProbsRow.createCell(colNum).setCellValue(value);\n\n } else {\n approxProbsRow.createCell(colNum)\n .setCellValue(results.get(variableToWrite).getValues()[colNum - 1]);\n }\n approxProbsRow.getCell(colNum).setCellStyle(smartDecimals);\n }\n\n\n /* Row of exact probabilities */\n Row exactProbsRow = generalStats.createRow(rowNum + 3);\n // Write the title of the row\n Cell exactProbs = exactProbsRow.createCell(0);\n exactProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.ExactProbability\"));\n // Write how many times each state has been sampled\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n exactProbsRow.createCell(colNum)\n .setCellValue(exactPosteriorValues.get(variableToWrite).getValues()[colNum - 1]);\n exactProbsRow.getCell(colNum).setCellStyle(smartDecimals);\n }\n\n // Empty row\n Row emptyRow = generalStats.createRow(rowNum + 4);\n emptyRow.setHeight((short) 120);\n\n rowNum += 5; // Go to the next variable (each variable uses 5 rows)\n\n }\n\n // Auto-size columns of second sheet (variable column + states columns)\n for (int colNum = 0; colNum <= 1 + maxNStates; colNum++) {\n generalStats.trackAllColumnsForAutoSizing();\n generalStats.autoSizeColumn(colNum);\n }\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"General stats added: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"General stats added: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"*****************\n * Output the file *\n *******************/\n try {\n FileOutputStream outputStream = new FileOutputStream(fileName);\n workbook.write(outputStream);\n // remember to close\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n LocalizedException OutputException =\n new LocalizedException(new OpenMarkovException(\"Exception.Output\"), this.dialog);\n OutputException.showException();\n }\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Writing done: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Writing done: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n String conclusion = dialog.stringDatabase.getString(\"Conclusion\") + \"\\n\" + fileName;\n logger.info(conclusion);\n System.out.println(conclusion);\n JOptionPane.showMessageDialog(dialog, conclusion,\n dialog.stringDatabase.getString(\"ConclusionTitle\"), JOptionPane.DEFAULT_OPTION);\n }", "@Test\n public void applyFitness() {\n final List<TrainingListener> listeners = new ArrayList<>();\n final MockModel model = new MockModel() {\n @Override\n public void setListeners(Collection<TrainingListener> listenersToSet) {\n listeners.clear();\n listeners.addAll(listenersToSet);\n }\n\n @Override\n public void addListeners(TrainingListener... listener) {\n listeners.addAll(Stream.of(listener).collect(Collectors.toList()));\n }\n\n @Override\n public long numParams() {\n return (long)(5* 1e4);\n }\n\n @Override\n public double score() {\n return 1.23451234;\n }\n };\n final FitnessPolicy<ModelAdapter> policy = new FitnessPolicyTraining<>(3);\n final double[] measuredScore = {-1};\n\n policy.apply(new ModelAdapter() {\n @Override\n public void fit(DataSetIterator iter) {\n throw new UnsupportedOperationException(\"Not implemented!\");\n }\n\n @Override\n public <T extends IEvaluation> T[] eval(DataSetIterator iter, T... evals) {\n throw new UnsupportedOperationException(\"Not implemented!\");\n }\n\n @Override\n public Model asModel() {\n return model;\n }\n }, fitness -> measuredScore[0] = fitness);\n\n assertEquals(\"Incorrect number of training listeners\", 1, listeners.size());\n\n // Bleh! Hardcoded knowledge of TrainingListener implementation!\n listeners.forEach(listener -> listener.iterationDone(model, 0, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"No fitness shall have been reported!\", -1d, measuredScore[0], 1e-10);\n\n listeners.forEach(listener -> listener.iterationDone(model, 1, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"No fitness shall have been reported!\", -1d, measuredScore[0], 1e-10);\n\n listeners.forEach(listener -> listener.iterationDone(model, 2, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"Incorrect fitness!\", 1.235005, measuredScore[0], 1e-10);\n }", "public int getFitness()\n {\n return this.fitness;\n }", "public Vector run(){\n generationCount = 0;\n solutionList = new Vector();\n bannedList = new Vector();\n solutionCounter = 0;\n whenToHalt.init();\n //INITIALIZE THE POPULATION\n\n population = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n fitnessArray = new double[populationSize];\n //COMPUTE FITNESSES\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) population.get(x);\n fitnessArray[x] = next.getFitness();\n }\n\n Arrays.sort(fitnessArray);\n\n while (! stop()){\n //RUN THROUGH THE GENERATIONS\n population = step();\n }\n\n if (useList){\n return solutionList;\n } else {\n return population;\n }\n }", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }", "public double calcFitness(int[] genes) {\n\t\treturn 0;\n\t}", "double CalculateFitness(double fun) \n\t {\n\t\t double result=0;\n\t\t if(fun>=0)\n\t\t {\n\t\t\t result=1/(fun+1);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t \n\t\t\t result=0;\n\t\t }\n\t\t return result;\n\t }", "private Vector step(){\n// System.out.println();\n// System.out.println(generationCount);\n// System.out.println(\"The Population is:\");\n// System.out.println(population);\n \n //DETERMINE WHO SURVIVES INTO NEXT GENERATION\n Vector nextGeneration = surviveType.run(population, fitnessArray);\n\n //DO THE CROSSOVER PROCESS\n //WHILE THE NEXT GENERATION ISN'T FULL\n while (nextGeneration.size() < (populationSize - randGenes)){\n //FIND PARENTS\n Gene parentOne, parentTwo;\n do {\n Gene[] parents = selectType.run(population, fitnessArray);\n parentOne = parents[0];\n parentTwo = parents[1];\n } while (selectPairs && (! closeEnough(parentOne, parentTwo)));\n //ADD CHILDREN\n Gene[] kids = crossType.children(parentOne, parentTwo);\n\n nextGeneration.add(kids[0]);\n if (nextGeneration.size() < (populationSize - randGenes)){\n nextGeneration.add(kids[1]);\n }\n }\n //ADD RANDOM GENES TO THE POPULATION\n while (nextGeneration.size() < populationSize){\n nextGeneration.add(initializer.createRandomGene(fitnessFunction, minRadius, maxRadius));\n }\n //MUTATE THE NEXT GENERATION\n for (int j = 0; j < populationSize; j++){\n if (Math.random() < mutationProb){\n nextGeneration.set(j, mutationType.run((Gene) nextGeneration.get(j)));\n }\n }\n\n //COMPUTE FITNESSES AND RELOCATE IF NECESSARY\n Gene bestGene = (Gene) nextGeneration.get(0);\n int bestX = 0;\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) nextGeneration.get(x);\n while (relocationType.move(bannedList, next)){\n Gene newGene = initializer.createRandomGene(fitnessFunction, minRadius, maxRadius);\n next = newGene;\n nextGeneration.set(x, next);\n }\n fitnessArray[x] = next.getFitness();\n\n //FOR THE PURPOSES OF UPDATING THE BANNED LIST\n if (next.getFitness() > bestGene.getFitness()){\n bestGene = next;\n bestX = x;\n }\n } //End for (int x = 0;...\n\n Arrays.sort(fitnessArray);\n\n //UPDATE THE BANNED LIST BY ADDING THE BEST GENE IN THE NEXT GENERATION IF IT'S ABOVE minAccepted AND CONTAINS MORE THAN minPoints POINTS\n if (useList){\n if ((generationCount >= firstAdd) &&\n (solutionCounter >= countNum) &&\n (bestGene.getFitness() >= minAccepted) &&\n (bestGene.getCount() >= minPoints)){\n solutionCounter = 0;\n// System.out.println(bestGene);\n Gene bestClone = new Gene (bestGene.getMajorAxisRadius(), //THIS KLUDGE IS DONE B/C .clone() IS\n bestGene.getMinorAxisRadius(), //PROTECTED, AND I CAN'T UNPROTECT IT.\n bestGene.getX(), //I USE A CLONED GENE TO PREVENT A MUTATION\n bestGene.getY(), //IN THE NEXT GENERATION FROM ALTERING bannedList\n bestGene.getOrientation(),\n bestGene.getFunction());\n bannedList = relocationType.updateBannedList(bannedList, bestClone);\n\n\n //IF NECESSARY, UPDATE THE SOLUTION LIST BY ADDING ALL CLUSTERS WITH MORE THAN minPoints POINTS AND A FITNESS OF AT LEAST minAccepted\n if (returnAllSolutions){\n for (int i = 0; i < populationSize; i++){\n Gene next = (Gene) nextGeneration.get(i);\n if ((next.getFitness() >= minAccepted) && (next.getCount() >= minPoints)){\n solutionList.add(next);\n }\n }//End for (int i = 0...\n } else {\n solutionList = bannedList;\n } //End if (returnAllSolutions){...}else{\n } //End if (generationCount > 4...\n } //End if (useList){\n\n generationCount = generationCount + 1;\n solutionCounter = solutionCounter + 1;\n\n //IF AVOIDING CONVERGENCE, AND IT HAS CONVERGED, START OVER WITH RANDOM GENES\n\n double bestFitness = bestGene.getFitness();\n double medianFitness = roundToHundredths((double) fitnessArray[(int) Math.floor(populationSize / 2)]);\n\n// System.out.println(bestFitness);\n// System.out.println(medianFitness);\n\n if ((antiConvergence) &&\n ((bestFitness - medianFitness) < (0.01 * bestFitness)) &&\n (generationCount > firstAdd)){\n nextGeneration = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n// System.out.println(\"EXPLODED CONVERGENCE!\");\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) nextGeneration.get(x);\n fitnessArray[x] = next.getFitness();\n }\n Arrays.sort(fitnessArray);\n }\n\n return nextGeneration;\n }", "public float getFitness()\r\n\t{\r\n\t\treturn fitness;\r\n\t}", "public void rodaAleatorio()\r\n {\r\n // Carrega os dados\r\n String ArqBD = \"Dados/Base\" + NUM_DB + \"/DADOS\" + NUM_PROV + \"x\" + NUM_PIS + \".txt\";\r\n String ArqReq = \"Requisicoes/Base\" + NUM_DB + \"/REQ\" + NUM_REQ + \"_\" + NUM_PIS + \".txt\";\r\n AvaliaFitness af = new AvaliaFitness(ArqBD, ArqReq);\r\n //af.imprime();\r\n \r\n // Variaveis\r\n int i, numIt, NUM_VARS = af.getBase_dados().getNumProvedores();\r\n long tempoInicial, tempoFinal;\r\n IndividuoBin atual;\r\n IndividuoBin melhor; \r\n IndividuoBin[] eleitos = new IndividuoBin[MAX_EXECUCOES]; \r\n double[] tempoExecusao = new double[MAX_EXECUCOES];\r\n \r\n System.out.println(\"# # # # # Algoritmo de Busca Aleatoria # # # # #\\n\"); \r\n //System.out.println(\"Espaço de busca: \" + (long)(Math.pow(2, NUM_VARS) - 1));\r\n System.out.println(\"NumProv: \" + NUM_PROV + \"\\nNumReq: \" + NUM_REQ + \"\\nNumPIs: \" + NUM_PIS + \"\\nNumDB: \" + NUM_DB);\r\n \r\n // Inicia as execuções\r\n int execucao = 1;\r\n // LOOP DE EXECUÇÕES\r\n while(execucao <= MAX_EXECUCOES)\r\n {\r\n numIt = 0; \r\n melhor = new IndividuoBin(NUM_VARS);\r\n // Inicia o cronômetro\r\n tempoInicial = System.currentTimeMillis(); \r\n // LOOP DE ITERAÇÕES\r\n while(numIt < MAX_ITERACOES)\r\n {\r\n atual = new IndividuoBin(NUM_VARS);\r\n atual.geraCodRand();\r\n //atual.imprimeCodificacao();\r\n af.fitness(atual);\r\n if(atual.getFitness() > melhor.getFitness())\r\n melhor = atual;\r\n \r\n numIt++;\r\n }\r\n // Interrompe o cronômetro\r\n tempoFinal = (System.currentTimeMillis() - tempoInicial);\r\n //System.out.println(\"\\nTempo de execução: \" + tempoFinal + \" ms ou \" + (tempoFinal/1000.0) + \" seg\\n\");\r\n \r\n // Guarda o melhor individuo e o tempo dessa execução\r\n eleitos[execucao - 1] = melhor;\r\n tempoExecusao[execucao - 1] = tempoFinal;\r\n \r\n // Imprime o melhor individuo\r\n System.out.println(\"\\nExecução \" + execucao + \": \");\r\n // Resposta\r\n if(!melhor.isPenalizado())\r\n {\r\n System.out.println(\"Melhor fitness: \" + melhor.getFitness());\r\n //System.out.print(\"Codificação: \");\r\n //melhor.imprimeCod();\r\n melhor.imprimeProvCod(); \r\n }\r\n else\r\n {\r\n System.out.println(\"Não foi encontrado um individuo valido com \" + MAX_ITERACOES + \" iterações.\"); \r\n System.out.println(\"Melhor fitness: \" + melhor.getFitness());\r\n //System.out.print(\"Codificação: \");\r\n //melhor.imprimeCod();\r\n melhor.imprimeProvCod(); \r\n }\r\n \r\n //System.out.println(\"\\nTempo da execução \" + execucao + \": \" + tempoFinal + \" ms ou \" + (tempoFinal/1000.0) + \" seg\");\r\n // Próxima execucao\r\n execucao++;\r\n } // Fim das execucoes\r\n \r\n // # # # # Estatisticas pós execuções do Aleatorio # # # #\r\n estatisticaFinais(eleitos, tempoExecusao);\r\n }", "void EvolutionWithElitism(){\n\t\t \tint i, j, l, k;\n\t\t\t//individual[] temp;\n\t\t\tbyte _flippc=0,_flippm=0;\n//\t\t\tString _temp1=\"\", _temp2=\"\";\n\t\t\tint[] _cp;\n\t\t\tnode[] _nd,_nm;\n\t\t\t// Khoi tao quan the dau tien \n\t\t\tRampedInit(6, 0.5);\n\t\t\t//RampedInitOffLine(6, 0.5,15);\n\t\t\t\n//\t\t\tconstructiveRate = new double[NUMGEN];\n//\t\t\tsemanticDistance = new double[NUMGEN];\n\t\t\t\n\t\t\tgen = 0;\n\t\t\twhile(gen < generation) {\n\t\t\t\t\n\t\t\t\tComputeFitness();\n\t\t\t\t\n//\t\t\t\tint g_ncross = 0;\n//\t\t\t\tdouble g_sd = 0;\n//\t\t\t\tPrintToFile();\n\t//----------------------\n//\t\t\t\tFileInputStream instream = null;\n//\t\t\t\tPrintStream outstream = null;\n//\t\t\t\tPrintStream console = System.out;\n//\t\t\t\ttry {\n//\t\t\t\t\toutstream = new PrintStream(new FileOutputStream(\"c:/result/\" + \"detail_\"+ gen + \".txt\"));\n//\t\t\t\t\tSystem.setOut(outstream);\n//\t\t\t\t} catch(Exception e) {\n//\t\t\t\t\tSystem.err.println(\"Error Occurred.\");\n//\t\t\t\t}\n//\t\t\t\tfor(i = 0; i < poplen; i++) {\n//\t\t\t\t\tSystem.out.printf(\"%3.5f \",oldpop[i].fitness);\n//\t\t\t\t\tif((i+1) % 10 == 0) {\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(oldpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// copy anh tot nhat sang the he sau\t \t\n\t\t\t\tnewpop[0].CopyIndividual(bestcurrent[gen], TRUE);\n\t\t\t\t// dot bien anh thu 2\n\t\t\t \n\t\t\t\tl=1;\t\n\t\t\t\ti = TourSelect(TOURSIZE);\n//\t\t\t\t\n\t\t\t\t\n\t\t\t newpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\tindividual[] m_individual0=new individual[1];\n\t\t\t\tint[] _mt0=new int[1];\n\t\t\t\t_nm=new node[1];\n\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual0, 15, TRUE,_mt0,_nm);\n\t\t\t\tnewpop[l]=new individual();\n\t\t\t\tnewpop[l].CopyIndividual(m_individual0[0], TRUE);\t\t\t\n\t\t\t\tnewpop[l].evaluated=FALSE;\t\t\n//\t\t\t\t\n//\t\t\t\tm_individual0=null;\n\t\t\t\t\n\t//------------------------\t\t\n\t\t\t\tl = 2;\t\t\t\n\t\t\t\twhile(l < poplen) {\n\t\t\t\t//\tSystem.out.println(\"Generation \"+ String.valueOf(gen)+\":\");\n\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\n\t\t\t\t\ti = TourSelect(TOURSIZE);\n\t\t\t\t\tj = TourSelect(TOURSIZE);\n\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t _flippc=Flip(pcross);\n//\t\t\t\t System.out.printf(\"pcross:%d\", _flippc);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippc == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] i_temp=new individual[2];\n\t\t\t\t\t\t_cp=new int[2];\n\t\t\t\t\t\t_nd=new node[2];\n\t\t\t\t//\t\n\t\t\t\t//\t\tif(SubTreeSwapWithTTest(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(SubTreeSwap(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(i_temp[0],TRUE);\n\t\t\t\t\t\t\tnewpop[l+1].CopyIndividual(i_temp[1],TRUE);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tncross++;\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// semantic distance\n//\t\t\t\t\t\t\tg_sd += newpop[l].getSemanticDistance(oldpop[i]);\n//\t\t\t\t\t\t\tg_sd += newpop[l+1].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tg_sd += oldpop[i].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t} \n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// mutation test\n\t\t\t\t\t_flippm=Flip(pmutate);\n//\t\t\t\t\tSystem.out.printf(\"pmutation:%d\", _flippm);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippm == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l]=new individual();\n\t\t\t\t\t\tnewpop[l].CopyIndividual(m_individual[0], TRUE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+l+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Flip(pmutate) == 1) {\n\t\t\t\t\t\tindividual[] m_individual1=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l + 1], m_individual1, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l+1]=new individual();\n\t\t\t\t\t\tnewpop[l+1].CopyIndividual(m_individual1[0], TRUE);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+(l+1)+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual1=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\tl += 2;\n\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(newpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n//\t\t\t\toutstream.close();\n//\t\t\t\tSystem.setOut(console);\n\t\t\t\t// Thống kê tỷ lệ tTest\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t//\t\t\tsemanticDistance[gen] = g_sd / (2.0 * g_ncross);\n//\t\t\t\tsemanticDistance[gen] = g_sd /g_ncross;\n\t\t\t\t\n\t\t\t\tgen++;\n\t\t\t\tfor(k = 0; k < poplen; k++)\n\t\t\t\t{\n\t\t\t\t\toldpop[k]=null;\n\t\t\t\t\toldpop[k]=new individual();\n\t\t\t\t\toldpop[k].CopyIndividual(newpop[k], TRUE);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void run(int runIndex, String fullPath) throws ClassNotFoundException, IOException, JMException {\n long seed = (long) 100;//can be randomly seeded.\n RandomGenerator RG = new RandomGenerator(seed);\n\n MetricsUtilPlus utils_ = new MetricsUtilPlus();\n Properties config = new Properties();\n\n String configFile = \"HF_Config_Benchmark/RealProblemSetting.txt\";\n String algorithms[] = {\"NSGAII\", \"SPEA2\", \"IBEA\", \"mIBEA\", \"GDE3\"};\n\n try {\n config.load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Failed to load configuration file!\");\n System.exit(-1);\n }\n\n int totalEval = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n int decisionPoints = Integer.parseInt(config.getProperty(\"DecisionPoints\"));//50 iterations\n\n int arcSize = Integer.parseInt(config.getProperty(\"ArchiveSize\"));\n populationSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n arcSize=100;\n populationSize=100;\n totalEval=250*100;\n totalEval=1000*100;\n \n //arcSize=30;\n //populationSize=30;\n //totalEval=30*50;\n\n //int populationSize = popSize;\n int fixedSolutionEvl = (int) (totalEval / decisionPoints);\n \n System.out.println(\"CF; decision=\"+decisionPoints+\";fixed=\"+fixedSolutionEvl+\";total=\"+totalEval);\n\n MetricsUtil util = new MetricsUtil();\n\n int maxEvals = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n\n String SolutionType = config.getProperty(\"SolutionType\");\n int popSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n popSize=100;\n //popSize=30;\n\n Problem[] problemInstances = new Problem[problemCreator.getQtdProblem()];\n int[] numberOfVar = new int[problemCreator.getQtdProblem()];\n double[] mutationProb = new double[problemCreator.getQtdProblem()];\n Operator[] mutations = new Operator[problemCreator.getQtdProblem()];\n\n //reference point for hypervolume calculation\n /*HyperVolumeMinimizationProblem hyp = new HyperVolumeMinimizationProblem();*/\n /*double[] truePFhypervolume = new double[problemCreator.getQtdProblem()];*/\n for (int problemIndex = 0; problemIndex < problemCreator.getQtdProblem(); problemIndex++) {\n\n problemInstances[problemIndex] = problemCreator.getProblemInstance(problemIndex);\n numberOfVar[problemIndex] = problemInstances[problemIndex].getNumberOfVariables();\n mutationProb[problemIndex] = (Double) 1.0 / numberOfVar[problemIndex];\n HashMap parameters = new HashMap();\n parameters.put(\"probability\", mutationProb[problemIndex]);\n double mutationDistributionIndex = Double.parseDouble(config.getProperty(\"MutationDistributionIndex\"));\n parameters.put(\"distributionIndex\", mutationDistributionIndex);\n String mutationType = config.getProperty(\"MutationType\");\n mutations[problemIndex] = new PolynomialMutation(mutationProb[problemIndex], mutationDistributionIndex);\n }\n\n LLHInterface[] algorithm = new LLHInterface[problemCreator.getQtdProblem()];\n\n System.out.println(\"Run \" + runIndex + \"....\");\n\n choiceFunction CF = new choiceFunction();\n\n for (int instanceIndex = 6; instanceIndex < problemInstances.length; instanceIndex++) {\n numberOfObj=problemInstances[instanceIndex].getNumberOfObjectives();\n reference = new double[numberOfObj];\n Arrays.fill(reference,1.0);\n minimumValues = new double[numberOfObj];\n maximumValues = new double[numberOfObj];\n\n for (int i = 0; i < numberOfObj; i++) {\n reference[i] = 1.0;\n }\n\n int remainEval = totalEval;\n List<S> inputPop = null;\n ArrayList<Integer> heuristicList = new ArrayList<Integer>();\n\n int chosenHeuristic = -1;\n\n QualityIndicators quality = new QualityIndicators();\n double[][] algorithmEffortArray = new double[algorithms.length][2];\n double[][] ROIArray = new double[algorithms.length][2];\n double[][] hyperVolumeArray = new double[algorithms.length][2];\n double[][] uniformDistributionArray = new double[algorithms.length][2];\n\n // for the purpose of computing hypervolume.\n initialiseExtremeValues();\n\n long[] elapsedTime = new long[algorithms.length];\n long[] lastInvokeTime = new long[algorithms.length];\n long[] executionTimeArray = new long[algorithms.length];\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = 0;\n }\n\n //initialise population for each instance which is used for each algorithm\n List<S> initialPopulation = ProblemCreator.generateInitialPopulation(problemInstances[instanceIndex], popSize);\n \n List[] resultSolutions = new List[algorithms.length];\n List[] inputSolutions = new List[algorithms.length];\n\n for (int i = 0; i < algorithms.length; i++) {\n inputSolutions[i] = new ArrayList(popSize);\n // at the beginning, all inputsolutions are set as the initialPopulation\n inputSolutions[i] = initialPopulation;\n resultSolutions[i] = new ArrayList(popSize);\n }\n LLHInterface eachAlgorithm = null;\n AlgorithmCreator ac = new AlgorithmCreator(problemInstances[instanceIndex]);\n System.out.println(problemInstances[instanceIndex].getName() + \" \" + problemInstances[instanceIndex].getNumberOfObjectives() + \" \" + problemInstances[instanceIndex].getNumberOfVariables());\n ac.setMaxEvaluationsAndPopulation(totalEval, populationSize);\n //Initialise the choice function matrix and get the initial algorithm\n for (int algorithmIndex = 0; algorithmIndex < algorithms.length; algorithmIndex++) {\n //initialise last invoke time (the start time of calling this algorithm) of each algorithm;\n heuristicList.add(algorithmIndex);\n lastInvokeTime[algorithmIndex] = System.currentTimeMillis();\n\n eachAlgorithm=ac.create(algorithmIndex, remainEval);\n\n long startTime = System.currentTimeMillis();\n\n try {\n resultSolutions[algorithmIndex] = eachAlgorithm.execute(/*initialPopulation*/inputSolutions[algorithmIndex], fixedSolutionEvl);\n } catch (Exception e) {\n e.printStackTrace();\n }\n //record the execution time of each algorithm\n long executionTime = System.currentTimeMillis() - startTime;\n executionTimeArray[algorithmIndex] = executionTime;\n\n remainEval -= fixedSolutionEvl;\n\n //iteration += 2;\n inputSolutions[algorithmIndex] = resultSolutions[algorithmIndex];\n //After executed the algorithm, compute the elapsed time. The end time of called this algorithm\n\n }// end algorithmIndex, executing each algorithm for initialisation the choice function matrix\n\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n // find worst points and best points for all the three populations\n for (int i = 0; i < algorithms.length; i++) {\n updateExtremeValues(resultSolutions[i]);\n }\n\n for (int i = 0; i < algorithms.length; i++) {\n algorithmEffortArray[i][0] = i;\n algorithmEffortArray[i][1] = quality.getAlgorithmEffort(executionTimeArray[i], fixedSolutionEvl);\n\n ROIArray[i][0] = i;\n ROIArray[i][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[i]);\n\n hyperVolumeArray[i][0] = i;\n\n hyperVolumeArray[i][1] = computeScaledHypervolume(resultSolutions[i]);\n //hyperVolumeArray[i][1] = quality.getHyperVolume(resultSolutions[i],realReference);\n\n uniformDistributionArray[i][0] = i;\n uniformDistributionArray[i][1] = quality.getUniformDistribution(resultSolutions[i]);\n\n }\n\n int numberOfMeasures = 4;\n int alpha = 30;//alpha =100;//if turbine number is 30\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //the result population of the chosen heuristic is served as the input population\n inputPop = resultSolutions[chosenHeuristic];\n\n while (remainEval > 0) {\n algorithm[instanceIndex]=ac.create(chosenHeuristic, remainEval);\n\n long beginTime = System.currentTimeMillis();\n //execute the chosen algorithm\n heuristicList.add(chosenHeuristic);\n if (fixedSolutionEvl > remainEval) {\n fixedSolutionEvl = remainEval;\n }\n //warranty size. necessary for small pop\n Random rsn=new SecureRandom();\n while(inputPop.size() < populationSize){\n inputPop.add(inputPop.get(rsn.nextInt(inputPop.size())));\n }\n resultSolutions[chosenHeuristic] = algorithm[instanceIndex].execute(inputPop, fixedSolutionEvl);\n inputPop = resultSolutions[chosenHeuristic];\n \n remainEval -= fixedSolutionEvl;\n\n // update executionTimeArray\n executionTimeArray[chosenHeuristic] = System.currentTimeMillis() - beginTime;\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n algorithmEffortArray[chosenHeuristic][1] = quality.getAlgorithmEffort(executionTimeArray[chosenHeuristic], fixedSolutionEvl);\n\n ROIArray[chosenHeuristic][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[chosenHeuristic]);\n\n updateExtremeValues(resultSolutions[chosenHeuristic]);\n hyperVolumeArray[chosenHeuristic][1] = computeScaledHypervolume(resultSolutions[chosenHeuristic]);\n //hyperVolumeArray[chosenHeuristic][1] = quality.getHyperVolume(resultSolutions[chosenHeuristic],realReference);\n\n uniformDistributionArray[chosenHeuristic][1] = quality.getUniformDistribution(resultSolutions[chosenHeuristic]);\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //heuristicList.add(chosenHeuristic);\t\t\n }//end while(remainEvl >0)\n \n String arrayListPath = fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"_ChosenHeuristic.txt\";\n utils_.printArrayListInteger(heuristicList, arrayListPath);\n List<S> obtainedSolutionSet = SolutionListUtils.getNondominatedSolutions(inputPop);\n new SolutionListOutput(obtainedSolutionSet)\n .setSeparator(\"\\t\")\n .setFunFileOutputContext(new DefaultFileOutputContext(fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"CF_FinalParetoFront\"\n + runIndex + \".txt\"))\n .print();\n //print out true front's hypervolume\n\n }//end each problem instance\n\n System.out.println(\"Finished\");\n\n }", "@Override\n\t\t\t\t\tpublic Iterator<Tuple2<FirstStageAresSolution, Tuple5<Integer,Double,Double,Double,Double>>> call(Tuple2<MobileApplication, MobileDataDistributionInfrastructure> inputValues)\n\t\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\t\tArrayList<Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>> output = \n\t\t\t\t\t\t\t\t\t\tnew ArrayList<Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>>();\n\t\t\t\t\t\tOffloadScheduler singleSearch;\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList<FirstStageAresSolution> solutions;\n\t\t\t\t\t\t/*switch(SimulationSetup.placementAlgorithm)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tcase \"RANDOM\":\n\t\t\t\t\t\t\tRandomEdgePlanner.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t\tDefaultNetworkPlanner.setupNetworkConnections(infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ALL\":\n\t\t\t\t\t\t\tEdgeAllCellPlanner.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t\tDefaultNetworkPlanner.setupNetworkConnections(infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ares\":\n\t\t\t\t\t\t\tFirstStageAresPlanner planner = new FirstStageAresPlanner(inputValues);\n\t\t\t\t\t\t\tplanner.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tFirstStageAresPlanner aresP = new FirstStageAresPlanner(inputValues);\n\t\t\t\t\t\t\taresP.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Executing planner\");\n\t\t\t\t\t\t//FirstStageAresPlanner aresP = new FirstStageAresPlanner();\n\t\t\t\t\t\tFirstStageAresPlanner aresP = new FirstStageAresPlanner();\n\t\t\t\t\t\tSystem.out.println(\"Retrieving solutions\");\n\t\t\t\t\t\t//solutions = (ArrayList<FirstStageAresSolution>) aresP.getSolutionList();\n\t\t\t\t\t\tsolutions = (ArrayList<FirstStageAresSolution>) aresP.getSolutionList();\n\t\t\t\t\t\tSystem.out.println(\"Solutions retrieved!\");\n\t\t\t\t\t\t/*switch(algoritmName){\n\t\t\t\t\t\tcase \"weighted\":\n\t\t\t\t\t\t\tsingleSearch = new HeftEchoResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"heft\":\n\t\t\t\t\t\t\tsingleSearch = new HEFTResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"hbatt\":\n\t\t\t\t\t\t\tsingleSearch = new HEFTBattery(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"hcost\":\n\t\t\t\t\t\t\tsingleSearch = new HEFTCostResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"bforce-rt\":\n\t\t\t\t\t\t\tsingleSearch = new BruteForceRuntimeOffloader(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"nsgaIII\":\n\t\t\t\t\t\t\tsingleSearch = new NSGAIIIResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t//ArrayList<FirstStageAresSolution> temp = new ArrayList<FirstStageAresSolution>();\n\t\t\t\t\t\t//for(FirstStageAresSolution solution : solutions) {\n\t\t\t\t\t\tArrayList<FirstStageAresSolution> temp = new ArrayList<FirstStageAresSolution>();\n\t\t\t\t\t\tfor(FirstStageAresSolution solution : solutions) {\n\t\t\t\t\t\t\t//aresP.applySolutionToInfrastructure(solution, infrastructure);\n\t\t\t\t\t\t\t//ArrayList<InfrastructureProvisioningPlan> offloads = (ArrayList<InfrastructureProvisioningPlan>) singleSearch.findScheduling();\n\t\t\t\t\t\t\t//if(offloads != null)\n\t\t\t\t\t\t\t\t//for(InfrastructureProvisioningPlan os : offloads) \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\t\t//System.out.println(solution);\n\t\t\t\t\t\t\t\t\t//plan.setInfEnergyConsumption(solution.getEnergyConsumption());\n\t\t\t\t\t\t\t\t\t//plan.setRunTime(solution.getAverageDistance());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*if(!temp.contains(solution)) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp.add(solution);\n\t\t\t\t\t\t\t\toutput.add(\n\t\t\t\t\t\t\t\t\t\tnew Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>\n\t\t\t\t\t\t\t\t\t\t(solution,\n\t\t\t\t\t\t\t\t\t\t\t\tnew Tuple5<Integer,Double,Double,Double,Double>(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getAverageDistance(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getEnergyConsumption(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)));\n\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\tif(!temp.contains(solution)) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp.add(solution);\n\t\t\t\t\t\t\t\toutput.add(\n\t\t\t\t\t\t\t\t\t\tnew Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>\n\t\t\t\t\t\t\t\t\t\t(solution,\n\t\t\t\t\t\t\t\t\t\t\t\tnew Tuple5<Integer,Double,Double,Double,Double>(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getAverageDistance(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getEnergyConsumption(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn output.iterator();\n\t\t\t\t\t}", "public abstract double getAestheticFitness();", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "void setFitness(double fitness) throws UnsupportedOperationException;", "public float AssignFitness() {\n\t\t\n\t\tfitness = 0;\n\t\tif(sample_map.size() == 0) {\n\t\t\treturn fitness;\n\t\t}\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tfitness += ptr.s.weight;\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfitness /= sample_map.size();\n\t\treturn fitness;\n\t}", "public double bestFitness()\r\n {\r\n\treturn bestFitness;\r\n }", "public double calculateFitness(DNA dna);", "@Override\n\tpublic void onSimulationComplete()\n\t{\n\t}", "public double getFitness(){\n return averageFitness;\n }", "public abstract double getFitness(Genotype genotype);", "public SolutionSet execute() throws JMException, ClassNotFoundException {\n int maxEvaluations ;\n int evaluations ;\n\n SolutionSet population ;\n SolutionSet offspringPopulation ;\n\n Solution betterIndividual ;\n\n Operator mutationOperator ;\n Comparator comparator ;\n Operator localSearchOperator ;\n\n\n comparator = new ObjectiveComparator(0) ; // Single objective comparator\n\n // Read the params\n maxEvaluations = ((Integer)this.getInputParameter(\"maxEvaluations\")).intValue();\n\n // Initialize the variables\n population = new SolutionSet(mu_) ;\n offspringPopulation = new SolutionSet(lambda_) ;\n\n evaluations = 0;\n\n // Read the operators\n mutationOperator = this.operators_.get(\"mutation\");\n localSearchOperator = (LocalSearch) operators_.get(\"improvement\");\n\n System.out.println(\"(\" + mu_ + \" + \" + lambda_+\")ES\") ;\n\n // Create 1-parent population of mu solutions\n Solution newIndividual;\n newIndividual = new Solution(problem_);\n problem_.evaluate(newIndividual);\n evaluations++;\n betterIndividual = new Solution(newIndividual);\n population.add(betterIndividual);\n\n // Main loop\n while (evaluations < maxEvaluations) {\n // STEP 1. Generate the offspring\n Solution offspring = new Solution(population.get(0)) ;\n mutationOperator.execute(offspring);\n /*Solution mutated_solution = (Solution) mutationOperator.execute(offspring);\n if(offspring.getObjective(0) < mutated_solution.getObjective(0))\n offspring = mutated_solution;*/\n problem_.evaluate(offspring);\n Solution local_offspring = (Solution) localSearchOperator.execute(offspring);\n offspring.setObjective(0, local_offspring.getObjective(0));\n offspringPopulation.add(offspring);\n evaluations++;\n\n if(comparator.compare(betterIndividual, offspringPopulation.get(0)) > 0) {\n betterIndividual = new Solution(offspringPopulation.get(0));\n population.clear();\n // STEP 4. Create the new mu population\n population.add(betterIndividual);\n }\n\n System.out.println(population.get(0).getObjective(0)) ;\n\n // STEP 6. Delete the offspring population\n offspringPopulation.clear() ;\n } // while\n\n // Return a population with the best individual\n SolutionSet resultPopulation = new SolutionSet(1) ;\n resultPopulation.add(population.get(0)) ;\n\n return resultPopulation ;\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "public static void evaluateFitnesses() {\n for (Polynomial p : Population) {\n p.setRawFitness(getRawFitness(p, data));\n if (debug) {\n printPopulation(true);\n }\n }\n }", "String getFitnessFunction();", "@Override\n public void runOneExperiment(int numGoods, int numBidders, int k, double p, String distribution, SqlDB dbLogger) throws Exception {\n if (!dbLogger.checkIfRowExists(\"singleton_\" + distribution, numGoods, numBidders, p)) {\n System.out.print(\"\\t Adding data... \");\n HashMap<String, DescriptiveStatistics> stats = new HashMap<String, DescriptiveStatistics>();\n for (int i = 0; i < RunParameters.numTrials; i++) {\n // Generate Singleton random market.\n SingletonMarket<Goods, Bidder<Goods>> M = this.getSingletonMarket(numGoods, numBidders, p, distribution);\n // Optimal Utilitarian Allocation.\n MarketAllocation<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>> utilitarianMaxAlloc = new WelfareMaxAllocationILP<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>>().Solve(M);\n double optimalWelfare = utilitarianMaxAlloc.getValue();\n // Optimal Egalitarian Allocation.\n MarketAllocation<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>> egalitarianMaxAlloc = new EgalitarianMaxAllocationILP<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>>().Solve(M);\n double optimalEgalitarian = (double) egalitarianMaxAlloc.getNumberOfWinners();\n // Obtain statistics from all algorithms.\n this.populateStats(stats, new SingletonEVP(M).Solve(), \"ev\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.GreedyWelfare), \"gw\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.GreedyEgalitarian), \"ge\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.OptimalWelfare), \"ow\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.OptimalEgalitarian), \"oe\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.WaterFall), \"wf\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.MaxBidder), \"mb\", optimalWelfare, optimalEgalitarian);\n }\n System.out.println(\"done!\");\n dbLogger.saveSingleton(\"singleton_\" + distribution, numGoods, numBidders, p, stats);\n } else {\n System.out.println(\"\\t Already have data \");\n }\n }", "public void evaluate() {\n for (Chromosome chromo : chromosomes) {\n double chromoGH = chromo.getTotalGH();\n if (chromo.isValid()) {\n this.validChromosomes++;\n if (chromoGH > this.getBestScore()) {\n this.bestScore = chromoGH;\n this.setBestChromo(chromo);\n }\n }\n //Log.debugMsg(chromo.getTotalGH().toString());\n// this.map.put(chromoGH, chromo);\n }\n }", "@Override\n public void simulationPeriodic() {\n }", "protected FitnessAssignmentProcess() {\r\n super();\r\n }", "public abstract double getConstraintFitness();", "public SolutionSet execute() throws JMException, ClassNotFoundException {\n baiscSetting();\n /*\n * step2: Initialize the Population\n */\n initPopulation();\n initIdealPoint(); // initialize the ideal point\n\n initNadirPoint(); // initialize the nadir point\n\n initExtremePoints(); // initialize the extreme points\n /*\n * Enter the main loop,into the process of evolution\n */\n while (generations_ < maxGenerations_) {\n /*\n * step3 and step4:Mating Selection and Recombination to generate Offspring Populations\n */\n generateOffspringPopulation();\n /*\n * step5:Environmental Selection\n */\n environmentalSelection(generations_);\n\n generations_++;\n }\n\n// Ranking ranking = new NondominatedRanking(population_);\n// return ranking.getSubfront(0);\n return population_[0];\n }", "public Sample run() {\n\t\t// termination criterion\n\t\tint runsUnchanged = 0;\n\t\tboolean terminated = false;\n\t\tdouble prevBestSampleFit = 0; // remember to set this at some\n\t\t\t\t\t\t\t\t\t\t// point\n\t\tint runs = 0; // testing, remove\n\n\t\t System.out.println(\"Evaluating Particles\");\n\t\t// 1) evaluate all particles\n\t\t// 2) set gBest\n\t\tdouble maxFit = problem.getWorstValue();\n\t\tfor (Particle p : pop) {\n\t\t\tp.calcFitness();\n\n\t\t\t// number of evals done is incremented by numSamples\n\t\t\tnumFitnessEvals += numSamples;\n\n\t\t\tdouble fit = p.getBestSample().getFitness();\n\t\t\t// find initial gBest\n\t\t\tif (problem.compare(maxFit, fit) == 1) {\n\t\t\t\tmaxFit = fit;\n\t\t\t\tbestSample = p.getBestSample();\n\t\t\t\tgBest = p.copy();\n\t\t\t\t System.out.println(\"Global best:\");\n\t\t\t\t bestSample.print();\n\t\t\t}\n\t\t}\n\n\t\twhile (!terminated) {\n\t\t\t System.out.println(\"\\n \\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n\t\t\t System.out.println(\" %%%%%%%%%%%%% RUN \" + runs);\n\t\t\t System.out.println(\" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n\n\t\t\t// iterate through all particles\n\t\t\tfor (Particle p : pop) {\n\t\t\t\t// System.out.println(\"\\n >>>> Particle \");\n\t\t\t\t// p.print();\n\n\t\t\t\t// 1) update velocity\n//\t\t\t\tSystem.out.println(\">> Velocity Update\");\n\t\t\t\tp.updateVelocity(omega, phi1, phi2, gBest);\n\n\t\t\t\t// 2) update position\n//\t\t\t\tSystem.out.println(\">> Position Update \");\n\t\t\t\tp.updatePosition();\n\t\t\t\t// p.print();\n\n\t\t\t\t// 2.5) change the previous best sample fitness\n\t\t\t\tprevBestSampleFit = bestSample.getFitness();\n\n\t\t\t\t// 3) evaluate fitness\n//\t\t\t\tSystem.out.println(\">> Fitness Calc\");\n\t\t\t\tdouble fit = p.calcFitness(); // this is never used\n\t\t\t\t// number of evals done is incremented by numSamples\n\t\t\t\tnumFitnessEvals += numSamples;\n\n\t\t\t\tdouble sampleFit = p.getBestSample().getFitness();\n\n\t\t\t\t// System.out.println(\"Sample fitness: \" + sampleFit + \" >? Best\n\t\t\t\t// fitness: \" + bestSample.getFitness());\n\n\t\t\t\t// compares and adjusts gBest\n\t\t\t\tif (problem.compare(bestSample.getFitness(), sampleFit) == 1) {\n\t\t\t\t\tsetBestSample(p.getBestSample());\n\t\t\t\t\t// set gBest and bias\n\t\t\t\t\tsetGBest(p);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// updating fitness for evaluation\n\t\t\tfitnesses.add(bestSample.getFitness());\n\n\t\t\t// Next half-dozen or so lines used to determine convergence\n\t\t\tif (Math.abs(prevBestSampleFit - bestSample.getFitness()) < threshold) {\n\t\t\t\trunsUnchanged++;\n\t\t\t} else {\n\t\t\t\trunsUnchanged = 0;\n\t\t\t}\n\t\t\tif (runsUnchanged >= numToConsiderConverged) {\n\t\t\t\t// return if the solution hasn't significantly changed in a\n\t\t\t\t// certain\n\t\t\t\t// number of iterations\n\t\t\t\tterminated = true;\n\t\t\t}\n\t\t\truns++;\n\t\t\t// System.out.println(\">>>>>> RUNS: \" + runs);\n\t\t}\n\n\t\tSystem.out.println(\"Returning best sample:\");\n\t\tbestSample.print();\n\t\tSystem.out.println(\"Fitness: \" + bestSample.getFitness());\n\n\t\tSystem.out.println(\"Fitness Aross Evals:\");\n\t\tfor (Double d : fitnesses) {\n\t\t\tSystem.out.print(d + \" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\treturn bestSample;\n\t}", "public static void experiment(String name) {\n \tString probName = \"NQueensProblem\";\n \tList<OptimizationAlgorithm> algs = new ArrayList<>();\n int[] ranges = new int[N];\n Random random = new Random(N);\n for (int i = 0; i < N; i++) {\n \tranges[i] = random.nextInt();\n }\n NQueensFitnessFunction ef = new NQueensFitnessFunction();\n Distribution odd = new DiscretePermutationDistribution(N);\n NeighborFunction nf = new SwapNeighbor();\n MutationFunction mf = new SwapMutation();\n CrossoverFunction cf = new SingleCrossOver();\n Distribution df = new DiscreteDependencyTree(.1); \n \n HillClimbingProblem hcp = new GenericHillClimbingProblem(ef, odd, nf);\n GeneticAlgorithmProblem gap = new GenericGeneticAlgorithmProblem(ef, odd, mf, cf);\n ProbabilisticOptimizationProblem pop = new GenericProbabilisticOptimizationProblem(ef, odd, df);\n \n RandomizedHillClimbing rhc = new RandomizedHillClimbing(hcp); \n SimulatedAnnealing sa = new SimulatedAnnealing(1E1, .1, hcp);\n StandardGeneticAlgorithm ga = new StandardGeneticAlgorithm(200, 0, 10, gap);\n MIMIC mimic = new MIMIC(200, 10, pop);\n \n algs.add(rhc);\n algs.add(sa);\n algs.add(ga);\n algs.add(mimic);\n Experiment newExp = new Experiment();\n \n newExp.experiments(algs, ef, name);\n \n // test temperature for SA\n String paramName = \"Temperature\";\n String algName = \"SA\";\n List<Double> params2 = new ArrayList<>();\n List<OptimizationAlgorithm> algsTest = new ArrayList<>();\n for (double i = 1.0; i < 100.5; i+=1.0){\n \tparams2.add(i);\n \tsa = new SimulatedAnnealing(i, .1, hcp);\n \talgsTest.add(sa);\n }\n newExp.optParams(algsTest, ef, paramName, null, params2, algName, probName);\n \n // test cooling rate for SA\n paramName = \"CoolingRate\";\n params2 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (double i = 0.01; i < 0.51; i+=0.005){\n \tparams2.add(i);\n \tsa = new SimulatedAnnealing(1E1, i, hcp);\n \talgsTest.add(sa);\n }\n newExp.optParams(algsTest, ef, paramName, null, params2, algName, probName);\n \n // test populationSize for GA\n paramName = \"populationSize\";\n algName = \"GA\";\n List<Integer> params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 10; i < 1001; i+=10){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(i, 0, 10, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test toMate for GA\n paramName = \"toMate\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 0; i < 100; i+=1){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(200, i, 10, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test toMutate for GA\n paramName = \"toMutate\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 10; i < 1001; i+=10){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(200, 0, i, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test samples for MIMIC\n paramName = \"samples\";\n algName = \"MIMIC\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 100; i < 1101; i += 10){\n \tparams1.add(i);\n \tmimic = new MIMIC(i, 10, pop);\n \talgsTest.add(mimic);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test tokeep for MIMIC\n paramName = \"tokeeep\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 1; i < 101; i+=1){\n \tparams1.add(i);\n \tmimic = new MIMIC(200, i, pop);\n \talgsTest.add(mimic);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n \n // test different algorithms with various NQueensProblems\n // set up algorithms\n algs = new ArrayList<>();\n ga = new StandardGeneticAlgorithm(150, 98, 70, gap);\n algs.add(rhc);\n algs.add(sa);\n algs.add(ga);\n algs.add(mimic);\n // set up different efs\n List<EvaluationFunction> efs = new ArrayList<>();\n for (int i = 0; i < 50; i++){\n \tef = new NQueensFitnessFunction();\n \tefs.add(ef);\n }\n newExp.voteBest(algs, efs, 2000, probName);\n \n }", "public void setFitness(int newFitness) {\n fitness = newFitness;\n }", "private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }", "public static Individual run(int number) {\n\n //Initialize logging of the run\n\n DetailsLogger.startNewLog(detailsLogPrefix + \".\" + number + \".xml\");\n DetailsLogger.logParams(prop);\n\n //Set the rng seed\n\n RandomNumberGenerator.getInstance().reseed(number);\n\n //Create new population\n Population pop = new Population();\n pop.setPopulationSize(popSize);\n pop.setSampleIndividual(new BooleanIndividual(dimension));\n pop.createRandomInitialPopulation();\n\n\n //Set the options for the evolutionary algorithm\n EvolutionaryAlgorithm ea = new EvolutionaryAlgorithm();\n ea.setCPUCores(cpu_cores);\n ea.setFitnessFunction(new ExampleFitnessFunction());\n ea.addMatingSelector(new RouletteWheelSelector());\n ea.addOperator(new OnePtXOver(xoverProb));\n ea.addOperator(new BitFlipMutation(mutProb, mutProbPerBit));\n\n //Run the algorithm\n\n try {\n OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(fitnessFilePrefix + \".\" + number));\n OutputStreamWriter progOut = new OutputStreamWriter(new FileOutputStream(objectiveFilePrefix + \".\" + number));\n\n for (int i = 0; i < maxGen; i++) {\n\n //Make one generation\n ea.evolve(pop);\n ArrayList<Individual> sorted = pop.getSortedIndividuals();\n //Log the best individual to console.\n System.out.println(\"fitness: \" + sorted.get(0).getFitnessValue() + \" \" + sorted.get(0));\n\n //Add population statistics to the logs\n StatsLogger.logFitness(pop, out);\n StatsLogger.logObjective(pop, progOut);\n }\n\n OutputStreamWriter bestOut = new OutputStreamWriter(new FileOutputStream(bestPrefix + \".\" + number));\n\n Individual bestInd = pop.getSortedIndividuals().get(0);\n bestOut.write(bestInd.toString());\n\n out.close();\n progOut.close();\n bestOut.close();\n\n DetailsLogger.writeLog();\n\n return bestInd;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "SimulationRun() {\n firms = new ArrayList<>();\n }", "public double getFitness() {\n if (fitness == 0) {\n fitness = 1/(double)getDistance();\n }\n return fitness;\n }", "@Override\n public void simulationPeriodic() {\n }", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "static double[] evolveWeights() throws Exception {\n\t\t// Create a random initial population\n\t\tRandom r = new Random();\n\t\t// Matrix is a two dimensional array, populationSize are rows, Genes are columns\n\t\tMatrix population = new Matrix(populationSize, numberofGenes);\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\t// returns elements(genes) of every row\n\t\t\t// Think of every row as a seperate chromosome of parent\n\t\t\tdouble[] chromosome = population.row(i);\n\t\t\t// create every gene for each chrosome in the population\n\t\t\tfor (int j = 0; j < chromosome.length; j++) {\n\t\t\t\tdouble gene = 0.03 * r.nextGaussian();\n\t\t\t\tchromosome[j] = gene;\n\t\t\t}\n\t\t}\n\n\t\tint generationNum = 0;\n\t\t// do battle with chromosomes until winning condition is found\n\t\t// Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t// NeuralAgent(population.row(0)))\n\t\twhile (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(0))) != -1) {\n\n\t\t\tSystem.out.println(\"Generation \" + (generationNum));\n\n\t\t\tint mightLive = r.nextInt(100);\n\n\t\t\tif (generationNum == 10)\n\t\t\t\tmutationRate -= 0.01;\n\t\t\tif (generationNum == 20)\n\t\t\t\tmutationRate -= 0.02;\n\t\t\tif (generationNum == 30)\n\t\t\t\tmutationRate -= 0.02;\n\n\t\t\t// Mutate the genes of the current population\n\t\t\tfor (int y = 0; y < populationSize; y++) {\n\t\t\t\tfor (int x = 0; x < numberofGenes; x++) {\n\t\t\t\t\tif (Math.random() <= mutationRate) {\n\t\t\t\t\t\tpopulation.changeGene(x, y, r.nextGaussian());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make random number of battles\n\t\t\tfor (int i = 0; i < 40; i++) {\n\t\t\t\t// Create two teams with two random chromosomes from the population\n\t\t\t\tint soldier_a = r.nextInt(population.rows());\n\t\t\t\tint soldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Ensure that both teams don't have the same chromosome\n\t\t\t\tif (soldier_a == soldier_b)\n\t\t\t\t\tsoldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Do Battle between teams and select winner\n\t\t\t\tif (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == 1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t}\n\n\t\t\t\telse if (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == -1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Reproduce for the population (This is where the magic happens)\n\t\t\t// int currentPopulation = population.rows();\n\t\t\twhile (population.rows() < 100) {\n\t\t\t\t// Retrieve random parent\n\t\t\t\tint parentID = r.nextInt(population.rows());\n\t\t\t\tdouble[] parent = population.row(parentID);\n\t\t\t\tint[] potentialPartners = new int[10];\n\t\t\t\tint abs_min_value = Integer.MIN_VALUE;\n\t\t\t\tBoolean foundpartner = false;\n\t\t\t\tint partner = 0;\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) {\n\t\t\t\t\tint potentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tif (parentID == potentialPartnerID)\n\t\t\t\t\t\tpotentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tpotentialPartners[i] = potentialPartnerID;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) // Finding most compatiable parent #2.\n\t\t\t\t{\n\t\t\t\t\tint compatiablity = similarities(parent, population.row(potentialPartners[i]));\n\t\t\t\t\tif (compatiablity > abs_min_value) {\n\t\t\t\t\t\tpartner = potentialPartners[i];\n\t\t\t\t\t\tfoundpartner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (foundpartner == false)\n\t\t\t\t\tpartner = r.nextInt(population.rows());\n\n\t\t\t\tdouble[] secondParent = population.row(partner);\n\t\t\t\tdouble[] newChild = population.newRow();\n\t\t\t\tint splitpoint = r.nextInt((int) numberofGenes / 4);\n\n\t\t\t\tfor (int i = 0; i < splitpoint; i++) // logic to a for loop and two if statements\n\t\t\t\t\tnewChild[i] = parent[i];\n\t\t\t\tfor (int i = splitpoint; i < numberofGenes; i++)\n\t\t\t\t\tnewChild[i] = secondParent[i];\n\n\t\t\t\t// for (int i = 0; i < population.rows(); i++) {\n\t\t\t\t// if (Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t\t\t// NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t// numOfWins++;\n\t\t\t\t// } else { }\n\n\t\t\t\t// Test for the best in the given population\n\t\t\t\t// win_Collection.add(numOfWins);\n\t\t\t\t// printWeights(population.row(0));\n\n\t\t\t}\n\t\t\tgenerationNum++;\n\t\t\tfor (int i = 0; i < population.rows(); i++) {\n\t\t\t\tif (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t\tnumOfWins++;\n\t\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of Winners: \" + numOfWins);\n\t\t\tnumOfWins = 0;\n\n\t\t}\n\t\tprintWeights(population.row(0));\n\t\treturn population.row(0);\n\t}", "@Test\n\tpublic void testGA() {\n\t\tGenetic ga = new Genetic(100, 500, 10, SelectionType.TOURNAMENT , 0.6, 0.1);\n\t\tOptimumSolution os = ga.run();\n\t\tSystem.out.println(os.getSolution());\n\t}", "public synchronized void runGP() throws RemoteException {\n initRMI();\n initGP();\n\n log.info(\"Starting program dispatcher\");\n new Thread(this).start();\n\n int targetFitness = 0;\n for (ISimulator simulator : simulators)\n targetFitness += simulator.getTerminationFitness();\n\n for (int i = 1; i <= generations; i++) {\n while (programsRemaining > 0)\n try { wait(); } catch (InterruptedException ignored) { }\n\n if (best >= targetFitness) {\n log.info(\"Successful individual found.\");\n break;\n }\n\n resetStatistics();\n leader = frontRunner;\n\n if (i % 5 == 0) {\n log.info(\"Writing checkpoint\");\n writeCheckpoint(String.format(\"gen_%08d\", checkpointFileIndex));\n checkpointFileIndex++;\n }\n\n log.info(\"Creating generation #\" + Integer.toString(i));\n programsRemaining = geneticProgram.getPopulationSize();\n geneticProgram.createNextGeneration();\n log.info(\"Created generation #\" + Integer.toString(i));\n }\n\n cleanup();\n }", "private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}", "public void SOM() {\n // Pick an input vector randomly.\n // A input vector can't be picked twice in a row.\n ArrayList<Double> oldVector = new ArrayList<>();\n ArrayList<Double> vector;\n\n for (int t = 0; t < this.nbIterations; t++) {\n\n // Choose another entry vector than the previous one.\n do {\n int randomInput = (int) (Math.random() * this.input.size());\n vector = this.input.get(randomInput);\n } while (oldVector.equals(vector));\n\n // The old vector is replaced by the new one.\n oldVector = new ArrayList<>(vector);\n\n // Calculation of BMU (Best Matching Unit).\n Neuron BMU = this.getBMU(vector);\n\n // Update the BMU's neighbors.\n this.updateNeighbors(BMU, vector, t);\n\n // Update the screen.\n this.screen.repaint();\n // Sleep for the animation.\n try {\n Thread.sleep(10);\n }\n catch (InterruptedException e) {\n System.out.println(\"Erreur sleep : \" + e);\n }\n }\n }", "double getFitnessScore(){\n return fitnessScore;\n }", "void setFitnessScore(double score){\n fitnessScore = score;\n }", "public void runTournament() {\n\t\t//ArrayList<Gene> tournament = new ArrayList<Gene>();\n\t\tPriorityQueue<Gene> tournament = new PriorityQueue<Gene>(Collections.reverseOrder());\n\t\tint numContenders = (int)(FRAC_IN_TOURNAMENT * geneNumber);\n\t\tSet<Integer> chosenOnes = new HashSet<Integer>();\n\t\t\n\t\twhile(chosenOnes.size() < numContenders) {\n\t\t\tint randIndex = (int) (Math.random() * geneNumber);\n\t\t\tchosenOnes.add(randIndex);\n\t\t}\n\t\tfor(int i : chosenOnes){\n\t\t\ttournament.add(genepool.get(i));\n\t\t}\n\t\t//int firstIndex = getMax(tournament, -1);\n\t\t//int secondIndex = getMax(tournament, firstIndex);\n\t\t//Gene parent1 = tournament.get(firstIndex);\n\t\t//Gene parent2 = tournament.get(secondIndex);\n\t\tGene parent1 = tournament.poll();\n\t\tGene parent2 = tournament.poll();\n\t\t// Create a new gene from the 2 fittest genes\n\t\tGene newGene = parent1.waCrossover(parent2);\n\t\t\n\t\t// Calculate fitness for the new gene\n\t\tPlayerSkeleton.runGames(numGames, newGene);\n\t\toffspringPool.add(newGene);\n\t}", "public GeneticEngine() {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n population = null;\n crossoverProbability = 0.07;\n mutationProbability = 0.001;\n maxGenerations = Integer.MAX_VALUE;\n }", "public interface NeatFitness {\n\n\tpublic double calculate(Network network);\n\t\n}", "public double worstFitness()\r\n {\r\n\treturn worstFitness;\r\n }", "static void start() throws IOException\n {\n cms_list = create_cms( num_cms );\n\n\n // 5.do until terminate\n\t\tfor( int iter=0; iter<num_iter; iter++ )\n\t\t{\n\t\t\tstart_t = System.currentTimeMillis();\n\n\t\t\tcms_sol_rdd = spark_selection(); //selction \n\t\t cms_list = new ArrayList( spark_transition_fitness( cms_sol_rdd ));\n\t\t\treduce_t = System.currentTimeMillis();\n\t\t for( int i=0; i<num_cms; i++ )\n if( best_objectvalue > cms_list.get(i)._2() )\n best_objectvalue = cms_list.get(i)._2();\n\n\t\t\tend_t = System.currentTimeMillis();\n\t\t\tprint_best( iter + 1 ); //print\n\t\t}\n }", "public int getFitness(){\n\t\treturn getEnergy()*-1; \n\t}", "@Override\n\tpublic FTrend execute(Problem problem, int maxEvaluations) throws Exception\n\t{\n\t\tFTrend FT = new FTrend(); // Create a fitness trend instance\n\t\tint problemDimension = problem.getDimension(); // Store the dimensionality of the problem domain\n\t\tdouble[][] bounds = problem.getBounds(); // Store the bounds of each variable in the problem domain\n\t\t\n\t\tdouble[] best = new double[problemDimension]; // Initialise the best known solution variable\n\t\tdouble fBest = Double.NaN; // Initialise the fitness value, i.e. \"f(x)\", of the best solution known\n\t\tint k = 0; // Initialise the incremental counter variable\n\t\t\n\t\t// Self-Adaptive Differential Evolution (jDE - jitterDE) variables\n\t\tint populationSize \t \t\t\t= getParameter(\"p0\").intValue(); // Initialise the population size \n\t\t//double scalingFactor \t\t\t= getParameter(\"p1\").doubleValue(); // Initialise the scaling factor of the mutation operator\n\t\t//double crossoverRate \t\t\t= getParameter(\"p2\").doubleValue(); // Initialise the crossover rate of the binomial crossover operator\n\t\tdouble scalingFactorLowerBound \t= getParameter(\"p3\").doubleValue(); // Initialise the upper bound value of the scaling factor of the mutation operator\n\t\tdouble scalingFactorUpperBound \t= getParameter(\"p4\").doubleValue(); // Initialise the lower bound value of the scaling factor of the mutation operator\n\t\tdouble tauOne \t\t\t\t\t= getParameter(\"p5\").doubleValue(); // Initialise the first random probability controlling the scaling factor of the mutation operator\n\t\tdouble tauTwo \t\t\t\t\t= getParameter(\"p6\").doubleValue(); // Initialise the second random probability controlling the binomial crossover rate of the crossover operator\n\t\t\n\t\tdouble[] scalingFactor = new double[populationSize]; // Initialise the scaling factor of the mutation operator\n\t\tdouble[] crossoverRate = new double[populationSize]; // Initialise the crossover rate of the binomial crossover operator\n\t\t\n\t\tdouble[][] population = new double[populationSize][problemDimension]; // Initialise the population of individuals (solutions) variable\n\t\tdouble[] solutionFitness = new double[populationSize]; // Initialise the fitness of a solution (individual) variable\n\t\t\n\t\t// Short Distance Exploration (SDE) variables\n\t\tdouble alpha \t\t\t\t= getParameter(\"p7\"); // Initialise the alpha cut value of the length of the problems decision space\n\t\tdouble proceduralIterations = getParameter(\"p8\").intValue(); // Initialise the procedural iteration budget variable\n\t\t\n\t\tdouble fShort = fBest; // Initialise the fitness value, i.e. \"f(x)\", of the trial solution\n\t\tdouble[] xShort = best; // Initialise the trial solution variable\n\t\tdouble[] exploratoryRadius = new double[problemDimension]; // Initialise the exploratory radius variable for the Short Distance Exploration (S) algorithm\n\t\t\n\t\t// Evaluate initial population of individuals\n\t\tfor (int i = 0; i < populationSize; i++) // For the size of the population of individuals (solutions), do the following\n\t\t{\n\t\t\tdouble[] initialSolution = generateRandomSolution(bounds, problemDimension); // Generate the initial solution (guess)\n\t\t\t\n\t\t\tfor (int j = 0; j < problemDimension; j++) // For the dimensionality of the problem, do the following\n\t\t\t{\n\t\t\t\tpopulation[i][j] = initialSolution[j]; // Initialise the iterated solution (individual) that comprises the population, to the initial solution randomly generated \n\t\t\t}\n\t\t\t\n\t\t\tsolutionFitness[i] = problem.f(population[i]); // Calculate and store the fitness (value) of the iterated solution (individual)\n\t\t\tk++; // Increment the counter to near the computational budget\t\t\n\n\t\t\tif (i == 0 || solutionFitness[i] < fBest) // If the solution generated is the first solution in the population or the fitness of the solution is better than the fitness of the best known solution, do the following\n\t\t\t{\n\t\t\t\tfBest = solutionFitness[i]; // Store the iterated solutions (individuals) fitness (value) as the best known solution\n\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < problemDimension; j++) // For the dimensionality of the problem, do the following\n\t\t\t\t{\n\t\t\t\t\tbest[j] = population[i][j]; // Update the best solution to the points comprising the iterated solution (individual) in the population\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (i == 0 || k % 100 == 0) // If the iterated individual in the population is first individual in the population or the current iteration is divisible by '100' and has no remainder, do the following\n\t\t\t{\n\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Main loop\n\t\twhile (k < maxEvaluations) // While the computational budget has not been met, do the following\n\t\t{\n\t\t\tdouble[][] nextGeneration = new double[populationSize][problemDimension]; // Reinitialise the next generation of individuals representing the population variable\n\t\t\t\n\t\t\tfor (int j = 0; j < populationSize && k < maxEvaluations; j++) // For the size of the population of individuals (solutions) and whilst within the computational budget, do the following\n\t\t\t{\n\t\t\t\tint fitnessTrendPopulated = 0; // Initialise the fitness trend populated variable\n\t\t\t\t\n\t\t\t\tdouble[] mutantIndividual \t = new double[problemDimension]; // Reinitialise the mutated individuals variable\n\t\t\t\tdouble[] crossoverIndividual = new double[problemDimension]; // Reinitialise the offspring variable\n\t\t\t\tdouble[] populationIndividual = new double[problemDimension]; // Reinitialise the individual (solution) comprising the population variable \n\t\t\t\t\n\t\t\t\tdouble currentFitness \t= Double.NaN; // Reinitialise the fitness of the current solution (individual)\n\t\t\t\tdouble crossoverFitness = Double.NaN; // Reinitialise the fitness of the offspring solution (individual)\n\t\t\t\t\n\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t{\n\t\t\t\t\tpopulationIndividual[l] = population[j][l]; // Initialise the individual (solution) in the population to the iterated individual in the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentFitness = solutionFitness[j]; // Set the current fitness (value) to the fitness of the current individual (solution)\n\t\t\t\n\t\t\t\t// Update the scaling factor (F)\n\t\t\t\tif (RandUtils.random() < tauOne) // If the randomly generated number is smaller than the probability of controlling the scaling factor of the mutation operator, do the following\n\t\t\t\t{\n\t\t\t\t\tscalingFactor[j] = scalingFactorLowerBound + RandUtils.random() * scalingFactorUpperBound; // Resample the scaling factor for the iterated individual of the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// DE/rand/1 mutation operator\n\t\t\t\tmutantIndividual = originalMutation(population, scalingFactor[j], problemDimension); // Function call, mutate the population of individuals to obtain a new mutated individual\n\t\t\t\t//mutantIndividual = toro(mutantIndividual, bounds); // Correct the mutated individual (solution) that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\n\t\t\t\t// Update the crossover rate (CR)\n\t\t\t\tif (RandUtils.random() < tauTwo) // If the randomly generated number is smaller than the probability of controlling the crossover rate of the binomial crossover operator, do the following\n\t\t\t\t{\n\t\t \tcrossoverRate[j] = RandUtils.random(); // Resample the crossover rate for the iterated individual of the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Binomial crossover operator\n\t\t\t\tcrossoverIndividual = binomialCrossover(populationIndividual, mutantIndividual, crossoverRate[j], problemDimension); // Function call, crossover the current individual and the mutated individual, binomially (recombination)\n\t\t\t\tcrossoverIndividual = toro(crossoverIndividual, bounds); // Correct the offspring individual (solution) that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\n\t\t\t\tcrossoverFitness = problem.f(crossoverIndividual); // Calculate and store the fitness (value) of the offspring solution (individual)\n\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\n\t\t\t\t// Replace the original individual in the population\n\t\t\t\tif (crossoverFitness < currentFitness) // If the offspring individual is fitter than the original individual in the population, do the following\n\t\t\t\t{\n\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t{\n\t\t\t\t\t\t// Survivor selection (1-to-1 spawning)\n\t\t\t\t\t\tnextGeneration[j][l] = crossoverIndividual[l]; // Replace the original individual (solution) in the population with the offspring individual (solution)\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tsolutionFitness[j] = crossoverFitness; // Update the fitness of the individual (solution) to the fitness of the offspring individual (solution)\n\t\t\t\t\t\n\t\t\t\t\t// Update the best known solution\n\t\t\t\t\tif (crossoverFitness < fBest) // If the offspring individual (solution) is fitter than the best known individual (solution), do the following\n\t\t\t\t\t{\n\t\t\t\t\t\tfBest = crossoverFitness; // Update the fitness (value) of the best known solution to the fitness (value) of the offspring individual (solution)\n\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tbest[l] = crossoverIndividual[l]; // Update the best known individual (solution) to the offspring individual (solution)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Reset exploratory radius\n\t\t\t\t\t\tfor (int i = 0; i < problemDimension; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texploratoryRadius[i] = alpha * (bounds[i][1] - bounds[i][0]); // Calculate and the exploratory radius for each variable in the problem domain\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Main loop\n\t\t\t\t\t\tfor (int l = 0; l < proceduralIterations && k < maxEvaluations; l++) // For the size of the procedural iteration budget and whilst within the computational budget, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboolean improved = false; // Initialise the improved variable (reinitialise every iteration)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < problemDimension && k < maxEvaluations; i++) // For the dimensionality of the problem and whilst within the computational budget, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\txShort[i] = best[i] - exploratoryRadius[i]; // Perturb the currently iterated variable in the problem domain, negatively, along the corresponding axis (exclusively) \n\t\t\t\t\t\t\t\txShort = toro(xShort, bounds); // Correct the trial solution that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfShort = problem.f(xShort); // Calculate the new fitness value of the trial solution\n\t\t\t\t\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (fShort <= fBest) // If the trial solution is an improvement or equivalent to the best known solution, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbest[i] = xShort[i]; // Update the best known solution to the current trial solution (one variable perturbed at each iteration)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfBest = fShort; // Store the fitness value of the improved trial solution\n\t\t\t\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\timproved = true; // The trial solution is an improvement or equivalent to the best known solution\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (k < maxEvaluations) // Else if the trial solution is not an improvement to the best solution found and its within the computational budget, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\txShort[i] = best[i] + (exploratoryRadius[i] / 2); // Perturb the currently iterated variable in the problem domain, positively (half-step), along the corresponding axis (exclusively) \n\t\t\t\t\t\t\t\t\txShort = toro(xShort, bounds); // Correct the trial solution that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfShort = problem.f(xShort); // Calculate the new fitness value of the trial solution\n\t\t\t\t\t\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (fShort <= fBest) // If the trial solution is an improvement or equivalent to the best known solution, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbest[i] = xShort[i]; // Update the best known solution to the current trial solution (one variable perturbed at each iteration)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfBest = fShort; // Store the fitness value of the improved trial solution\n\t\t\t\t\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\timproved = true; // The trial solution is an improvement or equivalent to the best known solution\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse // Else if the trial solution is not an improvement to the best solution found, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\txShort[i] = best[i]; // Return to the original point after the perturbations, as an improvement could not be recognised\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (improved == false) // If the current best solution has never improved from the initial best solution, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor (int i = 0; i < exploratoryRadius.length; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\texploratoryRadius[i] = exploratoryRadius[i] / 2; // Store the exploratory radius for each variable in the problem domain to itself, halved (closer search from initial solution in case the initial guess is the optimum)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse // Else if the current best solution has improved from the initial best solution, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor (int i = 0; i < problemDimension; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnextGeneration[j][i] = best[i]; // Replace the original individual (solution) in the population with the best known solution (individual)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsolutionFitness[j] = fBest; // Update the fitness of the individual (solution) to the fitness of the best known solution (individual)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse // Else if the offspring individual is not fitter than the original individual in the population, do the following\n\t\t\t\t{\n\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t{\n\t\t\t\t\t\tnextGeneration[j][l] = populationIndividual[l]; // Restore the design variables (genes) of the original individual (solution) as the updated individual (solution)\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tsolutionFitness[j] = currentFitness; // Restore the fitness (value) of the solution to the fitness (value) of the iterated individual (solution)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t{\n\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Survivor selection (1-to-1 spawning)\n\t\t\tpopulation = nextGeneration; // Update the current population of individuals to the next generation of fitter individuals\n\t\t}\n\t\t\n\t\tfinalBest = best; // Store the final iteration of the best known solution\n\t\tFT.add(k, fBest); // Add the final iteration of the best known solution to the fitness trend (saved to a .txt file)\n\n\t\treturn FT; // Return the fitness trend\n\t}", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n }\n //System.arraycopy(currentPopulation[best], 0, bestSolution, 0, dimension);\n copy(bestSolution, currentPopulation[best]);\n }", "public Vector run(){\n// System.out.println(\"Minimum radius is: \" + minRadius);\n// System.out.println(\"Maximum radius is: \" + maxRadius);\n Vector clusters = new Vector();\n double fitnessSum = 0;\n for (int q = 0; q < numTests; q++){\n Gene hypothesis = initializer.createRandomGene(fitnessFunction, minRadius, maxRadius);\n //This turns it into a circle.\n if (Math.random() > 0.5){ \n hypothesis.setMajorAxisRadius(hypothesis.getMinorAxisRadius());\n } else { \n hypothesis.setMinorAxisRadius(hypothesis.getMajorAxisRadius());\n }\n// System.out.println(hypothesis);\n double fitness = hypothesis.getFitness();\n fitnessSum = fitnessSum + fitness;\n if ((hypothesis.getCount() >= minPoints) && (fitness >= minAccepted)){\n clusters.add(hypothesis);\n }\n }\n averageFitness = fitnessSum/numTests;\n return clusters;\n }", "public NeuralPlayer[] bestIndividual(boolean recalculate)\n\t{\n\t\tif (recalculate)\n\t\t{\n\t\t\tCollection<Callable<Integer>> tasks = new ArrayList<Callable<Integer>>(numThreads);\n\t\t\t\n\t\t\tfor (int i = 0 ; i < hosts.length; i+=partition)\n\t\t\t{\n\t\t\t\tCallable<Integer> worker = new fitnessCalculator(i,Math.min(i+partition,hosts.length),true);\n\t\t\t\ttasks.add(worker);\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\texecutor.invokeAll(tasks);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tArrays.sort(hRandFitnesses,new ArrayComparator(1,false));\n\t\t\tArrays.sort(pRandFitnesses,new ArrayComparator(1,false));\n\t\t\tdouble bestScore = hRandFitnesses[0][1];\n\t\t\tdouble bestIndex = hRandFitnesses[0][0];\n\t\t\t\n\t\t\tif (bestScore >= bestHost)\n\t\t\t{\n\t\t\t\tif (bestScore == 100)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"WE HAVE A PERFECT HOST\");\n\t\t\t\t\tSystem.out.println(\"WE HAVE A PERFECT HOST\");\n\t\t\t\t\tReversiBoard b = new ReversiBoard(boardSize);\n\t\t\t\t\tRandomPlayer r = new RandomPlayer(-1, \"Mr Random\");\n\t\t\t\t\tGame gg = new Game(hosts[(int)bestIndex],r,b);\n\t\t\t\t\tdouble score1 = gg.playGames(1000,false)[0];\n\t\t\t\t\t\n\t\t\t\t\tgg = new Game(allTimeBestHost,r,b);\n\t\t\t\t\tdouble score2 = gg.playGames(1000,false)[0];\n\t\t\t\t\t\n\t\t\t\t\tif (score1 >= score2)\n\t\t\t\t\t{\n\t\t\t\t\t\tbestHost = bestScore;\n\t\t\t\t\t\tallTimeBestHost = new NeuralPlayer(1,\"Da best H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\t\t\t}\n\t\t\t\t\tperfectHosts.add(new NeuralPlayer(1,\"A good H\",(BasicNetwork)hosts[(int)bestIndex].net.clone()));\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\tbestHost = bestScore;\n\t\t\t\t\tallTimeBestHost = new NeuralPlayer(1,\"Da best H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tbestScore = pRandFitnesses[0][1];\n\t\t\tbestIndex = pRandFitnesses[0][0];\n\t\t\t\n\t\t\tif (bestScore >= bestPara)\n\t\t\t{\n\t\t\t\tif (bestScore == 100)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"WE HAVE A PERFECT PARASITE\");\n\t\t\t\t\tSystem.out.println(\"WE HAVE A PERFECT PARASITE\");\n\t\t\t\t\tReversiBoard b = new ReversiBoard(boardSize);\n\t\t\t\t\tRandomPlayer r = new RandomPlayer(1, \"Mr Random\");\n\t\t\t\t\tGame gg = new Game(r,parasites[(int)bestIndex],b);\n\t\t\t\t\tdouble score1 = gg.playGames(1000,false)[1];\n\t\t\t\t\t\n\t\t\t\t\tgg = new Game(allTimeBestPara,r,b);\n\t\t\t\t\tdouble score2 = gg.playGames(1000,false)[1];\n\t\t\t\t\t\n\t\t\t\t\tif (score1 >= score2)\n\t\t\t\t\t{\n\t\t\t\t\t\tbestPara = bestScore;\n\t\t\t\t\t\tallTimeBestPara = new NeuralPlayer(-1,\"Da best P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\t\t\t\t}\n\t\t\t\t\tperfectParasites.add(new NeuralPlayer(-1,\"A good P\",(BasicNetwork)parasites[(int)bestIndex].net.clone()));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbestPara = bestScore;\n\t\t\t\t\tallTimeBestPara = new NeuralPlayer(-1,\"Da best P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tNeuralPlayer[] result = {allTimeBestHost,allTimeBestPara};\n\t\treturn result;\n\t}", "private synchronized void updateFitness(int index, int fitness) {\n geneticProgram.setProgramFitness(index, fitness);\n programsRemaining--;\n updateStatistic(index, fitness);\n notifyAll();\n }", "public void runGenerational() {\n\n\t\tSystem.out.println(\"Runing pure generational demo.\");\n\t\tFunction<BitSet, Double> knapsackFitnessFunction = new KnapsackFitness(capacity, parseElements());\n\t\tSpace<BitSet> space = new BitSetSpace(weights.length);\n\n\t\tGeneticSelector<BitSet, Double> rouletteSelector = new RouletteGeneticSelector<>(POP_SIZE);\n\t\tGeneticCrossover<BitSet, Double> crossover = new BinaryCrossover<>(0.9);\n\t\tGeneticOperator<BitSet, Double> geneticOperator = new CustomGeneticOperator<>(crossover);\n\t\tGeneticReplacement<BitSet, Double> replacement = new GenerationalReplacement<>();\n\t\tTracer.add(Population.class);\n\t\tTracer.start();\n\n\t\tSearch<BitSet, Double> search = new GeneticAlgorithm<>(POP_SIZE, NUM_ITER, rouletteSelector, geneticOperator,\n\t\t\t\treplacement);\n\t\tOptimizationProblem<BitSet, Double> problem = new OptimizationProblem<>(space, knapsackFitnessFunction,\n\t\t\t\tComparator.reverseOrder());\n\t\tSolution<BitSet, Double> foundSolution = search.solve(problem);\n\n\t\tSystem.out.println(String.format(\"Best found solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(foundSolution.getSolution()), foundSolution.getSolution()));\n\n\t\tBitSet optimalBitSet = parseOptimalBitSet();\n\t\tSystem.out.println(String.format(\"Optimal solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(optimalBitSet), optimalBitSet));\n\t\tKnapsackMetric metric = new KnapsackMetric();\n\t\tmetric.putDataOfBestInFile(1);\n\t}", "@Test\n public void testGetFitness() throws Exception {\n HeterogeneousComputingEnv envTest = nestedDependency();\n\n ScheduleChromosome chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n StatsFactory statsFact = new StatsFactory(envTest, fitnessCalc);\n Stats stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 2 - last 2 tasks in parallel\n envTest = oneRootTwoDepenendantTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 3 - chained tasks in same processor\n envTest = chaindedDependency();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 4 - independent tasks\n envTest = independentTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n }", "public void steepestDescent() {\r\n ArrayList<Atom> atoms = cluster.getAtoms();\r\n Atom a;\r\n int numAtoms = atoms.size();\r\n double potentialEnergy;\r\n double trialPotential;\r\n int i;\r\n\r\n //Increment time\r\n totalTime += currentStep;\r\n\r\n //Calculate force on each atom\r\n cluster.calculateForces();\r\n\r\n //Get energy of current configuration\r\n HashMap<String, Double> energies = cluster.getEnergies();\r\n potentialEnergy = 0.0;\r\n for(String eName : energies.keySet())\r\n potentialEnergy += energies.get(eName).doubleValue();\r\n\r\n //Save current atom positions and advance atoms to trial positions\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n savedLocations[i].x = a.location.x;\r\n savedLocations[i].y = a.location.y;\r\n savedLocations[i].z = a.location.z;\r\n\r\n //Compute trial locations\r\n a.location.x += a.force.x * currentStep;\r\n a.location.y += a.force.y * currentStep;\r\n a.location.z += a.force.z * currentStep;\r\n }\r\n\r\n //Get energy of the trial configuration\r\n energies = cluster.getEnergies();\r\n trialPotential = 0.0;\r\n for(String eName : energies.keySet())\r\n trialPotential += energies.get(eName).doubleValue();\r\n\r\n //Decide whether to keep trial configuration based on convergence\r\n if(trialPotential < potentialEnergy) {\r\n //Keep positions and check for convergence\r\n if(Math.abs((potentialEnergy - trialPotential) / potentialEnergy) < convergenceCriterion)\r\n isConverged = true;\r\n\r\n currentStep *= 1.2;\r\n } else {\r\n //Restore old positions\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n a.location.x = savedLocations[i].x;\r\n a.location.y = savedLocations[i].y;\r\n a.location.z = savedLocations[i].z;\r\n }\r\n\r\n currentStep *= 0.5;\r\n }\r\n }", "public void evaluate() {\r\n Statistics.evaluate(this);\r\n }" ]
[ "0.7451384", "0.7139092", "0.7016479", "0.7014379", "0.6880949", "0.68346465", "0.6820535", "0.6794771", "0.67432576", "0.6738808", "0.6671665", "0.66599536", "0.657629", "0.6573092", "0.6558605", "0.64295495", "0.6410402", "0.63919955", "0.6315454", "0.6311757", "0.6311264", "0.63091576", "0.62697953", "0.6249038", "0.62243915", "0.6198431", "0.6194532", "0.6182454", "0.61815107", "0.6168664", "0.61533195", "0.6138441", "0.6114034", "0.6109247", "0.61004597", "0.6099645", "0.6092003", "0.60852987", "0.60562396", "0.6055546", "0.6045862", "0.60421735", "0.60319036", "0.602917", "0.5994543", "0.5987647", "0.59758025", "0.59512675", "0.59472567", "0.5945482", "0.5935847", "0.5933875", "0.5920332", "0.5916841", "0.5897463", "0.58941597", "0.5887735", "0.5879072", "0.58725697", "0.5862153", "0.58600056", "0.58519316", "0.5848129", "0.5846604", "0.5837839", "0.58257353", "0.5823836", "0.58196163", "0.58158535", "0.5809406", "0.57997346", "0.5789192", "0.57722986", "0.57617885", "0.5760844", "0.5754416", "0.574737", "0.57426673", "0.57379115", "0.57302946", "0.571526", "0.5712885", "0.5712761", "0.5708842", "0.57035035", "0.56925577", "0.5683951", "0.56737775", "0.56698936", "0.5644091", "0.5637091", "0.5630813", "0.5611027", "0.5608315", "0.5599765", "0.5597565", "0.5597387", "0.5592262", "0.55831915", "0.5559756", "0.5550992" ]
0.0
-1
THIS METHOD SHOULD BE CALLED RIGHT BEFORE EACH CALL TO METHOD simulate (SEE BELOW). THAT IS, IT MUST BE CALLED RIGHT BEFORE EACH SIMULATION (.
public void initializeAgentsPositions(int seed) { //THE NEXT LINE MEANS THAT ALL INDIVIDUALS WILL BE EVALUATED WITH THE SAME //ENVIRONEMNT STARTING POSITIONS. //reset cells prey.setCell(null); for (Predator predator : predators) { predator.setCell(null); } prey.setCell(getCell(GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length))); for (Predator predator : predators) { do { Cell cell = getCell( GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length)); if (!cell.hasAgent()) { predator.setCell(cell); } } while (predator.getCell() == null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "public abstract void simulate();", "public abstract int simulate();", "private void runSimulation() throws Exception{\n\t\tsimulatable.simulate();\n\t\tprintUsage();\n\t}", "public void quickSimulation() {\n\t\tnew SimulationControleur();\n\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 }", "protected static void runningSimulation() {\n Scanner sc = new Scanner(System.in);\n\n try {\n // Getting the simulation type.\n System.out.print(\"Select the Simulation Method : \\n\" +\n \"\\t0 : To Run the Simulation to the Current Waiting Room\\n\" +\n \"\\t1 : To Run the Simulation for the Whole Waiting Room\\n\" +\n \"\\n\\t\\t : \");\n int situation = sc.nextInt();\n sc.nextLine();\n\n // Checking if the Simulation Type is valid.\n if (situation == 0 || situation == 1) {\n creatingSimulationStats(situation);\n simulationReport(TrainStation.getSimulationTrainQueues());\n launchingSimulationGUI(\"SimTQ\", TrainStation.getSimulationTrainQueues(), 0, 0, 0);\n\n }\n // When the simulation type is invalid.\n else {\n System.out.println(\"Invalid Selection.\");\n mainMenu();\n }\n }\n // When an Invalid character is added.\n catch (InputMismatchException e) {\n System.out.println(\"Invalid Input.\");\n mainMenu();\n }\n // When an error is OCCured when writing the simulation report.\n catch ( IOException e) {\n System.out.println(\"ERROR - Making the Simulation Report.\");\n mainMenu();\n }\n }", "@Override\n public void simulationPeriodic() {\n }", "@Override\n public void simulationPeriodic() {\n }", "protected void runBeforeIterations() {}", "public void startSimulation();", "@Before\n\tpublic void setUp() throws Exception {\n\t\trand = new Random();\n\t\tlong seed = rand.nextLong();\n\t\tmockTG = mock(TrapGrid.class);\n\t\ttestSimRunner1 = new SimulationRunner(mockTG, numDays, numFlies, diffCoeff, \n\t\t\t\tstepSize, stepsPerDay, turnAngleStdev, useMDD, seed, 5);\n\t\tmockSim1 = mock(Simulation.class);\n\t\ttestSimRunner2 = spy(new SimulationRunner(mockTG, numDays, numFlies, diffCoeff, \n\t\t\t\tstepSize, stepsPerDay, turnAngleStdev, useMDD, seed, 2));\n\t\tdoReturn(mockSim1)\n\t\t\t.when(testSimRunner2)\n\t\t\t.createSimulation( any( TrapGrid.class), any ( Outbreak.class));\n\t\tSimulationResultsHolder mockSimResults = mock(SimulationResultsHolder.class);\n\t\tdoReturn(mockSimResults)\n\t\t\t.when(mockSim1)\n\t\t\t.runSimulation();\n\t\tString outbreakFile = \"foo.outbreak\";\n\t\ttestSimRunner3 = new SimulationRunner(mockTG, outbreakFile, numDays, numFlies, diffCoeff, \n\t\t\t\tstepSize, stepsPerDay, turnAngleStdev, useMDD, seed);\n\t}", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "public void advanceSimulation () {\n\t\tstep_++;\n\t}", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "@Override\n\tpublic void onSimulationComplete()\n\t{\n\t}", "private void random() {\n\n\t}", "protected void initializeExecutionRandomness() {\r\n\r\n\t}", "@Override\r\n\tpublic void step(SimState state) {\r\n\r\n\t}", "@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}", "SimulationRun() {\n firms = new ArrayList<>();\n }", "public abstract String simulate(double inputFlow);", "@Before\n\tpublic void setUp() throws Exception {\n\t\tsimulator = new Simulator(4, 30);\n\t}", "private static void runNeedleSimulation() {\n\t\tint iterations = numbersOfIterations(new Scanner(System.in));\n\t\tint hits = needleSimulation(iterations);\n\t\tdouble pi = piCalculation(iterations, hits);\n\t\tSystem.out.println(pi);\n\t\t\n\t\t\n\t}", "public void mo38850q() {\n }", "protected void fireSimulateEvent ()\n {\n\tJsimEvent evt;\n\tSimulate controlData = collectControlData ();\n\tString SLASH = System.getProperty (\"file.separator\");\n\tString fname = System.getProperty (\"user.home\");\n\tString xmlStr;\n\n\tif (use_xml) {\n try {\n\t\t Vector data = new Vector (); data.add (controlData);\n\t\t if (generate_xml_files) {\n\t\t\tfname += SLASH + \"JSIM\" + SLASH + \"jsim\" + SLASH +\n\t\t\t\t\t\"jmessage\" + SLASH + \"simulate.xml\";\n\t\t\txmlStr = XMLSerializer.serialize (data, fname);\n\t\t } else {\n\t\t\txmlStr = XMLSerializer.serialize (data);\n\t\t }; // if\n evt = new JsimEvent (this, EventMap.SIMULATE_EVT, xmlStr);\n } catch (Exception e) {\n trc.tell (\"fireSimulateEvent \", e.getMessage ());\n e.printStackTrace ();\n return ;\n }\n\t} else {\n\t evt = new JsimEvent (this, EventMap.SIMULATE_EVT, controlData);\n\t}; // if\n\n\tfireJsimEvent (evt);\n\n }", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public void intialRun() {\n }", "public void mo3376r() {\n }", "private void initSimulation()\r\n {\r\n int mark = rn.nextInt(2);\r\n if(mark == 0)\r\n {\r\n computer.setMarker(Marker.cross);\r\n marker = computer.getMarker();\r\n computer2.setMarker(Marker.circle);\r\n computer.makeMove(this);\r\n turn = 2;\r\n }\r\n else\r\n {\r\n computer.setMarker(Marker.circle);\r\n computer2.setMarker(Marker.cross);\r\n marker = computer2.getMarker();\r\n computer2.makeMove(this);\r\n turn = 1;\r\n }\r\n bh.setBoard(this);\r\n simtime.start();\r\n }", "public void run() {\n RandomizedContext current = RandomizedContext.current();\n try {\n current.push(c.randomness);\n runSingleTest(notifier, c);\n } catch (Throwable t) {\n Rethrow.rethrow(augmentStackTrace(t)); \n } finally {\n current.pop();\n }\n }", "protected void runBeforeIteration() {}", "void PrepareRun() {\n }", "protected void preTest() {\n\t\tprintTestParmas();\n\t\tif (attenuatorSetUnderTest != null) {\n\t\t\tperipheralsConfig.setAttenuatorSetValue(attenuatorSetUnderTest,\n\t\t\t\t\tattenuatorSetUnderTest.getDefaultValueAttenuation());\n\t\t} else {\n\t\t\treport.report(\"There is no attenuator set \");\n\t\t}\n\t\tchangeOtherENBsToOOS();\n\n\t\t/*if (runWithDynamicCFI)\n\t\t\tenbConfig.enableDynamicCFI(this.dut);\n\t\telse\n\t\t\tenbConfig.disableDynamicCFI(this.dut);*/\n\t\t\n\t\tgetRadioProfile();\n\n\t\tprintResultsForTest = true;\n\t\tresetTestBol = false;\n\t\texceptionThrown = false;\n\t}", "public void finishSimulation() {\n finishSimulation(0.0);\n }", "static int runSimulation1() {\r\n\t\tSimulation sim1 = new Simulation(8, 8, false, false);\r\n\t\twhile(sim1.sameSquare() == false) { //stop when sameSquare\r\n\t\t\tsim1.doMove();\r\n\t\t}\r\n\t\treturn sim1.getTime();\r\n\t}", "private void test() {\n\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "private void simulate() throws Exception {\r\n\t\t// Retrieve instructions from an input file\r\n\t\tList<String> instructions = SimulationUtils.retrieveInstructionsFromFile(\r\n\t\t\t\t\t\t\t\t\t\t\tConfigUtils.getInstance().getInstructionInputFilePath());\t\t\r\n\t\t\r\n\t\t// Initialise the ToyRobot with TableSurface information\r\n\t\tToyRobot robot = new ToyRobot(new TableSurface());\r\n\t\tCommandController controller = new CommandController();\r\n\t\t\r\n\t\t// Set up a new instruction decoder with details about\r\n\t\t// the text instructions, the robot and the command controller.\t\t\r\n\t\t// The decoder parses the instructions into commands for the robot\r\n\t\t// and registers them with the command controller for execution\r\n\t\t// (\"client\" in the COMMAND pattern).\r\n\t\tnew TextInstructionDecoder(instructions, controller, robot).decodeAndRegister();\r\n\t\t\r\n\t\t// The command controller triggers the seamless execution of the commands\r\n\t\t// (\"invoker\" in the COMMAND pattern).\r\n\t\tcontroller.executeCommands();\r\n\t}", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "boolean step()\n {\n int width, height, x, y;\n\n // Check if food found.\n if (agar.foodCells[headSegment.x][headSegment.y] <= Agar.FOOD_CONSUMPTION_RANGE)\n {\n foundFood = true;\n }\n if (foundFood)\n {\n return(true);\n }\n\n // Step simulation?\n if (driver == DRIVER_TYPE.WORMSIM.getValue())\n {\n double dorsal = 1.0;\n double ventral = 1.0;\n switch (agar.currentFood)\n {\n case Agar.RED_FOOD:\n dorsal = 1.5;\n break;\n\n case Agar.GREEN_FOOD:\n dorsal = 1.08;\n break;\n\n case Agar.BLUE_FOOD:\n ventral = 1.06;\n break;\n }\n if (DORSAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE != -1.0)\n {\n dorsal = DORSAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE;\n }\n if (VENTRAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE != -1.0)\n {\n ventral = VENTRAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE;\n }\n Wormsim.overrideSMBmuscleAmplifiers(dorsal, ventral);\n synchronized (wormsimLock)\n {\n Wormsim.step(0.0);\n }\n getSegmentSimPositions();\n }\n\n // Cycle segments.\n width = Agar.GRID_SIZE.width;\n height = Agar.GRID_SIZE.height;\n for (int i = 0; i <= NUM_BODY_SEGMENTS; i++)\n {\n Segment segment;\n if (i == 0)\n {\n segment = headSegment;\n }\n else\n {\n segment = bodySegments[i - 1];\n }\n\n int nx, ny, sx, sy, wx, wy, ex, ey;\n x = segment.x;\n y = segment.y;\n nx = x;\n ny = ((y + 1) % height);\n wx = x - 1;\n if (wx < 0) { wx += width; }\n wy = y;\n ex = ((x + 1) % width);\n ey = y;\n sx = x;\n sy = y - 1;\n if (sy < 0) { sy += height; }\n\n // Head segment?\n if (i == 0)\n {\n // Initialize sensors.\n int[] sensors = new int[headSegment.NUM_SENSORS];\n float dist = agar.foodCells[headSegment.x][headSegment.y];\n float d = 0.0f;\n int dir = CENTER;\n for (int j = 0; j < NUM_DIRECTIONS; j++)\n {\n switch (j)\n {\n case NORTHWEST:\n d = agar.foodCells[wx][ny];\n break;\n\n case NORTH:\n d = agar.foodCells[nx][ny];\n break;\n\n case NORTHEAST:\n d = agar.foodCells[ex][ny];\n break;\n\n case WEST:\n d = agar.foodCells[wx][wy];\n break;\n\n case CENTER:\n d = agar.foodCells[headSegment.x][headSegment.y];\n break;\n\n case EAST:\n d = agar.foodCells[ex][ey];\n break;\n\n case SOUTHWEST:\n d = agar.foodCells[wx][sy];\n break;\n\n case SOUTH:\n d = agar.foodCells[sx][sy];\n break;\n\n case SOUTHEAST:\n d = agar.foodCells[ex][sy];\n break;\n }\n if (d < dist)\n {\n dist = d;\n dir = j;\n }\n }\n sensors[0] = dir;\n sensors[1] = headSegment.response;\n\n // Cycle segment.\n headSegment.cycle(sensors);\n }\n else\n {\n // Cycle body segment.\n BodySegment bodySegment = bodySegments[i - 1];\n int[] sensors = new int[bodySegment.NUM_SENSORS];\n Segment priorSegment;\n if (i == 1)\n {\n priorSegment = headSegment;\n }\n else\n {\n priorSegment = bodySegments[i - 2];\n }\n x = priorSegment.x;\n y = priorSegment.y;\n int dir = -1;\n for (int j = 0; j < NUM_DIRECTIONS && dir == -1; j++)\n {\n switch (j)\n {\n case NORTHWEST:\n if ((x == wx) && (y == ny)) { dir = NORTHWEST; }\n break;\n\n case NORTH:\n if ((x == nx) && (y == ny)) { dir = NORTH; }\n break;\n\n case NORTHEAST:\n if ((x == ex) && (y == ny)) { dir = NORTHEAST; }\n break;\n\n case WEST:\n if ((x == wx) && (y == wy)) { dir = WEST; }\n break;\n\n case EAST:\n if ((x == ex) && (y == ey)) { dir = EAST; }\n break;\n\n case SOUTHWEST:\n if ((x == wx) && (y == sy)) { dir = SOUTHWEST; }\n break;\n\n case SOUTH:\n if ((x == sx) && (y == sy)) { dir = SOUTH; }\n break;\n\n case SOUTHEAST:\n if ((x == ex) && (y == sy)) { dir = SOUTHEAST; }\n break;\n }\n }\n if (dir == -1) { dir = CENTER; }\n sensors[0] = dir;\n sensors[1] = priorSegment.response;\n sensors[2] = bodySegment.response;\n bodySegment.cycle(sensors);\n\n // Mirror prior segment to avoid worm disintegration.\n if ((Math.abs(priorSegment.x2 - bodySegment.x2) > 1) ||\n (Math.abs(priorSegment.y2 - bodySegment.y2) > 1))\n {\n bodySegment.response = priorSegment.response;\n bodySegment.projectResponsePosition();\n }\n }\n }\n eventTime++;\n\n // Execute responses.\n for (int i = 0; i <= NUM_BODY_SEGMENTS; i++)\n {\n Segment segment;\n if (i == 0)\n {\n segment = headSegment;\n }\n else\n {\n segment = bodySegments[i - 1];\n }\n segment.setProjectedPosition();\n }\n placeWormOnAgar();\n return(false);\n }", "public void step() {\n // method 1 of Temperature randomness\n enPrice = 1.1 * enPrice;\n\n TempChange = Temperature * (0.1 * (1 - 2 * r.nextDouble()));\n // method 2 of Temperature\n// TempChange = temperature_list.get(count);\n// count+=1;\n\n Temperature += TempChange;\n year_num+=1;\n }", "public void startSimulation() {\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\t// if simulation is not in pause state\r\n \t\tif (!stopSimulation.isEnabled()) {\r\n \t\t\t// Asks for confirmation before overwriting previous simulation data\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\t// Find frame to show confirm dialog\r\n \t\t\t\tComponent parent = mainWindow;\r\n \t\t\t\tif (resultsWindow != null && resultsWindow.isFocused()) {\r\n \t\t\t\t\tparent = resultsWindow;\r\n \t\t\t\t}\r\n \r\n\t\t\t\tint resultValue = JOptionPane.showConfirmDialog(parent, \"This operation will overwrite old simulation results. Continue anyway?\",\r\n \t\t\t\t\t\t\"JMT - Warning\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \t\t\t\tif (resultValue == JOptionPane.NO_OPTION) {\r\n \t\t\t\t\treturn;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t// Asks for confirmation if a logger-file exists (and has existing data) [MF08 0.7.4 (Marco Bertoli)]\r\n \t\t\tString[] ln = model.getLoggerNameList();\r\n \t\t\tString ln2 = \"\";\r\n \t\t\tif (ln != null) {\r\n \t\t\t\tif (model.getLoggingGlbParameter(\"autoAppend\")\r\n \t\t\t\t\t\t.equalsIgnoreCase(new Integer(jmt.engine.log.LoggerParameters.LOGGER_AR_ASK).toString())) {\r\n \t\t\t\t\tif (ln.length > 0) {\r\n \t\t\t\t\t\t// Cache the absolute log-path\r\n \t\t\t\t\t\tString logabspath;\r\n \t\t\t\t\t\tif (model.getLoggingGlbParameter(\"path\").equalsIgnoreCase(\"\") || (model.getLoggingGlbParameter(\"path\").equalsIgnoreCase(\".\"))) {\r\n \t\t\t\t\t\t\tlogabspath = new File(\"\").getAbsolutePath() + File.separator;\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tlogabspath = new File(model.getLoggingGlbParameter(\"path\")).getAbsolutePath() + File.separator;\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t// Find if the logfiles have data in them:\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\t//Code to remove duplicate file names from the list to obtain a unique list of File names.\r\n \t\t\t\t\t\t\tArrays.sort(ln);\r\n \t\t\t\t\t\t\tint k = 0;\r\n \t\t\t\t\t\t\tfor (int i = 0; i < ln.length; i++){\r\n \t\t\t\t\t\t\t\tif (i > 0 && ln[i].equals(ln[i -1])){\r\n \t\t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tln[k++] = ln[i];\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString[] unique = new String[k];\r\n \t\t\t\t\t\t\tSystem.arraycopy(ln, 0, unique, 0, k);\r\n \r\n \t\t\t\t\t\t\tfor (String element : unique) {\r\n \t\t\t\t\t\t\t\t// if the files have data, print what will be overwritten\r\n \t\t\t\t\t\t\t\tif (new File(logabspath + element).length() > 0) {\r\n \t\t\t\t\t\t\t\t\t\tln2 = ln2 + element + \", \";\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// remove the trailing comma\r\n \t\t\t\t\t\t\tif (ln2 != \"\") {\r\n \t\t\t\t\t\t\t\tln2 = ln2.substring(0, ln2.length() - 2);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} catch (Exception e) {\r\n \t\t\t\t\t\t\te.printStackTrace();\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\tif (ln2 != \"\") {\r\n \t\t\t\t\t\t\t// Find frame to show dialog\r\n \t\t\t\t\t\t\tComponent parent = mainWindow;\r\n \t\t\t\t\t\t\tif (resultsWindow != null && resultsWindow.isFocused()) {\r\n \t\t\t\t\t\t\t\tparent = resultsWindow;\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\tint resultValue = JOptionPane.showConfirmDialog(parent, \"This operation will modify the following logfile(s): \" + ln2\r\n \t\t\t\t\t\t\t\t\t+ \". \" + \"Continue anyway?\", \"JMT - Warning\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \t\t\t\t\t\t\tif (resultValue == JOptionPane.NO_OPTION) {\r\n \t\t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t//System.out.println(\"Empty file\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t} // end confirmation if file exists\r\n \t\t\t// Correct eventual problems on preloading for closed classes\r\n \t\t\tmodel.manageJobs();\r\n \t\t\tmc = new ModelChecker(model, model, model, model, false);\r\n \t\t\tpw = new JModelProblemsWindow(mainWindow, mc, this);\r\n \t\t\tif (!mc.isEverythingOkNormal()) {\r\n \t\t\t\tpw.show();\r\n \t\t\t}\r\n \t\t\tif (mc.isEverythingOkNormal() || ((!mc.isEverythingOkNormal()) && (pw.continued()))) {\r\n \t\t\t\tif (!model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\t// Removes previous ResultsWindow\r\n \t\t\t\t\t\tif (resultsWindow != null) {\r\n \t\t\t\t\t\t\tresultsWindow.dispose();\r\n \t\t\t\t\t\t\tshowResults.setEnabled(false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tFile temp = File.createTempFile(\"~JModelSimulation\", \".xml\");\r\n \t\t\t\t\t\ttemp.deleteOnExit();\r\n \t\t\t\t\t\tXMLWriter.writeXML(temp, model);\r\n \t\t\t\t\t\t// Creates results data structure\r\n \t\t\t\t\t\tmodel.setSimulationResults(new ResultsModel(model.getPollingInterval()));\r\n \t\t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t\t\tdispatcher = new DispatcherThread(this, model, (ResultsModel) model.getSimulationResults());\r\n \t\t\t\t\t\tdispatcher.startSimulation(temp);\r\n \t\t\t\t\t} catch (Exception e) {\r\n \t\t\t\t\t\thandleException(e);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Removes previous ResultsWindow\r\n \t\t\t\t\tshowResults.setEnabled(false);\r\n \t\t\t\t\tif (resultsWindow != null) {\r\n \t\t\t\t\t\tresultsWindow.dispose();\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (progressWindow == null) {\r\n \t\t\t\t\t\tprogressWindow = new PAProgressWindow(mainWindow, simulate, pauseSimulation, stopSimulation, model\r\n \t\t\t\t\t\t\t\t.getParametricAnalysisModel());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tbatchThread = new PADispatcherThread(this, model, progressWindow);\r\n \t\t\t\t\tchangeSimActionsState(false, true, true);\r\n \t\t\t\t\tprogressWindow.initialize(model.getParametricAnalysisModel().getNumberOfSteps());\r\n \t\t\t\t\tprogressWindow.start();\r\n \t\t\t\t\tprogressWindow.show();\r\n \t\t\t\t\tbatchThread.start();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tif (!model.isParametricAnalysisEnabled()) {\r\n \t\t\t\tdispatcher.restartSimulation();\r\n \t\t\t} else {\r\n \t\t\t\tbatchThread.restartSimulation();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private void runBest() {\n }", "protected void runBeforeStep() {}", "protected void runAfterIterations() {}", "public void mo21793R() {\n }", "public static void main(String[] args) {\n double time=100000;\n lambda=0.012;\n m0=40;\n m1=43;\n m2=85;\n t1=32;\n p1=0.35;\n t2=40;\n p2=0.4;\n t3=65;\n p3=0.25;\n K=10;\n p01=0.8;\n p02=0.2;\n pout=0.5;\n p31=0.3;\n p32=0.2;\n \n simulate(time);\n }", "public void mo21791P() {\n }", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "public void smell() {\n\t\t\n\t}", "public void mo21795T() {\n }", "@Test\n\tpublic void testSimulationPrime2() throws NoIdException{\n\t\tList<Monkey> primeMonkeys = new LinkedList<Monkey>();\n\t\tMonkeySim monkeySim = new MonkeySim();\n\t\tMonkeyWatcher mw = new MonkeyWatcher();\n\t\tint rounds = monkeySim.runSimulationPrime(primeMonkeys, mw);\n\t\tAssert.assertEquals(rounds, 0);\t\n\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 mo21794S() {\n }", "public synchronized void runPreTurtles() {\n\t\tcomputePerceptions();\n\t\tfirePreAgentScheduling();\n\t}", "void doDummyComputation() {\n\t\tlong dummyValue = 0;\n\t\t// We use a random number and a subsequent check to avoid smart\n\t\t// compilers\n\t\tRandom rand = new Random();\n\t\tint seed = rand.nextInt(10) + 1;\n\t\tfor (int i = 0; i < 10000000; i++) {\n\t\t\tdummyValue = 10 + ((31 * (dummyValue + seed)) % 1234567);\n\t\t}\n\t\tif (dummyValue < 10) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"This never happens, but let's pretend the value matters to avoid this being complied away.\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(50);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void simulation(){\n GameInformation gi = this.engine.getGameInformation();\n Point ball = gi.getBallPosition();\n Player playerSelected;\n int xTemp;\n team = gi.getTeam(ball.x , ball.y);\n\n //Attack\n if(team == gi.activeActor){\n selectAttackerPlayer(gi.getPlayerTeam(gi.activeActor));\n doAttackMoove(playerOne.getPosition(), gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectProtectPlayer(gi.getPlayerTeam(gi.activeActor));\n doProtectMoove(playerTwo.getPosition(), playerOne.getPosition() ,gi.cells[(int) playerTwo.getPosition().getX()][(int) playerTwo.getPosition().getY()].playerMoves);\n playerOne = null;\n playerTwo = null;\n this.engine.next();\n }\n else{//Defense\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n TacklAction tackl = new TacklAction();\n tackl.setSource(playerOne.getPosition());\n VisualArea[] area;\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n\n tackl.setSource(playerTwo.getPosition());\n\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n playerOne = null;\n playerTwo = null;\n }\n }", "@Before\n public void setUp()\n {\n m1 = new GumballMachine(5);\n hasQuart1 = new HasQuarterState(m1);\n }", "@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}", "public void mo4359a() {\n }", "public void simulationTerminated() {\n }", "private Stats playSimulatorGame1() {\n IGrid grid = new Grid();\n\n Field[][] fields = new Field[][] { { Field.BOTTLE, Field.EMPTY, Field.EMPTY, Field.EMPTY },\n { Field.EMPTY, Field.EMPTY, Field.BOTTLE /* start */, Field.EMPTY },\n { Field.BOTTLE, Field.BOTTLE, Field.EMPTY, Field.EMPTY },\n { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.BOTTLE } };\n grid.setGrid(fields, 1, 2);\n\n Robot robot = mock(Robot.class);\n\n // collect\n when(robot.nextMove(Field.BOTTLE, Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY))\n .thenReturn(Move.COLLECT);\n\n // move left\n when(robot.nextMove(Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY))\n .thenReturn(Move.LEFT);\n\n // move down\n when(robot.nextMove(Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.BOTTLE))\n .thenReturn(Move.DOWN);\n\n // collect\n when(robot.nextMove(Field.BOTTLE, Field.BOTTLE, Field.EMPTY, Field.EMPTY, Field.EMPTY))\n .thenReturn(Move.COLLECT);\n\n // do an empty pickup\n when(robot.nextMove(Field.EMPTY, Field.BOTTLE, Field.EMPTY, Field.EMPTY, Field.EMPTY))\n .thenReturn(Move.COLLECT);\n\n AbstractSimulator simulator = simulatorConstructor.apply(5);\n return simulator.playGame(robot, grid, new Random());\n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "static int runSimulation2() {\r\n\t\tSimulation sim2 = new Simulation(8, 8, true, false);\r\n\t\twhile(sim2.sameSquare() == false) { //stop when sameSquare\r\n\t\t\tsim2.doMove();\r\n\t\t}\r\n\t\treturn sim2.getTime();\r\n\t}", "public CarWashSimulation ()\n {\n bay = new Bay(CarWashApplication.BAY_TIME);\n waitingLine = new LLQueue<Car>();\n randGen = new Random();\n reset();\n }", "public void mock(){\n\n }", "public void endOfSimulation()\n\t{\n\t\trynekHistory.createFirstPriceVSFinalPriceReport();\n\t}", "static void runTest() {\n dw = DiagnosticsWrapper.getInstance();\n dw.setDebugOutput( true );\n\n // How many ticks? Each one is a week.\n int simulationDurationTicks = (int) Math.floor(Constants.WEEKS_IN_YEAR * 20);\n // print debug-info on all parameters moving between models\n boolean printFrameData = false;\n GameThread one = new GameThread(simulationDurationTicks, printFrameData);\n GameManager gm = one.game;\n \n dw.addGameThread(one); // for debugging purposes\n\n // globalit\n gm.createModel(\"Weather\");\n\n SettingMaster sm;\n \n // kaupungit\n sm = gm.getDefaultSM(\"PopCenter\");\n sm.settings.get(\"vehicles\").setValue(\"1000\");\n sm.settings.get(\"initialFood\").setValue(\"1000000\");\n Model town1 = gm.createModel(\"PopCenter\");\n sm = gm.getDefaultSM(\"PopCenter\");\n sm.settings.get(\"births%\").setValue(\"0.047492154\");\n Model town2 = gm.createModel(\"PopCenter\");\n sm = gm.getDefaultSM(\"PopCenter\");\n sm.settings.get(\"births%\").setValue(\"0.047492154\");\n Model road1 = gm.createModel(\"Road\");\n ((RoadModel)road1).setLengthToDistance(sm);\n sm = one.game.getDefaultSM(\"Field\");\n sm.settings.get(\"content\").setValue(\"maize\");\n sm.settings.get(\"area\").setValue(\"1000000\");\n\n // ruoka x kaupungit\n gm.linkModelsWith(gm.createModel(\"Field\",sm), town1, gm.createModel(\"GenericConnection\"));\n gm.linkModelsWith(town1, town2, road1);\n\n // water\n Model l1 = gm.createModel(\"Lake\");\n sm = gm.getDefaultSM(\"Lake\");\n sm.settings.get(\"order\").setValue(\"1\");\n sm.settings.get(\"k\").setValue(\"1\");\n sm.settings.get(\"surfaceArea\").setValue(\"256120000f\");\n sm.settings.get(\"depth\").setValue(\"14.1\");\n sm.settings.get(\"startAmount\").setValue(\"0.9\");\n sm.settings.get(\"flowAmount\").setValue(\"0.91\");\n sm.settings.get(\"basinArea\").setValue(\"7642000000f\");\n sm.settings.get(\"terrainCoefficient\").setValue(\"0.5f\");\n l1.onActualUpdateSettings(sm);\n \n Model l2 = gm.createModel(\"Lake\");\n sm = gm.getDefaultSM(\"Lake\");\n sm.settings.get(\"order\").setValue(\"1\");\n sm.settings.get(\"k\").setValue(\"1\");\n sm.settings.get(\"surfaceArea\").setValue(\"256120000f\");\n sm.settings.get(\"depth\").setValue(\"14.1\");\n sm.settings.get(\"startAmount\").setValue(\"0.9\");\n sm.settings.get(\"flowAmount\").setValue(\"0.91\");\n sm.settings.get(\"basinArea\").setValue(\"7642000000f\");\n sm.settings.get(\"terrainCoefficient\").setValue(\"0.5f\");\n l2.onActualUpdateSettings(sm);\n \n Model r1 = gm.createModel(\"River\");\n sm = gm.getDefaultSM(\"River\");\n sm.settings.get(\"order\").setValue(\"2\");\n sm.settings.get(\"width\").setValue(\"100\");\n sm.settings.get(\"length\").setValue(\"100000\");\n sm.settings.get(\"startDepth\").setValue(\"0\");\n sm.settings.get(\"floodDepth\").setValue(\"10\");\n sm.settings.get(\"flowDepth\").setValue(\"0.5\");\n r1.onActualUpdateSettings(sm);\n \n Model r2 = gm.createModel(\"River\");\n sm = gm.getDefaultSM(\"River\");\n sm.settings.get(\"order\").setValue(\"2\");\n sm.settings.get(\"width\").setValue(\"100\");\n sm.settings.get(\"length\").setValue(\"100000\");\n sm.settings.get(\"startDepth\").setValue(\"0\");\n sm.settings.get(\"floodDepth\").setValue(\"10\");\n sm.settings.get(\"flowDepth\").setValue(\"0.5\");\n r2.onActualUpdateSettings(sm);\n \n Model l3 = gm.createModel(\"Lake\");\n sm = gm.getDefaultSM(\"Lake\");\n sm.settings.get(\"order\").setValue(\"3\");\n sm.settings.get(\"k\").setValue(\"1\");\n sm.settings.get(\"surfaceArea\").setValue(\"256120000f\");\n sm.settings.get(\"depth\").setValue(\"14.1\");\n sm.settings.get(\"startAmount\").setValue(\"0.9\");\n sm.settings.get(\"flowAmount\").setValue(\"0.91\");\n sm.settings.get(\"basinArea\").setValue(\"7642000000f\");\n sm.settings.get(\"terrainCoefficient\").setValue(\"0.5f\");\n l3.onActualUpdateSettings(sm);\n \n Model r3 = gm.createModel(\"River\");\n sm = gm.getDefaultSM(\"River\");\n sm.settings.get(\"order\").setValue(\"4\");\n sm.settings.get(\"width\").setValue(\"100\");\n sm.settings.get(\"length\").setValue(\"100000\");\n sm.settings.get(\"startDepth\").setValue(\"0\");\n sm.settings.get(\"floodDepth\").setValue(\"10\");\n sm.settings.get(\"flowDepth\").setValue(\"0.5\");\n r3.onActualUpdateSettings(sm);\n \n Model s1 = gm.createModel(\"Sea\");\n sm = gm.getDefaultSM(\"Sea\");\n sm.settings.get(\"order\").setValue(\"5\");\n s1.onActualUpdateSettings(sm);\n \n gm.linkModelsWith(l1, l3, r1);\n gm.linkModelsWith(l2, l3, r2);\n gm.linkModelsWith(l3, s1, r3);\n\n if (!profilingRun) {\n gm.printOnDone = 2;\n }\n\n // Start the gamethread\n one.start();\n \n //Save population to a csv file\n CSVDumper csv = new CSVDumper(\"none\", \"population\");\n csv.add(town1, \"totalPopulation\"); //local\n\n csv.save(gm, true);\n }", "@Before\r\n\tpublic void setup() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tcompute(\"12-10-19\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"10-09-20\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"11-08-20\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"03-05-17\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"09-03-19\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"01-02-17\",\"[email protected]\", null, 22,20);\r\n\t}", "void mo63094q();", "public void testReset() {\n\t}", "public void test5() {\n\t\t\n\t}", "public void executeTimeStep(Simulation simulation) {\n }", "public void run() throws IOException{\t\n\t\t\tString command;\n\t\t\tprintUsage();\n\t\t\tSystem.out.print(\">> \");\n\t\t\twhile(!(command = consoleIn.readLine()).trim().equals(\"exit\")){\n\t\t\t\ttry{\n\t\t\t\t\tswitch(command){\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\tsimulatable = MordorFrameBuilds.getInstance();\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TRAPRUNE_TRAP);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TRAPRUNE_TOWER);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"4\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.DEFAULT);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"5\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.TRAP_AFFECTS);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"6\":\n\t\t\t\t\t\tsimulatable = MissileDamageSimulator.getInstance();\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"7\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.TOWER_FIRES);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"8\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TOWER_GROUND);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"9\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TRAP_ROAD);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"10\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.MAGIC);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"11\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.DAMAGES_MOUNTAIN);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: printUsage();\n\t\t\t\t\t}\n\t\t\t\t}catch(IOException e){\n\t\t\t\t\tSystem.out.println(\"io error: \"+e.getClass().getName()+\": \"+e.getMessage());\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"exception in main thread: \"+ex.getClass()+\": \"+ex.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tSystem.out.print(\">> \");\n\t\t\t\t}\n\t\t\t}\n\t}", "public void selfTest() {\n \n \n \n /**\n * TESTING CONFIGURATION RIGHT HERE:\n */\n int total = 1; //How many tests should we run\n int start = 0; //The first test to run\n //TestStubs.storePrints(); //store prints until the end\n TestStubs.displayDebugWhileTesting(false); //shows all the debug prints (with context switches) if set to true\n \n \n //MemoryMap.selfTest();\n //Swap.selfTest();\n \n UserProcess.testing = true;\n TestStubs.debugPrint(\"SELF TESTING VMKERNEL!\");\n \n int passed = 0;\n \n for (int i = 0; i < total; i++) {\n if (runTest(i+start))\n passed += 1;\n }\n \n if (passed != total) {\n TestStubs.debugPrint(\"SOME TESTS FAILED! \" + passed + \"/\" + total + \" passed.\");\n } else {\n TestStubs.debugPrint(\"ALL TESTS PASSED! \" + passed + \"/\" + total + \" passed.\");\n }\n \n UserProcess.testing = false;\n \n\n \n //System.out.println(TestStubs.getStoredPrints());\n //TestStubs.clearAndDontStorePrints();\n \n if (passed != total) {\n System.out.flush();\n /// kernel.terminate();\n }\n \n TestStubs.disable();\n \n }", "public void runMape(int curSimTick){\n runMonitoring();\n runAnalysis();\n runPlanning();\n runExecution();\n }", "@Setup(Level.Invocation)\n public void doSetup() {\n pos = \"\" + (1_000_000 + ThreadLocalRandom.current().nextInt(9_000_000));\n posWithPlus = \"+\" + pos;\n neg = \"-\" + pos;\n }", "public void simulationStep(int currentTime, int speed) {\n \t\t\n \t\tstudents[0][0].printAcutalState();\n \t\t\n \t\t// -------------------------------------------------\n \t\t// -------------- pre conditions -------------------\n \t\t// -------------------------------------------------\n \t\t\n \t\t// the new array for the calculated students, fill it with EmptyPalce\n \t\tIPlace[][] newState = new IPlace[students.length][students[0].length];\n \t\tfor (int y = 0; y < 5; y++) {\n \t\t\tfor (int x = 0; x < 7; x++) {\n \t\t\t\tnewState[y][x] = new EmptyPlace(properties.size());\n \t\t\t}\n \t\t}\n \t\t\n \t\t// -------------------------------------------------\n \t\t// -------- student independent calculations -------\n \t\t// -------------------------------------------------\n \t\t\n \t\tCalcVector preChangeVector = new CalcVector(properties.size());\n \t\tpreChangeVector.printCalcVector(\"Init\");\n \t\t\n \t\t// breakReaction ( inf(Break) * breakInf )\n \t\tdouble breakInf = 0.01;\n \t\tif (lecture.getTimeBlocks().getTimeBlockAtTime(currentTime / 60000).getType() == BlockType.pause) {\n \t\t\tlogger.info(\"Influenced by break\");\n \t\t\tpreChangeVector.addCalcVector(influence.getEnvironmentVector(EInfluenceType.BREAK_REACTION, breakInf));\n \t\t}\n \t\tpreChangeVector.printCalcVector(\"after break\");\n \t\t\n \t\t// timeDending ( inf(Time) * currentTime/1000 * timeInf )\n \t\tdouble timeInf = 0.001;\n \t\tdouble timeTimeInf = timeInf * currentTime / 1000;\n \t\tpreChangeVector.addCalcVector(influence.getEnvironmentVector(EInfluenceType.TIME_DEPENDING, timeTimeInf));\n \t\tpreChangeVector.printCalcVector(\"after time depending\");\n \t\t\n \t\t// -------------------------------------------------\n \t\t// ---------- iterate over all students ------------\n \t\t// -------------------------------------------------\n \t\tfor (int y = 0; y < students.length; y++) {\n \t\t\tfor (int x = 0; x < students[y].length; x++) {\n \t\t\t\tif (students[y][x] instanceof Student) {\n \t\t\t\t\tStudent student = (Student) students[y][x];\n \t\t\t\t\t// check if there was an interaction from the don\n \t\t\t\t\tEntry<Integer, Student> donInteraction = student.historyDonInputInInterval(currentTime - speed,\n \t\t\t\t\t\t\tcurrentTime);\n \t\t\t\t\tif (donInteraction != null) {\n \t\t\t\t\t\tstudent = donInteraction.getValue();\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// influence of the surrounding students\n \t\t\t\t\tCalcVector neighborInfl = getNeighborsInfluence(student, x, y);\n \t\t\t\t\t// output for one student (0,0) -> only for analyzing the simulation behavior\n \t\t\t\t\tif (y == 0 && x == 0)\n \t\t\t\t\t\tneighborInfl.printCalcVector(\"Neighbor\");\n \t\t\t\t\t\n \t\t\t\t\t// create a new vector which contains the pre calculates vector and the neighbor vector\n \t\t\t\t\tCalcVector preChangeVectorSpecial = neighborInfl.addCalcVector(preChangeVector).addCalcVector(\n \t\t\t\t\t\t\tneighborInfl);\n \t\t\t\t\t// output for one student (0,0) -> only for analyzing the simulation behavior\n \t\t\t\t\tif (y == 0 && x == 0)\n \t\t\t\t\t\tneighborInfl.printCalcVector(\"preChangeVectorSpecial = Neighbor + preChangeVector\");\n \t\t\t\t\t\n \t\t\t\t\t// create a new student and let him calculate a new change vector\n \t\t\t\t\tnewState[y][x] = student.clone();\n\t\t\t\t\t((Student) newState[y][x]).calcNextSimulationStep(preChangeVectorSpecial, influence, x, y);\n \t\t\t\t\tif (y == 0 && x == 0)\n \t\t\t\t\t\t((Student) newState[y][x]).printAcutalState();\n \t\t\t\t\t((Student) newState[y][x]).saveHistoryStates(currentTime);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t// -------------------------------------------------\n \t\t// -------------- post simulation ------------------\n \t\t// -------------------------------------------------\n \t\t\n \t\t// give the reference from newState to real students array\n \t\tstudents = newState;\n \t\t\n \t\t// notify all subscribers of the students array\n \t\tnotifyStudentsObservers();\n \t}", "public void mo33394d() {\n mo33393c();\n mo33395e();\n }", "public void mo21785J() {\n }", "public void think() {\n\t\t\n\t}", "public void testPeriodic() {\n \tterrainStates();\n \tdebug();\n }", "public void testSetInsDyn() {\n }", "public void mo21789N() {\n }", "@Test\n\tpublic void functionKoreDatastructureTest() {\n\t\ttry {\n\t\t\tString DataStructureAgent1Name = \"DataStructureAgent1\"; \n\t\t\t//String weatherAgent2Name = \"WeatherAgent2\"; \n\t\t\tString datageneratorservice = \"DataStructureGenerator\";\n\n\t\t\tAgentConfig cf = AgentConfig.newConfig(DataStructureAgent1Name)\n\t\t\t\t\t.addFunction(FunctionConfig.newConfig(datageneratorservice, KoreDataStructureGeneratorMock.class))\n\t\t\t\t\t.addFunction(FunctionConfig.newConfig(\"LamprosUI\", UserInterfaceCollector.class)\n\t\t\t\t\t\t\t.addManagedDatapoint(\"KORE\", DataStructureAgent1Name + \":\" + datageneratorservice + \"/result\", SyncMode.SUBSCRIBEONLY));\n\t\t\tCell weatherAgent = this.launcher.createAgent(cf);\n\t\t\t\n\t\t\t//=== Init finished ===//\n\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.wait(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tlog.info(\"=== All agents initialized ===\");\n\t\t\t\n\t\t\tweatherAgent.getCommunicator().execute(weatherAgent.getName() + \":\" + datageneratorservice + \"/command\", (new Request())\n\t\t\t\t\t.setParameter(\"command\", ControlCommand.START)\n\t\t\t\t\t.setParameter(\"blocking\", false), 100000);\n\t\t\t\n\t\t\t//Wait while the system runs\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.wait(2000000000);\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Read the state of the system\n\t\t\t//JsonObject systemState = weatherAgent.readLocalDatapoint(CFStateGenerator.SYSTEMSTATEADDRESS).getValue().getAsJsonObject();\n\t\t\t\n\t\t\t//String currentResult = systemState.get(\"hasFunction\").getAsJsonArray().get(0).getAsJsonObject().get(\"hasState\").getAsString();\n\t\t\t//String expectedResult = \"RUNNING\"; //As the system is still running, when the request is sent\n\t\t\t\n\t\t\t//weatherAgent.getCommunicator().write(DatapointBuilder.newDatapoint(weatherservice + \".command\").setValue(ControlCommand.STOP));\n\t\t\t\n\t\t\t//log.info(\"current result={}, expected result={}\", currentResult, expectedResult);\n\t\t\tassertEquals(true, false);\n\t\t\t\n\t\t\tlog.info(\"Tests passed\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error testing system\", e);\n\t\t\tfail(\"Error\");\n\t\t}\n\n\t}", "@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidenceBankFolder();\n\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tmatrixAdditionCalculator = new MatrixAdditionCalculator();\n\n\t}", "public static void selfTest() {\n\talarmTest1();\n\t// Invoke your other test methods here ...\n }", "public void mo9848a() {\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "@Override\r\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\ttry {\r\n\t\t\t\t\tbutton.setEnabled(false);\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getChoosePatternLabel().setEnabled(false);\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getNoTimeModelLabel().setEnabled(false);\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getNoTimeSeq().setEnabled(false);\r\n\t\t\t\t\tmainFrame.getStepThreeBottom().UnEnable();\r\n\t\t\t\t\tmainFrame.getStepThreeNoTimeTabbedPane().getTestData().removeAll();\r\n\t\t\t\t\t\r\n\t\t\t\t\tmarkov = mainFrame.getNoTimeSeqOperation1().getMarkov();\r\n\t\t\t\t\tdom = mainFrame.getNoTimeSeqOperation1().getDom();\r\n\t\t\t\t\troot = mainFrame.getNoTimeSeqOperation1().getRoot();\r\n\t\t\t\t\tPI = mainFrame.getNoTimeSeqOperation1().getPI();\r\n\t\t\t\t\tmin = mainFrame.getStepThreeLeftButton().getMin();\r\n\t\t\t\t\tminSeq = mainFrame.getNoTimeSeqOperation1().getMinSeq();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\ttopLabel.removeAll();\r\n\t\t\t\t\ttopLabel.setText(\"正在生成可靠性测试数据(该过程需要较久时间,请耐心等待)....\");\r\n\t\t\t\t\tThread.sleep(150);\r\n\r\n\t\t\t\t\tCalculate.getAllTransValues(markov);\r\n\r\n\t\t\t\t\tnew BestAssign().assign(markov, root);\r\n\t\t\t\t\t\r\n\t\t\t\t\tmarkov.setDeviation(CalculateSimilarity.statistic(markov, PI));\r\n\r\n\t\t\t\t\tOutputFormat format = OutputFormat.createPrettyPrint();\r\n\r\n\t\t\t\t\twriter = new XMLWriter(\r\n\t\t\t\t\t\t\tnew FileOutputStream(mainFrame.getBathRoute() + \"/TestCase/\" + ModelName + \"_Custom#1.xml\"),\r\n\t\t\t\t\t\t\tformat);\r\n\t\t\t\t\twriter.write(dom);\r\n\t\t\t\t\twriter.close();\r\n\r\n\t\t\t\t\tmainFrame.renewPanel();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\ttopLabel.removeAll();\r\n\t\t\t\t\ttopLabel.setText(\"生成可靠性测试数据出错!\");\r\n\r\n\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getChoosePatternLabel().setEnabled(true);\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getNoTimeModelLabel().setEnabled(true);\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getNoTimeSeq().setEnabled(true);\r\n\r\n\t\t\t\t\tmainFrame.getStepThreeLeftButton().getChoosePatternLabel().setEnabled(true);\r\n\t\t\t\t\tmainFrame.getStepThreeBottom().Enable();\r\n\t\t\t\t\tmainFrame.renewPanel();\r\n\t\t\t\t}\r\n\t\t\t\treturn 1;\r\n\t\t\t}", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "private Stats playSimulatorGame4() {\n IGrid grid = new Grid();\n\n Field[][] fields = new Field[][] { { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY },\n { Field.BOTTLE, Field.BOTTLE /* start */, Field.EMPTY, Field.EMPTY },\n { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY },\n { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY } };\n grid.setGrid(fields, 1, 1);\n\n Robot robot = mock(Robot.class);\n\n // random move\n when(robot.nextMove(Field.BOTTLE, Field.BOTTLE, Field.EMPTY, Field.EMPTY, Field.EMPTY))\n .thenReturn(Move.SKIP_TURN);\n\n AbstractSimulator simulator = simulatorConstructor.apply(5);\n return simulator.playGame(robot, grid, new Random());\n }", "public TestCase afterThis( Procedure callafter );", "private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }", "public void solution() {\n\t\t\n\t}", "public static void simulate (\r\n double maxtime,\r\n double arrival_rate,\r\n double service_rate0,\r\n double service_rate1,\r\n double service_rate2, \r\n double service_rate3_1,\r\n double service_rate3_2,\r\n double service_rate3_3,\r\n double p1,double p2,double p3,int k, double p01, double p02, double p3out, double p31, double p32)\r\n {\n StateB sysB = new StateB();\r\n \r\n double time= 0;\r\n double value2= ExpB.getExp(arrival_rate);\r\n\r\n EventB e1 = new EventB(time+value2,\"Birth\",\"Null\");\r\n EventB e2= new EventB(time+value2,\"Moniter\",\"Null\");\r\n Schedule.add(e1);\r\n Schedule.add(e2);\r\n \r\n while(time < maxtime){\r\n EventB next = Schedule.remove();\r\n time= next.time;\r\n next.function(maxtime,arrival_rate,service_rate0,service_rate1,service_rate2, service_rate3_1,\r\n service_rate3_2,service_rate3_3,p1,p2,p3,k,p01,p02,p3out,p31,p32,sysB);\r\n \r\n \r\n \r\n\r\n }\r\n // System.out.println(Double.toString(sysB.t_busy_time0) );\r\n // System.out.println(Double.toString(sysB.t_busy_time1) );\r\n // System.out.println(Double.toString(sysB.Qlength0) );\r\n // System.out.println(Double.toString(sysB.Qlength1) );\r\n // System.out.println(Double.toString(sysB.monitering_event) );\r\n // System.out.println(Double.toString(sysB.num_drop) );\r\n // System.out.println(Double.toString(sysB.completed_request) );\r\n // System.out.println(Double.toString(sysB.t_response_time) );\r\n\r\n System.out.println();\r\n double util0 = sysB.t_busy_time0 / maxtime;\r\n System.out.println(\"S0 UTIL:\"+ \" \" + Double.toString(util0) );\r\n double qlen0 = sysB.Qlength0/ sysB.monitering_event;\r\n System.out.println(\"S0 QLEN:\"+\" \"+ Double.toString(qlen0) );\r\n double Tresp0 = sysB.t_response_time0/sysB.completed_request0;\r\n System.out.println(\"S0 TRESP:\" + \" \"+ Double.toString(Tresp0) );\r\n \r\n System.out.println();\r\n \r\n double util11 = sysB.t_busy_time11/ maxtime;\r\n System.out.println(\"S1,1 UTIL:\"+ \" \" + Double.toString(util11) );\r\n double util12 = sysB.t_busy_time12/ maxtime;\r\n System.out.println(\"S1,2 UTIL:\"+ \" \" + Double.toString(util12) );\r\n double qlen11 = sysB.Qlength1/ sysB.monitering_event;\r\n System.out.println(\"S1 QLEN:\"+\" \"+ Double.toString(qlen11) );\r\n double Tresp11 = sysB.t_response_time1/ sysB.completed_request1;\r\n System.out.println(\"S1 TRESP:\" + \" \"+ Double.toString(Tresp11) );\r\n \r\n \r\n // System.out.println();\r\n // double util12 = sysB.t_busy_time12/ maxtime;\r\n // System.out.println(\"S1,2 UTIL:\"+ \" \" + Double.toString(util12) );\r\n // double qlen12 = sysB.Qlength1/ sysB.monitering_event;\r\n // System.out.println(\"S1,2 QLEN:\"+\" \"+ Double.toString(qlen12) );\r\n // double Tresp12 = sysB.t_response_time12/sysB.completed_request12;\r\n // System.out.println(\"S1,2 TRESP:\" + \" \"+ Double.toString(Tresp12) );\r\n\r\n System.out.println();\r\n double util2 = sysB.t_busy_time2/ maxtime;\r\n System.out.println(\"S2 UTIL:\"+ \" \" + Double.toString(util2) );\r\n double qlen2 = sysB.Qlength2/ sysB.monitering_event;\r\n System.out.println(\"S2 QLEN:\"+\" \"+ Double.toString(qlen2) );\r\n double Tresp2 = sysB.t_response_time2/sysB.completed_request2;\r\n System.out.println(\"S2 TRESP:\" + \" \"+ Double.toString(Tresp2) );\r\n System.out.println(\"S2 DROPPED:\" + \" \"+ Integer.toString(sysB.num_drop));\r\n\r\n System.out.println();\r\n double util3 = sysB.t_busy_time3/ maxtime;\r\n System.out.println(\"S3 UTIL:\"+ \" \" + Double.toString(util3) );\r\n double qlen3 = sysB.Qlength3/ sysB.monitering_event;\r\n System.out.println(\"S3 QLEN:\"+\" \"+ Double.toString(qlen3) );\r\n double Tresp3 = sysB.t_response_time3/sysB.completed_request3;\r\n System.out.println(\"S3 TRESP:\" + \" \"+ Double.toString(Tresp3) );\r\n\r\n \r\n\r\n System.out.println();\r\n\r\n double qtotal = (sysB.Qlength0 + sysB.Qlength1 + sysB.Qlength2+sysB.Qlength3) / sysB.monitering_event;\r\n System.out.println(\"QTOT:\"+\" \"+ Double.toString(qtotal) );\r\n // double Totalresp= sysB.t_response_time0 + sysB.t_response_time2 +sysB.t_response_time11 +sysB.t_response_time12 + sysB.t_response_time3;\r\n \r\n double total = sysB.t_response_timefinal/sysB.completed_system;\r\n \r\n System.out.println(\"TRESP:\"+ \" \" + Double.toString(total));\r\n // System.out.println(sysB.Qlength1);\r\n // System.out.println(sysB.Qlength2);\r\n // System.out.println(sysB.Qlength3);\r\n // System.out.println(sysB.Qlength0);\r\n \r\n // System.out.println(\"TRESP:\"+ \" \" + Double.toString(TTRESP));\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n }", "private test5() {\r\n\t\r\n\t}" ]
[ "0.7859953", "0.7398841", "0.72756356", "0.68132174", "0.6596939", "0.65167046", "0.6393547", "0.6341102", "0.6262088", "0.62540823", "0.6228447", "0.6177533", "0.6177172", "0.617571", "0.61685586", "0.61440575", "0.61304116", "0.6084106", "0.6067911", "0.60239106", "0.60067326", "0.600363", "0.5987431", "0.59669685", "0.59621793", "0.59578276", "0.5942255", "0.5937278", "0.5920635", "0.5920237", "0.5914283", "0.5907326", "0.5895104", "0.5884885", "0.5883195", "0.58768713", "0.5872553", "0.58662045", "0.58662045", "0.5859034", "0.58530915", "0.58380336", "0.5823406", "0.5813716", "0.5803955", "0.58028424", "0.57829106", "0.57828283", "0.5780762", "0.5774399", "0.57708204", "0.57708204", "0.57610637", "0.57532126", "0.57508457", "0.5747231", "0.5742499", "0.57324356", "0.5732404", "0.57304126", "0.57249445", "0.5719507", "0.5718482", "0.57165384", "0.5713875", "0.5704664", "0.5700216", "0.5697782", "0.5697378", "0.56938016", "0.5691405", "0.5689836", "0.568782", "0.5686532", "0.5682681", "0.56799227", "0.5670799", "0.5669254", "0.5663895", "0.5661791", "0.566165", "0.56511384", "0.5650661", "0.56472534", "0.5643445", "0.56374604", "0.56367004", "0.5636426", "0.5634784", "0.56320465", "0.56297296", "0.56281686", "0.56259507", "0.5623383", "0.56220305", "0.5619405", "0.56164986", "0.5608916", "0.560643", "0.5603605", "0.56028247" ]
0.0
-1
COMPUTES THE SUM OF THE (SMALLEST) DISTANCES OF ALL THE PREDATORS TO THE PREY. IT TAKES INTO ACCOUNT THAT THE ENVIRONMENT IS TOROIDAL.
public int computePredatorsPreyDistanceSum() { int sum=0; for(Predator p:predators){ sum+=p.calculatePredatorPreyDistance(prey, false); sum+=p.calculatePredatorPreyDistance(prey, true); } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }", "public static int calculate()\n {\n final List<Integer> oneToNine = IntStream.iterate(1, n -> n + 1)\n .limit(9)\n .boxed()\n .collect(toList());\n final List<List<Integer>> permutations = HeapPermutations.of(oneToNine);\n\n // System.out.println(permutations.size());\n //2- for each permutation\n // a. find all breaking 2 points to break\n // b. check first two sections' third is equal to the last section\n // c. if yes, add combintion to result, otherwise skip\n\n return permutations.stream()\n .flatMap(toTriples()) //find all combinations xx X yy = zz\n .filter(isPandigital()) // allow pandigital tripes through\n .map(Triple::getThird) // get the product\n .distinct() // get distinct products only given the problem statement does not allow repetition (see hint)\n .mapToInt(i -> i) // convert to primitive\n .sum(); // and finally get the sum\n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}", "private Double calcTotalPoints(TreeMap<Double, String> userlist) \r\n \t{\r\n \t\tDouble ret = 0.00;\r\n \t\tfor(Double key : userlist.keySet())\r\n \t\t{\r\n \t\t\tret += key; \r\n \t\t}\r\n \t\treturn ret;\r\n \t}", "public void makeFirstRound() {\n Strategy tactics = null;\n ArrayList<Producer> auxProducerList = new ArrayList<>(listOfProducers.getList());\n for (Distributor dst : listOfDistributors.getList()) {\n if (dst.getSubscribedproducers().isEmpty()) {\n int auxNeededPower = dst.getEnergyNeededKW();\n if (dst.getProducerStrategy().equals(\"GREEN\")) {\n tactics = new GreenStrategy();\n } else if (dst.getProducerStrategy().equals(\"PRICE\")) {\n tactics = new PriceStrategy();\n } else if (dst.getProducerStrategy().equals(\"QUANTITY\")) {\n tactics = new QuantityStrategy();\n }\n tactics.sorter(auxProducerList);\n for (Producer p : auxProducerList) {\n if (!(p.getMaxDistributors() == p.getCurrDistributors())) {\n dst.addSubscribedproducer(p);\n p.addDistIDs(dst.getId());\n p.addObserver(dst);\n p.setCurrDistributors(p.getCurrDistributors() + 1);\n auxNeededPower -= p.getEnergyPerDistributor();\n if (auxNeededPower < 0) {\n break;\n }\n }\n }\n }\n }\n\n Distributor bestDist = listOfDistributors.getBestDistinRound();\n\n for (Consumer auxcons : listOfConsumers.getList()) {\n auxcons.setBudget(auxcons.getInitialBudget() + auxcons.getMonthlyIncome());\n auxcons.setIdofDist(bestDist.getId());\n auxcons.setMonthstoPay(bestDist.getContractLength());\n auxcons.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(auxcons);\n if (auxcons.getBudget() >= auxcons.getToPay()) {\n auxcons.addtoBudget(-auxcons.getToPay());\n auxcons.reduceMonths();\n bestDist.addBudget(auxcons.getToPay());\n } else {\n auxcons.setDuepayment(auxcons.getToPay());\n auxcons.reduceMonths();\n }\n if (auxcons.getMonthstoPay() == 0) {\n auxcons.setIdofDist(-1);\n }\n }\n\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n }", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public void computeWinnerDeterminationU()\r\n\t{\r\n\t\tif( _plans.size() == 0)\r\n\t\t{\r\n\t\t\t_allocation = new AllocationWoD();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_randGenerator.setSeed(_seed);\r\n\t\t\r\n\t\tdouble maxExpectedUtility = 0.;\r\n\t\tint itsIdx = -1;\r\n\t\tint itsAtom = -1;\r\n\t\tfor(int i = 0; i < _plans.size(); ++i)\t\t\t\t\t\t\t\t\t// for every buyer\r\n\t\t\tfor(int j = 0; j < _plans.get(i).getNumberOfAtoms(); ++j)\t\t\t// for every plan he has value for\r\n\t\t\t{\r\n\t\t\t\tComplexSemanticWebType plan = (ComplexSemanticWebType)(_plans.get(i).getAtom(j));\r\n\t\t\t\tif(_paymentRule.equals(\"SecondPrice\"))\r\n\t\t\t\t\tplan.resolveWithSecondPrice();\r\n\t\t\t\telse if(_paymentRule.equals(\"FirstPrice\"))\r\n\t\t\t\t\tplan.resolveWithFirstPrice();\r\n\t\t\t\telse throw new RuntimeException(\"Cannot resolve the type: \" + _paymentRule);\r\n\t\t\t\t\r\n\t\t\t\tdouble expectedUtility = plan.computeExpectedValue() - plan.getPlanExpectedPayment();\r\n\t\t\t\t\r\n\t\t\t\tif( expectedUtility >= maxExpectedUtility )\r\n\t\t\t\t{\r\n\t\t\t\t\tmaxExpectedUtility = expectedUtility;\r\n\t\t\t\t\titsIdx = i;\r\n\t\t\t\t\titsAtom = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t_allocation = new AllocationWoD();\r\n\r\n\t\tif(itsIdx >= 0)\r\n\t\t{\r\n\t\t\tList<Integer> allocatedBundles = new LinkedList<Integer>();\r\n\t\t\tallocatedBundles.add(itsAtom);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tComplexSemanticWebType plan = (ComplexSemanticWebType)(_plans.get( itsIdx ).getAtom( itsAtom ));\r\n\t\t\t\t\r\n\t\t\t\tList<Integer> actuallyAllocatedTuples = new LinkedList<Integer>();\r\n\t\t\t\tfor(int i = 0; i < plan.getNumberOfFragments(); ++i)\r\n\t\t\t\t\tactuallyAllocatedTuples.add( plan.getMinNumberOfRecords(i) + _randGenerator.nextInt(plan.getMaxNumberOfRecords(i) - plan.getMinNumberOfRecords(i)) );\r\n\r\n\t\t\t\tif(plan.getAllocatedSellers().size() < 1)\r\n\t\t\t\t\tthrow new RuntimeException(\"No sellers in plan: \" + plan.toString());\r\n\t\t\t\t\r\n\t\t\t\tplan.setActuallyAllocatedRecords(actuallyAllocatedTuples);\r\n\t\t\t\tList<Integer> sellersInvolved = plan.getAllocatedSellers();\r\n\t\t\t\t\r\n\t\t\t\tList<ComplexSemanticWebType> allocatedPlans = new LinkedList<ComplexSemanticWebType>();\r\n\t\t\t\tallocatedPlans.add(plan);\r\n\t\t\t\t_allocation.addAllocatedAgent(plan.getAgentId(), sellersInvolved, allocatedBundles,\r\n\t\t\t\t\t\t\t\t\t\t\t plan.computeExpectedValue(), plan.computeExpectedCosts());\r\n\t\t\t\t_allocation.addAllocatedPlans(allocatedPlans, true);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "@Override\n\tprotected void computeWithoutTime() {\n\t\tinitShortestPaths();\n\n\t\t// Then we sort for each node v the list of terminals by the distance from v\n\t\tsortedRequiredVertices = new HashMap<Integer, TreeSet<Integer>>();\n\t\tsortRequiredVertices();\n\t\t\n\t\t// Copy of the terminals\n\t\tHashSet<Integer> req = new HashSet<Integer>(\n\t\t\t\tinstance.getRequiredVertices());\n\n\t\t// Union of all the solutions returned by the subalgorithm CH2\n\t\tHashSet<Arc> currentSol = new HashSet<Arc>();\n\n\t\t// Until all terminals are reached\n\t\twhile (req.size() > 0) {\n\n\t\t\t// We apply CH2 to reach some of the non reached terminals\n\t\t\tCouple<HashSet<Arc>, HashSet<Integer>> tree = applyCH2(req);\n\n\t\t\t// tree.first the tree returned by CH2\n\t\t\t// tree.second is the terminals of that tree\n\n\t\t\tcurrentSol.addAll(tree.first);\n\t\t\tfor (Arc a : tree.first)\n\t\t\t\tcosts.put(a, 0); // Set the cost of the arc to 0, as this arc is already used in the solution, it does not cost anything to use it again.\n\t\t\treq.removeAll(tree.second);\n\t\t}\n\n\t\t// Compute the returned solution and its cost.\n\t\tarborescence = new HashSet<Arc>();\n\t\tint c = 0;\n\t\tfor (Arc a : currentSol) {\n\t\t\tList<Arc> l = shortestPaths.get(a);\n\t\t\tif (a.getInput().equals(a.getOutput()))\n\t\t\t\tl = new ArrayList<Arc>();\n\t\t\tfor (Arc b : l) {\n\t\t\t\tarborescence.add(b);\n\t\t\t\tc += instance.getCost(b);\n\t\t\t}\n\t\t}\n\t\tcost = c;\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }", "public static void main(String... args) {\n\n Set<Long> As = new HashSet<>();\n int N = 100;\n for (long p = -N; p <= N; ++p) {\n for (long q = -N; q <= p; ++q) {\n for (long r = -N; r <= q; ++r) {\n if (r==0 || p==0 || q==0)\n continue;\n\n long nom = r*p*q;\n long den = r*p + r*q + p*q;\n\n if (den != 0 && nom % den==0 && (nom^den)>=0) {\n long A = nom/den;\n\n if (A==nom) {\n As.add(A);\n System.out.printf(\"A=%d (p=%d, q=%d, r=%d)\\n\", A, p, q, r);\n }\n }\n }\n }\n }\n Long[] aa = As.toArray(new Long[As.size()]);\n Arrays.sort(aa);\n System.out.printf(\"============\\n\");\n System.out.printf(\"A(%d)=%s\\n\", aa.length, Arrays.toString(aa));\n\n for (long a = 1; a < 100; ++a) {\n if (isAlexandrian(a))\n System.out.printf(\"A=%dn\", a);\n }\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "private void calculateDebtDistribution() {\n calculateDebtDistribution(false);\n }", "private static double calculDistanceTourneeAlea(List<Point> points, Random rand) {\n double distance = 0;\n Collections.shuffle(points, rand);\n Point courant = points.get(0);\n Point suivant;\n for(int i=1; i<points.size(); i++) {\n suivant = points.get(i);\n distance += courant.getDistance(suivant);\n courant = suivant;\n }\n suivant = points.get(0);\n distance += courant.getDistance(suivant);\n return distance;\n }", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "public static void main(String[] args) {\n\t\tint[] prime= new int[1229]; //only need primes up to 10000\n\t\tint n=1;\n\t\tint index=0;\n\t\tint test=0;\n\t\tfor (int i=2; (i-n)<=1229; i++) {\n\t\t\tfor (int j=2; j<=Math.sqrt(i); j++) {\n\t\t\t\tint k=i%j;\n\t\t\t\tif (k==0) {\n\t\t\t\t\tn++;\n\t\t\t\t\ttest++;\n\t\t\t\t\tj=(int)Math.sqrt(i);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (test==0) {\n\t\t\t\tprime[index]=i;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\ttest=0;\n\t\t}\n\t\t\n\t\t//use primes to find prime factorization and sum of divisors\n\t\tint [] divides= new int[1229]; //Number of times each prime divides a number\n\t\tint [] sumOfDivisors= new int[10000]; //Sum of divisors for i at index i\n\t\tint total=0;\n\t\tint sum=1;\n\t\tindex=1;\n\t\tfor (int i=2; i<=10000; i++) {\n\t\t\tint d=i;\n\t\t\tfor (int j=0; j<1229; j++) { //find prime factorization for i\n\t\t\t\twhile (d%prime[j]==0 && d>1) {\n\t\t\t\t\td=d/prime[j];\n\t\t\t\t\tdivides[j]++;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tfor (int j=0; j<1229; j++) { //use Number theory formula for sum of divisors\n\t\t\t\tsum*=(Math.pow(prime[j], divides[j]+1)-1)/(prime[j]-1);\n\t\t\t}\n\t\t\tif (sum-i<i) { //only check if sum of divisors of i is less than i\n\t\t\t\tif (sumOfDivisors[sum-i-1]==i) { //check if amicable pair\n\t\t\t\t\ttotal=total+i+sum-i; //add both to total (only happens once)\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrays.fill(divides,0); //reset divisors array\n\t\t\tsumOfDivisors[index]=sum-i; //store number of divisors\n\t\t\tsum=1;\n\t\t\tindex++;\n\t\t}\n\t\tSystem.out.print(\"The sum of all amicable numbers less than 10000 is: \");\n\t\tSystem.out.println(total);\n long endTime = System.currentTimeMillis();\n System.out.println(\"It took \" + (endTime - startTime) + \" milliseconds.\");\n\n\t}", "@Override\r\n\tpublic void compute() {\r\n\r\n\t\t// compute s1, s2 secret shares for all the parties\r\n\t\t// s1s2[i] - pair(s1 SecretShare, s2 SecretShare) for party i\r\n\t\tArrayList<ArrayList<SecretShare>> s1s2 = new ArrayList<ArrayList<SecretShare>>();\r\n\t\tfor (GateIO in : this.input) {\r\n\t\t\tArrayList<SecretShare> theShares = new ArrayList<SecretShare>();\r\n\t\t\ttheShares.add(0, in.getValue().get(0)); // s1\r\n\t\t\ttheShares.add(1, in.getValue().get(1)); // s2\r\n\t\t\ts1s2.add(in.getIndex(), theShares);\r\n\t\t\t// System.out.println(\"party \" + in.getIndex());\r\n\t\t\t// System.out.println(\"s1 = \" + in.getValue().get(0));\r\n\t\t\t// System.out.println(\"s2 = \" + in.getValue().get(1));\r\n\r\n\t\t}\r\n\r\n\t\t// compute locally - s1*s2\r\n\t\tArrayList<SecretShare> localMults = new ArrayList<SecretShare>();\r\n\t\tfor (int i = 0; i < s1s2.size(); i++) {\r\n\t\t\tlocalMults.add(i, new SecretShare(s1s2.get(i).get(0).x,\r\n\t\t\t\t\tmodField(s1s2.get(i).get(0).y * s1s2.get(i).get(1).y)));\r\n\t\t\t// System.out.println(new SecretShare(s1s2.get(i).get(0).x,\r\n\t\t\t// modField(s1s2.get(i).get(0).y * s1s2.get(i).get(1).y)));\r\n\t\t}\r\n\r\n\t\t// share the local multiplications between the parties\r\n\t\t// localMultShare[i] - the secrets shares of party i new secret(mult)\r\n\t\tArrayList<ArrayList<SecretShare>> localMultsShare = new ArrayList<ArrayList<SecretShare>>();\r\n\t\tfor (int i = 0; i < localMults.size(); i++) {\r\n\t\t\tlocalMultsShare.add(i, new ArrayList<SecretShare>());\r\n\t\t}\r\n\r\n\t\tfor (SecretShare mult : localMults) {\r\n\t\t\tArrayList<SecretShare> yiShares = Polynomial\r\n\t\t\t\t\t.createShareSecret(mult.y);\r\n\t\t\t// for (int i = 0; i < yiShares.size(); i++) {\r\n\t\t\t// System.out.println(\"i = \" + i + \" y = \" + yiShares.get(i));\r\n\t\t\t// }\r\n\t\t\tfor (int i = 0; i < yiShares.size(); i++) {\r\n\t\t\t\tArrayList<SecretShare> tmp = localMultsShare.get(i);\r\n\t\t\t\ttmp.add(yiShares.get(i));\r\n\t\t\t\tlocalMultsShare.set(i, tmp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// System.out.println(\"start\");\r\n\t\t// for (int i = 0; i < localMultsShare.size(); i++) {\r\n\t\t// for (int j = 0; j < localMultsShare.get(i).size(); j++) {\r\n\t\t// System.out.println((localMultsShare.get(i)).get(j));\r\n\t\t// }\r\n\t\t// }\r\n\t\t// System.out.println(\"end\");\r\n\r\n\t\t// compute the outPut = Yi * Zi\r\n\t\tthis.result = new ArrayList<GateIO>();\r\n\t\tfor (int i = 0; i < localMultsShare.size(); i++) {\r\n\t\t\tGateIO out = new GateIO(i);\r\n\r\n\t\t\tint outYValue = 0;\r\n\t\t\tfor (int j = 0; j < localMultsShare.get(i).size(); j++) {\r\n\t\t\t\toutYValue += computeZi(j + 1)\r\n\t\t\t\t\t\t* ((localMultsShare.get(i)).get(j)).y;\r\n\t\t\t}\r\n\t\t\tout.value.add(new SecretShare(i + 1, modField(outYValue)));\r\n\t\t\tthis.result.add(out);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < this.result.size(); i++) {\r\n\t\t\t// System.out.println(this.result.get(i).value.get(0));\r\n\t\t}\r\n\r\n\t}", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public static double prepareDivideAndConquer(ArrayList<Point> P) {\n\n\t\t//Sort by X\n\t\tArrayList<Point> X = new ArrayList<Point>(P);\n\t\tsortX(X);\n\t\t//Sort by Y\n\t\tArrayList<Point> Y = new ArrayList<Point>(P);\n\t\tsortY(Y);\n\t\t//Call divide and conquer closest pairs algorithm for solution\n\t\treturn divideAndConquer(X, Y);\n\n\t}", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "@Override\n public double getTotalCommission() {\n double cost = 0.0;\n //increase cost for each report in the order\n for (Report report : reports.keySet()) {\n //report cost depends on the WorkType\n //audits are not capped by max employee count\n //regular orders are limited by max employee count\n int employeeCount = reports.get(report);\n cost += workType.calculateReportCost(report, employeeCount);\n }\n //increase cost of order based on priority\n //critical orders increase based on their critical loading\n //regular orders don't have an effect\n cost = priorityType.loadCost(cost);\n return cost;\n }", "private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}", "void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint v = 1 + m[i - a];\n\t\t\t\tif (v < min) {\n\t\t\t\t\tmin = v;\n\t\t\t\t\tsel = a;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sel == -1)\n\t\t\t\tthrow new NullPointerException(\"sel != -1\");\n\t\t\tm[i] = min;\n\t\t\tk[i] = sel;\n\t\t}\n\t}", "public void calcularPesos(){\r\n StructursDecisors.weightsDecisors=new ArrayList();\r\n double [][] matrizEigenvectors=createMatriz();\r\n for(int i=0; i<Structurs.names.size();i++)\r\n for(int j=0; j<StructursDecisors.names.size(); j++)\r\n System.out.println(\"MatrizEigenvector[\"+i+\"][\"+j+\"]\"+\"=\"+matrizEigenvectors[i][j]);\r\n double eigenvectorCriterios[]=new double[Structurs.eigenvector.size()];\r\n for(int i=0; i<Structurs.eigenvector.size(); i++)\r\n eigenvectorCriterios[i]=(double) Structurs.eigenvector.get(i);\r\n double []vectorPesos=createArrayPesos(matrizEigenvectors, eigenvectorCriterios);\r\n \r\n }", "public static void main(String args[] ) throws Exception {\n String l[] = br.readLine().split(\" \");\n long N = Long.parseLong(l[0]);\n long S = Long.parseLong(l[1]);\n long E = Long.parseLong(l[2]);\n TreeMap<Long,Long> t1 = new TreeMap<Long,Long>();\n TreeMap<Long,Long> t2 = new TreeMap<Long,Long>();\n for(int i=0;i<N;i++) {\n String s[] = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long p = Long.parseLong(s[1]);\n t1.put((x-p),(x+p));\n }\n ArrayList<Long> l1 = new ArrayList<Long>(t1.keySet());\n ArrayList<Long> l2 = new ArrayList<Long>(t1.values());\n long c = l1.get(0);\n long d = l2.get(0);\n for(int i=1;i<t1.size();i++)\n {\n if(l1.get(i)<=d)\n d = Math.max(d,l2.get(i));\n else\n {\n \n t2.put(c,d);\n c = l1.get(i);\n d = l2.get(i);\n }\n \n }\n t2.put(c,d);\n int i;\n long ans = 0;\n l1=new ArrayList<Long>(t2.keySet());\n l2=new ArrayList<Long>(t2.values());\n \n \n for(i=0;i<l1.size();i++)\n {\n if(S>=E)\n {\n S=E;\n break;\n }\n if(l1.get(i)<=S && S<=l2.get(i))\n S = l2.get(i);\n \n else if(S<=l1.get(i) && E>=l2.get(i))\n {\n ans+=l1.get(i)-S;\n S = l2.get(i);\n \n }\n else if(S<=l1.get(i) && E>=l1.get(i) && E<=l2.get(i))\n {\n ans+=l1.get(i)-S;\n S = E;\n }\n else if(S<=l1.get(i) && E<=l1.get(i))\n {\n ans+=E-S;\n S = E;\n }\n }\n if(S<E)\n ans+=E-S;\n pw.println(ans);\n \n pw.close();\n }", "public void probabiltDistribution() {\r\n\t\tfor (int k = 0; k < 1000; k++) {\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\trandomGrid[i][j] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdeployComputerShips();\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tprobabilityGrid[i][j] = probabilityGrid[i][j] + randomGrid[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n int maxSolutions = 0;\r\n int bestPerimeter = 0;\r\n int[] perimeters = new int[1000];\r\n for (int a = 1; a <= 1000; a++) {\r\n for (int b = 1; b <= a; b++) {\r\n double c = Math.sqrt(a*a + b*b);\r\n if (c != (int)c) continue;\r\n int perimeter = a + b + (int)c;\r\n if (perimeter > 1000) break;\r\n perimeters[perimeter - 1]++;\r\n if (perimeters[perimeter - 1] > maxSolutions) {\r\n maxSolutions++;\r\n bestPerimeter = perimeter;\r\n }\r\n }\r\n }\r\n System.out.println(\"Best perimeter: \" + bestPerimeter);\r\n System.out.println(\"Solutions: \" + maxSolutions);\r\n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "@Override\r\n double computeAccelerations() {\r\n double potentialEnergy;\r\n \r\n potentialEnergy = computeWallForces();\r\n assignMoleculesToCells(); \r\n potentialEnergy += computeForcesWithinCells();\r\n potentialEnergy += computeForcesWithNeighbourCells();\r\n \r\n return potentialEnergy;\r\n }", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "double dist(pair p1){\n\t\tdouble dx=(p1.x-centre.x);\n\t\tdouble dy=(p1.y-centre.y);\n\t\tcount++;\n\t\treturn java.lang.Math.sqrt((dx*dx)+(dy*dy));\n\t}", "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "public Potential combine(Potential p) {\n Vector v, v1, v2;\n FiniteStates aux;\n int i, nv;\n PotentialTree pot;\n double x;\n ProbabilityTree tree, tree1, tree2;\n \n if (p instanceof elvira.potential.PTreeCredalSet) {\n v1 = variables; // Variables of this potential.\n v2 = p.variables; // Variables of the argument.\n v = new Vector(); // Variables of the new potential.\n \n for (i=0 ; i<v1.size() ; i++) {\n aux = (FiniteStates)v1.elementAt(i);\n v.addElement(aux);\n }\n for (i=0 ; i<v2.size() ; i++) {\n aux = (FiniteStates)v2.elementAt(i);\n if (aux.indexOf(v1) == -1)\n v.addElement(aux);\n }\n // The new Potential.\n pot = new PTreeCredalSet(v);\n tree1 = getTree(); // Tree of this potential.\n tree2 = ((PTreeCredalSet)p).getTree(); // Tree of the argument.\n tree = ProbabilityTree.combine(tree1,tree2); // The new tree.\n pot.setTree(tree);\n }\n else {\n System.out.println(\"Error in PTreeCredalSet.combine(Potential p): argument p was not a PTreeCredalSet\");\n System.exit(1);\n pot = this;\n }\n return pot;\n }", "public static void compareCombos() {\n\t\tint currentTotal = 0;\n\t\tint pastTotal = 0;\n\n\t\tcost++;\n\t\tfor (int i = 0; i < numPeople; i++) {\n\t\t\tcurrentTotal += board[i][currentCombo[i]];\n\t\t\tpastTotal += board[i][bestCombo[i]];\n\t\t}\n\t\t\n\t\tif (currentTotal >= pastTotal) {\n\t\t\tbestTotal = 0;\n\t\t\tfor (int i = 0; i < numPeople; i++) {\n\t\t\t\tbestCombo[i] = currentCombo[i];\n\t\t\t\tbestTotal += board[i][currentCombo[i]];\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tProces p1= new Proces(20, 0, 10);\n\t\tProces p2= new Proces(10, 1, 10);\n\t\tProces p3= new Proces(30, 6, 10);\n\t\tProces p4= new Proces(9, 7, 10);\n\t\tArrayList<Proces> procesy1= new ArrayList<Proces>();\n\t\tprocesy1.add(p1);\n\t\tprocesy1.add(p2);\n\t\tprocesy1.add(p3);\n\t\tprocesy1.add(p4);\n\t\tProcesor proc1= new Procesor(1, procesy1);\n\t\n\t\t\n\t\t\n\t\tArrayList<Proces> procesy2= new ArrayList<Proces>();\n\t\tprocesy2.add(new Proces(40, 2, 14));\n\t\tprocesy2.add(new Proces(20, 8, 9));\n\t\tprocesy2.add(new Proces(30, 2, 3));\n\t\tprocesy2.add(new Proces(10, 4, 5));\n\t\tprocesy2.add(new Proces(4, 7, 14));\n\t\tProcesor proc2= new Procesor(2, procesy2);\n\t\n\t\t\n\t\t\n\t\tArrayList<Procesor> procesory= new ArrayList<Procesor>();\n\t\tprocesory.add(proc1);\n\t\tprocesory.add(proc2);\n\t\t\n\t\tint ileProcesorow=2;\n\t\tint progR=20;\n\t\tint progP=20;\n\t\tint iloscZapytanZ=10;\n\t\tint okresPomiaruObciazen=1;\n\t\t\n\t\tAlgorithms al= new Algorithms(procesory, progP, iloscZapytanZ, progR);\n\t\tal.wyswietlProcesory();\n\t\tal.symulacjaPierwsza(okresPomiaruObciazen);\n\t\tal.symulacjaDruga(okresPomiaruObciazen);\n\t\tal.symulacjaTrzecia(okresPomiaruObciazen);\n\t\t\n\t\t\n\t\t\n\t}", "public static void main( String[] args ){\n //Movemos el array de electrodomesticos\n Electrodomesticos[] electrodomesticos = Ejecutable.electrodomesticosArray();\n //Haciendo las comprobaciones\n electrodomesticos = Ejecutable.asignacionElectrodomesticos(electrodomesticos);\n //Seleccion del array precio\n double precioFinal[] = Ejecutable.precioElectrodomesticos(electrodomesticos);\n System.out.println();\n System.out.println(\"Los diferentes gastos se podrian dividir en estas categorias:\");\n System.out.println();\n System.out.println(\"Televisores, con un precio total de: \" + precioFinal[2]);\n System.out.println(\"Lavadoras: con un precio total de: \" + precioFinal[1]);\n System.out.println(\"Otro tipo de electrodomésticos, con un precio total de: \" + precioFinal[0]);\n System.out.println();\n System.out.println(\"Si sumamos los diferentes costes: \"+precioFinal[0]+\" + \"+precioFinal[1] + \" + \" +precioFinal[2] + \" tenemos como resultado total: \" + (precioFinal[0]+precioFinal[1]+precioFinal[2]) );\n }", "double getTotalCost();", "public double computeCGPAByID()\r\n {\r\n double total=0.0;\r\n for(int i=0; i<this.term; i++){\r\n total+=Gpa[i];\r\n \r\n }\r\n return this.cgpa=total/this.term;\r\n }", "private double determinanteCuadrada(){\n\t\tdouble deter = 1;\n\t\tdouble [][] matriz = this.clone().getComponentes();\n\t\t\t\t\n\t\tfor(int i=0;i<this.dimensionCol;i++){\n\t\t\tif(matriz[i][i]==0){\n\t\t\t\tif(this.intercambiarConRenglonNoNuloPorDebajo(matriz, i)==true){\n\t\t\t\t\tdeter *= (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.llevarACeroPosicionesPorDebajo(matriz, i);\n\t\t\tdeter*=matriz[i][i];\n\t\t}\n\t\t\t\t\n\t\treturn deter;\n\t}", "public static void main(String args[] ) throws Exception {\n Scanner s = new Scanner(System.in);\n int N=s.nextInt();\n long S=s.nextLong();\n long E=s.nextLong();\n long[] x=new long[N];\n long[] p=new long[N];\n int[] c=new int[N];\n for(int i=0;i<N;i++){\n x[i]=s.nextLong();\n p[i]=s.nextLong();\n c[i]=0;\n }\n long m=S;\n long dist=0;\n while(m<=E){\n long min=E;\n int index=0;\n for(int i=0;i<N;i++){\n if((x[i]-p[i])<min && c[i]==0){\n min=x[i]-p[i];\n index=i;\n }\n }\n if(m<(x[index]-p[index])){\n dist=dist+x[index]-p[index]-m;\n }\n\t if(m<(x[index]+p[index])){\n\t m=x[index]+p[index];\n\t }\n c[index]=1;\n }\n System.out.println(dist);\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "private Rational computeDirectly() {\n BigInteger _26390k = _26390.multiply(BigInteger.valueOf(start));\n BigInteger _24591257856pk = _24591257856.pow(start);\n\n Rational sum = Rational.ZERO;\n\n for (int k = start; k < end; k++) {\n BigInteger num = Factorial.verified(BigInteger.valueOf(k << 2));\n num = num.multiply(_1103.add(_26390k));\n\n BigInteger den = Factorial.verified(BigInteger.valueOf(k)).pow(4);\n den = den.multiply(_24591257856pk);\n\n _26390k = _26390k.add(_26390);\n _24591257856pk = _24591257856pk.multiply(_24591257856);\n\n sum = sum.add(Rational.valueOf(num, den).dropTo(context));\n sum = sum.dropTo(context);\n }\n return sum;\n }", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public static List<List> calculateCost(List<List> papa_list){\n /*\n algo for evaluation:\n if contains 2 \n yes - check if also contains 1\n yes - drop it, continue\n no - count # of 2's, add points twice, continue\n no - check if contains 1\n yes - count # of 1's, subtract points, continue\n no - line of 0's - drop it\n */\n\n int points = 0;\n int count =0;\n for(int i=0;i<papa_list.size();i++){\n points = 0;\n List<Integer> temp = papa_list.get(i);\n if(temp.contains(2)){\n if(temp.contains(1)){\n temp.add(points);\n }\n else{\n count =0; \n for(int num : temp){\n if(num==2){\n count++;\n }\n }\n points+=count;\n //playing offensive game: you get more points for attacking (playing to win) rather than defensing (cancelling out opponent's move) \n //temp.add(2*points);\n temp.add(points);\n }\n }\n else if(temp.contains(1)){\n count =0; \n for(int num : temp){\n if(num==1){\n count--;\n }\n }\n points+=count;\n temp.add(points);\n }\n else{\n temp.add(points);\n }\n }\n return papa_list; \n }", "public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfor (i = 0; i < count; i++)\n\t\t\tthis.cost += this.cities.get(i).distances[this.cities.get(i+1).index];\n\n\t\tthis.cost += this.cities.get(count).distances[this.cities.get(0).index];\n\t}", "public int candy(int[] ratings){\n\t\tint n = ratings.length;\n\t\tint[] pre_count = new int[n];\n\t\tfor(int i = 0; i < n; i ++)\n\t\t\tpre_count[i] = 0;\n\t\t\n\t\tfor(int i = 1; i < n; i ++){\n\t\t\tif (ratings[i] < ratings[i-1])\n\t\t\t\tpre_count[i-1] ++;\n\t\t\tif (ratings[i] > ratings[i-1])\n\t\t\t\tpre_count[i]++;\t\t\t\t\n\t\t}\n\t\tint[] candies = new int[n];\n\t\tLinkedList<Integer> topo_que = new LinkedList<Integer>();\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tif (pre_count[i] == 0){\n\t\t\t\tcandies[i] = 1;\n\t\t\t\ttopo_que.add(i);\n\t\t\t}\n\t\twhile( ! topo_que.isEmpty()){\n\t\t\tint i = topo_que.removeFirst();\n\t\t\tif (i>0)\n\t\t\t\tif ( ratings[i] < ratings[i - 1]){\n\t\t\t\t\t// remove dependency\n\t\t\t\t\tpre_count[i-1] --;\n\t\t\t\t\t// update the candies\n\t\t\t\t\tif ( candies[i] + 1 > candies[i-1])\n\t\t\t\t\t\tcandies[i-1] = candies[i] + 1;\n\t\t\t\t\tif (pre_count[i-1] == 0)\n\t\t\t\t\t\ttopo_que.add(i-1);\n\t\t\t\t}\n\t\t\tif (i < n-1)\n\t\t\t\tif ( ratings[i] < ratings[i + 1]){\n\t\t\t\t\t// remove dependency\n\t\t\t\t\tpre_count[i+1] --;\n\t\t\t\t\t// update the candies\n\t\t\t\t\tif ( candies[i] + 1 > candies[i+1])\n\t\t\t\t\t\tcandies[i+1] = candies[i] + 1;\n\t\t\t\t\tif (pre_count[i+1] == 0)\n\t\t\t\t\t\ttopo_que.add(i+1);\n\t\t\t\t}\t\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n ; i ++)\n\t\t\tsum += candies[i];\n\t\t\n\t\treturn sum;\n\t\n\n }", "public void prim() {\n\t\t// allot max value to the edges\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tfor (int j = 0; j < vertexList.length; j++) {\n\t\t\t\tsimple[i][j] = Integer.MAX_VALUE;\n\t\t\t}\n\t\t}\n\t\t// initialize array with the costs\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tfor (Neighbor nbr = vertexList[i].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tsimple[i][vertexList[nbr.vertexNumber].id] = nbr.weight;\n\t\t\t}\n\t\t}\n\t\t// initialize edgeList for keeping track of mst\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// giving cost 0 to vertex 0\n\t\tedgeList[0].v1 = rand;\n\t\t// calling the computePrim function\n\t\tcomputePrim(0);\n\t\tint sum1 = 0;\n\t\t// calculating the sum of mst costs from the sum arraylist c\n\t\tfor (int i = 0; i < c.size(); i++) {\n\t\t\tsum1 = sum1 + c.get(i);\n\t\t}\n\t\tsumSimple = sum1;\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[] card = new int[n];\n\n\t\tfor(int i=0; i<card.length; i++) {\n\t\t\tcard[i] = scan.nextInt();\n\t\t}\n\n\t\tint result = 0;\n\t\tint temp = 0;\n\n\t\tfor(int i=0; i<n-2; i++) \n\t\t\tfor(int j=i+1; j<n-1; j++) \n\t\t\t\tfor(int k=j+1; k<n; k++) {\n\t\t\t\t\tresult = card[i] + card[j] + card[k];\n\t\t\t\t\tif(result <= m) {\n\t\t\t\t\t\tif(temp <= result)\n\t\t\t\t\t\t\ttemp = result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\tSystem.out.println(temp);\n\t\tscan.close();\n\t}", "public PrecioTotal1(Computador[] pPCs){\n computadores = pPCs;\n }", "public List<ParProdutoQuantidade> produtosMaisComprados(String cliente){\r\n Map<String, Integer> m = new HashMap<>();\r\n for (int i = 0; i < this.numFiliais; i++){\r\n Map<String, Integer> m2 = this.filial.get(i).produtosMaisComprados(cliente);\r\n for (String produto: m2.keySet()){\r\n Integer quantidade = m.get(produto);\r\n if (quantidade == null){\r\n m.put(produto, m2.get(produto));\r\n }\r\n else {\r\n m.put(produto, quantidade + m2.get(produto));\r\n }\r\n }\r\n }\r\n Set<ParProdutoQuantidade> s = new TreeSet<>();\r\n for (String produto: m.keySet()){\r\n s.add(new ParProdutoQuantidade (produto, m.get(produto)));\r\n }\r\n List<ParProdutoQuantidade> l = new ArrayList<>();\r\n for (ParProdutoQuantidade p: s){\r\n l.add(p);\r\n }\r\n return l;\r\n }", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "private Double getDeductibles(int orNo, int storeCode) {\n\t\treturn getReturnedItemsAmount(orNo, storeCode) + getGiftCheckAmount(orNo, storeCode) + getPartialTransactionBalance(orNo, storeCode);\r\n\t}", "public static void checkUpdateProbabilityOnAtomicRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 0; j < 8; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = base_relations[j];\r\n\t\t\t\r\n\t\t\t\tfor(int k = 0; k < 8; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = base_relations[k];\r\n\t\t\t\t\ttotal++;\r\n\t\t\t\t\t//int new_r3 = CompositionTable.LookUpTable(r1, r2);\r\n\t\t\t\t\tint new_r3 = SetOperators.intersection(r3, \r\n\t\t\t\t\t\t\t\tCompositionTable.LookUpTable(r1, r2));\r\n\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\tif( new_r3 != r3 )\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tupdate++;\r\n\t\t\t\t\t\t//System.out.println(new_r3);\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\t\r\n\t\tSystem.out.println(\" total \" + total + \" update \" + update);\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}", "public static double BruteForceClosestPairs(ArrayList<Point> P) {\n\n\t\t//Assume closest distance is very large\n\t\tdouble distance = Double.POSITIVE_INFINITY;\n\t\t//Size of Arraylist\n\t\tint size = P.size();\n\t\t// New minimum \n\t\tdouble distchange = 0.0;\n\n\t\tfor (int i = 0; i < size - 1; i++) {\n\t\t\tfor (int j = i + 1; j < size; j++) {\n\n\t\t\t\tdistchange = distance;\n\t\t\t\t// Calculate distance between two points\n\t\t\t\tdistance = Math.min(Math.sqrt(Math.pow(P.get(i).getX() - P.get(j).getX(), 2) \n\t\t\t\t\t\t + Math.pow(P.get(i).getY() - P.get(j).getY(), 2)), distance);\n\t\t\t\t\n\t\t\t\tif (distchange != distance) {\n\t\t\t\t\t// If a new min was found, assign the new points \n\t\t\t\t\t// used for output to get \"coordinates of closest pair\"\n\t\t\t\t\tcoordinatepairs = \"(\" + P.get(i).getX() + \", \" + P.get(i).getY()+ \"), \" +\n\t\t\t\t\t\t\t\t \"(\" + P.get(j).getX() + \", \" + P.get(j).getY() + \")\";\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn distance;\t\t\t\n\t}", "public static void main(String[] args) {\n\t\tint i,j,z,sumA,sumB,sumPairs;\r\n\r\n\t\tsumPairs = 0;\r\n\r\n\t\tfor (i=1;i<10000;i++){\r\n\t\t sumA = 0;\r\n\t\t for (j=1;j<i;j++){\r\n\t\t if (i%j==0) \r\n\t\t sumA += j;\r\n\t\t }\r\n\r\n\t\t sumB = 0;\r\n\t\t for (z=1;z<sumA;z++){\r\n\t\t if (sumA%z==0)\r\n\t\t sumB += z;\r\n\t\t }\r\n\r\n\t\t if (sumB == i && sumB != sumA)\r\n\t\t sumPairs += i; \r\n\t\t}\r\nSystem.out.println(sumPairs);\r\n\t\t\r\n\t}", "@Override\n public void tirar() {\n if ( this.probabilidad == null ) {\n super.tirar();\n this.valorTrucado = super.getValor();\n return;\n }\n \n // Necesitamos conocer la probabilidad de cada número, trucados o no, para ello tengo que saber\n // primero cuantos números hay trucados y la suma de sus probabilidades. \n // Con esto puedo calcular la probabilidad de aparición de los números no trucados.\n \n int numeroTrucados = 0;\n double sumaProbalidadesTrucadas = 0;\n double probabilidadNoTrucados = 0;\n \n for ( double p: this.probabilidad ) { // cálculo de la suma números y probabilidades trucadas\n if ( p >= 0 ) {\n numeroTrucados++;\n sumaProbalidadesTrucadas += p;\n }\n }\n \n if ( numeroTrucados < 6 ) { // por si estuvieran todos trucados\n probabilidadNoTrucados = (1-sumaProbalidadesTrucadas) / (6-numeroTrucados);\n }\n\n double aleatorio = Math.random(); // me servirá para escoger el valor del dado\n \n // Me quedo con la cara del dado cuya probabilidad de aparición, sumada a las anteriores, \n // supere el valor aleatorio\n double sumaProbabilidades = 0;\n this.valorTrucado = 0;\n do {\n ++this.valorTrucado;\n if (this.probabilidad[this.valorTrucado-1] < 0) { // no es una cara del dado trucada\n sumaProbabilidades += probabilidadNoTrucados;\n } else {\n sumaProbabilidades += this.probabilidad[this.valorTrucado-1];\n }\n \n } while (sumaProbabilidades < aleatorio && valorTrucado < 6);\n \n \n }", "public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "@Override\n\tpublic int calculateCost() \n\t{\n\t\treturn (this.modernCenterpieceCost*this.centerpieceCount);\n\t}", "public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "public void mainProcess(java.util.ArrayList<double[]> dataPoint, String dist) throws Exception {\n double[][] S = initAP(dataPoint);\r\n// double[][] S = readData(fn);\r\n double[][] A = new double[N][N];\r\n double[][] R = new double[N][N];\r\n //////////////////////////////////////\r\n\tfor(int m=0; m<iter; m++) {\r\n// System.out.println(m);\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n double max = -1e100;\r\n for(int kk=0; kk<k; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n for(int kk=k+1; kk<N; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n R[i][k] = (1-lambda)*(S[i][k] - max) + lambda*R[i][k];\r\n }\r\n }\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n if(i==k) {\r\n double sum = 0.0;\r\n for(int ii=0; ii<i; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=i+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*sum + lambda*A[i][k];\r\n } else {\r\n double sum = 0.0;\r\n int maxik = Math.max(i, k);\r\n int minik = Math.min(i, k);\r\n for(int ii=0; ii<minik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=minik+1; ii<maxik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=maxik+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*Math.min(0.0, R[k][k]+sum) + lambda*A[i][k];\r\n }\r\n }\r\n }\r\n }\r\n \r\n//\tdouble E[N][N] = {0};\r\n double[][] E = new double[N][N];\r\n\r\n//\tvector<int> center;\r\n java.util.ArrayList<Integer> center = new java.util.ArrayList<>();\r\n for(int i=0; i<N; i++) {\r\n E[i][i] = R[i][i] + A[i][i];\r\n if(E[i][i]>0) {\r\n center.add(i);\r\n }\r\n }\r\n// int idx[N] = {0};\r\n int idx[] = new int[N];\r\n\r\n\tfor(int i=0; i<N; i++) {\r\n int idxForI = 0;\r\n double maxSim = -1e100;\r\n for(int j=0; j<center.size(); j++) {\r\n int c = center.get(j);\r\n if (S[i][c]>maxSim) {\r\n maxSim = S[i][c];\r\n idxForI = c;\r\n }\r\n }\r\n idx[i] = idxForI;\r\n }\r\n// java.util.HashMap<Integer, String> colorMap = new java.util.HashMap<>();\r\n java.util.HashMap<Integer, Integer> idcMap = new java.util.HashMap<>();\r\n java.util.HashSet<Integer> idSet = new java.util.HashSet<>();\r\n for(int i=0; i<N; i++) {\r\n idcMap.put(i, idx[i]);\r\n idSet.add(idx[i]);\r\n// System.out.println(idx[i]+1);\r\n\t}\r\n java.io.FileWriter out = new java.io.FileWriter(dist);\r\n java.util.HashMap<Integer, String> colorMap = getColorMap(idSet);\r\n for(int i=0; i<N; i++){\r\n double d[] = dataPoint.get(i);\r\n if(idSet.contains(i)){\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(i)+\"\\n\");\r\n }\r\n else{\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i))+\"\\n\");\r\n }\r\n// System.out.println(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i)));\r\n }\r\n out.close();\r\n// System.out.println(colorMap);\r\n /////////////////////////////////////////\r\n }", "List<BigDecimal> computeSol();", "public static void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n for(int i=0; i<100; i++){\n Graph graph_1 = new Graph();\n graph_1.generate_full_symmetric(p, q, 100);\n //graph_2.setVertices(new ArrayList<>(graph_1.getVertices()));\n Graph graph_2 = (Graph) deepCopy(graph_1);\n res_1+=graph_1.resolve_heuristic_v1().size();\n res_2+=graph_2.resolve_heuristic_v2();\n }\n res_1/=100;\n System.out.format(\"V1 - f( %.1f ; %.1f) = %s \\n\", p, q, res_1);\n res_2/=100;\n System.out.format(\"V2 - f( %.1f ; %.1f) = %s \\n\", p, q, res_2);\n }\n }\n\n }", "private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}", "private static int computeUnitsTrappedDynamicProgramming(int[] elevationMap) {\n int[] leftWalls = computeLeftWalls(elevationMap);\n int[] rightWalls = computeRightWalls(elevationMap);\n int units = 0;\n for (int x = 1; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = leftWalls[x];\n int tallestRight = rightWalls[x];\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n return units;\n }", "@Test\n public void testSumUsingCommutativityProperty() {\n for (int i = 0; i < 100; i++) {\n int x = randomInt();\n int y = randomInt();\n assertThat(sum(x, y), equalTo(sum(y, x)));\n }\n }", "public static void main(String[] args) {\n\t\tint flowerToPurchase = 3;\n int members = 2;\n int[] fPrice = {2,5,6};\n \n \tint j=0;\n \tint key,k;\n \tint arr_length= flowerToPurchase;\n \tfor(int i=1;i<flowerToPurchase; i++){\n \t\tj=i-1;\n \t\tkey = fPrice[i];\n \t\twhile(j >=0 && key < fPrice[j]){\n \t\t\tfPrice[j+1] = fPrice[j];\n \t\t\tj=j-1;\n \t\t}\n\n \t\tfPrice[j+1] = key;\n \t} // sort ends\n \t\n \tint temp = flowerToPurchase;\n \tint x =0;\n \tint amnt =0, peopleCount=0;\n \tint index = flowerToPurchase-1;\n \tint[] friends = new int[members];\n \tint f_index =0;\n \twhile(temp != 0){\n \t\tif(members == flowerToPurchase){\n \t\t\tamnt += fPrice[index--];\n \t\t\ttemp--;\n \t\t}\n \t\telse if(members < flowerToPurchase){\n \t\t\t\n \t\t\tif(friends[f_index] == 0){\n \t\t\t\tfriends[f_index] = 1;\n \t\t\t\tamnt += fPrice[index--];\n \t\t\t\tfPrice[index+1] = 0;\n \t\t\t\ttemp--;\n \t\t\t}\n \t\t\telse if(friends[f_index] == 1){\n \t\t\t\tamnt += (friends[f_index] + 1) * fPrice[0];\n \t\t\t\tfriends[f_index] = 2;\n \t\t\t\tfPrice[0] = 0;\n \t\t\t\ttemp--;\n \t\t\t\tf_index++;\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n \tSystem.out.println(amnt);\n \t\n }", "public int antalSager() {\n int antalSager = 0;\n for (int i = 0; i < sager.size(); i++) {\n for (int j = 0; j < sager.get(i).size(); j++) {\n antalSager += 1;\n }\n }\n return antalSager;\n }", "public PVector cohesion (ArrayList<Boid> boids) {\n float neighbordist = 50;\n PVector sum = new PVector(0, 0); // Start with empty vector to accumulate all positions\n int count = 0;\n for (Boid other : boids) {\n float d = PVector.dist(position, other.position);\n if ((d > 0) && (d < neighbordist)) {\n sum.add(other.position); // Add position\n count++;\n }\n }\n if (count > 0) {\n sum.div(count);\n return seek(sum); // Steer towards the position\n } else {\n return new PVector(0, 0);\n }\n }", "public int consolidate (RuleList closedList, RuleMap rMap) {\n \n int steps = 0;\n boolean insert;\n // IF THE RULESET IS ALREADY COMPLETE, NO NEED TO FIND RULES\n if (this.totalProb < 0.999) {\n //System.out.println(\"Incomplete RuleSet : \" ); this.printRules();\n for (int l = 0 ; l < this.references.size(); l++) {\n RuleList r = closedList.getRuleByID(this.references.get(l)).getSameRuleSetRules(sList, closedList, rMap);\n\n for (int i = 0; i < r.size(); i++) {\n\n insert = true;\n // CHECK FOR MATCHES\n for (int h = 0; h < this.references.size(); h++) {\n if ( r.getRule(i).ruleMatch_exact(closedList.getRuleByID(this.references.get(h)))) {\n insert = false;\n }\n } \n if (insert) { \n r.getRule(i).prec_occurrencies = closedList.getRuleByID(this.references.get(0)).prec_occurrencies;\n closedList.addRule(r.getRule(i));\n this.references.add(r.getRule(i).id);\n this.totalProb = this.totalProb + r.getRule(i).getProb();\n this.totalProb = Math.round(this.totalProb * 1000);\n this.totalProb = this.totalProb/1000;\n\n steps++;\n }\n }\n }\n\n }\n \n return steps;\n }", "public static void corrDistOut()\t\n\t{\t \n\t\n\t\tdouble c, n, w;\n\t\t\n\t\t//System.err.println(\"CORRDIST\");\n\n\t\tclade = clad[k];\n\t\n\t clade.meanDc = 0;\n\t clade.meanDn = 0;\n\t clade.meanWeight = 0;\n\t clade.sumDcxWeight = 0;\n\t clade.sumDnxWeight = 0;\n\t clade.sumDcSq = 0;\n\t clade.sumDnSq = 0;\n\t clade.sumWeightSq = 0;\n\t\t\n\t\tc = n = w = 0;\n\t\t\n\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t \tclade.meanDc += clade.Dc[i] / (double) clade.numSubClades;\n\t \tclade.meanDn += clade.Dn[i] / (double) clade.numSubClades;\n\t \tclade.meanWeight += clade.weight[i] / (double) clade.numSubClades;\n\t \tclade.sumDcxWeight += clade.Dc[i] * clade.weight[i];\n\t \tclade.sumDnxWeight += clade.Dn[i] * clade.weight[i];\n\t \tclade.sumDcSq += Math.pow (clade.Dc[i],2); \n\t \tclade.sumDnSq += Math.pow(clade.Dn[i],2); \n\t \tclade.sumWeightSq += Math.pow(clade.weight[i], 2);\n\t \t \t}\t\n\t \n\t c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \tw = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\tif(clade.sumDcSq == 0 || c == 0 || w == 0)\n\t\t\tclade.corrDcWeights = NA; \n\t else\n\t\t\tclade.corrDcWeights = (clade.sumDcxWeight - (double)clade.numSubClades * clade.meanDc * clade.meanWeight) / (Math.sqrt(c*w));\n\n\t\tif(clade.sumDnSq == 0 || n == 0 || w == 0)\n\t\t\tclade.corrDnWeights = NA; \n\t else\n\t\t\tclade.corrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight) / (Math.sqrt(n*w));\n\n\t if(clade.corrDcWeights > 1 && clade.corrDcWeights < 2)\n\t clade.corrDcWeights = 1;\n\t \n\t if(clade.corrDcWeights < -1)\n\t clade.corrDcWeights = -1;\n\t \n\t if(clade.corrDnWeights > 1 && clade.corrDnWeights < 2)\n\t clade.corrDnWeights = 1;\n\t \n\t if(clade.corrDnWeights < -1)\n\t clade.corrDnWeights = -1; \n\n\t\t//System.err.println(\"Correlations clade \" + clade.cladeName + \": \" + clade.corrDcWeights + \" \" + clade.corrDnWeights);\n\n\t}", "public double getPrereqWeightSum() { return prereq_w_sum; }", "private void createCareHomeResidentDistribution() {\n\n int[] numberOfType = new int[careHomeResidentRanges.size()];\n for (CareHome h : getCareHomes()) {\n for (int i = 0; i < careHomeResidentRanges.size(); i++) {\n if (h.getResidentRange().equals(careHomeResidentRanges.get(i))) {\n numberOfType[i]++;\n }\n }\n }\n\n int rangeSum = careHomeResidentRanges.stream().map(r -> r.getRange()).reduce(0, Integer::sum);\n\n for (CareHome h : getCareHomes()) {\n for (int i = 0; i < careHomeResidentRanges.size(); i++) {\n if (h.getResidentRange().equals(careHomeResidentRanges.get(i))) {\n double p = (double) careHomeResidentRanges.get(i).getRange() / rangeSum / numberOfType[i];\n careHomeResidentDist.add(p, h);\n }\n }\n }\n }", "public Double darCostoRuteo(List<Ruta>r){\n\t\tDouble respuesta=0.0;\n\t\tfor(int i=0;i<r.size();i++){\n\t\t\trespuesta+=r.get(i).costosTotales;\n\t\t}\n\t\treturn respuesta;\n\t}", "private HashMap<String, Integer> getProducedResources() {\n HashMap<String, Integer> producedResources = new HashMap<>();\n\n // Ajoute à la liste des ressources produites par le joueur la ressource produite par la merveille\n producedResources.merge(wonder.getWonderResource().toString(), 1, Integer::sum);\n\n // Parcourt toutes les constructions afin de compte les ressources produites par les constructions\n for (Card card: buildings) {\n Iterator iterator = card.getProducedResources().entrySet().iterator();\n\n while (iterator.hasNext()) {\n Map.Entry pair = (Map.Entry)iterator.next();\n\n // Si la ressource produite n'est pas une pièce, on l'ajoute à la liste des ressources produites\n if (!pair.getKey().equals(\"COIN\")) {\n producedResources.merge((String)pair.getKey(), (Integer)pair.getValue(), Integer::sum);\n }\n\n iterator.remove();\n }\n }\n\n return producedResources;\n }", "public static void main(String[] args) throws Exception, IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n//\t\tTC = Integer.parseInt(br.readLine());\n//\t\tfor(int tc=1;tc<=TC;tc++){\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tN = Integer.parseInt(st.nextToken());\n\t\t\tcost = new int[N+1];\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tfor(int i=1;i<=N;i++){\n\t\t\t\tcost[i] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * 점화식\n\t\t\t * D[i] = max(현재까지의 값 , 직전+현재길의 cost)\n\t\t\t * */\n\t\t\t\n\t\t\tD = new int[N+1];\n\t\t\tfor(int i=1;i<=N;i++){\n\t\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\t\tD[i] = Math.max(D[i], D[i-j]+cost[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(D[N]);\n\t\t\t\n\t\t\t\n//\t\t\tint revenue = 0;\n//\t\t\tint []r = new int [N+1];\n//\t\t\tr[0] = 0;\n//\t\t\tfor(int i=1;i<=N;i++){\n//\t\t\t\tfor(int j=1;j<=i;j++){\n//\t\t\t\t\tif(revenue < cost[j] + r[i-j]){\n//\t\t\t\t\t\trevenue = cost[j] + r[i-j];\n//\t\t\t\t\t}\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\tr[i] = revenue;\t\n//\t\t\t}\n//\t\t\tSystem.out.println(revenue);\n//\t\t\tSystem.out.println(\"#\"+tc+\"\");\n//\t\t}\n\t\tbr.close();\n\t}", "public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public static void main(String[] args) {\n\t\n\t\tArrayList DP_result=DP_min_operation(98734);\n\t\tArrayList result_arry=step_to_primitive_cal(98734,DP_result);\n\t\tSystem.out.println(result_arry);\n\t\tSystem.out.println(result_arry.size());\n\n\t}", "@Test\r\n\tpublic void testDistancia0() \r\n\t{\r\n\t\tAssert.assertEquals(1.41, new Ponto(3,3).dist(new Ponto(4,2)), EPSILON);\r\n\t\tAssert.assertEquals(26.20, new Ponto(-7,-4).dist(new Ponto(17,6.5)), EPSILON);\t\r\n\t\tAssert.assertEquals(0.00, new Ponto(0,0).dist(new Ponto(0,0)), EPSILON);\t\r\n\t}", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }", "public static void main(String[] args) {\r\n\t\tint[] nums = {1,2,3,4,5,6,3,1};\r\n\t\tSolution2 sol = new Solution2();\r\n\t\tSystem.out.println(sol.distributeCandies(nums));\r\n\t}", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-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 }\n\t\t\t\t return dp[m][n][0];\n\t\t\t\t \n\t\t\t }", "public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }", "void unionTreeCoreset(int k,int n_1,int n_2,int d, Point[] setA,Point[] setB, Point[] centres, MTRandom clustererRandom) {\n\t\t//printf(\"Computing coreset...\\n\");\n\t\t//total number of points\n\t\tint n = n_1+n_2;\n\n\t\t//choose the first centre (each point has the same probability of being choosen)\n\t\t\n\t\t//stores, how many centres have been choosen yet\n\t\tint choosenPoints = 0; \n\t\t\n\t\t//only choose from the n-i points not already choosen\n\t\tint j = clustererRandom.nextInt(n-choosenPoints); \n\n\t\t//copy the choosen point\n\t\tif(j < n_1){\n\t\t\t//copyPointWithoutInit(&setA[j],&centres[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setA[j].clone();\n\t\t} else {\n\t\t\tj = j - n_1;\n\t\t\t//copyPointWithoutInit(&setB[j],&centres[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setB[j].clone();\n\t\t}\n\t\ttreeNode root = new treeNode(setA,setB,n_1,n_2, centres[choosenPoints],choosenPoints); //??\n\t\tchoosenPoints = 1;\n\t\t\n\t\t//choose the remaining points\n\t\twhile(choosenPoints < k){\n\t\t\tif(root.cost > 0.0){\n\t\t\t\ttreeNode leaf = selectNode(root, clustererRandom);\n\t\t\t\tPoint centre = chooseCentre(leaf, clustererRandom);\n\t\t\t\tsplit(leaf,centre,choosenPoints);\n\t\t\t\t//copyPointWithoutInit(centre,&centres[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = centre;\n\t\t\t} else {\n\t\t\t\t//create a dummy point\n\t\t\t\t//copyPointWithoutInit(root.centre,&centres[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = root.centre;\n\t\t\t\tint l;\n\t\t\t\tfor(l=0;l<root.centre.dimension;l++){\n\t\t\t\t\tcentres[choosenPoints].coordinates[l] = -1 * 1000000;\n\t\t\t\t}\n\t\t\t\tcentres[choosenPoints].id = -1;\n\t\t\t\tcentres[choosenPoints].weight = 0.0;\n\t\t\t\tcentres[choosenPoints].squareSum = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\tchoosenPoints++;\n\t\t}\n\n\t\t//free the tree\n\t\tfreeTree(root);\n\n\t\t//recalculate clustering features\n\t\tint i;\n\t\tfor(i=0;i<n;i++){\n\t\t\t\t\n\t\t\tif(i < n_1) {\n\t\t\t\t\n\t\t\t\tint index = setA[i].centreIndex;\n\t\t\t\tif(centres[index].id != setA[i].id){\n\t\t\t\t\tcentres[index].weight += setA[i].weight;\n\t\t\t\t\tcentres[index].squareSum += setA[i].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setA[i].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setA[i].coordinates[l];\n\t\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\n\t\t\t\tint index = setB[i-n_1].centreIndex;\n\t\t\t\tif(centres[index].id != setB[i-n_1].id){\n\t\t\t\t\tcentres[index].weight += setB[i-n_1].weight;\n\t\t\t\t\tcentres[index].squareSum += setB[i-n_1].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setB[i-n_1].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setB[i-n_1].coordinates[l];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}" ]
[ "0.57644176", "0.57536846", "0.5642431", "0.5574883", "0.5507602", "0.5491372", "0.5489841", "0.54343027", "0.5383902", "0.5344764", "0.53302145", "0.53077435", "0.530717", "0.53017", "0.52945507", "0.52726626", "0.52553624", "0.5254337", "0.5253219", "0.52505815", "0.52470297", "0.5236717", "0.5234441", "0.52290267", "0.5207783", "0.52073705", "0.52003515", "0.51971304", "0.51861495", "0.5180625", "0.51695293", "0.5167139", "0.5164352", "0.51605654", "0.51581156", "0.5153021", "0.5144587", "0.5137506", "0.51341593", "0.5129206", "0.5128219", "0.51275545", "0.5123959", "0.51236737", "0.511833", "0.5117764", "0.51131016", "0.5108644", "0.510813", "0.51064706", "0.51059824", "0.5105325", "0.50986105", "0.50981635", "0.5096976", "0.50922096", "0.50902396", "0.5085955", "0.50788546", "0.50718516", "0.5071017", "0.5063125", "0.5059185", "0.50591433", "0.5058426", "0.5057532", "0.5056665", "0.5054439", "0.5052619", "0.5052459", "0.50511223", "0.5050178", "0.50488216", "0.50483555", "0.504796", "0.50450534", "0.50431836", "0.50330526", "0.50268143", "0.5023441", "0.50232136", "0.50226444", "0.50196", "0.5018114", "0.50169855", "0.50162464", "0.5006814", "0.5006496", "0.49997196", "0.49993607", "0.4995496", "0.49941254", "0.49931663", "0.49911147", "0.4990895", "0.4987412", "0.4986922", "0.49810657", "0.49809587", "0.49790096" ]
0.59348106
0
THIS METHOD MAY BE USED BY THE PREY IF YOU WANT TO SELECT THE RANDOM PREY MOVEMENT JUST BETWEEN FREE SORROUNDING CELLS.
public List<Cell> getFreeSorroundingCells(Cell cell) { List<Cell> freeCells = new LinkedList<>(); if (!getNorthCell(cell).hasAgent()) { freeCells.add(getNorthCell(cell)); } if (!getSouthCell(cell).hasAgent()) { freeCells.add(getSouthCell(cell)); } if (!getEastCell(cell).hasAgent()) { freeCells.add(getEastCell(cell)); } if (!getWestCell(cell).hasAgent()) { freeCells.add(getWestCell(cell)); } return freeCells; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void step()\n {\n\t int rows = grid.length-1;\n\t int cols = grid[0].length-1;\n\t int direction = (int) (Math.random()*3);\n\t direction--;\n\t int row = (int) (Math.random()*rows);\n\t //System.out.println(row);\n\t int col = (int) (Math.random()*cols);\n\t //System.out.println(col);\n\t if(grid[row][col] == SAND && (grid[row+1][col] == EMPTY || grid[row+1][col] == WATER)) {\n\t\t grid[row+1][col] = SAND;\n\t\t grid[row][col] = EMPTY;\n\t }\n\t if(grid[row][col] == WATER && grid[row+1][col] == EMPTY) {\n\t\t if(col != 0) {\n\t\t\t grid[row+1][col+direction] = WATER;\n\t\t\t grid[row][col] = EMPTY;\n\t\t }\n\t\t else {\n\t\t\t grid[row+1][col] = WATER;\n\t\t\t grid[row][col] = EMPTY;\n\t\t }\n\t }\n }", "private int[] chooseCoordinates() {\n\t\t// Choose new (posX,posY) location for the Fish\n\t\tint pasX, pasY;\n\n\t\t// at least pasX or pasY not null\n\t\tdo {\n\t\t\tpasX = this.appConfig.getRandom().nextInt(3) - 1;\n\t\t\tpasY = this.appConfig.getRandom().nextInt(3) - 1;\n\t\t} while (pasX == 0 && pasY == 0);\n\n\t\t// choose one free cell based on the random steps (+1 logic)\n\t\tfor (int x = pasX; x <= 1; x++) {\n\t\t\tfor (int y = pasY; y <= 1; y++) {\n\t\t\t\tint newX = this.posX + x;\n\t\t\t\tint newY = this.posY + y;\n\n\t\t\t\t// not a good choice with isTorus\n\t\t\t\tif (!this.appConfig.isTorus() && this.environment.isOutOfBound(newX, newY)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// change x or y if environment is a torus\n\t\t\t\tif (this.appConfig.isTorus()) {\n\t\t\t\t\tif (newX < 0) {\n\t\t\t\t\t\tnewX = this.environment.getWidth() - 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newX >= this.environment.getWidth()) {\n\t\t\t\t\t\tnewX = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newY < 0) {\n\t\t\t\t\t\tnewY = this.environment.getHeight() - 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newY >= this.environment.getHeight()) {\n\t\t\t\t\t\tnewY = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Fish can move here\n\t\t\t\tif (this.environment.getCell(newX, newY) == null) {\n\t\t\t\t\treturn new int[] { newX, newY };\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// choose one free cell based on the random steps (-1 logic)\n\t\tfor (int x = pasX; x >= -1; x--) {\n\t\t\tfor (int y = pasY; y >= -1; y--) {\n\t\t\t\tint newX = this.posX + x;\n\t\t\t\tint newY = this.posY + y;\n\n\t\t\t\t// not a good choice with isTorus\n\t\t\t\tif (!this.appConfig.isTorus() && this.environment.isOutOfBound(newX, newY)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// change x or y if environment is a torus\n\t\t\t\tif (this.appConfig.isTorus()) {\n\t\t\t\t\tif (newX < 0) {\n\t\t\t\t\t\tnewX = this.environment.getWidth() - 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newX >= this.environment.getWidth()) {\n\t\t\t\t\t\tnewX = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newY < 0) {\n\t\t\t\t\t\tnewY = this.environment.getHeight() - 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newY >= this.environment.getHeight()) {\n\t\t\t\t\t\tnewY = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Fish can move here\n\t\t\t\tif (this.environment.getCell(newX, newY) == null) {\n\t\t\t\t\treturn new int[] { newX, newY };\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// no available cell if we arrive here\n\t\treturn null;\n\t}", "public void reproduce() {\n if (getSelfCount() >= getMinMates() && getLocation()\n .getEmptyCount() >= getMinEmpty()\n && getFoodCount() >= getMinFood() && dayCountDown != 0) {\n int index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n Cell selectedCell = getLocation().getEmptyArray().get(index);\n createLife(selectedCell).init();\n \n }\n \n }", "@Override\n public void relocatedWithinBounds() {\n x = random.nextInt(maxX - width);\n y = random.nextInt(maxY - height);\n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "public void randomize() {\n // randomize the position/number of alive and dead cells by looping through each cell\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n // get a random number(between 0 and 1)\n double randomNum = Math.random();\n // cell is live if the random number is greater than 0.7\n // (0.7 gives a greater chance of a dead cell so that the grid isn't too full)\n if (randomNum > 0.7) {\n game.grid[i][j] = true;\n } else {\n game.grid[i][j] = false;\n }\n }\n }\n // repaint so that the cells show up regardless of if the program has started or not\n repaint();\n }", "private Point randomIndex() {\r\n\t\tRandom rand = new Random();\r\n\t\tint val1 = rand.nextInt(rows_size);\r\n\t\tint val2 = rand.nextInt(columns_size);\r\n\t\twhile (!isEmpty(val1,val2)) {\r\n\t\t\tval1 = rand.nextInt(rows_size);\r\n\t\t\tval2 = rand.nextInt(columns_size);\r\n\t\t}\r\n\t\treturn new Point(val1,val2);\r\n\t}", "private void newPowerUp() {\r\n int row = 0;\r\n int column = 0;\r\n do {\r\n row = Numbers.random(0,maxRows-1);\r\n column = Numbers.random(0,maxColumns-1);\r\n } while(isInSnake(row,column,false));\r\n powerUp = new Location(row,column,STOP);\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "public static void randomMove(Board b){\r\n if (!b.getGameOver()){ //make sure game is not already over\r\n Random rand = new Random();\r\n int xIndex = rand.nextInt(7);\r\n int yIndex = 0;\r\n \r\n // make sure random column is not already full\r\n while (b.getGameGridCircle(xIndex,yIndex).getState() != 0) {\r\n xIndex = (xIndex + 1)%7;\r\n }\r\n //find the lowest empty slot in the chosen column\r\n //Place a circle there\r\n while(b.getGameGridCircle(xIndex, yIndex+1).getState() == 0){\r\n yIndex++;\r\n if (yIndex == b.numRows - 1) {\r\n break;\r\n }\r\n }\r\n\t //change state,turn,draw counter and refresh the board\r\n b.getGameGridCircle(xIndex,yIndex).setState(b.getTurn());\r\n b.setTurn(1);\r\n b.repaint();\r\n b.setDrawCounter(b.getDrawCounter() + 1);\r\n }\r\n }", "void setPosition(){\n Random random =new Random();\n position = new Position(random.nextInt(maxrows),random.nextInt(maxcols));\n\n }", "private void randomMove() {\n }", "public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}", "private void randomPosBoats(GameData gameData) {\n int x0 = 0;\n int y0 = 0;\n for ( int n = gameData.getBoatArray().size()-1; n>=0; n--){\n Boat b = gameData.getBoatArray().get(n);\n Random rand = new Random();\n int l = b.getLength();\n\n boolean retry = true;\n while(retry) {\n int direction = rand.nextInt(2);\n\n //HORIZONTAL\n if (direction == 1) {\n x0 = rand.nextInt(gameData.getBoard().getWidth() - l);\n y0 = rand.nextInt(gameData.getBoard().getHeight());\n\n // we suppose it's a good starting point\n retry = false;\n for (int i = 0; i < l; i++) {\n //if one of the tiles already has a boat\n if (gameData.existsBoatAround(x0 + i, y0)) {\n retry = true;\n }\n }\n //POSITION BOAT\n if (!retry) {\n ArrayList pos = new ArrayList();\n for (int i = 0; i < l; i++) {\n int x = x0 + i;\n gameData.getMatrix()[y0][x] = b.getBoatid();\n pos.add(new int[]{x, y0});\n }\n b.setPositions(pos);\n }\n\n //VERTICAL\n } else {\n // determine the tile on which to start\n x0 = rand.nextInt(gameData.getBoard().getWidth());\n y0 = rand.nextInt(gameData.getBoard().getHeight() - l);\n\n // we suppose it's a good starting point\n retry = false;\n for (int i = 0; i < l; i++) {\n if (gameData.existsBoatAround(x0, y0 + i)) {\n retry = true;\n }\n }\n if(!retry){\n ArrayList pos = new ArrayList();\n for (int i = 0; i < l; i++) {\n int y = y0 + i;\n gameData.getMatrix()[y][x0] = b.getBoatid();\n pos.add(new int[]{x0, y});\n }\n b.setPositions(pos);\n }\n }\n }\n }\n }", "public void step()\n { \n //Remember, you need to access both row and column to specify a spot in the array\n //The scalar refers to how big the value could be\n //int someRandom = (int) (Math.random() * scalar)\n //remember that you need to watch for the edges of the array\n\t int randomRow = (int)(Math.random() * grid.length - 1);\n\t int randomCol = (int)(Math.random() * grid[0].length - 1);\n\t int randomDirection = (int)(Math.random() * 3);\n\t int randomDirectionFire = (int)(Math.random() * 4);\n\t int randomSpread = (int)(Math.random() * 100);\n\t int randomTelRow = (int)(Math.random() * grid.length);\n\t int randomTelCol = (int)(Math.random() * grid[0].length);\n\t \n\t //Sand\n\t if(grid[randomRow][randomCol] == SAND && (grid[randomRow + 1][randomCol] == EMPTY || grid[randomRow + 1][randomCol] == WATER))\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == WATER)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = WATER;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\n\t }\n\t //Water\n\t if(grid[randomRow][randomCol] == WATER && randomCol - 1 >= 0)\n\t {\n\t\t if(randomDirection == 1 && grid[randomRow + 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(randomDirection == 2 && grid[randomRow][randomCol - 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(grid[randomRow][randomCol + 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t //Helium\n\t if(grid[randomRow][randomCol] == HELIUM && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow - 1][randomCol] == WATER)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = WATER;\n\t\t }\n\t\t else if(randomDirection == 1 && grid[randomRow - 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(randomDirection == 2 && grid[randomRow][randomCol - 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(grid[randomRow][randomCol + 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t \n\t //Bounce\n\t if(grid[randomRow][randomCol] == BOUNCE)\n\t { \t\n\t\t if(randomRow + 1 >= grid[0].length - 1 || randomRow + 1 == METAL)\n\t\t {\n\t\t\t hitEdge[randomCol] = true;\n\t\t }\n\t\t else if(randomRow - 1 < 0 || randomRow - 1 == METAL)\n\t\t {\n\t\t\t hitEdge[randomCol] = false;\n\t\t }\n\t\t \n\t\t if(hitEdge[randomCol] == true)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = BOUNCE;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = BOUNCE;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t \n\t //Virus\n\t if(grid[randomRow][randomCol] == VIRUS && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = VIRUS;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t \n\t\t\t int temp = grid[randomRow + 1][randomCol];\n\t\t\t //VIRUS takeover\n\t\t\t if(grid[randomRow - 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow - 1][randomCol] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow + 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol - 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol - 1] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol + 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol + 1] = VIRUS;\n\t\t\t }\n\t\t\t //TEMP takeover\n\t\t\t grid[randomRow][randomCol] = temp;\n\t\t\t if(grid[randomRow - 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow - 1][randomCol] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow + 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol - 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol - 1] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol + 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol + 1] = temp;\n\t\t\t }\n\t }\n\t \n\t //Fire\n\t if(grid[randomRow][randomCol] == FIRE && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t { \n\t\t if(randomDirectionFire == 1)\n\t\t {\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t else if(randomDirectionFire == 2)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol - 1] = FIRE;\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t else if(randomDirectionFire == 3)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol + 1] = FIRE;\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t \n\t\t //Fire Eats Vine\n\t\t if(grid[randomRow - 1][randomCol] == VINE)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = FIRE;\n\t\t }\n\t\t if(grid[randomRow + 1][randomCol] == VINE)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = FIRE;\n\t\t }\n\t\t if(grid[randomRow][randomCol - 1] == VINE)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = FIRE;\n\t\t }\n\t\t if(grid[randomRow][randomCol + 1] == VINE)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = FIRE;\n\t\t }\n\t\t \n\t\t //Fire Blows Up Helium\n\t\t if(grid[randomRow - 1][randomCol] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t //Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow + 1][randomCol] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow][randomCol - 1] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow][randomCol + 1] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t }\n\t \n\t //Vine\n\t if(grid[randomRow][randomCol] == VINE && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == EMPTY)\n\t\t { \n\t\t\t if(randomSpread == 1)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VINE;\n\t\t\t }\n\t\t }\n\t\t else if(grid[randomRow + 1][randomCol] == WATER)\n\t\t {\n\t\t\t if(randomSpread >= 90)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VINE;\n\t\t\t\t grid[randomRow][randomCol + 1] = VINE;\n\t\t\t\t grid[randomRow][randomCol - 1] = VINE;\n\t\t\t }\n\t\t }\n\t }\n\t \n\t //Teleport\n\t if(grid[randomRow][randomCol] == TELEPORT && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t grid[randomTelRow][randomTelCol] = TELEPORT;\n\t\t grid[randomRow][randomCol] = EMPTY;\n\t }\n\t \n\t //Laser\n\t if(grid[randomRow][randomCol] == LASER && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(randomDirectionLaser == 1 && randomRow - 4 >= 0)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = LASER;\n\t\t\t grid[randomRow - 4][randomCol] = EMPTY;\n\t\t\t if(randomRow + 1 == grid.length - 1)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 2][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 3][randomCol] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else if(randomDirectionLaser == 2)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = LASER;\n\t\t\t grid[randomRow + 4][randomCol] = EMPTY;\n\t\t\t if(randomRow - 1 == 0)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 2][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 3][randomCol] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else if(randomDirectionLaser == 3 && randomCol - 4 >= 0)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = LASER;\n\t\t\t grid[randomRow][randomCol - 4] = EMPTY;\n\t\t\t if(randomCol + 1 == grid[0].length - 1)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 2] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 3] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = LASER;\n\t\t\t grid[randomRow][randomCol + 4] = EMPTY;\n\t\t\t if(randomCol - 1 == 0)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 2] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 3] = EMPTY;\n\t\t\t }\n\t\t }\n\t }\n }", "public void step()\n\t{\n\t\t// Reservoir sampling by generating ordered list of numbers\n\t\t// randomly pick a number within length and use that as index\n\t\tRandom rand = new Random();\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < listOfCells.size(); i++) { numbers.add(i); }\n\t\t\n\t\t// Randomly sample from reservoir until empty\n\t\twhile(numbers.size() > 0)\n\t\t{\n\t\t\tint picked_index = rand.nextInt(numbers.size());\n\t\t\tint picked_val = numbers.get(picked_index);\n\t\t\t\n\t\t\t//TODO: Maybe call a function on cell of random action that might occur\n\t\t\t//\tConsider only returning object when necessary, (how it is now)\n\t\t\tPlantCell newObject = listOfCells.get(picked_val).doAction();\n\t\t\tif(newObject != null)\n\t\t\t{\n//\t\t\t\tSystem.out.println(\"New cell generated!\");\n\t\t\t\tlistOfCells.add(newObject);\n\t\t\t}\n\t\t\t\n\t\t\t//Kill spawning cell if its health drops <= 0\n\t\t\t//should die right away to make room for other cell\n\t\t\tif(listOfCells.get(picked_val).getHealth() <= 0)\n\t\t\t{\n\t\t\t\tenvironmentPointer.map[listOfCells.get(picked_val).getX()][listOfCells.get(picked_val).getY()] = null;\n\t\t\t\tlistOfCells.set(picked_val, null); //Set to null as to preserve list integrity for reservoir sampling, will be removed later\n\t\t\t}\n\t\t\t\n\t\t\tnumbers.remove(picked_index);\n\t\t}\n\t\t\n\t\t// All recently dead cells are now null in our cell list, so we are removing them from the list now\n\t\tfor(int i = 0; i < listOfCells.size(); i++)\n\t\t{\n\t\t\tif(listOfCells.get(i) == null)\n\t\t\t{\n\t\t\t\tlistOfCells.remove(i);\n\t\t\t\ti--; //Adjust for changing size\n\t\t\t}\n\t\t}\n\t}", "public int decideRandomMove() {\n return (int) (Math.random() * 4);\n }", "public Position sampleRandomUniformPosition();", "public void randomMove(){\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n int holeIndex = (int)(Math.random() * (((availableHoles.size()-1) - 0) + 1)) + 0;\n ArrayList<Korgool> korgools = availableHoles.get(holeIndex).getKoorgools();\n while(korgools.size() == 0){\n holeIndex = (int)(Math.random() * (((availableHoles.size()-1) - 0) + 1)) + 0;\n korgools = availableHoles.get(holeIndex).getKoorgools();\n }\n redistribute(availableHoles.get(holeIndex).getHoleIndex());\n }", "@Override\n public final void move() {\n int x = getPosisi().getX();\n int y = getPosisi().getY();\n int dx = 0, dy = 0;\n\n if (getWaktu() % getDeltaTime() == 0) {\n do {\n do {\n Random randomGenerator = new Random();\n dx = randomGenerator.nextInt(N_RAND) - 1;\n dy = randomGenerator.nextInt(N_RAND) - 1;\n } while (dx == 0 && dy == 0);\n } while (x + dx < 0 || x + dx > getWorldSize() - 1\n || y + dy < 0 || y + dy > getWorldSize() - 1);\n }\n setPX(x + dx);\n setPY(y + dy);\n }", "public void presetPattern(){\n // clear all the cells\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n }\n \n // change specific cells to live\n for (int i = 7; i < 12; i++) {\n for (int j = 7; j < 12; j++) {\n game.grid[i][j] = true;\n }\n }\n \n // remove middle cell\n game.grid[9][9] = false;\n \n repaint();\n }", "public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}", "@Override\n public void placeShips(Fleet fleet, Board board) {\n foundPosition = new boolean[sizeX][sizeY];\n for (int i = fleet.getNumberOfShips() - 1; i >= 0; i--) {\n Ship s = fleet.getShip(i);\n boolean vertical = rnd.nextBoolean();\n Position pos;\n if (vertical) {\n int x = rnd.nextInt(sizeX);\n int y = rnd.nextInt(sizeY - (s.size()));\n\n while (true) {\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x][y + j]) {\n check = true;\n x = rnd.nextInt(sizeX);\n y = rnd.nextInt(sizeY - (s.size()));\n break;\n }\n }\n if (check == false) {\n break;\n }\n /* int counter = 0;\n if (counter > 1) {\n y = rnd.nextInt(sizeY - (s.size()));\n }\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x][y + j]) {\n check = true;\n x++;\n if (x >= sizeX) {\n x = 0;\n }\n }\n }\n if (check == false) {\n break;\n }\n counter++;\n }*/\n }\n for (int j = 0; j < s.size(); j++) {\n foundPosition[x][y + j] = true;\n }\n pos = new Position(x, y);\n } else {\n int x = rnd.nextInt(sizeX - (s.size()));\n int y = rnd.nextInt(sizeY);\n while (true) {\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x + j][y]) {\n check = true;\n x = rnd.nextInt(sizeX - (s.size()));\n y = rnd.nextInt(sizeY);\n }\n }\n if (check == false) {\n break;\n }\n /*int counter = 0;\n if (counter > 1) {\n x = rnd.nextInt(sizeX - (s.size() - 1));\n }\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x + j][y]) {\n check = true;\n y++;\n if (y >= sizeX) {\n y = 0;\n }\n }\n }\n if (check == false) {\n break;\n }\n counter++;\n }*/\n }\n for (int j = 0; j < s.size(); j++) {\n foundPosition[x + j][y] = true;\n }\n pos = new Position(x, y);\n }\n board.placeShip(pos, s, vertical);\n }\n }", "public void movimentar_dragao(int pos) {\n\t\tint check = 0;\n\t\tint counter = 0; //After 1000 tries it means that the dragon is trapped and cant move either way\n\t\twhile (check == 0 && counter < 1000) {\n\t\t\tint random = 1 + (int)(Math.random()*4);\n\t\t\tif (random == 1) {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'X' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()+1][dragoes[pos].getY_coord()] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setX_coord(dragoes[pos].getX_coord()+1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (random == 2) {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'X' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()-1][dragoes[pos].getY_coord()] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setX_coord(dragoes[pos].getX_coord()-1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (random == 3) {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'X' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()-1] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setY_coord(dragoes[pos].getY_coord()-1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'X' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'S' &&\n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'D' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'd' && \n\t\t\t\t\t\tlabirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()+1] != 'O') {\n\t\t\t\t\tif (labirinto.getLab()[dragoes[pos].getX_coord()][dragoes[pos].getY_coord()] == 'F')\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), 'E');\n\t\t\t\t\telse\n\t\t\t\t\t\tlabirinto.setLabCell(dragoes[pos].getX_coord(), dragoes[pos].getY_coord(), ' ');\n\t\t\t\t\tdragoes[pos].setY_coord(dragoes[pos].getY_coord()+1);\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t}", "@Override\r\n public int positionRandom() {\r\n int random = ((int) (Math.random() * arrayWords.length - 1) + 1);//define a random number with lengt more one for not getout the number zero\r\n return random;\r\n }", "public void shield_random_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\tescudo.setX_coord(randomX); \n\t\tescudo.setY_coord(randomY);\n\t\tchange_escudo_pos();\n\t}", "public abstract void initiateRandomCells(double probabilityForEachCell);", "private int Rand_Move() {\n\t\tRandom r = new Random();\n\t\tint move = NO_MOVE;\n\t\tdo{\n\t\t\tmove = r.nextInt(9);\n\t\t}while(square_empty[move] == false);\n\t\treturn move;\n\t}", "public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}", "private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }", "public void genField() {\n\t\tint mines = (int)(height * width * .1);\r\n\t\tRandom random = new Random();\r\n\t\tint x;\r\n\t\tint y;\r\n\t\tint i = 0;\r\n\t\twhile(i < mines) {\r\n\t\t\tx = random.nextInt(width);\r\n\t\t\ty = random.nextInt(height);\r\n\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\tcells.get(x).get(y).setValue(-1);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(x = 0; x < width; x++) {\r\n\t\t\tfor(y = 0; y < height; y++) {\r\n\t\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\t\tprocessCell(x, y); //generate cell number\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void randomizePointer(){\n\n pointerPos.set(p.random(BASE_POS.x,BASE_POS.x+300),p.random(BASE_POS.y-300,BASE_POS.y+300));\n while(pointerPos.dist(BASE_POS)>280 || pointerPos.dist(BASE_POS)<80 || p.atan2(pointerPos.y-BASE_POS.y,pointerPos.x - BASE_POS.x)>p.radians(60)){\n pointerPos.set(p.random(BASE_POS.x,BASE_POS.x+300),p.random(BASE_POS.y-300,BASE_POS.y+300));\n }\n }", "public void random_dragao(int pos) {\n\t\tint randomX = 1;\n\t\tint randomY = 1;\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\tdragoes[pos].setX_coord(randomX);\n\t\tdragoes[pos].setY_coord(randomY);\n\t\tchange_dragon_pos(pos);\n\t}", "@Override\n\tpublic void loese(Schiebepuzzle p) {\n\t\tPoint endPos = new Point(0,0);\n\t\twhile(!p.getLocationOfField(1).equals(endPos)) {\n\t\t\tArrayList<Integer> temp = new ArrayList<>();\n\t\t\tfor(int i = 1; i <= p.maxElement(); i++) {\n\t\t\t\tif(p.istVerschiebar(i)) {\n\t\t\t\t\ttemp.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint index = randInt(temp.size() - 1);\n\t\t\tp.schiebe(temp.get(index));\n\t\t}\t\t\n\t}", "public void randomMove() {\r\n\t\tRandom rand = new Random();\r\n\t\tint moveNum = rand.nextInt(100)+100;\r\n\t\tcheck++;\r\n\t\tif(check >= moveNum) {\r\n\t\t\tspeed = speed*-1;\r\n\t\t\tcheck =0;\r\n\r\n\t\t}\r\n\r\n\t\tif(speed > 0) {\r\n\t\t\tsetIcon(rightImage);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetIcon(leftImage);\r\n\t\t}\r\n\t\tx += speed; setLocation(x,y); repaint();\r\n\t}", "void moveNorthEast(){\n xpos = xpos + 3;\n ypos = ypos-xspeed;\n if (xpos > width){ // 20\n xpos = random(-width/2, width/2); // 25\n ypos = width; // 30\n }\n }", "private Position getRandomMove(TicTacToeBoard state) {\r\n\t\tArrayList<Position> availableMoves = new ArrayList<Position>();\r\n\t\tfor( int row = 0; row < TicTacToeBoard.SIZE; row++ ) {\r\n\t\t\tfor( int col = 0; col < TicTacToeBoard.SIZE; col++ ) {\r\n\t\t\t\tif( state.getState(row,col) == TicTacToeBoard.BLANK ) {\r\n\t\t\t\t\tavailableMoves.add(new Position(row,col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (Position)availableMoves.get(rand.nextInt(availableMoves.size()));\r\n\t}", "private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n this.grid[rx][ry].setMine();\r\n counter--; \r\n }\r\n }\r\n \r\n }", "public int[] move(){\n double inProb = Math.random();\n if (inProb < .25){\n y--;\n }\n else if (inProb < .5){\n y ++;\n }\n else if (inProb <.75){\n x--;\n }\n else {\n x++;\n }\n int[]loc = new int[2];\n loc[0] = x;\n loc[1] = y;\n \n return loc;\n }", "public void setRandomSpawn(final Random random)\r\n {\r\n final List<Double> rows = new ArrayList<>();\r\n \r\n final double column;\r\n \r\n //get a random true/false result\r\n if (random.nextBoolean())\r\n {\r\n //here we will do west\r\n column = 0.5;\r\n }\r\n else\r\n {\r\n //here we will do east\r\n column = COLUMNS - 0.5;\r\n }\r\n \r\n for (double row=0; row < ROWS; row++)\r\n {\r\n //if platform exists add this as a possibility\r\n if (getObject(Type.Platform, (int)column, row) != null)\r\n rows.add(row);\r\n }\r\n \r\n super.setCol(column);\r\n \r\n final int index = random.nextInt(rows.size());\r\n super.setRow(rows.get(index) + 0.5);\r\n }", "public void posiziona_bersaglio() {\n do{\n int r = (int) (Math.random() * POSIZIONI_RANDOM);\n bersaglio_x = ((r * DIMENSIONE_PUNTO));\n }while(bersaglio_x<102 || bersaglio_x>LARGHEZZA);\n do{\n int r = (int) (Math.random() * POSIZIONI_RANDOM);\n bersaglio_y = ((r * DIMENSIONE_PUNTO));\n }while(bersaglio_y<102 || bersaglio_y>ALTEZZA);\n //System.out.println (\"x : \"+bersaglio_x+\" y : \"+bersaglio_y);\n }", "private void locateApple() {\n xApplePosition = random.nextInt(32);\n yApplePosition = random.nextInt(21);\n }", "private Point[] moveCars(ParkingLot p)\r\n {\r\n ArrayList<Point> emptySpots = new ArrayList<>();\r\n ArrayList<Point> oneSpotTaken = new ArrayList<>();\r\n for(int i = 0; i < p.getTotalRow(); i++){\r\n for(int j = 0; j < p.getTotalColumn(); j++){\r\n if(!p.getOccupany(i,j)){\r\n emptySpots.add(new Point(i,j));\r\n }else{\r\n if(p.getSpotInfo(i,j).getVehicle().getSpotsTaken() == 1){\r\n oneSpotTaken.add(new Point(i,j));\r\n }\r\n }\r\n }\r\n }\r\n\r\n if(oneSpotTaken.size() <= 1){\r\n System.out.println(\"There are not enough spots in this lot to park this car.\");\r\n return null;\r\n }\r\n\r\n Random rand = new Random();\r\n Point randomPoint = emptySpots.get(rand.nextInt(emptySpots.size()));\r\n\r\n if(((int)randomPoint.getY()-1) >= 0 && oneSpotTaken.contains(new Point((int)randomPoint.getX(),(int)randomPoint.getY()-1))){\r\n emptySpots.remove(randomPoint);\r\n Point newEmpty = emptySpots.get(rand.nextInt(emptySpots.size()));\r\n p.setSpot((int)newEmpty.getX(),(int)newEmpty.getY(),p.getSpotInfo((int)randomPoint.getX(),(int)randomPoint.getY()-1));\r\n p.setSpot((int)randomPoint.getX(),(int)randomPoint.getY()-1,null);\r\n return new Point[]{new Point((int)randomPoint.getX(),((int)randomPoint.getY()-1)),randomPoint};\r\n }else if((int)randomPoint.getY()+1 <= p.getTotalColumn()-1 && oneSpotTaken.contains(new Point((int)randomPoint.getX(),(int)randomPoint.getY()+1))){\r\n emptySpots.remove(randomPoint);\r\n Point newEmpty = emptySpots.get(rand.nextInt(emptySpots.size()));\r\n p.setSpot((int)newEmpty.getX(),(int)newEmpty.getY(),p.getSpotInfo((int)randomPoint.getX(),(int)randomPoint.getY()+1));\r\n p.setSpot((int)randomPoint.getX(),(int)randomPoint.getY()+1,null);\r\n return new Point[]{randomPoint,new Point((int)randomPoint.getX(),((int)randomPoint.getY()+1))};\r\n }else{\r\n return moveCars(p);\r\n }\r\n }", "private Point getRandomMiniPoint()\n {\n Random r = new Random();\n\n // Random x value\n int minX = 0;\n int x = 0;\n int maxX = findViewById(R.id.the_canvas).getWidth() - ((GameBoard)findViewById(R.id.the_canvas)).getMiniSpriteWidth();\n x = r.nextInt(maxX-minX+1)+minX;\n\n // Start at the top\n int y = 0;\n\n return new Point (x,y);\n }", "public int randomMove()\r\n {\r\n r = new Random();\r\n x = r.nextInt(7);\r\n return x;\r\n }", "static void randomMove() {\n int directionNum; // Randomly set to 0, 1, 2, or 3 to choose direction.\n directionNum = ( int )( Math.random() * 4 );\n\n switch ( directionNum ) {\n case 0: // Move up.\n currentRow--;\n if ( currentRow < 0 )\n currentRow = ROWS - 1;\n break;\n case 1 : // Move right.\n currentColumn++;\n if ( currentColumn >= COLUMNS )\n currentColumn = 0;\n break;\n case 2 : // Move down.\n currentRow++;\n if ( currentRow >= ROWS )\n currentRow = 0;\n break;\n case 3 : // Move left.\n currentColumn--;\n if ( currentColumn < 0 )\n currentColumn = COLUMNS - 1;\n break;\n\n }\n }", "@Override\n public Move makeMove() {\n Random random = new Random();\n int max = this.board.getBoardDimension()*4 - 1;\n int row = random.nextInt(max);\n int col = random.nextInt(max);\n Point point = new Point(row, col);\n\n while (!this.board.validPoint(point)) {\n row = random.nextInt(max);\n col = random.nextInt(max);\n point.setPoint(row, col);\n }\n\n Move m = new Move();\n m.P = this.player;\n m.Row = row;\n m.Col = col;\n\n this.board.update(m);\n return m;\n }", "public void eat() {\n int index;\n Cell selectedCell;\n if (getFoodArray() != null) {\n \n if (getFoodCount() > 0) {\n dayCountDown = getMaxHunger();\n index = RandomGenerator.nextNumber(getFoodCount());\n selectedCell = getFoodArray().get(index);\n \n if (getLocation().hasNotMove()) {\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n getLocation().setMoved(false);\n }\n } else if (getLocation().getEmptyCount() != 0) {\n index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n selectedCell = getLocation().getEmptyArray().get(index);\n \n if (getLocation().hasNotMove()) {\n dayCountDown--;\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n \n getLocation().setMoved(false);\n }\n } else {\n dayCountDown--;\n getLocation().setMoved(false);\n }\n }\n \n }", "private int newIndex() {\n //return indexes.remove(0);\n return random.nextInt(81);\n }", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}", "private void prepare(Maze maze) {\n\t\tList<Coordinate> unlockedCells = new ArrayList<>();\n\t\tfor (int a=0; a<data.length; a++) \n\t\t\tfor (int b=0; b<data[0].length; b++) \n\t\t\t\tif (data[a][b]) maze.buildWall(a, b); else unlockedCells.add(new Coordinate(a, b));\n\t\tif (!unlockedCells.isEmpty()) {\n\t\t\tRandom r = new Random();\n\t\t\tSupplier<Coordinate> randomCoordinate = () -> unlockedCells.get(r.nextInt(unlockedCells.size()));\n\t\t\tmaze.setStart( randomCoordinate.get() );\n\t\t\tmaze.setGoal( randomCoordinate.get() );\n\t\t}\n\t}", "private void makeInitial(){\r\n for (int row = 0; row < 9; row++)\r\n System.arraycopy(solution[row], 0, initial[row], 0, 9);\r\n List<Position> fields = new ArrayList<Position>();\r\n for (int row = 0; row < 9; row++)\r\n for (int col = 0; col < 9; col++)\r\n fields.add(new Position(row, col));\r\n Collections.shuffle(fields);\r\n for (int index = 0; index < 40; index ++)\r\n initial[fields.get(index).row][fields.get(index).col] = 0;\r\n }", "private void random() {\n GameState gs = cc.getGameState();\n ArrayList<int[]> moves = cc.getPlayerMoves(player);\n ArrayList<GameState> states = nextStates(moves, gs);\n for (int[] m : moves) {\n GameState next = checkMove(m, cc);\n states.add(next);\n }\n Random rand = new Random(System.nanoTime());\n int i = rand.nextInt(states.size());\n cc.setAIMove(states.get(i));\n }", "@Override\r\n\tpublic void nextStep() {\n\t\tif (this.oldX == this.coord.x && this.oldY == this.coord.y) { \r\n\t\t\tthis.currentPoint = (int) (Math.random()*this.patrol.size());\r\n\t\t\tthis.targetX = this.patrol.get(currentPoint).x;\r\n\t\t\tthis.targetY = this.patrol.get(currentPoint).y;\r\n\r\n\t\t}\r\n\r\n\t\t// target point reached, make new random target point\r\n\t\tif (this.targetX == this.coord.x && this.targetY == this.coord.y) {\r\n\t\t\tif (this.currentPoint < patrol.size() - 1)\r\n\t\t\t\tthis.currentPoint++;\r\n\t\t\telse\r\n\t\t\t\tthis.currentPoint = 0;\r\n\r\n\t\t\tthis.targetX = this.patrol.get(currentPoint).x;\r\n\t\t\tthis.targetY = this.patrol.get(currentPoint).y;\r\n\t\t}\r\n\t\tint step = (this.speed == Speed.fast ? 8 : 4);\r\n\t\t// int stepX = (int) (1 + Math.random() * step);\r\n\t\t// int stepY = (int) (1 + Math.random() * step);\r\n\t\tint x0 = (int) (this.coord.getX());\r\n\t\tint y0 = (int) (this.coord.getY());\r\n\r\n\t\tint dx = this.targetX - x0;\r\n\t\tint signX = Integer.signum(dx); // get the sign of the dx (1-, 0, or\r\n\t\t\t\t\t\t\t\t\t\t// +1)\r\n\t\tint dy = this.targetY - y0;\r\n\t\tint signY = Integer.signum(dy);\r\n\t\tthis.nextX = x0 + step * signX;\r\n\t\tthis.nextY = y0 + step * signY;\r\n\t\tthis.oldX = this.coord.x;\r\n\t\tthis.oldY = this.coord.y;\r\n\t\t// System.err.println(\"targetX,targetY \"+targetX+\" \"+targetY);\r\n\t}", "public void randomMove(Random choiceGen){\n\tint choice = choiceGen.nextInt(4);\n\tswitch(choice){\n case 0:\n\tif(position[0] < worldEdge[0]){\n\t position[0] += 1;\n\t break;\n\t}\n\t\n\tcase 1:\n\t if(position[0] > 0){\n\t\tposition[0] -= 1;\n\t }\n\t else{\n\t position[0] += 1;\n\t }\n\t break;\n\tcase 2:\n\t if(position[1] < worldEdge[1]){\n\t\tposition[1] += 1;\n\t\tbreak;\n\t}\n\tcase 3:\n\t if(position[1] > 0){\n\t\tposition[1] -= 1;\n\t }\n\t else{\n\t\tposition[1] += 1;\n\t }\n\t break;\n\t}\n }", "public void positionShipsRandomly() {\r\n\t\tfor(Ship ship:ships) {\r\n\t\t\tpositionShipRandomly(ship,occupiedFields);\r\n\t\t}\r\n\t}", "public int changeFocus (){\n boolean squareAlreadyPicked = false;\n int square = -1;\n double sum=0;\n modifiedMark = createModifiedMarkovModel(-1);\n double rand;\n while(!squareAlreadyPicked){//checking if square has already been picked before.\n \n if(stepsCompleted<25){\n rand = getRand(0); //generates random number based on sum of existing probabilities in modifiedMarkov\n square = caseBased(rand, sum, 0, 0);\n }\n \n else if((stepsCompleted>=25)&&(stepsCompleted<=50)){\n rand = getRand(1);\n square = caseBased(rand,sum,1,0);\n }\n\n else if (stepsCompleted>50){\n rand = getRand(2);\n square = caseBased(rand,sum,2,0);\n }\n squareAlreadyPicked=true;\n }\n return square;\n }", "Point getRandomPoint() {\n\t\t\t\t\tdouble val = Math.random() * 3;\n\t\t\t\t\tif (val >=0.0 && val <1.0)\n\t\t\t\t\t\treturn p1;\n\t\t\t\t\telse if (val >=1.0 && val <2.0)\n\t\t\t\t\t\t\treturn p2;\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn p3;\n\t\t\t\t\t}", "public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }", "private void layMineField ( int n , int pct)\n { \n Random generator = new Random( n );\n \n for ( int r = 0 ; r < rows ; r++ )\n {\n for ( int c = 0; c < cols ; c++ ) \n {\n if ( generator.nextInt( 100 ) < pct )\n theMines[ r ][ c ] = 1; \n else\n theMines[ r ][ c ] = 0;\n }\n }\n }", "private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}", "public static int randomPosition(){\r\n int max = 4;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n int pos = randNum;\r\n \r\n return pos;\r\n }", "public static int getRandCell() {\n int num = (int) (Math.random() * 10); // Generate random numbers\n int randCell = 1;\n if (num >= MARG_FIRST && num <= MARG_LAST) { // Set boundaries\n randCell = num;\n }\n return randCell;\n }", "private Move produceRandomMove(Board board){\n\t\tint row = this.rowFinder(board); // find random row with unmarked stick.\n\t\tRandom myRandom = new Random();\n\t\tint stick1,stick2;\n\t\tint[] unmarkedStickArray = new int[board.getRowLength(row)+1];\n\t\tfinal int MARKED_STICK = 0; /* MARKED_STICK has the same value as the default value of the initialized\n\t\t array */\n\t\tfinal int UNMARKED_STICK = 1;\n\t\tfor(int stickNum=1; stickNum<board.getRowLength(row)+1; stickNum++){ /* the location in the array\n\t\t represent the stick in the row, if the value at that location is 1, then the stick in unmarked, else\n\t\t the value at the location in 0 (the default initialized value) */\n\t\t\tif(board.isStickUnmarked(row,stickNum)){\n\t\t\t\tunmarkedStickArray[stickNum] = UNMARKED_STICK;\n\t\t\t}\n\t\t}\n\t\twhile(true){\n\t\t\tint tempStick1 = myRandom.nextInt(board.getRowLength(row))+1;\n\t\t\tint tempStick2 = myRandom.nextInt(board.getRowLength(row))+1;\n\t\t\t// this if, check if the stick are legal, if not, jump to get another two random sticks\n\t\t\tif(unmarkedStickArray[tempStick1] == UNMARKED_STICK &&\n\t\t\t\t\tunmarkedStickArray[tempStick2] == UNMARKED_STICK){\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\telse{ continue;} // search for other sticks\n\t\t\tif(tempStick1 == tempStick2){ /* if the random sticks number are the same, so return a move that\n\t\t\t contain only one sticks */\n\t\t\t\treturn new Move(row,tempStick1,tempStick1);\n\t\t\t}\n\t\t\tif(tempStick1 < tempStick2){ /* this find the min number between the temp sticks and put the lower\n\t\t\t\t number at stick1 and the higher number at stick2, I could use Math.min(), but wasn't sure\n\t\t\t\t if it is allowed */\n\t\t\t\t stick1 = tempStick1;\n\t\t\t\t stick2 = tempStick2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t stick1 = tempStick2;\n\t\t\t\t stick2 = tempStick1;\n\t\t\t}\n\t\t\tfor(int i=1; i<(stick2-stick1)+1; i++){\n\t\t\t\tint locationInArray = stick1 + i;\n\t\t\t\tif(unmarkedStickArray[locationInArray] == MARKED_STICK){ /* if there is no legal sequence\n\t\t\t\t between stick1 and stick 2, then return a move that contain only one legal stick */\n\t\t\t\t\treturn new Move(row,stick1,stick1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* if there is a legal sequence then return a move that contain that sequence */\n\t\t\treturn new Move(row,stick1,stick2);\n\t\t}\n\t}", "private PointF getRandCoordinate() {\n Random r = new Random();\n float xRand = (r.nextInt(getWidth()) / density) + 1;\n float y = 10 / density;\n\n return new PointF(xRand, y);\n }", "public void playerMove()\n\t{\n\t\tint col = 0;\n\t\tint row = 0;\n\t\tint choice = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tif (StdDraw.mousePressed())\n\t\t\t{\n\t\t\t\tif (StdDraw.mouseX() > 0.5)\t\t//checks if player is clicking on a number option\n\t\t\t\t{\n\t\t\t\t\tif (StdDraw.mouseY() < 0.25) //logic for checking which number is selected\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(2))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 2;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\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}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (StdDraw.mouseY() < 0.5)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(4))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 4;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\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}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (StdDraw.mouseY() < 0.75)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(6))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 6;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\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}\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\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(8))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 8;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\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}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (StdDraw.mousePressed()) //fills in players move\n\t\t\t{\n\t\t\t\tif (choice != 0)\n\t\t\t\t{\n\t\t\t\t\tif (StdDraw.mouseX() < 0.5)\n\t\t\t\t\t{\t\n\t\t\t\t\t\tcol = (int) ((StdDraw.mouseX() * 6));\t\t\t\t\t\t\n\t\t\t\t\t\trow = (int) ((StdDraw.mouseY() * 3));\n\t\t\t\t\t\tif (board[row][col] == 0) \n\t\t\t\t\t\t{\t\t// valid move (empty slot)\n\t\t\t\t\t\t\tboard[row][col] = choice;\n\t\t\t\t\t\t\tdraw.drawMove(col, row, choice);\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}\n\t\t}\n\t}", "private void fillRandomEmptyCell(int value, PredatorPreyCell cell, Grid<Integer> grid) {\n\t\tRandom r = new Random();\n\t\tPredatorPreyCell randCell = getEmptyCells(grid).get(r.nextInt(getEmptyCells(grid).size()));\n\t\tswap(cell, randCell);\n\t}", "private int[] initiatePlayer(int pno) {\n\t\tint[] pos = new int[2];\n\t\tRandom rand = new Random();\n\n\t\tpos[0]=rand.nextInt(map.getMapHeight());\n\t\tpos[1]=rand.nextInt(map.getMapWidth());\n\t\tint counter = 1;\n\t\t\n\t\t// Repeats whilst the tile is not a wall or occupied\n\t\twhile (map.lookAtTile(pos[0], pos[1]) == '#' || tileOccupied(pos[0], pos[1], pno)) {\n\t\t\tif (counter < map.getMapHeight() * map.getMapWidth()){\n\t\t\t\tpos[1]= (int) ( counter * Math.cos(counter));\n\t\t\t\tpos[0]=(int) ( counter * Math.sin(counter));\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\treturn (map.lookAtTile(pos[0], pos[1]) == '#') ? null : pos;\n\t}", "public char[] randomCompMoveSelection() {\n\t\treturn null;\n\t}", "private PositionData getRandomPoint() {\r\n int posX = new Random().nextInt(Constants.WIDTH);\r\n int posY = new Random().nextInt(Constants.HEIGHT);\r\n //make sure point is open\r\n while(!isOpenSpace(posX, posY)) {\r\n posX = new Random().nextInt(Constants.WIDTH);\r\n posY = new Random().nextInt(Constants.HEIGHT);\r\n }\r\n return new PositionData(posX, posY, Constants.PLAYER_A_ID);\r\n }", "private static Position fetchRandomPosition(){\n return new Position(0,0).returnRandomPosition();\n }", "Point2i getFreeRandomPosition() {\n\t\tPoint2i p = new Point2i();\n\t\tint i = 0;\n\t\tint max = this.grid.getWidth() * this.grid.getHeight();\n\t\tdo {\n\t\t\tp.set(\n\t\t\t\t\tRandomNumber.nextInt(this.grid.getWidth()),\n\t\t\t\t\tRandomNumber.nextInt(this.grid.getHeight()));\n\t\t\t++i;\n\t\t}\n\t\twhile (!isFree(p.x(), p.y()) && i < max);\n\t\treturn (isFree(p.x(), p.y())) ? p : null;\n\t}", "void selectpos()\n {\n \n }", "public Cell randomCell() {\n ArrayList<Cell> available = this.randomCellHelper();\n return available.get(new Random().nextInt(available.size()));\n\n }", "void reset(){ \n cueX= width/2 -150;\n cueY= height/2;\n \n \n redX = random(right , middle); redY = random(top, bottom);\n bluX = random(left, middle); bluY= random(top, bottom);\n yelX = random(left, right); yelY= random(top, bottom);\n \n //speed\n redDX = random(1,3); redDY = random(1,3);\n bluDX = random(1,3); bluDY = random(1,3);\n yelDX = random(1,3); yelDY = random(1,3);\n cueDX = random(1,3); cueDY = random(1,3);\n}", "public Point findEmptyCell(){\n int height = Math.min(labyrinth.getCells().length,LabyrinthFactory.HEIGHT-2);\n int widht = Math.min(labyrinth.getCells()[0].length, LabyrinthFactory.WIDTH);\n while(true) {\n int x = ThreadLocalRandom.current().nextInt(0, widht-2);\n int y = ThreadLocalRandom.current().nextInt(0, height-2);\n if (!labyrinth.getCell(x, y).isSolid()) {\n return new Point(x, y);\n }\n }\n }", "public void initiateRandomCells(double probabilityForEachCell){\n for(int y = 0; y < getHeight(); y++){\n for(int x = 0; x < getWidth(); x++){\n if(rand.nextDouble() < probabilityForEachCell)\n turnToLiving(x, y);\n }\n }\n }", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }", "public void pullPlayerTiles() {\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i=0; i < 7; i++) {\r\n\t\t\tint random = r.nextInt(Launch.getBoneyard().size());\r\n\t\t\t//System.out.println(\"[debug] random = \"+random);\r\n\t\t\t//System.out.println(\"[debug] index\"+random+\" in BONEYARD = \"+Arrays.toString(Launch.BONEYARD.get(random).getDots()));\r\n\t\t\tif (Utils.isSet(Launch.getBoneyard(), random)) {\r\n\t\t\t\tPLAYER_DOMINOS.add(Launch.getBoneyard().get(random));\r\n\t\t\t\tLaunch.getBoneyard().remove(random);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }", "@Override public void onTap () {\n _vx = _rando.nextFloat() * (_rando.nextBoolean() ? -0.25f : 0.25f);\n _vy = _rando.nextFloat() * (_rando.nextBoolean() ? -0.25f : 0.25f);\n }", "private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}", "public PositionInTheGameBoard()\r\n\t{\r\n\t\tthis.X = new Random().nextInt(PositionInTheGameBoard.max_X);\r\n\t\tthis.Y = new Random().nextInt(PositionInTheGameBoard.max_Y);\r\n\t}", "public void randomize() {\r\n\t\tif(randomizzatoreVariazione > 0.5)\r\n\t\t\tandamentoCurva.setVariazione(\r\n\t\t\t\t\tandamentoCurva.getVariazione() * randomizzatoreVariazione\r\n\t\t\t\t\t+ andamentoCurva.getMIN_VARIAZIONE()\r\n\t\t\t\t\t+ Math.random() * (andamentoCurva.getMAX_VARIAZIONE() - andamentoCurva.getMIN_VARIAZIONE())\r\n\t\t\t);\r\n\t\telse if(randomizzatoreVariazione < 0.5)\r\n\t\t\tandamentoCurva.setVariazione(\r\n\t\t\t\t\tandamentoCurva.getVariazione()\r\n\t\t\t\t\t- andamentoCurva.getMIN_VARIAZIONE()\r\n\t\t\t\t\t+ Math.random() * (andamentoCurva.getMAX_VARIAZIONE() - andamentoCurva.getMIN_VARIAZIONE() * randomizzatoreVariazione)\r\n\t\t\t);\r\n\t}", "private void createRandomGame() {\n ArrayList<int[]> usedCoordinates = new ArrayList<>();\n\n // make sure the board is empty\n emptyBoard();\n\n //find different coordinates\n while (usedCoordinates.size() < 25) {\n int[] temp = new int[]{randomNumberGenerator.generateInteger(size), randomNumberGenerator.generateInteger(size)};\n\n // default contains(arraylist) doesn't work because it compares hashcodes\n if (! contains(usedCoordinates, temp)) {\n usedCoordinates.add(temp);\n }\n }\n\n for (int[] usedCoordinate : usedCoordinates) {\n board.setSquare(usedCoordinate[0], usedCoordinate[1], randomNumberGenerator.generateInteger(size) + 1);\n }\n\n //save start locations\n startLocations = usedCoordinates;\n }", "public static void step(int[][] grid) {\n\n int[][] temp = new int[grid.length][grid[0].length];\n copy2DArray(grid, temp);\n\n ArrayList<int[]> emptyCells = getEmptyCellCoords(grid);\n ArrayList<int[]> dissatisfiedCells = getDissatisfiedCellCoords(grid);\n\n for (int i = 0; i < dissatisfiedCells.size(); i++) {\n if (emptyCells.isEmpty()) break;\n\n int[] cellLoc = dissatisfiedCells.get(i);\n int randIndex = (int)(Math.random() * (emptyCells.size() - 1));\n int[] emptyLoc = emptyCells.get(randIndex);\n\n temp[emptyLoc[0]][emptyLoc[1]] = grid[cellLoc[0]][cellLoc[1]];\n emptyCells.remove(randIndex);\n emptyCells.add(randIndex, cellLoc);\n\n temp[cellLoc[0]][cellLoc[1]] = 0;\n }\n\n copy2DArray(temp, grid);\n }", "private void generateMovementVector() {\r\n\r\n\t\t// load the cell's old targeting vector and target location\r\n\t\tCellMovementVector oldTargetingVector = me.getTargetingVector();\r\n\t\tnewTargetX = me.getTargetX();\r\n\t\tnewTargetY = me.getTargetY();\r\n\r\n\t\tString oldBehaviorType = me.getCurrBehavior(); // the behavior the cell had on the previous update\r\n\t\tString newBehaviorType = sourceBehavior.getBehaviorType(); // the behavior which this order will apply\r\n\r\n\t\t// depending on the movement-type behavior; calculate the new target coordinates\r\n\t\t// and vector\r\n\r\n\t\tif (newBehaviorType.equals(\"pursue\")) { // pursuit: move along a straight line to the target cell\r\n\r\n\t\t\t// for pursuit, simply set the target coordinates to the location of the target\r\n\t\t\t// cell\r\n\t\t\t// movement vector scalar remains at default (1)\r\n\t\t\tnewTargetX = target.getX();\r\n\t\t\tnewTargetY = target.getY();\r\n\r\n\t\t} else if (newBehaviorType.equals(\"wander\")) { // wander: generate a random vector using the current position\r\n\r\n\t\t\t// if we just started wandering or as we are approaching our last wander target,\r\n\t\t\t// choose a new random target location\r\n\t\t\t// also has a 15% chance to choose a new target location regardless, to prevent getting stuck\r\n\t\t\tif (!oldBehaviorType.equals(\"wander\") || oldTargetingVector.getMagnitude() < 5 || me.getRNG().nextInt(100) < 14) {\r\n\t\t\t\tnewTargetX = me.getX() + (me.getRNG().nextDouble() - 0.5) * 200;\r\n\t\t\t\tnewTargetY = me.getY() + (me.getRNG().nextDouble() - 0.5) * 200;\r\n\r\n\t\t\t} else if (oldBehaviorType.equals(\"wander\")) { // if we're already wandering, shuffle our destination\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// slightly\r\n\t\t\t\tnewTargetX = me.getTargetX() + (me.getRNG().nextDouble() - 0.5) * 6;\r\n\t\t\t\tnewTargetY = me.getTargetY() + (me.getRNG().nextDouble() - 0.5) * 6;\r\n\t\t\t}\r\n\r\n\t\t} else if (newBehaviorType.equals(\"evade\")) { // evasion: like pursuit, but in the opposite direction\r\n\r\n\t\t\t// target a point in the opposite direction of the threat\r\n\t\t\t// movement vector scalar default at 1\r\n\t\t\tnewTargetX = 2 * me.getX() - target.getX();\r\n\t\t\tnewTargetY = 2 * me.getY() - target.getY();\r\n\r\n\t\t} else if (newBehaviorType.equals(\"hunt\")) { // hunt: like pursuit, but with an extra large vector\r\n\r\n\t\t\t// target our victim, like with pursuit\r\n\t\t\tnewTargetX = target.getX();\r\n\t\t\tnewTargetY = target.getY();\r\n\t\t\t// but we can expend a burst of energy to chase them down\r\n\t\t\tvectorScalar = 3;\r\n\r\n\t\t} else if (newBehaviorType.equals(\"sleep\")) { // sleep: do nothing\r\n\t\t\t\r\n\t\t\tvectorScalar = 0;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"WARNING: Unrecognized behavior: \" + newBehaviorType + \".\");\r\n\t\t}\r\n\r\n\t\t// correct the vector to avoid pointing out of the petri dish (leads to cell\r\n\t\t// stuck on wall)\r\n\t\tif (newTargetX < 15) {\r\n\t\t\tnewTargetX = 15;\r\n\t\t} else if (newTargetX > me.getPetri().getSimulationWidth() - 15) {\r\n\t\t\tnewTargetX = me.getPetri().getSimulationWidth() - 15;\r\n\t\t}\r\n\t\tif (newTargetY < 15) {\r\n\t\t\tnewTargetY = 15;\r\n\t\t} else if (newTargetY > me.getPetri().getSimulationHeight() - 15) {\r\n\t\t\tnewTargetY = me.getPetri().getSimulationHeight() - 15;\r\n\t\t}\r\n\r\n\t\tnewTargetingVector = me.getVectorToTarget(newTargetX, newTargetY); // if no changes were made to the targetX and\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Y, the cell will continue moving along\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the old path (based on old target coords)\r\n\t}", "private void initPosition() {\r\n while (true) {\r\n int x = RandomUtil.nextInt(boardLength);\r\n int y = RandomUtil.nextInt(boardLength);\r\n if (board.isSimple(x, y)) {\r\n heroTeam.setPosition(x, y);\r\n board.setTeamPosition(x, y);\r\n break;\r\n }\r\n }\r\n }", "public int[] pick() {\n int key = map.ceilingKey(random.nextInt(areaSum) + 1);\n int[] rectangle = map.get(key);\n\n int length = rectangle[2] - rectangle[0] + 1;\n int breadth = rectangle[3] - rectangle[1] + 1;\n\n //length denotes the no of x coordinates we can have.\n //breadth denotes the no of y coordinates we can have\n\n //random.nextInt gives a random value from x1 - x2-1 which we can add to the current x and we can have a valid x .\n //random.nextInt gives a random value from y1 - y2-1 which we can add to the current y and we can have a valid y .\n\n int x = rectangle[0] + random.nextInt(length);\n int y = rectangle[1] + random.nextInt(breadth);\n\n return new int[]{x, y};\n }", "private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }", "void moveSouthEast(){\n xpos = xpos + 15;\n ypos = ypos + 15;\n if (xpos > width){ // 25\n xpos = random(-width, width); // 30\n ypos = 0; // 35\n }\n }", "private Vector3 randomLocationDolphin() {\n\t\tVector3 center = this.getEngine().getSceneManager().getRootSceneNode().getLocalPosition();\n\t\tVector3 randomPosition;\n\t\tfloat[] randomFloat;\n\t\tdo {\n\t\t\trandomFloat = randomFloatArray(1000);\n\t\t\trandomPosition = Vector3f.createFrom(randomFloat[0], 0.0f, randomFloat[2]);\n\t\t} while (distanceFrom(center, randomPosition) < 420f);\n\t\treturn randomPosition;\n\t}", "@Test\n \tpublic void testTargetRandomSelection() {\n \tComputerPlayer player = new ComputerPlayer();\n \t// Pick a location with no rooms in target, just three targets\n \tboard.calcTargets(23, 7, 2);\n \tint loc_24_8Tot = 0;\n \tint loc_22_8Tot = 0;\n \tint loc_21_7Tot = 0;\n \t// Run the test 100 times\n \tfor (int i=0; i<100; i++) {\n \t\tBoardCell selected = player.pickLocation(board.getTargets());\n \t\tif (selected == board.getRoomCellAt(24, 8))\n \t\t\tloc_24_8Tot++;\n \t\telse if (selected == board.getRoomCellAt(22, 8))\n \t\t\tloc_22_8Tot++;\n \t\telse if (selected == board.getRoomCellAt(21, 7))\n \t\t\tloc_21_7Tot++;\n \t\telse\n \t\t\tfail(\"Invalid target selected\");\n \t}\n \t// Ensure we have 100 total selections (fail should also ensure)\n \tassertEquals(100, loc_24_8Tot + loc_22_8Tot + loc_21_7Tot);\n \t// Ensure each target was selected more than once\n \tassertTrue(loc_24_8Tot > 10);\n \tassertTrue(loc_22_8Tot > 10);\n \tassertTrue(loc_21_7Tot > 10);\t\t\t\t\t\t\t\n }", "private void generateRandomPosition() {\r\n int indexX, indexY;\r\n boolean collidesWithPlayers;\r\n playerState.position.x = Integer.MIN_VALUE; // While we trying...\r\n playerState.position.y = Integer.MIN_VALUE;\r\n final ExtensiveMovingObject testObject = new ExtensiveMovingObject( 0.0f, 0.0f, 0.0f, 0.0f, GeneralConsts.WORM_WIDTH, GeneralConsts.WORM_HEIGHT );\r\n int positionGenerationTrialFailureCounter = 0;\r\n do {\r\n do {\r\n indexX = 1 + (int) ( Math.random() * ( map.getWidth () - 1 ) );\r\n indexY = 1 + (int) ( Math.random() * ( map.getHeight() - 1 ) );\r\n if ( positionGenerationTrialFailureCounter++ == MAX_POSITION_GENERATION_TRIAL_FAILURE_COUNT )\r\n if ( map.getWall( indexX, indexY ) == Map.WALL_STONE )\r\n map.setWall( indexX, indexY, Map.WALL_BRICK ); // Not to empty: it can be under water!!\r\n } while( map.getWall( indexX, indexY ) == Map.WALL_STONE ); // Stone can't be cleared: it can be part of swimming pool boundaries. (But if there isn't other places where to start, we clear it!)\r\n testObject.position.x = ( indexX << GeneralConsts.WALL_WIDTH_SHIFT ) + GeneralConsts.WALL_WIDTH / 2;\r\n testObject.position.y = ( indexY << GeneralConsts.WALL_HEIGHT_SHIFT ) + GeneralConsts.WALL_HEIGHT / 2;\r\n collidesWithPlayers = false;\r\n for ( int playerIndex = 0; playerIndex < players.length && !collidesWithPlayers; playerIndex++ )\r\n if ( playerIndex != ownIndex && players[ playerIndex ] != null && testObject.hitsExtensiveObject( players[ playerIndex ].playerState ) )\r\n collidesWithPlayers = true;\r\n try {\r\n Thread.sleep( 0, 100 );\r\n }\r\n catch( InterruptedException ie ) {\r\n }\r\n } while ( collidesWithPlayers );\r\n playerState.position.x = testObject.position.x;\r\n playerState.position.y = testObject.position.y;\r\n map.clearMapForEnteringPlayer( indexX, indexY );\r\n }", "public static int[][] randomPlayer(int[][] board, int player) {\r\n\t\t\r\n\t\tint numrandom = (int)((Math.random())*100); /*varible to recive a random number*/\r\n\t\tint fromRow;\r\n\t\tint fromCol;\r\n\t\tint toRow;\r\n\t\tint toCol;\r\n\t\t/*builed array whit the all posibles jumps and choos one of them randomy*/\r\n\t\tif (canJump(board,player)){\r\n\t\t\t\tint [][] moveJump = getAllBasicJumps (board,player);\r\n\t\t\t\tnumrandom = numrandom%(moveJump.length);\r\n\t\t\t\tfromRow = moveJump[numrandom][0];\r\n\t\t\t\tfromCol = moveJump[numrandom][1]; \r\n\t\t\t\ttoRow = moveJump[numrandom][2];\r\n\t\t\t\ttoCol = moveJump[numrandom][3];\r\n\t\t\t\tboard=playMove(board,player,fromRow,fromCol,toRow,toCol);\r\n\t\t\t\tint [][] morJump = getRestrictedBasicJumps(board,player,toRow,toCol);\r\n\t\t\t\twhile (morJump.length>0){\r\n\t\t\t\t\tnumrandom = numrandom%(morJump.length);\r\n\t\t\t\t\tfromRow = morJump[numrandom][0];\r\n\t\t\t\t\tfromCol = morJump[numrandom][1]; \r\n\t\t\t\t\ttoRow = morJump[numrandom][2];\r\n\t\t\t\t\ttoCol = morJump[numrandom][3];\r\n\t\t\t\t\tboard=playMove(board,player,fromRow,fromCol,toRow,toCol);\r\n\t\t\t\t\tmorJump = getRestrictedBasicJumps(board,player,toRow,toCol);\t\t\r\n\t\t\t\t}\r\n\t\t}\t\t\t\t\r\n\t\telse {/*if ther are no posibele jums bulding an arry */\r\n\t\t\tint [][] BasicMove = getAllBasicMoves (board,player);\r\n\t\t\tnumrandom = numrandom%(BasicMove.length);\r\n\t\t\tfromRow = BasicMove[numrandom][0];\r\n\t\t\tfromCol = BasicMove[numrandom][1];\r\n\t\t\ttoRow = BasicMove[numrandom][2];\r\n\t\t\ttoCol = BasicMove[numrandom][3];\r\n\t\t\tboard=playMove(board,player,fromRow,fromCol,toRow,toCol);\r\n\t\t}\r\n\t\t\r\n\t\treturn board;\r\n\t}", "public int triggerNextMole() {\n // Rehabilita a todos los jugadores para pegar\n for (Player p : players)\n p.setHitDisabled(false);\n // Obtiene la nueva posicion\n molePosition = random.nextInt(MyConstants.MOLES_AREA_SIZE * MyConstants.MOLES_AREA_SIZE);\n return molePosition;\n }", "protected void SnatchTarget()\r\n\t{\r\n\t\tint curX = this.getScrollX();\r\n\r\n\t\tif (curX < 0) {\r\n\t\t\t\tsnatchCurrent();\r\n\t\t} \r\n\t\telse \r\n\t\t{\t\r\n\t\t\tint disX=curX-(mScreenWidth*(mCurrentPage-1));\r\n\t\t\t\r\n\t\t\tif(disX<-mScreenWidth / 2)\r\n\t\t\t{\r\n\t\t\t\tsnatchLast();\r\n\t\t\t}\r\n\t\t\telse if(disX>mScreenWidth / 2)\r\n\t\t\t{\r\n\t\t\t\tsnatchNext();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsnatchCurrent();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t\r\n\t}", "void move()\n {\n Random rand = new Random();\n int moveOrNot = rand.nextInt(2);//50% chance\n if(moveOrNot == 1)\n super.move();\n }", "public void genNewGame() {\n Random rand = new Random();\n int num = 0;\n\n int[] row = new int[9];\n\n for (int i = 0; i < 9; i++) {\n while (isInRow(row, num)) {\n num = rand.nextInt(9) + 1;\n }\n row[i] = num;\n }\n\n setRow(board, row, 0);\n shiftRow(row, 3);\n setRow(board, row, 1);\n shiftRow(row, 3);\n setRow(board, row, 2);\n\n shiftRow(row, 1);\n setRow(board, row, 3);\n shiftRow(row, 3);\n setRow(board, row, 4);\n shiftRow(row, 3);\n setRow(board, row, 5);\n\n shiftRow(row, 1);\n setRow(board, row, 6);\n shiftRow(row, 3);\n setRow(board, row, 7);\n shiftRow(row, 3);\n setRow(board, row, 8);\n\n }", "private ArrayList<Integer> getRandomPointsIndex(float ratio,\n ArrayList<Integer> occupiedNList) {\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n ArrayList<Integer> freeNList = new ArrayList<Integer>();\n Dimension dim = layoutPanel.getLayoutSize();\n int height = dim.height;\n int width = dim.width;\n int size = height * width;\n int newNListSize = (int) (size * ratio);\n\n // create a free list\n for (int i = 0; i < size; i++) {\n if (occupiedNList == null || !occupiedNList.contains(i)) {\n freeNList.add(i);\n }\n }\n\n // create a new neurons list\n Random rnd = new Random();\n while (freeNList.size() > 0 && newNList.size() < newNListSize) {\n int i = rnd.nextInt(freeNList.size());\n newNList.add(freeNList.get(i));\n freeNList.remove(i);\n }\n Collections.sort(newNList);\n\n return newNList;\n }" ]
[ "0.6335671", "0.6244768", "0.6135204", "0.61289704", "0.61240184", "0.6118103", "0.6113264", "0.6073666", "0.6072427", "0.60131496", "0.60015017", "0.59913015", "0.5956522", "0.5955399", "0.5910374", "0.5905888", "0.5903346", "0.5888418", "0.58378214", "0.583416", "0.582716", "0.5825033", "0.5823956", "0.582119", "0.5816539", "0.58106893", "0.5803522", "0.58023155", "0.5795805", "0.57930964", "0.5791515", "0.5786473", "0.57829964", "0.5765798", "0.57648504", "0.5758336", "0.57376623", "0.572554", "0.57153577", "0.571382", "0.57108325", "0.5697484", "0.5686536", "0.56809676", "0.56798303", "0.56707335", "0.5662578", "0.5658042", "0.564909", "0.56479746", "0.56246233", "0.56238997", "0.5618686", "0.56164694", "0.5616187", "0.56073374", "0.5599705", "0.55972093", "0.5590171", "0.5589423", "0.5579656", "0.55682296", "0.5541976", "0.5534703", "0.5533836", "0.55321616", "0.5529546", "0.5527405", "0.5524863", "0.5519192", "0.55168957", "0.55165505", "0.5515605", "0.548965", "0.5484165", "0.54816115", "0.54812664", "0.5477995", "0.5461158", "0.5460594", "0.54535985", "0.54495656", "0.54412097", "0.54378337", "0.5435606", "0.5430861", "0.542276", "0.5413936", "0.5412426", "0.5411376", "0.5406345", "0.54058856", "0.54055035", "0.5401892", "0.5396814", "0.5392161", "0.5388449", "0.53873986", "0.5380509", "0.5379711", "0.5373167" ]
0.0
-1
The only argument will be the name of the data file; if it is not provided an exception will be thrown (IllegalArgumentException). If the file provided cannot be read, an exception will be thrown (FileNotFoundException). Otherwise, the file will be read and FizzBuzz will be run on the lines contained in the data file.
public static void main(final String[] args) throws Exception { if(args.length < 1) throw new IllegalArgumentException("Cannot run the fizz-buzz algorithm without a data file."); String fileName = args[0]; File inputFile = new File(fileName); if((!inputFile.exists()) || (!inputFile.canRead())) throw new FileNotFoundException("Cannot find or read the given file (" + fileName + ")."); BufferedReader br = new BufferedReader(new FileReader(inputFile)); String line; while((line = br.readLine()) != null) { StringTokenizer st = new StringTokenizer(line, " "); String fNumString = st.nextToken(); String bNumString = st.nextToken(); String tNumString = st.nextToken(); int fNum = Integer.parseInt(fNumString); int bNum = Integer.parseInt(bNumString); int tNum = Integer.parseInt(tNumString); printFizzBuzz(fNum, bNum, tNum); } br.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t // Call fizzBuzz method and verify correct output\t\n\t}", "public void readFromFile() {\n\n\t}", "public void doIt(File f) throws Exception\n {\n LuaParser parser=new LuaParser();\n Map<String,Object> data=parser.read(f);\n useData(data);\n }", "public static void main(String[] args) throws FileNotFoundException {\n Scanner scanner = new Scanner(new FileInputStream(\"/Users/guoziren/IdeaProjects/剑指offer for Java/src/main/java/com/ustc/leetcode/algorithmidea/dynamicprogramming/input.txt\"));\n }", "public static void reading(String fileName)\n {\n\n }", "public static void main(String[] args) throws IOException \n\t{\n\t\treadFile();\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\r\n\t\tFile filename = new File(\"D://normal.txt\");\r\n\t\tFileInputStream fstream = new FileInputStream(filename);\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\t\r\n\t}", "public void readFile(String file)\n\t{\t\n\t\tfindPieces(file);\n\t}", "public void readFile() throws Exception, FileNotFoundException, NumberFormatException, MalformedParameterizedTypeException {\n // my user or my file might be kind of crazy! -> will check for these exceptions!\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public void processInput(String theFile){processInput(new File(theFile));}", "public static void main(String[] args) {\n\t\tfileName = args[0];\n\t\t//set up file name for the data:\n\t\ttry {\n\t\t\treader = new Scanner(new File(args[1]));\n\t\t\t\n\t\t\t//create a new program, then parse, print, and execute:\n\t\t\tProgram p = new Program();\n\t\t\tp.parse();\n\t\t\tp.print();\n\t\t\tSystem.out.println(\"---PROGRAM OUTPUT---\");\n\t\t\tp.execute();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"ERROR reading data file \" + args[1]);\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\treader.close();\n\t\t}\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\n\t\t// define a file object for the file on our computer we want to read\n\t\t// provide a path to the file when defining a File object\n\t\t//\n\t\t// paths can be: absolute - code all the parts from the root folder of your OS (Windows)\n\t\t//\n\t\t// paths can be: relative - code the part from the assumed current position to the file\n\t\t//\n\t\t// absolute paths should be avoided - they tightly couple the program to the directory structure it was created on\n\t\t//\t\t\t\t\t\t\t\t\t\t\tif the program is run on a machine with a different directory structure it won't work\n\t\t//\t\t\t\t\t\t\t\t\t\t\t\tbecause the absolute path doesn't exist in a different directory structure\n\t\t//\n\t\t// relative paths are preferred because you have loosely coupled the file to the directory structure\n\t\t//\t\t\tit is more likely that the relative paths will be the same from machine to machine\n\t\t//\n\t\t// path: . = current directory\n\t\t//\t\t/ = then (sub-directory or file follows)\n\t\t//\t\tnumbers.txt - file name\n\n\t\tFile theFile = new File(\"./data/numbers.txt\"); // give the File object the path to our file\n\n\t\t// define a scanner for the File object we created for the file on our computer\n\t\tScanner scannerForFile = new Scanner(theFile); // give Scanner the file object we created\n\n\t\tString aLine = \"\"; // hold a line of input from the file\n\n\n\t\tint sum = 0; // hold the sum of the numbers in a line\n\n\t\t// if we want to get all the lines in the file\n\t\t// we need to go through and get each line in the file one at a time\n\t\t// but we can't get a line from the file if there are no more lines in the file\n\t\t// we can use the Scanner class hasNextLine() method to see if there is another line in the file\n\t\t// we can set a loop to get a line from the file and process it as long as there are lines in the file\n\t\t// we will use while loop since we want loop based on a condition (as long as there are line in the file)\n\t\t// \t\t\tand not a count of lines in the file, in which case we would use a for-loop\n\t\t//\t\t\t\tfor-each-loops only work for collection classes\n\n\t\t// add up each line from my file\n\t\t// the file has one or more numbers separated by a single space in each line\n\n\t\twhile (scannerForFile.hasNextLine()) { // loop while there ia a line in the file\n\n\t\t\taLine = scannerForFile.nextLine(); // get a line from the file and store it in aLine\n\n\t\t\t// break apart the numbers in the line based on spaces\n\t\t\t// String .split() will create an array of Strings of the values separated by the delimiter\n\n\t\t\tString[] theNumbers = aLine.split(\" \"); // break apart the numbers in the line based on spaces\n\n\t\t\tSystem.out.println(\"Line from the file: \" + aLine); // display the line from the file\n\n\t\t\t// reset teh sum to 0 to clear it of the value from the last time through the loop\n\t\t\tsum = 0;\n\n\t\t\t// loop through the array of Strings holding the numbers from the line in the file\n\n\t\t\tfor (String aNumber : theNumbers) { // aNumber will hold the current element that is in the array\n\t\t\t\t\tsum = sum + Integer.parseInt(aNumber); // add the number to a sum after converting the String to an int\n\t\t\t}\n\n\t\t\t// now that we have the sum, we can display it\n\n\t\t\tSystem.out.println(\"Sum of the numbers is: \" + sum);\n\t\t\tSystem.out.println(\"Average of the numbers is: \" + sum / theNumbers.length);\n\n\t\t} // end of while loop\n\n\n\t\t\n}", "public abstract void readFromFile( ) throws Exception;", "@Test\n public void testFileReading() throws Exception {\n String[] args = new String[1];\n args[0] = testFile;\n ConferenceManager.main(args);\n\n }", "public void readScoresFromFile(File f) throws IOException, FileNotFoundException{\r\n\t\tBufferedReader br = null;\r\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(f);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\r\n\t\t\tString str = br.readLine();\r\n\t\t\t\r\n\t\t\tfor (int count = 0; count < scores.length; count++){\r\n\t\t\t\tscores[9-count] = new HighScore(str, SEPARATOR);\r\n\t\t\t\tstr = br.readLine();\r\n\t\t\t}\r\n\t\t} catch (Exception ex){\r\n\t\t\tSystem.err.println(\"Trouble with file: \"+ex.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry{\r\n\t\t\t\tif (br != null){\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception ex1){\r\n\t\t\t\tex1.printStackTrace();\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n\n fileReader(\"endpoints1.txt\", \"endpoints2.txt\");\n\n /* First Test Case Completed with Correct Files */\n\n /*===============================================/*\n\n /* Second Test Case With Valid and Invalid Files */\n\n// fileReader(\"endpoints1.txt\", \"invalidpoints.txt\");\n\n /* Second Test Case Completed with one Invalid File */\n\n /*===============================================/*\n\n /* Third Test Case With Invalid Files */\n\n// fileReader(\"invalidpoints.txt\", \"endpoints2.txt\");\n\n /* Third Test Case Completed with Invalid File */\n\n }", "public void loadDataFromFile(String name) throws FileNotFoundException {\n\t\tFileReader reader = new FileReader(name);\n\t\tScanner in = new Scanner(reader);\n\t\twhile(in.hasNextLine()) {\n\t\t\tString readName = \"\";\n\t\t\tString readScore = \"\";\n\t\t\tint intScore = 0;\n\t\t\treadName = in.nextLine();\n\t\t\treadScore = in.nextLine();\n\t\t\ttry {\n\t\t\tintScore = Integer.parseInt(readScore);\n\t\t\t}\n\t\t\tcatch(NumberFormatException e){\n\t\t\t\tSystem.out.println(\"Incorrect format for \" + readName + \" not a valid score: \" + readScore);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tstudents.add(new Student(readName,intScore));\n\t\t}\n\t}", "public static void main(String[] args) throws FileNotFoundException {\r\n WorksheetReader.WorksheetBuilder<Worksheet> builder\r\n = new BasicWorksheet.BasicWorksheetBuilder();\r\n FileReader file = new FileReader(\"resources/BasicTestFile.txt\");\r\n Worksheet sheet = WorksheetReader.read(builder, file);\r\n Workbook model = new BasicWorkbook(sheet);\r\n Controller controller = new Controller(model);\r\n WorksheetView view = new EditView(new WorkbookModelView(model));\r\n controller.setView(view);\r\n }", "public void load (String argFileName) throws IOException;", "@Test\n\tpublic void testReadCsvFile() throws FileNotFoundException {\n\t\tFileParser fp = new FileParser();\n\t\tArrayList<String> parsedLines = fp.readCsvFile(\"movies.csv\");\n\t\tassertEquals(\"toy story\", parsedLines.get(0));\n\t}", "public abstract void runInput(String stringFile) throws IOException;", "public static void main(String[] args) {\n\t\t\n\t\tFizzBuzz fb = new FizzBuzz();\n\t\t\n\t\tfor (int i=1;i<101;i++){\n\t\t\tSystem.out.println(fb.speak(i));\n\t\t}\n\t\t\n\n\t}", "public static void main (String[] args) throws IOException {\n File inFile = new File(\"/Users/kbye10/Documents/CS 250 test files/sample1.data\");\r\n FileInputStream inStream = new FileInputStream(inFile);\r\n\r\n //set up an array to read data in\r\n int fileSize = (int)inFile.length();\r\n byte[] byteArray = new byte[fileSize];\r\n\r\n //read data in and display them\r\n inStream.read(byteArray);\r\n for (int i = 0; i < fileSize; i++) {\r\n System.out.println(byteArray[i]);\r\n }\r\n\r\n inStream.close();\r\n }", "private static void readFridgeData() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n File file = new File(DATA_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n populateFridge(line);\n }\n scanner.close();\n }", "public void runFile(String filename) {\n }", "public static void main (String[] args) {\n \n //initilialize Scanner, pass file input in same directory, pass to boyGirl function\n Scanner input = new Scanner(new File('tas.txt'));\n boyGirl(input);\n }", "public ArrayList<quizImpl> readFile() {\n\n // The name of the file to open.\n String fileName = \"Quizzes.txt\";\n\n // This will reference one line at a time\n String line;\n\n try {\n //reads file twice the first time adding contacts the second adding meetings\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n quizzes.add(line);\n }\n bufferedReader.close();\n for (String s : quizzes) {\n if (s.startsWith(\"quizName\")) {\n //splits the line into an array of strings\n String[] stringArray = s.split(\",\");\n //If game already has a highScore\n if (stringArray.length > 3) {\n if (stringArray[stringArray.length - 3].equals(\"highScore\")) {\n quizImpl q = new quizImpl(stringArray[1], stringArray[stringArray.length - 2], Integer.parseInt(stringArray[stringArray.length - 1]));\n for (int i = 2; i < stringArray.length - 3; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n } else {\n quizImpl q = new quizImpl(stringArray[1]);\n for (int i = 2; i < stringArray.length; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n }\n } else {\n quizImpl q = new quizImpl(stringArray[1]);\n for (int i = 2; i < stringArray.length; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n }\n }\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return quizArray;\n }", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString fizzBuzz = \"FizzBuzz\";\n\t\t\n\t\tfor(int count = 1; count <101; count++){\n\t\t\tif ((count%3==0) && (count%5)==0){\n\t\t\t\tSystem.out.println(fizzBuzz);\n\t\t\t}\n\t\t\telse if(count%3==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(0, 4));\n\t\t\t}\n\t\t\telse if(count%5==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(4, fizzBuzz.length()));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(count);\n\t\t\t}\n\t\t}\n\t}", "public InputReader(File file){\n try {\n inputStream = new Scanner(file);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n instantiate();\n assert(invariant());\n }", "public static void readMyFile() throws IOException {\n\n List<String> allLines = Files.readAllLines(Paths.get(\"src/ErfansInputFile\"));\n System.out.println(\"allLines = \" + allLines);\n System.out.println(\"Reading the file in my computer. \");\n\n throw new FileNotFoundException(\"Kaboom, file is not found!!!\");\n }", "@SuppressWarnings(\"squid:S106\") // Ignore Sonar warning about use of System.out and System.err.\n public static void main(String[] args) throws Exception {\n if (args.length < 1) {\n System.err.println(\"expected filenames\");\n System.exit(-1);\n }\n\n for (String arg : args) {\n try {\n try (FileReader r = new FileReader(arg)) {\n System.out.println(toCharSequence(parse(r)));\n }\n } catch (ParseException e) {\n System.err.println(arg + \":\" + e);\n System.exit(-1);\n }\n }\n }", "public static void main (String[] args) throws IOException\n {\n Scanner fileScan, lineScan;\n String fileName;\n\n Scanner scan = new Scanner(System.in);\n\n System.out.print (\"Enter the name of the input file: \");\n fileName = scan.nextLine();\n fileScan = new Scanner(new File(fileName));\n\n // Read and process each line of the file\n\n\n\n\n }", "public void fileRead(String filename) throws IOException;", "private void readFile (String file, Visitor visitor) throws Exception {\n\t\tFileReader fr = new FileReader (file);\n\t\tBufferedReader reader = new BufferedReader (fr);\n\n\t\tSystem.out.println (\"Reading file \" + file);\n\n\t\tint count = 0;\n\t\tfor (String line; (line = reader.readLine()) != null;) {\n\t\t\tif (count++ % 10000 == 0) System.out.println (line);\n\t\t\tvisitor.visit (line);\n\n\t\t\tif (count >= LIMIT) break;\n\t\t}\n\n\t\tSystem.out.println (\"Done\");\n\n\t\treader.close();\n\t\tfr.close();\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\tscanner = new Scanner(new File(\"digit_data/test.csv\"));\n scanner.useDelimiter(\",\");\n scanner.nextLine();\n // Transforms the values on the csv from strings to ints\n\t\tnew drawnum().go();\n\t}", "private void checkFile() {\n \ttry {\n \t\tdata = new BufferedReader(\n \t\t\t\t new FileReader(textFile));\n \t\t\n \t}\n \tcatch(FileNotFoundException e)\n \t{\n \t\tSystem.out.println(\"The mentioned File is not found.\");\n System.out.println(\"\");\n\t\t\tSystem.exit(1);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The following error occured while reading the file.\");\n\t\t\tex.printStackTrace();\n\t\t\tSystem.exit(2);\n\t\t}\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\t\n\t\tScanner scan = new Scanner(new File(\"input.txt\"));\n\t\t\n\t\tParser parse;\n\t\tCode code = new Code();\n\t\tSymbolTable st = new SymbolTable();\n\t\t\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString inCode = scan.nextLine();\t\n\t\t\tparse = new Parser(inCode);\n\t\t}\n\t\t\n\t}", "public static int loadFile(File f, Data[] datas) throws IOException \n {\n Scanner scf = new Scanner(f);\n int n = 0; // number of lines read\n while (n < datas.length && scf.hasNextLine()) \n {\n String line = scf.nextLine();\n datas[n] = new Data(line);\n n++;\n }\n scf.close();\n return n;\n }", "public static void main(String[] args) {\n for (int i = 1; i <= 100; i++) {\n System.out.println(FizzBuzz.fizzBuzzValue(i));\n }\n }", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public static void main(String[] args) {\n\t\tif (args.length !=0) {\n\t\t\t// get the file name\n\t\t\tString filePath = args [0];\n\t\t\tFile carsFile = new File(filePath);\n\n\t\t\n\n\t\t\tFileReader fileReader;\n\t\t\ttry {\n\t\t\t\tfileReader = new FileReader(carsFile);\n\t\t\t\tSystem.out.println(\"Found file: \"+carsFile.getAbsolutePath());\n\t\t\t\tSystem.out.println(\"-----------------------------------------\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Reading file, line by line...\");\n\t\t\t\tBufferedReader br = new BufferedReader (fileReader);\n\t\t\t\t\tString currentLine;\n\t\t\t\t\tint counter = 0;\n\t\t\t\t\twhile ((currentLine = br.readLine())!= null) {\n\t\t\t\t\t\tSystem.out.println(++counter + \": \"+ currentLine);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t//e.printStackTrace();\n\t\t\t\tSystem.err.println(\"File \" + carsFile.getAbsolutePath() + \" not found \\n\"+\"Terminating.\");\n\t\t\t\tSystem.exit(1);\n// is a\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"A problem occurred with file \"+carsFile.getAbsolutePath()+\"\\n\"+\"Terminating.\");\n\t\t\t\t//e.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\t// separator: variabile statica, ad accesso pubblico, dichiarata final della classe\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"You must run this program with arguments. \\n\"+\"Terminating.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "public void readFile(File file){\n try{\n scan = new Scanner(file);\n while(scan.hasNextLine()){\n String line = scan.nextLine();\n if(line.startsWith(\"//\")){\n continue;\n }\n process(line);\n }\n }catch(IOException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n }catch(NullPointerException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n \n }\n }", "@Override\n @SneakyThrows\n public void process() {\n process(new FileReader(new File(fileName)));\n }", "public void load (File file) throws Exception;", "public FastaReader(File file)\n throws FileNotFoundException, IOException {\n try {\n in = new BufferedReader(new FileReader(file));\n System.out.println(\"Start parsing fasta file ......\");\n parseFile();\n }\n catch (FileNotFoundException ex) {\n System.out.println(\"Error: \" + ex.getMessage());\n throw new FileNotFoundException(\"Can't not find the input file \".concat(file.getName()).concat(\".\"));\n }\n\n }", "public static void main(String[] args) {\n\n\t\ttry {\n\t\t\tprintFileData(\"some Path\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"no file found\");\n\t\t}\n\n\t\ttry {\n\t\t\tprintFileData(\"some other path\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"try a different file, this was not \");\n\t\t}\n\n\t}", "@Test\n\tpublic void testReadTxtFile() throws FileNotFoundException {\n\t\tFileParser fp = new FileParser();\n\t\tArrayList<String> parsedLines = fp.readTxtFile(\"test.txt\");\n\t\tassertEquals(\"This is a test file\", parsedLines.get(0));\n\t\tassertEquals(\"University of Virginia\", parsedLines.get(1));\n\n\t\tArrayList<String> parsedWords = fp.readTxtFile(\"test1.txt\");\n\t\tassertEquals(\"test\", parsedWords.get(0));\n\t\tassertEquals(\"file\", parsedWords.get(1));\n\t}", "void citire(FileReader f);", "public static void main(String[] args) {\n ReadFile trainingFile = new ReadFile(\"input/treino.txt\");\n ReadFile testFile = new ReadFile(\"input/teste.txt\");\n\n // Guarda as series temporais do arquivo de treino em uma lista\n ArrayList<TimeSerie> training = new ArrayList<>();\n while(trainingFile.hasNextLine()) {\n training.add(trainingFile.nextSerie());\n }\n\n // Processa cada linha do arquivo de teste e contabiliza um acerto ou erro\n while(testFile.hasNextLine()) {\n\n }\n }", "public void readFile();", "public static void main(String[] args) throws FileNotFoundException {\n if (args.length != 0) {\n input = new Scanner(new File(args[0]));\n echo = true;\n } \n else { // no command line arg to specify input file name\n input = new Scanner(System.in);\n echo = false;\n } \n\n Temperature temp = getNewTemperature();\n\n performCommands(temp);\n System.out.println(\"\\nGoodbye.\");\n }", "protected abstract void parseFile(File f) throws IOException;", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tFile f11 = new File(\"Usama's 1st file.txt\");\n\t\t\tScanner myReader = new Scanner(f11);\n\t\t\t\n\t\t\twhile(myReader.hasNextLine())\n\t\t\t{\n\t\t\t\tString data = myReader.nextLine();\n\t\t\t\tSystem.out.println(data);\n\t\t\t}\n\t\t\tmyReader.close();\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(\"An unexpected error has been occured! :(\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\ttry(FileReader fr = new FileReader(\"Numbers2.txt\");\n\t\t\t\tBufferedReader br= new BufferedReader(fr); )\n\t\t\t{\n\t\t\t\t\n\t\t\t\tint index=0;\n//\t\t\t\tThis is one way to read code from txt file\n\t\t\t\twhile(br.ready()) {\n\t\t\t\t\tSystem.out.print(++index+\":\");\n\t\t\t\t\tSystem.out.println(br.readLine());\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcatch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\t\n\t\t\tfinally {\n\t\t\tSystem.out.println(\"Ended..\");\n\t\t\t\t\n\t\t\t}\n\t\t}", "public static void main(String[] args) {\n try(Scanner scanner = new Scanner(Paths.get(\"data.txt\"))){\n \n // read the file until all lines have been read \n while(scanner.hasNextLine()){\n // read one line\n String row = scanner.nextLine();\n \n // print the line\n System.out.println(row);\n }\n }catch(Exception e){\n System.out.println(\"Error: \" + e.getMessage());\n }\n\n }", "public static void main(String[] args) throws FileNotFoundException {\n Scanner input = new Scanner(System.in);\n files(input); // calls files method \n }", "public ReadFile (String file) throws java.io.FileNotFoundException\n {\n reader = new java.io.FileReader(file);\t\t//Construct the file reader\n br = new java.io.BufferedReader(reader);\t//Wrap it with a BufferedReader\n assert this.isValid(); \t\t\t//Make sure all is well and we can read the file\n }", "public static void main(String[] args) {\n appendInfoToFile();\n readFile();\n }", "public static void main(String[] args) throws IOException {\n\n\t\tFileReader r = new FileReader(\"D:\\\\SUREN\\\\Common\\\\DATA\\\\data.txt\");\n\t\tBufferedReader bfr= new BufferedReader(r);\n\t\tString x=\"\";\n\t\tSystem.out.println(bfr.readLine());\n\t\t\n\t\twhile((x=bfr.readLine())!=null)\n\t\t{\n\t\t\tSystem.out.println(x);\n\t\t}\n\t\tbfr.close();\n\t\t\n\t}", "public static void main(String[] args) {\r\n\t\tif(args.length != 1) {\r\n\t\t\tSystem.err.println(\"Please provide file path to a file with the chart definition.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tBarChart chart;\r\n\t\tString filePath = args[0];\r\n\t\t\r\n\t\ttry(BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\r\n\t\t\tString titleX = Objects.requireNonNull(br.readLine(), \"Expected x-axis title, was null.\");\r\n\t\t\tString titleY = Objects.requireNonNull(br.readLine(), \"Expected y-axis title, was null.\");\r\n\t\t\tString _values = Objects.requireNonNull(br.readLine(), \"Expected x,y values, was null.\");\r\n\t\t\tString _minY = Objects.requireNonNull(br.readLine(), \"Expected minimum y value, was null.\");\r\n\t\t\tString _maxY = Objects.requireNonNull(br.readLine(), \"Expected maximum y value, was null.\");\r\n\t\t\tString _interval = Objects.requireNonNull(br.readLine(), \"Expected interval value, was null.\");\r\n\t\t\t\r\n\t\t\tList<XYValue> values = convertToXYValues(_values);\r\n\t\t\tint minY = Integer.parseInt(_minY);\r\n\t\t\tint maxY = Integer.parseInt(_maxY);\r\n\t\t\tint interval = Integer.parseInt(_interval);\r\n\t\t\t\r\n\t\t\tchart = new BarChart(values, titleX, titleY, minY, maxY, interval);\r\n\t\t\t\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.err.println(\"File reading error occured. Closing...\");\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\tSystem.err.println(\"Error during the number formatting. Closing...\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSwingUtilities.invokeLater(() -> {\r\n\t\t\tnew BarChartDemo(chart, filePath).setVisible(true);\r\n\t\t});\r\n\t}", "public void loadFile(File p_file) throws IOException;", "protected abstract void readFile();", "@Test\n public void givenStateCensusAnalyserFile_WhenImproperFile_ReturnsException() {\n String CSV_FILE_PATH = \"src/test/resources/stateCensus.csv\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n } catch (CSVBuilderException e) {\n Assert.assertEquals(CSVBuilderException.TypeOfException.NO_FILE_FOUND, e.typeOfException);\n }\n }", "public abstract T readDataFile(String fileLine);", "@Test\n public void whenReadFileThenResultLinesFromFile() {\n Cache cache = new Cache(\"c:/temp\");\n String result = cache.readFile(\"names.txt\");\n assertThat(result, is(String.format(\"Ivan%sVictor%sPetr%s\", sep, sep, sep)));\n }", "public void loadFile(File file) throws FileNotFoundException\n {\n FileReader reader = new FileReader(file);\n\n // Clear table to make sure it only shows tasks from file\n Item.getToDoList().clear();\n if(this.listView != null)\n {\n listView.getItems().clear();\n }\n\n index = 0;\n\n try(BufferedReader temp = new BufferedReader(reader))\n {\n String info;\n boolean check;\n\n while((info = temp.readLine()) != null)\n {\n // Make an array of values\n String[] values = info.split(\",\");\n\n //Array length is 3, since 3 columns. If not that then incorrect file\n if(values.length != 3)\n {\n if(this.status != null)\n {\n status.setText(\"Incompatible File. \");\n }\n break;\n }\n\n // If correct, add information from file to list\n else\n {\n check = !values[2].equals(\"false\");\n Item.getToDoList().add(new Item(values[0], values[1], check));\n }\n }\n\n } catch (IOException exception)\n {\n // If error, let user know\n if(this.status != null)\n {\n status.setText(\"File not found. \");\n }\n\n exception.printStackTrace();\n }\n }", "public static void main(final String[] args) {\n\t\tnew FizzBuzzOutputGenerator().getFizzBuzzStream(1, 100).forEach(System.out::print);\n\t}", "private static void LessonFizzBuzzLab() {\n //Write a loop that counts from 0-100\n for(int index=0; index <= 100; index++) {\n //If the value is divisible by 15 print \"FizzBuzz\"\n if(index%3 == 0 && index%5 == 0) {\n //If the value is divisible by 3 print \"Fizz\"\n System.out.println(\"FizzBuzz\");\n } else if(index%3 == 0) {\n System.out.println(\"Fizz\");\n //If the value is divisible by 5 print \"Buzz\"\n } else if(index%5 == 0) {\n System.out.println(\"Buzz\");\n //If the value is not divisible by 3,5, or 15 simply print the number\n } else {\n System.out.println(index);\n }\n }\n //Write code that will throw an exception (other than the ones we covered in the lesson) and catch it.\n String[] myStrArray = new String[2];\n myStrArray[0] = \"Hello\";\n myStrArray[1] = \"Hello\";\n try {\n System.out.println(myStrArray[2]);\n } catch(ArrayIndexOutOfBoundsException error){\n System.out.println(error);\n }\n }", "@Override\n\tpublic boolean readFile(String filename) {\n\t\ttry {\n\t\t\tScanner input = new Scanner(new File(filename));\n\t\t\tString row = input.nextLine();\n\t\t\tString[] sarr = row.split(\",\");\n\t\t\tString ingredientsWatch = \"\";\n\t\t\t// Gets the String type of ingredients to watch\n\t\t\t// Identify the gender and create the Female or Male object\n\t\t\tif (sarr[0].equals(\"Female\")) {\n\t\t\t\tStringBuilder sBuilder =new StringBuilder();\n\t\t\t\tfor(int j =5;j<sarr.length-1;j++) {\n\t\t\t\t\tsBuilder=sBuilder.append(sarr[j].trim()+\",\");\t\n\t\t\t\t}\n\t\t\t\tsBuilder=sBuilder.append(sarr[sarr.length-1]);\n\t\t\t\tingredientsWatch = sBuilder.toString();\n\t\t\t\tFemale female=new Female(Float.parseFloat(sarr[1]), Float.parseFloat(sarr[2]), \n\t\t\t\t\t\tFloat.parseFloat(sarr[3]), Float.parseFloat(sarr[4]), ingredientsWatch);\n\t\t\t\tNutriByte.person=female;\n\t\t\t}else {\n\t\t\t\tStringBuilder sBuilder =new StringBuilder();\n\t\t\t\tfor(int j =5;j<sarr.length-1;j++) {\t\n\t\t\t\t\tsBuilder=sBuilder.append(sarr[j].trim()+\",\");\n\t\t\t\t}\n\t\t\t\tsBuilder=sBuilder.append(sarr[sarr.length-1]);\n\t\t\t\tingredientsWatch = sBuilder.toString();\n\t\t\t\t// Creates the object using its constructor\n\t\t\t\tMale male=new Male(Float.parseFloat(sarr[1]), Float.parseFloat(sarr[2]), \n\t\t\t\t\t\tFloat.parseFloat(sarr[3]), Float.parseFloat(sarr[4]), ingredientsWatch);\n\t\t\t\tNutriByte.person=male;\n\t\t\t\tinput.close();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t\treturn true;\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n File f = new File(\"dict2.txt\");\n Scanner readFile = new Scanner(f);\n ArrayList<String> dictionary = new ArrayList<String>();\n \n while (readFile.hasNext()) {\n dictionary.add(readFile.next());\n }\n \n HangmanLogic logic = new HangmanLogic(dictionary);\n HangmanUserInterface game = new HangmanUserInterface(logic);\n game.start();\n }", "public void readFile(String name) {\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\t\n\t\ttry {\t\t \n\t\t\tScanner reader = new Scanner(file);\n\t\t\t\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\tString data = reader.nextLine();\n\t\t System.out.println(data);\n\t\t\t}\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t System.out.println(\"File not found!\");\n\t\t} \n\t}", "public static void main(String[] args) throws NumberFormatException, IlegalMuseoException {\n\t\tList<Museos> lista = new ArrayList<Museos>();\r\n\t\ttry (Scanner sc = new Scanner(new File(\"datosMuseos/datos.csv\"));) {\r\n\t\t\tString datos = sc.nextLine();\r\n\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\tdatos = sc.nextLine();\r\n\t\t\t\tSystem.out.println(datos);\r\n\t\t\t\tString[] campos = datos.split(\",\");\r\n\t\t\t\tlista.add(new Museos(Integer.parseInt(campos[0]), campos[1], campos[2], campos[3], campos[4]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"fichero no encontrado\");\r\n\t\t}\r\n\r\n\t}", "public static void readFileBronze(String filename) throws FileNotFoundException{\n try {\n //Scanners and readers and everything??\n File text = new File(filename);\n Scanner inf = new Scanner(text);\n BufferedReader brTest = new BufferedReader(new FileReader(filename));\n String firstLine = brTest.readLine();\n String[] firstLineArray = new String[4];\n firstLineArray = firstLine.split(\" \");\n\n //Determines rows, cols, elevation, number of instructions.\n r = Integer.parseInt(firstLineArray[0]);\n c = Integer.parseInt(firstLineArray[1]);\n e = Integer.parseInt(firstLineArray[2]);\n n = Integer.parseInt(firstLineArray[3]);\n\n //Initializes map.\n map = new int[r][c];\n inf.nextLine();\n for (int i = 0; i < r; i++){\n for (int j = 0; j < c; j++) {\n map[i][j] = inf.nextInt();\n }\n }\n //System.out.println(inf.nextLine());\n //System.out.println(inf.nextLine());\n\n //Instructions.\n\n instructions = new int[n][3];\n for (int i = 0; i < n; i++){\n inf.nextLine();\n for (int j = 0; j < 3; j++){\n instructions[i][j] = inf.nextInt();\n }\n }\n //Exceptions.\n } catch (FileNotFoundException ex){\n System.out.println(\"Yikes\");\n } catch (IOException ex){\n System.out.println(\"Yikes\");\n }\n }", "void readExcel(File existedFile) throws Exception;", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "public static void main(String[] args) throws IOException\n\t{\n \tif ( args.length == 0 )\n\t\t{\n \t\tSystem.out.println(\"File name expected.\");\n \t\tSystem.exit(0);\n \t}\n \tSystem.out.println(\"Opening file \" + args[0] + \"...\");\n\n \t// declares new FileInputStream object and opens input file\n \tFileInputStream fileStream = new FileInputStream(args[0]);\n \tSystem.out.println(\"Opening of file \" + args[0] + \" successful.\");\n\n\t\t// outputs average of 3 columns where there are 6 integers in the input file\n \tScanner sc = new Scanner(fileStream);\n \tint num;\n \tint count = 0;\n\t\tint columns = 3;\n \tlong [] sum = new long[columns];\n\n\t while ( sc.hasNextInt() )\n\t\t{\n\t\t\tfor ( int i = 0; i < columns; ++i )\n\t\t\t{\n\t \t\tnum = sc.nextInt();\n \t \t\tsum[i] = sum[i] + num;\n\t\t\t}\n\t\t\t++count;\n \t}\n\n\t if ( count == 0 )\n \t\tSystem.out.println(\"No integers in file.\");\n \telse\n\t\t{\n\t\t\tfor ( int i = 0; i < columns; ++i )\n\t\t\t{\n\t \t\tSystem.out.print(Math.round((double)sum[i]/(double)count) + \" \");\n \t\t}\n\t\t\tSystem.out.println();\n\t\t}\n \tfileStream.close();\n \t}", "public void myMethod() throws FileNotFoundException {\n\t\ttry {\n\t\tsoccer = new FileInputStream(\"soccer.txt\");\n\t\t} catch (FileNotFoundException f) {//checked exception handled here\n//\t\t\tf.printStackTrace();\n\t\tSystem.out.println(\"file not found\");//throw fnfe; //this needs to be handled or declared\n\t\t}\n\t\t}", "public static void main(String[] args) {\n\t\n\t\ttry\n\t\t{\n\t\t\tFileReader reader=new FileReader(\"E:\\\\java\\\\kedar\\\\sample.txt\");\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"Error: \"+e);\n\t\t}\n\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(\"fichero.txt\");\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\tString s = br.readLine();\r\n\t\t\twhile( s != null){\r\n\t\t\t\tSystem.out.println(s);\r\n\t\t\t\ts = br.readLine();\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//String s = br.readLine();\r\n\t\t\t//System.out.println(s);\r\n\t\t\t\r\n\t\t}catch(FileNotFoundException e){\r\n\t\t\tSystem.err.println(\"el fichero no se ha podido encontrar: \" + e);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tvoid testImportRecordsShouldThrowExceptionOnInvalidFile() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertThrows(FileNotFoundException.class, () -> {\r\n\t\t\tparser.importRecords(new File(\"unknown.txt\"));\r\n\t\t});\r\n\t}", "@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }", "public FastaReader(String fileName) throws IOException{\n\t\tthis(new FileInputStream(fileName));\n\t}", "public void runExample() throws FileNotFoundException {\n\t\tget_file_List();\r\n\t\t\r\n\t\t//display the list of files obtained\r\n\t\t//display_file_list();\r\n\t\t\r\n\t\t//parse each document\r\n\t\tparseDocument();\r\n\t\t\r\n\t\t//Iterate through the list and print the data\r\n\t\t//printData(); // not in use for now\r\n\t\t\r\n\t}", "public void readFile(String filename){\n\t\ttry{\n\t\t\tBufferedReader bf = new BufferedReader(new FileReader(filename));\n\t\t\tString line;\n\t\t\tString[] categories = new String[5];\n\t\t\tline = bf.readLine();\n\t\t\tint[] pointValues = new int[5];\n\t\t\tboolean FJ = false;\n\t\t\t\n\t\t\t// Read the first line\n\t\t\tint index = 0;\n\t\t\tint catnum = 0;\n\t\t\twhile(catnum < 5){\n\t\t\t\tcategories[catnum] = readWord(line, index);\n\t\t\t\tindex += categories[catnum].length();\n\t\t\t\tif(index == line.length()-1){\n\t\t\t\t\tSystem.out.println(\"Error: Too few categories.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\tfor(int i = 0; i < catnum; i++){\n\t\t\t\t\tif(categories[i].equals(categories[catnum])){\n\t\t\t\t\t\tSystem.out.println(\"Error: Duplicate categories.\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(catnum < 4)\n\t\t\t\t\tindex += 2;\n\t\t\t\tcatnum++;\n\t\t\t}\n\t\t\tif(index < line.length()-1){\n\t\t\t\tSystem.out.println(\"Error: Too many categories.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tCategory cat1, cat2, cat3, cat4, cat5, cat6;\n\t\t\tcat1 = new Category(categories[0]);\n\t\t\tcat2 = new Category(categories[1]);\n\t\t\tcat3 = new Category(categories[2]);\n\t\t\tcat4 = new Category(categories[3]);\n\t\t\tcat5 = new Category(categories[4]);\n\t\t\tcat6 = new Category(\"FJ\");\n\n\t\t\t// Read the second line\n\t\t\tline = bf.readLine();\n\t\t\t//System.out.println(line);\n\t\t\tindex = 0;\n\t\t\tint pointnum = 0;\n\t\t\twhile(pointnum < 5){\n\t\t\t\tint point = 0;\n\t\t\t\ttry{\n\t\t\t\t\tpoint = Integer.parseInt(readWord(line, index));\n\t\t\t\t\tindex += (readWord(line, index)).length();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\tSystem.out.println(\"Error: point value not integer.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpointValues[pointnum] = point;\n\t\t\t\tfor(int i = 0; i < pointnum; i++){\n\t\t\t\t\tif(pointValues[pointnum] == pointValues[i]){\n\t\t\t\t\t\tSystem.out.println(\"Error: Duplicate point values\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(pointnum <4)\n\t\t\t\t\tindex += 2;\n\t\t\t\tpointnum++;\n\t\t\t}\n\t\t\tif(index < line.length()-1){\n\t\t\t\tSystem.out.println(\"Error: Too many point values.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\t// Read in the questions\n\t\t\tString q=\"\";\n\t\t\tString a=\"\";\n\t\t\tString category=\"\";\n\t\t\tint point=0;\n\t\t\tint colonNumber = 0;\n\t\t\tQuestion question = new Question(0, \"\", \"\");\n\t\t\t\n\t\t\twhile((line = bf.readLine())!= null && line.length() != 0){\n\t\t\t\tindex = 0;\n\t\t\t\t// New question, initialize all vars\n\t\t\t\tif(line.substring(0,2).equals(\"::\")){\n\t\t\t\t\t// Add the previous question\n\t\t\t\t\tif(question.getPoint() != 0){\n\t\t\t\t\t\tif(category.equals(cat1.getName())){\n\t\t\t\t\t\t\tcat1.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat2.getName())){\n\t\t\t\t\t\t\tcat2.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat3.getName())){\n\t\t\t\t\t\t\tcat3.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat4.getName())){\n\t\t\t\t\t\t\tcat4.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat5.getName())){\n\t\t\t\t\t\t\tcat5.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(\"FJ\")){\n\t\t\t\t\t\t\tcat6.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong category name.\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta=\"\";\n\t\t\t\t\tq=\"\";\n\t\t\t\t\tcategory=\"\";\n\t\t\t\t\tpoint = 0;\n\t\t\t\t\tindex += 2;\n\t\t\t\t\tcolonNumber = 1;\n\t\t\t\t\tquestion = new Question(0, \"\", \"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If FJ cont'd\n\t\t\t\telse{\n\t\t\t\t\tif(category.equals(\"FJ\")){\n\t\t\t\t\t\twhile(index < line.length()){\n\t\t\t\t\t\t\tswitch(colonNumber){\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tq += readWord(line, index);\n\t\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\t\tquestion.setQuestion(q);\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\ta += readWord(line, index);\n\t\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(colonNumber < 3 && index < line.length()-1 && line.substring(index, index+2).equals(\"::\")){\n\t\t\t\t\t\t\t\tindex+=2;\n\t\t\t\t\t\t\t\tcolonNumber++;\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// FJ starts\n\t\t\t\tif(readWord(line, index).equals(\"FJ\")){\n\t\t\t\t\tif(FJ){\n\t\t\t\t\t\tSystem.out.println(\"Error: Multiple final jeopardy questions.\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t\tFJ = true;\n\t\t\t\t\tpoint = -100;\n\t\t\t\t\tcategory = \"FJ\";\n\t\t\t\t\tindex += 4;\n\t\t\t\t\tcolonNumber++;\n\t\t\t\t\tif(index < line.length()-1)\n\t\t\t\t\t\tq += readWord(line, index);\n\t\t\t\t\tindex += q.length();\n\t\t\t\t\tindex += 2;\n\t\t\t\t\tif(index < line.length()-1)\n\t\t\t\t\t\ta += readWord(line, index);\n\t\t\t\t\tquestion.setPoint(point);\n\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t}\n\t\t\t\t// Other questions\n\t\t\t\telse{\n\t\t\t\t\twhile(index < line.length()){\n\t\t\t\t\t\t//System.out.println(colonNumber);\n\t\t\t\t\t\tswitch(colonNumber){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tcategory = category + readWord(line, index);\n\t\t\t\t\t\t\tboolean right = false;\n\t\t\t\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\t\t\t\tif(categories[i].equals(category))\n\t\t\t\t\t\t\t\t\tright = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!right){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong category.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex += category.length();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tpoint = Integer.parseInt(readWord(line, index));\n\t\t\t\t\t\t\tright = false;\n\t\t\t\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\t\t\t\tif(pointValues[i] == point)\n\t\t\t\t\t\t\t\t\tright = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!right){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong point value.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setPoint(point);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tq = q + readWord(line, index);\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\ta = a+ readWord(line, index);\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\t\t\tif(index < line.length()){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(colonNumber < 4 && index < line.length()-1 && line.substring(index, index+2).equals(\"::\")){\n\t\t\t\t\t\t\tindex += 2;\n\t\t\t\t\t\t\tcolonNumber++;\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// Add the last question\n\t\t\tif(category.equals(cat1.getName())){\n\t\t\t\tcat1.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat2.getName())){\n\t\t\t\tcat2.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat3.getName())){\n\t\t\t\tcat3.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat4.getName())){\n\t\t\t\tcat4.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat5.getName())){\n\t\t\t\tcat5.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(\"FJ\")){\n\t\t\t\tcat6.addQuestion(question);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Error: Wrong category name.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tmCategories.add(cat1);\n\t\t\tmCategories.add(cat2);\n\t\t\tmCategories.add(cat3);\n\t\t\tmCategories.add(cat4);\n\t\t\tmCategories.add(cat5);\n\t\t\tmCategories.add(cat6);\n\t\t\t\n\t\t\tbf.close();\n\t\t}\n\t\t\n\t\tcatch(IOException ioe){\n\t\t\tSystem.out.println(ioe);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n String path = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\FileHandling\\\\Data.xlsx\";\n //Xls_Reader xls = new Xls_Reader(path);\n\n // counting rows\n\n //counting cols\n\n //reading\n\n //writing\n\n }", "public boolean process(File file) throws IOException;", "public static void main(String[] args) {\n\n String incorrectArgs = \"Please provide a single argument to this program, the path to the data file.\";\n\n if (args.length != 1) {\n abnormalTermination(incorrectArgs);\n }\n\n String path = args[0];\n try {\n String[] gridData = GridGameUtils.readData(new FileInputStream(path));\n System.out.println(GridGameUtils.countX(gridData));\n } catch (FileNotFoundException e) {\n abnormalTermination(path + \" is not a valid file.\" + incorrectArgs);\n }\n }", "public void readFile(File f) {\r\n if(f.getName().endsWith(\".txt\")) {\r\n if(f.getName().equals(\"USQRecorders.txt\")) {\r\n readAndTxt(f); \r\n lab_android.setText(\"Android read in\");\r\n }else if(f.getName().equals(\"mdl_log.txt\")) {\r\n readModLog(f);\r\n lab_moodle.setText(\"Moodle read in\");\r\n }else if(f.getName().equals(\"mdl_chat_messages.txt\") || f.getName().equals(\"mdl_forum_posts.txt\") || f.getName().equals(\"mdl_quiz_attempts.txt\")) {\r\n \treadtabs(f);\r\n }else{\r\n //illegal file name\r\n //JOptionPane.showMessageDialog(null, \"only accept .txt file named 'USQRecorders.txt','mdl_log.txt','mdl_chat_messages.txt','mdl_forum_posts.txt' and 'mdl_quiz_attempts.txt'\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if(fromzip == false) {\r\n copyOldtxt(f);\r\n }\r\n } else if(f.getName().endsWith(\".zip\")) {\r\n if(f.getName().endsWith(\".zip\"))fromzip=true;\r\n readZip(f);\r\n copyOldtxt(f);\r\n //delete original\r\n File del = new File(workplace + \"/temp/USQ_IMAGE\");\r\n File dels[] = del.listFiles();\r\n for(int i=0 ; i<dels.length ; i++){\r\n dels[i].delete();\r\n }\r\n File tmp = new File(workplace + \"/temp/USQ_IMAGE/\");\r\n tmp.delete();\r\n tmp = new File(workplace + \"/temp\");\r\n tmp.delete();\r\n lab_android.setText(\"Android read in\");\r\n } else if(f.getName().endsWith(\".png\")) {\r\n readImage(f);\r\n }\r\n }", "Future<File> processDataFile(File dataFile);", "void readFromFile(String file)\n {\n try\n {\n employees.clear();\n FileReader inputFile = new FileReader(fileName);\n BufferedReader input = new BufferedReader(inputFile);\n String line = input.readLine();\n \n while(line != null)\n {\n Employee worker = new Employee();\n StringTokenizer stringParser = new StringTokenizer(line, \",\");\n while(stringParser.hasMoreElements())\n {\n worker.setName(stringParser.nextElement().toString());\n worker.setHours(Integer.parseInt(stringParser.nextElement().toString()));\n worker.setRate(Float.parseFloat(stringParser.nextElement().toString()));\n }\n employees.add(worker);\n line = input.readLine();\n }\n inputFile.close();\n }\n catch(FileNotFoundException e)\n {\n e.getStackTrace();\n }\n catch(IOException e)\n {\n e.getStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tString folder = \"/Users/haopeng/Dropbox/research/2nd/Usecase/Yanlei/\";\n\t\tString fileName = \"P0_2324.txt\";\n\t\t\n\t\tFileReader reader = new FileReader(folder + fileName, 20000000);\n\t\treader.parseFile();\n\t\t\n\t\t//reader.printValues(reader.getServerName(), \"ServerName\");\n\t\t//reader.printValues(reader.getCommand(), \"Command\");\n\t\t//reader.printValues(reader.getTimestamp(), \"Timestamp\"); \n\t\t//reader.printValues(reader.getPath(), \"Path\");\n\t\treader.printValues(reader.getMethod(), \"Method\");\n\t}", "public static void readDataFile(String INPUT_FILENAME) {\r\n File dataFile = new File(INPUT_FILENAME);\r\n Scanner fileScanner = null;\r\n String oneLine;\r\n String [] lineValues;\r\n int lineCount = 0;\r\n \r\n System.out.println(\"Reading data file...\");\r\n System.out.println();\r\n \r\n try {\r\n fileScanner = new Scanner(dataFile);\r\n }\r\n catch (FileNotFoundException e) {\r\n System.err.println(\"FILE NOT FOUND: \" + INPUT_FILENAME);\r\n System.exit(1);\r\n }\r\n \r\n while (fileScanner.hasNextLine()) {\r\n oneLine = fileScanner.nextLine();\r\n lineValues = oneLine.split(\",\");\r\n lineCount++;\r\n \r\n if (lineValues[0].equalsIgnoreCase(\"REALTOR\")) {\r\n if (lineValues[1].equalsIgnoreCase(\"ADD\")) {\r\n addRealtor(lineValues);\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"formatted correctly to ADD an object.\");\r\n }\r\n } else if (lineValues[0].equalsIgnoreCase(\"PROPERTY\")) {\r\n if (lineValues[1].equalsIgnoreCase(\"ADD\")) {\r\n addProperty(lineValues);\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"formatted correctly to ADD an object.\");\r\n }\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"designated as REALTOR or PROPERTY.\");\r\n }\r\n }\r\n \r\n //Close data file\r\n fileScanner.close();\r\n \r\n System.out.println();\r\n System.out.println(\"Data Read Finished: Read \" + lineCount \r\n + \" lines of data.\");\r\n System.out.println();\r\n }", "public static void main(String[] args) throws Exception {\n FileReader r = new FileReader(quotesFile);\n BufferedReader someQuotes = new BufferedReader(r);\n\n // reformat the file\n reformat(someQuotes);\n\n someQuotes.close();\n }", "@Test\n public void givenStateCensusAnalyserFile_WhenImproperFileName_ReturnsException() {\n String CSV_FILE_PATH = \"src/test/resources/StateCensus.jpg\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n } catch (CSVBuilderException e) {\n Assert.assertEquals(CSVBuilderException.TypeOfException.NO_FILE_FOUND, e.typeOfException);\n }\n }", "public static void main(String[] args) {\n\t\tCalculatorFacade cFacade = new CalculatorFacade();\r\n\t\ttry {\r\n\r\n\t\t\tcFacade.doProcessData(Constants.FILE_NAME, args[2], args[4],\r\n\t\t\t\t\targs[6], args[8]);\r\n\t\t} catch (FileReadException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out\r\n\t\t\t.println(\"**************** Invalid Input **********************\");\r\n\t\t\tSystem.out\r\n\t\t\t.println(\"****************GroupByColumn=Rating CalculationColumns= WTX | SUM : SOX | AVG**********************\");\r\n\t\t\tSystem.out\r\n\t\t\t.println(\"****************Giving Default Input**********************\");\r\n\t\t\ttry {\r\n\t\t\t\t//cFacade.doProcessData(Constants.FILE_NAME, \"WTX\", \"SUM\", \"SOX\",\t\"AVG\");\r\n\t\t\t\tcFacade.doProcessData(Constants.FILE_NAME, \"WTX\", Constants.SUM, \"SOX\", Constants.AVG);\r\n\t\t\t} catch (FileReadException e1) {\r\n\t\t\t\tSystem.out\r\n\t\t\t\t.println(\"****************Something Went Wrong with Input file**********************\");\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n for (String arg : args) {\n if (arg.split(\"=\").length != 2) {\n continue;\n }\n if (arg.startsWith(\"filePath=\")) {\n filePath = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"showTop=\")) {\n showTop = Integer.valueOf(arg.split(\"=\")[1]);\n } else if (arg.startsWith(\"warnTime=\")) {\n warnTime = Integer.valueOf(arg.split(\"=\")[1]);\n } else if (arg.startsWith(\"maxCountLine=\")) {\n maxCountLine = Long.valueOf(arg.split(\"=\")[1]);\n } else {\n System.out.println(\"unknow arg:\" + arg);\n System.out.println(helpInfo);\n System.exit(0);\n }\n }\n System.out.println(\"filePath=\" + filePath + \" maxCountLine=\" + maxCountLine + \" showTop=\" + showTop + \" warnTime=\" + warnTime);\n\n long beginTime = System.currentTimeMillis();\n File dir = new File(filePath);\n if (dir.isDirectory()) {\n for (File file : dir.listFiles()) {\n loadData(file);\n }\n } else if (dir.isFile()) {\n loadData(dir);\n }\n printStat();\n printWarnStatMap();\n System.out.println(\"readLine:\" + readLine + \" countLine:\" + countLine + \" useTime:\" + (System.currentTimeMillis() - beginTime));\n }", "public boolean readDataFile();" ]
[ "0.6301555", "0.54929984", "0.54902256", "0.54819643", "0.5470514", "0.54481214", "0.5398735", "0.53720146", "0.5332749", "0.53146696", "0.5299102", "0.5295793", "0.5275543", "0.5260843", "0.52559656", "0.5221874", "0.52198416", "0.52148205", "0.5201149", "0.5197805", "0.51893765", "0.5179136", "0.51760477", "0.5169116", "0.51271397", "0.51101583", "0.5107531", "0.5092504", "0.5090593", "0.5088106", "0.5079484", "0.5058825", "0.50562906", "0.5054963", "0.5050896", "0.5049833", "0.5041212", "0.50166184", "0.50075746", "0.49928027", "0.49899715", "0.49881843", "0.49867418", "0.49850202", "0.4983875", "0.49836752", "0.49796048", "0.497714", "0.4964664", "0.495797", "0.4944131", "0.49333757", "0.4930827", "0.4927324", "0.4924979", "0.492413", "0.49190682", "0.49180296", "0.48989165", "0.4887114", "0.48835954", "0.48729482", "0.48721275", "0.48645836", "0.48621067", "0.48466355", "0.48449773", "0.48261732", "0.48179284", "0.48111948", "0.4810164", "0.4808314", "0.47980392", "0.47966045", "0.47957632", "0.47939587", "0.47930023", "0.47915646", "0.47877336", "0.47865716", "0.47841132", "0.47808057", "0.4776804", "0.47656175", "0.47654867", "0.475756", "0.4754837", "0.47546384", "0.47517842", "0.47517085", "0.47497928", "0.47479048", "0.47476378", "0.4743881", "0.47435236", "0.47382423", "0.47361133", "0.47347653", "0.47343808", "0.47300908" ]
0.7233758
0
Print the fizzbuzz output to the console using the given fizz number, buzz number, and the highest number to test (starting from 1).
protected static void printFizzBuzz(final int fizzNum, final int buzzNum, final int topNum) { if(topNum > 1) { for(int i = 1; i <= topNum; i++) { String output = ""; if(isFizzBuzz(fizzNum, buzzNum, i)) { output = "FB"; } else if(isBuzz(buzzNum, i)) { output = "B"; } else if(isFizz(fizzNum, i)) { output = "F"; } else { output = String.valueOf(i); } System.out.print(output + " "); } } System.out.println(); // print a new line as the end of this test case. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\n //ask or integer\nSystem.out.println(\"Please enter a positive integer to see the FizzBuzz numbers\");\nint num = input.nextInt();\n// decalre and initialize count\nint count = 0;\nwhile(count < num){\n //increase value on count by 1\n count = count + 1;\n //check for fizz buzz answers\n if ((count % 5 == 0) && (count % 3 == 0)){System.out.println(\"You should say FizzBuzz\");\n } else if ((count % 3 == 0)){\n System.out.println(\"You should say Buzz\");\n }else if ((count % 5 == 0)){\n System.out.println(\"You should say Buzz\");\n }else if ((count % 3 !=0) && (count % 5 !=0)){\n System.out.println(\"You should say\" + \" \" + count);\n }\n}\r\n \r\n }", "public void fizzBuzz(int upperRange)\n {\n for(int i = 1; i <= upperRange; i++) {\n if ((i % 3 == 0) && (i % 5 == 0))\n {\n System.out.println(\"FizzBuzz\");\n }\n else if (i % 3 == 0) {\n System.out.println(\"Fizz\");\n }\n else if (i % 5 == 0) {\n System.out.println(\"Buzz\");\n }\n else\n {\n System.out.println(i);\n }\n }// end for\n }", "public static void main(String[] args) {\n\t\tString fizzBuzz = \"FizzBuzz\";\n\t\t\n\t\tfor(int count = 1; count <101; count++){\n\t\t\tif ((count%3==0) && (count%5)==0){\n\t\t\t\tSystem.out.println(fizzBuzz);\n\t\t\t}\n\t\t\telse if(count%3==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(0, 4));\n\t\t\t}\n\t\t\telse if(count%5==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(4, fizzBuzz.length()));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(count);\n\t\t\t}\n\t\t}\n\t}", "public void fizzBuzzBar(int upperRange)\n {\n String result = \"\";\n for(int i = 1; i <= upperRange; i++) {\n if (i % 3 == 0) {\n result += \"Fizz\";\n }\n if (i % 5 == 0) {\n result += \"Buzz\";\n }\n if(i % 7 == 0)\n {\n result += \"Bar\";\n }\n if( result.isEmpty())\n {\n result += String.valueOf(i);\n }\n System.out.println(result);\n\n result = \"\";\n }// end for\n }", "public static void main(String[] args) {\n for (int i = 1; i <= 100; i++) {\n System.out.println(FizzBuzz.fizzBuzzValue(i));\n }\n }", "public static void main(String[] args){\n for(int i = 1; i <= 100; i++){\n\n //prints Fizz if i is divisible by 3\n if(i % 3 == 0)\n System.out.print(\"Fizz\");\n //prints Buzz if i is divisible by 5\n if(i % 5 == 0)\n System.out.print(\"Buzz\");\n //prints i number if not divisible by 3 or 5\n if(i % 3 != 0 && i %5 != 0)\n System.out.print(i);\n //goes to next line\n System.out.println();\n\n }\n\n }", "public static Say fizzBuzz(int number){\n StringBuilder message = new StringBuilder();\n\n for (int i = 1; i <= number; i++){\n if (i % 3 == 0 && i % 5 == 0) {\n message.append(\"Fizz Buzz\");\n } else if (i % 3 == 0) {\n message.append(\"Fizz\");\n } else if (i % 5 == 0) {\n message.append(\"Buzz\");\n } else {\n message.append(Integer.toString(i));\n }\n message.append(\"...\");\n }\n message.append(\"....Thank you for playing Phone Buzz!\");\n return new Say.Builder(message.toString()).build();\n }", "public void print(int i) throws FizzException, BuzzException {\n\n if (i%3==0) throw new FizzException();\n if (i%5==0) throw new BuzzException();\n\n System.out.println(i);\n }", "public static void main(String[] args) {\n\n for(int i=0;i<16;i++){\n if ((i%3)==0 || (i%5)==0){\n System.out.println(\"fuzzBuzz\");\n }else if ((i%3)==0){\n System.out.println(\"fuzz\");\n }else if((i%5)==0){\n System.out.println(\"buzz\");\n }else\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num1 = scanner.nextInt();\n int num2 = scanner.nextInt();\n\n for (; num1 <= num2; num1++) {\n if (num1 % 3 == 0) {\n if (num1 % 5 == 0) {\n System.out.println(\"FizzBuzz\");\n } else {\n System.out.println(\"Fizz\");\n }\n } else if (num1 % 5 == 0) {\n System.out.println(\"Buzz\");\n } else {\n System.out.println(num1);\n }\n }\n }", "public static void main(String[] args) {\n\t // Call fizzBuzz method and verify correct output\t\n\t}", "public static void main(String arg[]) {\n\t\tint no, i;\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter range of numbers\");\n\t\tno = s.nextInt();\n\t\tfor (i = 1; i <= no; i++) {\n\t\t\tif ((i % (3 * 5)) == 0) {\n\t\t\t\tSystem.out.println(\"FizzBuzz\\n\");\n\t\t\t} else if ((i % 5) == 0) {\n\t\t\t\tSystem.out.println(\"Buzz\\n\");\n\t\t\t} else if ((i % 3) == 0) {\n\t\t\t\tSystem.out.println(\"Fizz\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "private static void LessonFizzBuzzLab() {\n //Write a loop that counts from 0-100\n for(int index=0; index <= 100; index++) {\n //If the value is divisible by 15 print \"FizzBuzz\"\n if(index%3 == 0 && index%5 == 0) {\n //If the value is divisible by 3 print \"Fizz\"\n System.out.println(\"FizzBuzz\");\n } else if(index%3 == 0) {\n System.out.println(\"Fizz\");\n //If the value is divisible by 5 print \"Buzz\"\n } else if(index%5 == 0) {\n System.out.println(\"Buzz\");\n //If the value is not divisible by 3,5, or 15 simply print the number\n } else {\n System.out.println(index);\n }\n }\n //Write code that will throw an exception (other than the ones we covered in the lesson) and catch it.\n String[] myStrArray = new String[2];\n myStrArray[0] = \"Hello\";\n myStrArray[1] = \"Hello\";\n try {\n System.out.println(myStrArray[2]);\n } catch(ArrayIndexOutOfBoundsException error){\n System.out.println(error);\n }\n }", "public static void main(String[] args) {\n\n for( int i=1 ; i<=5 ; i++ ){\n System.out.println(\"i = \"+i);\n System.out.println(\"Happy Birthday SEDA CIVAN\");\n\n }\nfor(int x=10;x>=1;--x){\n System.out.println(x);\n}\n System.out.println(\"-------------------------------\");\nfor (int number=0;number<=100 ;number+=2){\n System.out.print(number+\" \");\n}\n System.out.println(\"-------------------------------\");\n\nfor(int x=0 ; x<100 ; x+= 3 ){\n System.out.print(x+\" \");\n}\n System.out.println();\n System.out.println(\"-------------------------even number------\");\n for (int i = 0; i <100 ; i++) {\n if(i%2==0){\n System.out.print(i+\" \");\n }\n\n //THE SHORT CUT FOR GENERATING FOR LOOP IS : fori enter or tab\n\n }\n System.out.println();\n System.out.println(\"-------------------------------\");\n for (int q = 0; q < 100; q++) {\n if (q%5==0 && q%3==0){\n System.out.println(q+\" fizz buzz number\");\n }\n\n }\n\n//everything you can do with for loop --> can be done using while loop !!!!\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tFizzBuzz fb = new FizzBuzz();\n\t\t\n\t\tfor (int i=1;i<101;i++){\n\t\t\tSystem.out.println(fb.speak(i));\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i < 100; i++) {\r\n\t\t\tif (i % 3 == 0)\r\n\t\t\t\tSystem.out.print(\"Flizz \");\r\n\t\t\telse if (i % 5 == 0)\r\n\t\t\t\tSystem.out.print(\"Buzz \");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.print(i+\" \");\r\n\t\t}\r\n\t}", "public static String printbyF(int n) {\n\t\tif (n < 1) {\n\t\t\tSystem.out.println(\"Invalid Input Number!! n Cannot Be Less Than 1!!\");\n\t\t\treturn \"Invalid\";\n\t\t}\n\t\tint Fibonacci = getFibonacci(n);\n\t\tif (isPrime(Fibonacci)) {\n\t\t\tSystem.out.println(\"BuzzFizz\");\n\t\t\treturn \"BuzzFizz\";\n\t\t}else if(Fibonacci%15==0){\n\t\t\tSystem.out.println(\"FizzBuzz\");\n\t\t\treturn \"FizzBuzz\";\n\t\t}else if(Fibonacci%5==0){\n\t\t\tSystem.out.println(\"Fizz\");\n\t\t\treturn \"Fizz\";\n\t\t}else if(Fibonacci%3==0){\n\t\t\tSystem.out.println(\"Buzz\");\n\t\t\treturn \"Buzz\";\n\t\t}else{\n\t\t\tSystem.out.println(Fibonacci);\n\t\t\treturn Integer.toString(Fibonacci);\n\t\t}\n\t}", "public static void main(final String[] args) throws Exception {\n\t\tif(args.length < 1) throw new IllegalArgumentException(\"Cannot run the fizz-buzz algorithm without a data file.\");\n\t\t\n\t\tString fileName = args[0];\n\t\tFile inputFile = new File(fileName);\n\t\tif((!inputFile.exists()) || (!inputFile.canRead())) throw new FileNotFoundException(\"Cannot find or read the given file (\" + fileName + \").\");\n\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(inputFile));\n\t\tString line;\n\t\twhile((line = br.readLine()) != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\tString fNumString = st.nextToken();\n\t\t\tString bNumString = st.nextToken();\n\t\t\tString tNumString = st.nextToken();\n\t\t\t\n\t\t\tint fNum = Integer.parseInt(fNumString);\n\t\t\tint bNum = Integer.parseInt(bNumString);\n\t\t\tint tNum = Integer.parseInt(tNumString);\n\t\t\t\n\t\t\tprintFizzBuzz(fNum, bNum, tNum);\n\t\t}\n\t\t\n\t\tbr.close();\n\t}", "public static void main(String[] args) {\n Scanner klav = new Scanner(System.in);\n int skaicius;\n\n System.out.println(\"Iveskite sveikaji skaiciu\");\n skaicius = klav.nextInt();\n if(skaicius % 15 == 0){\n System.out.println(\"fizzbuzz\");\n }\n if(skaicius % 15 != 0 && skaicius % 3 == 0){\n System.out.println((\"fizz\"));\n }\n if(skaicius % 15 != 0 && skaicius % 3 != 0 && skaicius % 5 == 0){\n System.out.println(\"buzz\");\n }\n if (skaicius % 3 != 0 && skaicius % 5 != 0){\n System.out.println(\"Ivedete ne FIZZBUZZINI skaiciu!\");\n }\n }", "public static void main(String[] args) {\n\n\n System.out.println(\"pick a number up to 100\");\n\n Scanner user = new Scanner(System.in);\n\n\n int u;\n u = user.nextInt();\n\n\n int Max = 100;\n int Min = 1;\n\n\n if (u > 0 && u <= 100) {\n\n if (u % 3 == 0 && u % 5 == 0) {\n System.out.println(\"fizz buzz\");\n\n\n } else if (u % 3 == 0) {\n System.out.println(\"fizz\");\n\n } else if (u % 5 == 0) {\n\n System.out.println(\"buzz\");\n }\n } else if (u > 100)\n {\n System.out.println(u);\n\n }\n\n\n\n System.out.println(\"please enter your grade\");\n\n Scanner grade = new Scanner(System.in);\n int g;\n g = grade.nextInt();\n\n\n if (g >= 80){\n System.out.println(\"you got an A!\");\n }else if(g <= 79 || g>= 60) {\n System.out.println(\"you got an B!\");\n }else if(g <= 59 || g >= 50) {\n System.out.println(\"you got an C!\");\n }else if(g <= 49 || g >=45 ) {\n System.out.println(\"you got an D!\");\n }else if(g < 45) {\n System.out.println(\"you got an F!\");\n\n }\n\n System.out.println(\"Good job!\");\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t\t}\n\t}", "private List<FizzBuzzEntry> getFizzBuzzOutput(int start, int end) {\n\n\t\tList<FizzBuzzEntry> output = new LinkedList<FizzBuzzEntry>();\n\t\t\n\t\t/*\n\t\t * I used a LinkedList to ensure the Fizz Buzz output is going to keep\n\t\t * its original order\n\t\t */\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), \"Fizz Buzz\"));\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t/* \n\t\t\t\t * The if above \"if\" not on the solution I was given but the traditional \n\t\t\t\t * FizzBuzz problem tells you to show Fizz Buzz if the number is mod 3 and mod 5\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), \"Fizz\"));\n\t\t\t\t}\n\t\t\t\tif (i % 5 == 0) {\n\t\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), \"Buzz\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), Integer\n\t\t\t\t\t\t.toString(i)));\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public static void main(final String[] args) {\n\t\tnew FizzBuzzOutputGenerator().getFizzBuzzStream(1, 100).forEach(System.out::print);\n\t}", "public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}", "protected static boolean isFizz(final int fizzNum, final int num) {\n\t\treturn num % fizzNum == 0;\n\t}", "@Test\n\tpublic void test1() {\n\t\tint n = 3;\n\t\tSystem.out.println(Arrays.toString(fizzBuzz(n)));\n\t\tSystem.out.println(Arrays.toString(fizzBuzzTwoPointer(n)));\n\t}", "static Stream<String> toFizzBuzzStream(IntStream intStream) {\n \treturn intStream\n .boxed()\n .map(x -> (x%3==0? \"Fizz\": \"\") + (x%5==0? \"Buzz\": \"\")+ ((x%3!=0)&&(x%5!=0)? x: \"\"));\n }", "public void fizzBuzzTest() {\n FizzBuzz fizzBuzz = new FizzBuzz();\n String[] resultArray = {fizzBuzz.detect(15), fizzBuzz.detect(3), fizzBuzz.detect(5), fizzBuzz.detect(4)};\n\n for (int i = 0; i < resultArray.length ; i++) {\n if (resultArray[i].equals(expectedResultArray[i])) {\n System.out.println(expectedResultArray[i] + \" test = OK\");\n } else {\n System.out.println(expectedResultArray[i] + \" test = FAIL\");\n }\n }\n\n }", "public static void printFibbonacci(int limitNumber){\n\t\tint number = 0;\n\t\tint lastNumber =0;\n\t\tArrayList<Integer> fibbonacciSequanse = new ArrayList<Integer>();\n\t\twhile(lastNumber < limitNumber){\n\t\tif(number == 0){\n\t\t\tfibbonacciSequanse.add(0);\n\t\t\tlastNumber = fibbonacciSequanse.get(fibbonacciSequanse.size()-1);\n\t\t\t\n\t\t}\n\t\telse if(number == 1){\n\t\t fibbonacciSequanse.add(1);\n\t\t fibbonacciSequanse.add(number+(number-1));\n\t\t lastNumber = fibbonacciSequanse.get(fibbonacciSequanse.size()-1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t lastNumber = fibbonacciSequanse.get(fibbonacciSequanse.size()-1);\n\t\t\tint secondLast = fibbonacciSequanse.get(fibbonacciSequanse.size()-2);\n\t\t\tif((lastNumber+secondLast)>limitNumber){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfibbonacciSequanse.add(lastNumber+secondLast);\n\t\t\t lastNumber = fibbonacciSequanse.get(fibbonacciSequanse.size()-1);\n\t\t}\n\t\tnumber++;\n\t}\n\t\t\n\t\t// display the fibbonacci seriese \n\t\tfor(Integer num :fibbonacciSequanse){\n\t\t\tSystem.out.print(\" \"+num);\n\t\t}\n\t}", "protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) {\n\t\treturn isFizz(fizzNum, num) && isBuzz(buzzNum, num);\n\t}", "void showFaithCards(int first, int second, int third);", "public String speak(int i) {\n\t\tString spoken = Integer.toString(i);\n\t\t\n if ((i%15)==0){\n\t\t\tspoken = \"FizzBuzz\";\n return spoken;\n\t\t}\n \n \n\t\tif ((i%5)==0){\n\t\t\tspoken = \"Buzz\";\n return spoken;\n\t\t}\n\t\t\n\t\tif ((i%3)==0){\n\t\t\tspoken = \"Fizz\";\n return spoken;\n\t\t}\n\t\t\n\t\treturn spoken;\n\t}", "public static void main(String[] args) throws IOException{\n Scanner f = new Scanner(System.in);\n //BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int testCases = f.nextInt();\n for(int i = 0; i < testCases; i++){\n int numFloors = f.nextInt();\n Integer[] floors = new Integer[numFloors];\n for(int j = 0; j < numFloors; j++){\n floors[j] = f.nextInt();\n }\n Arrays.sort(floors, new Comparator<Integer>() {\n @Override\n public int compare(Integer integer, Integer t1) {\n int size1 = Math.abs(integer);\n int size2 = Math.abs(t1);\n if(size1 == size2){\n return 0;\n }\n return size1-size2;\n }\n });\n int max = 0;\n int prev = 0;\n for(int j = 0; j < numFloors; j++){\n if(prev == 0 || (floors[j] > 0 && prev < 0) || (floors[j] < 0 && prev > 0)){\n max++;\n prev = floors[j];\n }\n }\n out.println(max);\n }\n f.close();\n out.close();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"fizzArray is-->\"+Arrays.toString(fizzArray(4)));\r\n\r\n\t}", "public static void main(String[] args) {\n\n int targetFacNum = 4;\n System.out.println(targetFacNum + \" factorial result: \");\n System.out.print(fac(targetFacNum));\n }", "public static void main(String[] args) {\n\t\tfor(int i=1; i<=100;i++){\n\t\t\tSystem.out.println(\"Factors of a Number\"+i+\" are: \");\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tif(i%j==0){\n\t\t\t\t\tSystem.out.println(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.print(\"[\");\r\n\t\tfor(int i=1; i<=100; i++)\r\n\t\t{\r\n\t\t\tif(isPerfectNumber(i))\r\n\t\t\tSystem.out.print(i + \" \");\t\r\n\t\t}\r\n\t\tSystem.out.println(\"]\");\r\n\t}", "@RequestMapping(\"/\")\n\n public String printNumbers(){\n\n String result=\"\";\n/*\n for(int i=1;i<=100;i++ ){\n\n if(i%3==0&&i%5==0)\n result+=\"FizzBuzz\"+\"\\n\";\n\n else if (i%3==0)\n result+=\"Fizz\"+\"\\n\";\n\n else if(i%5==0)\n result+=\"Buzz\"+\"\\n\";\n else\n result+=Integer.toString(i)+\"\\n\";\n\n }\n*/\n//With the bonus...\n\n int count7=0,count17=0,count23=0;\n System.out.println(\"Enter the ending number: \");\n Scanner scanner = new Scanner(System.in);\n int endingNumber = scanner.nextInt();\n\n for(int i=1;i<=endingNumber;i++ ){\n\n if(i%3==0&&i%5==0)\n result+=\"FizzBuzz\"+\"\\n\"+\"<br/>\";\n\n else if (i%3==0)\n result+=\"Fizz\"+\"\\n\"+\"<br/>\";\n\n else if(i%5==0)\n result+=\"Buzz\"+\"\\n\"+\"<br/>\";\n else\n result+=Integer.toString(i)+\"\\n\"+\"<br/>\";\n\n if(i%7==0)\n count7++;\n if(i%17==0)\n count17++;\n if(i%23==0)\n count23++;\n\n }\n\n System.out.println(result);\n result+=\"Number of multiples of 7:\"+count7+\"\\n\"+\"<br/>\"+\"Number of multiples of 17:\"+count17+\"\\n\"+\"<br/>\"+\"Number of multiples of 23:\"+count23+\"\\n\"+\"<br/>\";\n return result;\n }", "@Test\r\n\tpublic void testEvery15thElement() {\r\n\t\tfor (int i = 14; i < fb.fizzBuzzed().length; i+=15) {\r\n\t\t\t\tAssert.assertEquals(\"FizzBuzz\", fb.fizzBuzzed()[i]);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ask users to enter a number\n\t\tSystem.out.println(\"Please enter a number to see Fib numbers\");\n\t\tint num = scan.nextInt();\n\t\t\n\t\t\n\t\t//use the method to print Fibonacci series up to the number\n\t\tprintFibonacci(num);\n\t\t\n\t\tscan.close();\n\n\t}", "public static void main(String[] args) {\n\t\tprintFactors(32);\r\n\t\t//System.out.println(printFactors(-1));\r\n\t}", "public static void fiftyFifty (Console menu, int rnd){\r\n\r\n\t\t FF=true;\r\n\t\t //d\r\n\t\t if (rnd==0)\r\n\t\t {\r\n\t\t\t //a\r\n\t\t\t menu.setCursor(27,13);\r\n\t\t\t menu.print(\" \");\r\n\t\t\t //c\r\n\t\t\t menu.setCursor(36,13);\r\n\t\t\t menu.print(\" \");\r\n\t\t }\r\n\t\t //b\r\n\t\t else if (rnd==1)\r\n\t\t {\r\n\t\t\t //d\r\n\t\t\t menu.setCursor(36,52);\r\n\t\t\t menu.print(\" \");\r\n\t\t\t //c\r\n\t\t\t menu.setCursor(36,13);\r\n\t\t\t menu.print(\" \");\r\n\t\t }\r\n\t\t //a\r\n\t\t else if (rnd==2)\r\n\t\t {\r\n\t\t\t //b\r\n\t\t\t menu.setCursor(27,52);\r\n\t\t\t menu.print(\" \");\r\n\t\t\t //d\r\n\t\t\t menu.setCursor(36,52);\r\n\t\t\t menu.print(\" \");\r\n\t\t }\r\n\t\t //c\r\n\t\t else\r\n\t\t {\r\n\t\t\t //a\r\n\t\t\t menu.setCursor(27,13);\r\n\t\t\t menu.print(\" \");\r\n\t\t\t //d\r\n\t\t\t menu.setCursor(36,52);\r\n\t\t\t menu.print(\" \");\r\n\t\t } \r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Type number for fabonacci : \");\n\t\tScanner scanner = new Scanner(System.in);\n\t\t int number = scanner.nextInt();\n\t\t \n\t\t for(int m=1;m<=number;m++) {\n\t\tint result= fabi(m);\n\t System.out.println(\" Loop : \" + result);\n\n\t\t }\n\t\t \n\t\tint result1= fabi1(number);\n\t\tSystem.out.println(\" Recursion : \"+result1);\n scanner.close();\n \n\t}", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tRandom rnd = new Random();\n\t\tint n = rnd.nextInt(999) + 1;\n\t\tint s[] = fac(n);\n\t\tSystem.out.println(\"Á`¦@\" + n);\n\t\tSystem.out.println(s[0] + \"¤d\"+s[1] + \"¨Õ\"+s[2] + \"¬B\"+s[3] + \"¤¸\");\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tboolean Prime = true;\n\t\tint n=20;\n\t\tfor (int i=1;i<n;i++) {\n\t\t\tif (n%i==0) {\n\t\t\t\tSystem.out.println(\"Factor Number is \" +i);\n\t\t\t\t//Prime=false;\n\t\t\t\t//break;\n\t\t\t}\n\t\t}\n\t\n\t\n\n\t}", "public static void Factorization(int number)\n\t{\n\t\t for(int i = 2; i< number; i++)\n\t\t {\n\t while(number%i == 0) \n\t {\n\t System.out.print(i+\" \");\n\t number = number/i;\n\t\t\n\t }\n\t \n\t }\n \n if(2<=number)\n {\n System.out.println(number);\n }\n \n }", "public static void main(String[] args) {\n\r\n\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter a number to find its factorial\");\r\n int n = sc.nextInt();\r\n\r\n for(int i = 1 ; i<=n; i++)\r\n {\r\n if(n % i ==0) {\r\n System.out.println(i + \" is factorial\");\r\n }\r\n }\r\n\r\n }", "private String[] fizzBuzz(int n) {\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tfor (int i = 1; i <= n; i++) { //O(n)\n\t\t\t// Put map with i and value if i is divisible by 5\n\t\t\t// and 3 put FizzBuzz\n\t\t\tif (i % 3 == 0 && i % 5 == 0)\n\t\t\t\tmap.put(i, \"FizzBuzz\");\n\t\t\t// if i is divisible by 3 put as Fizz\n\t\t\telse if (i % 3 == 0)\n\t\t\t\tmap.put(i, \"Fizz\");\n\t\t\t// if i is divisible by 5 put as FizzBUzz\n\t\t\telse if (i % 5 == 0)\n\t\t\t\tmap.put(i, \"Buzz\");\n\t\t\telse\n\t\t\t\tmap.put(i, i + \"\");\n\t\t}\n//return Map values as String []\n\t\tString[] str = new String[n];\n\t\tfor (int i = 0; i <= n - 1; i++) { //O(n)\n\t\t\tstr[i] = map.get(i + 1);\n\t\t}\n\t\treturn str;\n\t}", "public static void main(String[] args) {\n\t\tFastReader t = new FastReader();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint test = t.nextInt();\n\n\t\twhile (test-- > 0) {\n\t\t\tint n = t.nextInt();\n\t\t\tSet<Integer> set = new HashSet<>();\n\t\t\tint max = 0;\n\t\t\tint[] a = new int[n];\n\t\t\tint idx = 0;\n\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint v = t.nextInt();\n\t\t\t\ta[i] = v;\n\n\t\t\t\tif (max < v) {\n\t\t\t\t\tmax = v;\n\t\t\t\t\tidx = i;\n\t\t\t\t}\n\n\t\t\t\tset.add(i);\n\t\t\t}\n\n\t\t\to.print(max + \" \");\n\t\t\tset.remove(idx);\n\n\t\t\tint cur = max;\n\n\t\t\twhile (set.size() > 0) {\n\t\t\t\tmax = 0;\n\t\t\t\tidx = -1;\n\n\t\t\t\tfor (int i : set) {\n\t\t\t\t\tint gcd = gcd(Math.min(a[i], cur), Math.max(a[i], cur));\n\n\t\t\t\t\tif (gcd > max) {\n\t\t\t\t\t\tmax = gcd;\n\t\t\t\t\t\tidx = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (max == 1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcur = max;\n\n\t\t\t\to.print(a[idx] + \" \");\n\t\t\t\tset.remove(idx);\n\t\t\t}\n\n\t\t\tfor (int i : set)\n\t\t\t\to.print(a[i] + \" \");\n\n\t\t\to.println();\n\t\t}\n\n\t\to.flush();\n\t\to.close();\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(findAthFibonacci(10));\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter number between 1 and 100:\");\n int n = input.nextInt();\n while(n < 1 || n >100){\n System.out.print(\"Enter number between 1 and 100:\");\n n = input.nextInt();\n }\n FrisBee(n);\n }", "public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\r\n\tSystem.out.println(\"Enter the integer:\");\r\n\tint input=scan.nextInt();\r\n\tint nth=nthfibonaccinumber(input);\r\n\tSystem.out.println(\"Nth fibonacci number is:\" +nth );\r\n\t\r\n\r\n }", "public static void main(String[] args) {\n\t\tint i;\n\t\tfor(i=1;i<=10;i++)// print 1 to 10\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tfor(int x=10;x>=1;x--)// print 10 to 1\n\t\t{\n\t\t\tSystem.out.println(x);\n\t\t}\n\t\tfor(int z=1;z<=10;z++)// print 1 to 10 except 6\n\t\t{\n\t\t\tif(z!=6)\n\t\t\t{\n\t\t\tSystem.out.println(z);\n\t\t}\n\t}\n\n}", "public static void main(String[] args) {\n\t\t\n\t\tint x = 0;\n\t\t\n\t\twhile (x <= 100) {\n\t\t\tif( x % 2 == 0) {\n\t\t\tSystem.out.println(x);\n\t\t\t}x ++;\n\t\t}\n\t\t\n\t\t// A while loop that prints every 3rd number going backwards from 100 to 0\n\t\t\n\t\tint y = 100;\n\t\t\n\t\twhile (y >= 0) {\n\t\t\tSystem.out.println(y);\n\t\t\ty -= 3;\n\t\t}\n\t\t\n\t\t// A for loop that prints every other number from 1 to 100\n\t\t\n\t\tfor (int i = 1; i <= 100; i += 2) {\n\t\t\t\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\t\t\n\t\t// A for loop that prints every number from 0 to 100. If divisible by 3 print \"Hello\". If divisible by 5 print\n\t\t// the word \"World\". If divisible by both 3 and 5 print \"Hello World\".\n\t\t\n\t\tfor (int z = 0; z <= 100; z++) {\n\t\t\tif (z % 3 == 0 && z % 5 == 0) {\n\t\t\t\tSystem.out.println(\"HelloWorld\");\n\t\t\t} else if(z % 3 == 0) {\n\t\t\t\tSystem.out.println(\"Hello\");\n\t\t\t} else if ( z % 5 == 0) {\n\t\t\t\tSystem.out.println(\"World\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(z);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public static void printFibonacci(int number) {\n\t\tint number1 = 1, number2=2;\n\t\t//and print the numbers since they are part of fib series\n\t\tSystem.out.print(number1+\" \"+number2+\" \");\n\t\t//to find the fib numbers up to a number, use for loop\n\t\tfor(int i=0; i<=number; i++) {\n\t\t\tint fibNumber = number1+number2;\n\t\t\tnumber1 = number2;//after each loop number1 should increase to number2\n\t\t\tnumber2 = fibNumber;//and number2 should be the total which is fibNumber\n\t\t\t//if fibNumber is equal to or bigger then given number break the loop\n\t\t\tif(fibNumber==number || fibNumber>number) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//print the fibnumbers\n\t\t\tSystem.out.print(fibNumber+\" \");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint n=10;\n\t\tSystem.out.println(\"THE \"+n+ \"th fibonacci number is \" +Fibo(n));\n\t\t\n\n\t}", "public static void main(String[] args) {\n\n int i = 5;\n while (i <= 15) {\n System.out.println(\"i is \" + i);\n i++;\n }\n doWhile();\n forLoop();\n FizzBuzz();\n Tables();\n gradesNumber();\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner (System.in);\r\n\t\tSystem.out.print(\"Enter number to check whether it is Fibonacci or not : \");\r\n\t\tint n = sc.nextInt();\r\n\t\tint a=0,b=1,c=0;\r\n while(c<n) \r\n\t\t{\r\n\t\t\tc=a+b; \r\n\t\t\ta=b; \r\n\t\t\tb=c; \r\n\t\t}\r\n\t\tif(n==c)\r\n\t\t{\r\n\t\t\tSystem.out.println(n+\" is a Fibonacci Number\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(n+\" is not a Fibonacci Number\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n int index = 1; //starting with 2 already done.\r\n int targetIndex = 10001; //we're looking for the 10 001st prime number\r\n int value = 2;\r\n while (index < targetIndex) {\r\n value++;\r\n if (isPrime(value)) {\r\n index++;\r\n }\r\n }\r\n System.out.println(value);\r\n\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(factorial(6));\r\n\t\tSystem.out.println(fibbo(6));\r\n\t}", "public static void main(String[] args) {\n\t\tint result = 77;\r\n\t\tif(result >= 90) {\r\n\t\t\tif(result >= 95) {\r\n\t\t\t\tSystem.out.println(\"A+ 학점\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"A 학점\");\r\n\t\t\t}\r\n\t\t} else if (result >= 80) {\r\n\t\t\tif(result >= 85) {\r\n\t\t\t\tSystem.out.println(\"B+ 학점\");\r\n\t\t\t} else {\r\n\t\t\tSystem.out.println(\"B 학점\");\r\n\t\t\t}\r\n\t\t} else if (result >= 70) {\r\n\t\t\tif(result >= 75) {\r\n\t\t\t\tSystem.out.println(\"C+ 학점\");\r\n\t\t\t} else {\r\n\t\t\tSystem.out.println(\"C 학점\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"F 학점\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n System.out.println(fibo(6));\n }", "public static void main(String[] args) {\n\n\t\tint number = 20;\n\n\t\twhile (number >= 2) {\n\t\t\tSystem.out.println(number);\n\t\t\tnumber -= 2;\n\n\t\t}\n\t\tSystem.out.println(\"--------01------------\");\n\n\t\tint num = 2;\n\n\t\twhile (num <= 20) {\n\t\t\tSystem.out.println(num);\n\t\t\tnum += 2;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tint n = 100;\n\t\tSystem.out.println(largestPrimeFactor(n));\n\t}", "public static void bigNumber(int num) {\n\n if (num <= 5) {\n System.out.println(\"\");\n } else {\n int i = 0;\n while (i <= num) {\n if (i != 4) {\n System.out.println(i);\n }\n i++;\n }\n }\n\n }", "protected static boolean isBuzz(final int buzzNum, final int num) {\n\t\treturn num % buzzNum == 0;\n\t}", "public static void main(String[] args) {\n\n Scanner sc = new Scanner (System.in);\n\t\t\n\t\t\n\t\tint a = 1;\n\t\tint b = 1;\n\t\tint num;\n\t\t\n\t\t\n System.out.println(\"Digite el numero del que desea obtener el factorial: \");\n\t\t\n\t\tnum = sc.nextInt();\n\t\t\n\t\twhile (b <= num) {\n\t\t\t\n\t\t\tif (b <= num) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(b + \" * \");\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t\t\n\t\t\ta = b * a;\n\t\t\t\n\t\t\tif (b == num ) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" = \" + a);\n\t\t\t}\n\t\t\t\n\t\t\tb ++;\n\t\t\t\n\t\t\tsc.close();\n\t\t\t \n\t\t}\n\n\t\t\n\t}", "public static String foobarbaz(int num) {\n if(num%3==0 && num%5==0 && num%7!=0) { \n return \"Foo Bar\";\n }\n else id (num%7==0) {\n return \"Baz\";\n }\n else if (num%5==0) {\n return \"Bar\";\n }", "public static void main(String[] args) {\n\t\tfor (int i = 1; i < 101; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program\");\n\t\tfor (int i = 100; i > 0; i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2; i < 101; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 1; i < 100; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 501; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tSystem.out.println(i + \" is even.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i + \" is odd.\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 778; i = i + 7) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2006; i < 2019; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.println(i + \" \" + \" \" + j);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 9; i += 3) {//rows \n\t\t\tfor (int j = 1; j < 4; j++) {//how many \n\t\t\t\tSystem.out.print(j + i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 100; i += 10) {\n\t\t\tfor (int j = 1; j <11; j++) {\n\t\t\t\tSystem.out.print(j + i+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\nfor (int i = 1; i < 7; i++) {\n\tfor (int j = 0; j < i; j++) {\n\t\tSystem.out.print(\"* \");\n\t}\n\tSystem.out.println();\n}\t\n\n\t\n\t\n\t\n\t}", "public static void main(String[] args) {\n\t\tint x = 5;\r\n\t\tint z = 12;\r\n\t\t\t\t\r\n\t\tdiplayTwiceTheNumber(x,z);\r\n\t\tdisplayNumberPlusFive(x,z);\r\n\t\tdisplayNumberSquared(x,z);\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int a=1;a<=100;a++) {\r\n\t\t\tif(a%5==0&&a%7==0) {\r\n\t\t\t\tSystem.out.println(a);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void PrimeFacor(int numberToFactorize) {\n\n System.out.println(\"Prime factors of \" + numberToFactorize + \" are ::\");\n\n for (int i = 2; i < numberToFactorize; i++) {\n\n while (numberToFactorize % i == 0) {\n System.out.println(i + \" \");\n numberToFactorize = numberToFactorize / i;\n\n }\n }\n if (numberToFactorize > 2) {\n System.out.println(numberToFactorize);\n }\n }", "public static void main(String[] args) {\n\n int num = 12354;\n\n System.out.println(nextGreater(num));\n }", "public static void main(String[] args) {\n\t\tint limit = 101;\n\t\t\n\t\tif (args.length == 1) {\n\t\t\ttry {\n\t\t\t\tlimit = Integer.parseInt(args[0]);\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\t// keep default limit\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<Integer> primes = getPrimesLessThan(limit);\n\n\t\tSystem.out.println(\"Prime numbers less than or equal to \" + limit + \":\");\n\t\tfor (Integer prime : primes) {\n\t\t\tSystem.out.print(prime + \" \");\n\t\t}\n\t}", "public static void main (String args[]) \n\t { \n\t \tScanner scanner=new Scanner(System.in);\n\t\t\t\n\t\t\tint n=scanner.nextInt();\n\t\t\t\n\t\t\tscanner.close();\n\t\t\ttry {\n\t System.out.println(fib(n).mod(BigInteger.valueOf(10)).intValue()); }\ncatch (Exception e) {\n\tSystem.out.println(e);\n}\t\n}", "private static void printBiggestNumber() {\n System.out.println(\"Enter number 1:\");\r\n Scanner num1 = new Scanner(System.in);\r\n int i1 = Integer.parseInt(num1.nextLine());\r\n System.out.println(\"Enter number 2:\");\r\n Scanner num2 = new Scanner(System.in);\r\n int i2 = Integer.parseInt(num2.nextLine());\r\n System.out.println(\"Enter number 3:\");\r\n Scanner num3 = new Scanner(System.in);\r\n int i3 = Integer.parseInt(num3.nextLine());\r\n if ((i1 > i2) && (i1 > i3))\r\n System.out.println(\"Number \" + i1 + \" is the biggest.\");\r\n else if ((i2 > i1) && (i2 > i3))\r\n System.out.println(\"Number \" + i2 + \" is the biggest.\");\r\n else\r\n System.out.println(\"Number \" + i3 + \" is the biggest.\");\r\n }", "public static void main(String[] args){\n for(int i=5; i>=1; i--) {\n //System.out.println(i);\n }\n //Print number from 5 to 1 using WHILE loop\n int j=0;\n while(j<=8){\n j+=2;\n //System.out.println(j);\n }\n // Create a loop to print first 30 fibonacci numbers Also print the 10th Even Fib number\n int a=0;\n int b=1;\n int count =0;\n System.out.println(a);\n System.out.println(b);\n while(count <= 30){\n int c=a+b;\n a=b;\n b=c;\n System.out.println(c);\n count++;\n if(count==8 && c%2==0){\n System.out.println(\"10th Even Fibonacci number is\" + c);\n }\n }\n\n // Create a square number series\n for(int i=0; i<10; i++){\n System.out.println((int)Math.pow(i,2));\n }\n\n }", "public static void displayFibonacci(int iNum)\n {\n int first = 0, second = 1, third = 0;\n for(int i = 2; i < iNum; i++)\n {\n third = first + 2 * second;\n System.out.print(third + \" \");\n first = second;\n second = third;\n }\n }", "public static void main(String[] args) {\n\t\tint num=0, i=0, numFilas=0;\r\n\t\tSystem.out.println(\"Introduce el número de filas que quieres tener\");\r\n\t\tnumFilas=Entrada.entero();\r\n\t\twhile(num<numFilas) {\r\n\t\t\twhile(i<=num) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\ti=0;\r\n\t\t\tnum++;\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint number = Integer.parseInt(args[0]);\n\t\tint factorial =1;\n\t\tint i;\n\t\t\n\t\tif(number > 1) {\n\t\t\tfor (i=1 ; i<= number; i++) {\n\t\t\t\tfactorial = factorial * i;\n\t\t\t}\n\t\t\tSystem.out.println(factorial);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Number must be upper 1\");\n\t\t}\n\t\t\n\t\t/* \n\t\t int factorial = number;\n\t\t \n\t\t for(i = number-1, i>1; i--) {\n\t\t \tfactorial*=i;\n\t\t }\n\t\t System.out.println(factorial);\n\t\t * */\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<Integer> list=new ArrayList<Integer>();\n\t\tint m;\n\t\t\n\t\twhile(true){\n\t\t\tm=sc.nextInt();\n\t\t\tif(m==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tlist.add(m);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int i=0;i<list.size();i++){\n\t\t\tif(list.get(i)<=100){\n\t\t\t\tSystem.out.println(\"f91(\"+list.get(i)+\") = 91\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"f91(\"+list.get(i)+\") = \"+(list.get(i)-10));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n int fact = 1; //Starting factorial\n for(int i = 1; i <= maxFactorial;i++) //Iterates over all desired factorials\n {\n fact = fact * (i); //Takes previous ( and starting) factorial and multiplies by current increment\n System.out.println(\"Factorial of \" + i + \" is \" +fact); //Prints output of each factorial\n }\n }", "public void fback() throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tSystem.out.println(\"Enter any number for finding even/odd : \");\n\t\tString S=br.readLine();\n\t\tint i=Integer.parseInt(S);\n\t\t\n\t\tif(i%2==0)\n\t\t{\n\t\t\tSystem.out.println(\"Even number\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Odd Number\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i=0;i<100;i++) {\r\n\t\t\tif((i%3==0)||(i%11==0)) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\nint N,i,fac=1;\nScanner fn=new Scanner(System.in);\nN =fn.nextInt();\nif(N<=20) {\n\tfor(i=N;i>=1;i--) {\n\t\tfac=fac*i;\n\t}\n}\nSystem.out.println(fac);\n\t}", "public static void main(String[] args) throws IOException {\n int target = 974;\n ArrayList<Integer> factors = new ArrayList<>();\n\n\n for (int i = 1; i <= target; i++) {\n if (target % i == 0) {\n factors.add(i);\n }\n }\n\n int total = 0;\n for (int factor : factors) {\n total += factor;\n }\n\n\n\n System.out.println(\"Result: \" + total);\n System.out.println(\"Done!\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tFibonocciseries fibObj=new Fibonocciseries();\n\t\tList<Integer> value = fibObj.fibmeth(21);\n\t\tSystem.out.println(value.toString());\n\t\t\t\n\t\tCharacterCount charCountObj=new CharacterCount();\n\t\tString[] xyz = { \"a\",\"b\",\"a\",\"c\",\"b\",\"c\",\"b\"};\n\t\tList<Integer> result1 = charCountObj.charCount(xyz);\n\t\tSystem.out.println(result1.toString());\n\t\t\n\t\t\n\t\tFizzBuzzPgm fizzBuzzObj=new FizzBuzzPgm();\n\t\tint[] Fizzbuzzvalues = {10,3,5,15};\n\t\tList<String> fzzBuzzReuslt = fizzBuzzObj.fizzBuzzMethod(Fizzbuzzvalues);\n\t\t\n\t\tDuplicateString duplicateObj=new DuplicateString();\n\t\tString[] DuplicateValues= {\"abc\",\"mno\",\"xyz\",\"pqr\",\"xyz\",\"def\",\"mno\"};\n\t\tList<String> DuplicateResult=duplicateObj.DuplicateMethod(DuplicateValues);\n\t\tSystem.out.println(DuplicateResult.toString());\n\t\t\n\t\tPalindromePgm PalindromeObj=new PalindromePgm();\n\t\tList<String> PalindromeResult=PalindromeObj.PalindromeMethod(24);\n\t\tSystem.out.println(PalindromeResult.toString());\n\t\t\n\t\tCalculatorPgm addVal = new CalculatorPgm();\n\t\tint resultAdd = addVal.add(20,10);\n\t\tSystem.out.println(\"Calc prgm add output=\"+resultAdd);\n\t\t\n\t\tCalculatorPgm subVal = new CalculatorPgm();\n\t\tint resultsub = subVal.add(300,10);\n\t\tSystem.out.println(\"Calc prgm sub output=\"+resultsub);\n\t\t\n\t\tCalculatorPgm divVal = new CalculatorPgm();\n\t\tint resultdiv = divVal.add(400,10);\n\t\tSystem.out.println(\"Calc prgm div output=\"+resultdiv);\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\n int limit = 1000;\n\n for (int num = 0; num <= 1000; num++) {\n boolean isPrime = true;\n for (int divisor = 2; divisor < num; divisor++) {\n if (num % divisor == 0) {\n isPrime = false;\n break;\n }\n }\n if (isPrime) {\n System.out.print(num + \" \");\n }\n }\n }", "public static void main(String[] args)\n {\n int integer = 100;\n while(integer > 0)\n {\n System.out.println(integer);\n integer--;\n }\n }", "public static void main(String[] args) {\n\n for (int i = 0; i < 11; i++) {\n System.out.println(fibNum(i));\n }\n }", "public static void main(String[] args) {\n\t\tint number = 2589;\n\t\tint y;\n\n\t\tint miavor = number / 1000;\n\t\tSystem.out.println(\"Miavor : \" + miavor);\n\n\t\tint tasnavor = (number / 100) % 10;\n\t\tSystem.out.println(\"Tasnavor : \" + tasnavor);\n\n\t\tint haryuravor = (number / 10) % 10;\n\t\tSystem.out.println(\"Haryuravor : \" + haryuravor);\n\n\t\tint hazaravor = number % 10;\n\t\tSystem.out.println(\"Hazaravor : \" + hazaravor);\n\n\t\tif ((miavor + tasnavor + haryuravor + hazaravor) > 20) {\n\t\t\ty = 1;\n\t\t\tSystem.out.println(y);\n\t\t} else {\n\t\t\ty = 0;\n\t\t\tSystem.out.println(y);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tint k =1;\n\t\twhile(k < 20){\n\t\t\tif ((k % 3)==1){\n\t\t\t\tSystem.out.print(k + \" \");\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t}", "public static void main(String[] args){\r\n int i=100;\r\n while (i>0) { \r\n if (i%2!=0) {\r\n System.out.print(i+\"\\n\");\r\n }\r\n i--;\r\n } \r\n }", "public static void main(String[] args) {\n\t\tSystem.out.print(\"Enter an index for a Fibonacci number: \");\r\n\t\tint index = checkInput(); // invoking method to check input\r\n\r\n\t\t// Find and display the Fibonacci number\r\n\t\tSystem.out.println(\"The Fibonacci number at index \" + index + \" is \"\r\n\t\t\t\t+ fib(index) + \".\");\r\n\r\n\t\tinput.close();\r\n\t}", "public static void printTest(int num, int expectedFactors) {\r\n\t\t//Stopwatch st = new Stopwatch();\r\n\t\t//st.start();\r\n\t\tint actualFactors = numFactors(num);\r\n\t\t//st.stop();\r\n\t\tSystem.out.println(\"Testing \" + num + \" expect \" + expectedFactors + \", \" +\r\n\t\t\t\t\"actual \" + actualFactors);\r\n\t\tif(actualFactors == expectedFactors)\r\n\t\t\tSystem.out.println(\"PASSED\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"FAILED\");\r\n\t\t//System.out.println(st.time());\r\n\t}", "public static int Main()\n\t{\n\t\t//cout << \"?????????n\" << endl;\n\t\tint n; //n????????a,b,c???,y??????x??????\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint y;\n\t\tint x;\n\t\tint z;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (int i = 1; i <= n; i++) //n???\n\t\t{\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\ta = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tb = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tc = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tif (b > c) //?b??c\n\t\t\t{\n\t\t\t\tz = c;\n\t\t\t\tc = b;\n\t\t\t\tb = z;\n\t\t\t}\n\t\t\tif ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) //????\n\t\t\t{\n\t\t\t\ty = 1;\n\t\t\t}\n\t\t\tfor (; b <= c - 1; b++) //??????\n\t\t\t{\n\t\t\t\tswitch (b)\n\t\t\t\t{\n\t\t\t\tcase 1 :\n\t\t\t\tcase 3 :\n\t\t\t\tcase 5 :\n\t\t\t\tcase 7 :\n\t\t\t\tcase 8 :\n\t\t\t\tcase 10 :\n\t\t\t\tcase 12 :\n\t\t\t\t\tx = x + 31;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\tcase 6 :\n\t\t\t\tcase 9 :\n\t\t\t\tcase 11 :\n\t\t\t\t\tx = x + 30;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tx = x + 28 + y;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x % 7 == 0) //??????????\n\t\t\t{\n\t\t\t\tSystem.out.print(\"YES\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.print(\"NO\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\t\tint number;\r\n\t\t\r\n\t\t//Instantiates the Scanner\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\r\n\t\t//Prompts user to input a number\r\n\t\tSystem.out.print(\"Starting number: \");\r\n\t\tnumber = in.nextInt();\r\n\t\t\r\n\t\tSystem.out.print(number + \"\\t\"); //Starts the pattern by printing the input then adding a tab for formatting\r\n\t\twhile (number != 1) { //while the number does not equal 1 (because once it does equal one the program should end)\r\n\t\t\tif (number % 2 == 1) { //if number is odd\r\n\t\t\t\tnumber = number * 3 + 1; //multiplies the number by 3 then adds one to it and stores it back in the number variable\r\n\t\t\t\tSystem.out.print(number + \"\\t\"); //Prints out the number then adds a tab for formatting\r\n\t\t\t}\r\n\t\t\tif (number % 2 == 0) { //if number is even\r\n\t\t\t\tnumber /= 2; //divides number by 2 and stores it back in number variable\r\n\t\t\t\tSystem.out.print(number + \"\\t\"); //Prints out the number then adds a tab for formatting\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Closes Scanner\r\n\t\tin.close();\r\n\t}", "public static void main(String[] args) {\n\t\tint number1 =0;\r\n\t\tint number2 =1;\r\n\t\tint number3,limit = 10;\r\n\t\t\r\n\t\tSystem.out.print(number1+\" \"+number2);\r\n\t\tint i=2;\r\n\t\tdo \r\n\t\t{\r\n\t\t\tnumber3= number1+number2;\r\n\t\t\tSystem.out.print(\" \"+number3);\r\n\t\t\tnumber1=number2;\r\n\t\t\tnumber2=number3;\r\n\t\t\ti++;\r\n\t\t}while(i<limit);\r\n\t}", "public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100) {\n\t\t\tSystem.out.print(a+\" \");\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print number 100 to 1\n\t\tint b=100;\n\t\t\n\t\twhile (b>=1) {\n\t\t\tSystem.out.print(b+\" \");\n\t\t\tb--;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print even number from 20 to 100\n\t\tint c=20;\n\t\t\n\t\twhile(c<=100) {\n\t\t\tSystem.out.print(c+\" \");\n\t\t\tc+=2;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tint d =20;\n\t\t\n\t\twhile (d<=100) {\n\t\t\tif (d%2==0) {\n\t\t\t\tSystem.out.print(d+\" \");\n\t\t\t}\n\t\t\td++;\n\t\t}\n\n\t}", "public static void main(String[] args) {\n System.out.println(getFactorial(0));\n\n }" ]
[ "0.7026053", "0.69730115", "0.6948006", "0.67127067", "0.66677785", "0.6603721", "0.65908384", "0.6537794", "0.6512008", "0.63702935", "0.63458115", "0.6333676", "0.60963464", "0.60916245", "0.60350066", "0.5973076", "0.594277", "0.5927407", "0.5876824", "0.58433914", "0.58208394", "0.5813153", "0.5809738", "0.57652795", "0.5694946", "0.5659035", "0.5634467", "0.56168634", "0.55744195", "0.55497193", "0.5544099", "0.545331", "0.5419007", "0.5403164", "0.5393113", "0.53659624", "0.5225717", "0.52238786", "0.5213707", "0.5190355", "0.5182676", "0.517883", "0.51766664", "0.5171072", "0.50972396", "0.50932616", "0.507365", "0.5065674", "0.50447464", "0.50309646", "0.5022568", "0.5019286", "0.50171655", "0.50076264", "0.49932855", "0.49893966", "0.49891564", "0.4985686", "0.49775818", "0.4973009", "0.49614146", "0.4960685", "0.495234", "0.49512488", "0.49504098", "0.49484324", "0.49445143", "0.4930302", "0.4920875", "0.49196476", "0.49185023", "0.49169013", "0.4908091", "0.49041122", "0.48988673", "0.4897363", "0.4893796", "0.48908767", "0.48860577", "0.48848584", "0.48756936", "0.48735183", "0.4872863", "0.48728082", "0.4871522", "0.48665383", "0.48564348", "0.4852743", "0.48508227", "0.48469442", "0.48437726", "0.48400617", "0.4834641", "0.48309729", "0.48268348", "0.481663", "0.4810688", "0.4808407", "0.4805471", "0.48043194" ]
0.7785531
0
Determine if the given number is fizz and buzz.
protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) { return isFizz(fizzNum, num) && isBuzz(buzzNum, num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static boolean isFizz(final int fizzNum, final int num) {\n\t\treturn num % fizzNum == 0;\n\t}", "protected static boolean isBuzz(final int buzzNum, final int num) {\n\t\treturn num % buzzNum == 0;\n\t}", "public static Say fizzBuzz(int number){\n StringBuilder message = new StringBuilder();\n\n for (int i = 1; i <= number; i++){\n if (i % 3 == 0 && i % 5 == 0) {\n message.append(\"Fizz Buzz\");\n } else if (i % 3 == 0) {\n message.append(\"Fizz\");\n } else if (i % 5 == 0) {\n message.append(\"Buzz\");\n } else {\n message.append(Integer.toString(i));\n }\n message.append(\"...\");\n }\n message.append(\"....Thank you for playing Phone Buzz!\");\n return new Say.Builder(message.toString()).build();\n }", "public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\n //ask or integer\nSystem.out.println(\"Please enter a positive integer to see the FizzBuzz numbers\");\nint num = input.nextInt();\n// decalre and initialize count\nint count = 0;\nwhile(count < num){\n //increase value on count by 1\n count = count + 1;\n //check for fizz buzz answers\n if ((count % 5 == 0) && (count % 3 == 0)){System.out.println(\"You should say FizzBuzz\");\n } else if ((count % 3 == 0)){\n System.out.println(\"You should say Buzz\");\n }else if ((count % 5 == 0)){\n System.out.println(\"You should say Buzz\");\n }else if ((count % 3 !=0) && (count % 5 !=0)){\n System.out.println(\"You should say\" + \" \" + count);\n }\n}\r\n \r\n }", "public void fizzBuzz(int upperRange)\n {\n for(int i = 1; i <= upperRange; i++) {\n if ((i % 3 == 0) && (i % 5 == 0))\n {\n System.out.println(\"FizzBuzz\");\n }\n else if (i % 3 == 0) {\n System.out.println(\"Fizz\");\n }\n else if (i % 5 == 0) {\n System.out.println(\"Buzz\");\n }\n else\n {\n System.out.println(i);\n }\n }// end for\n }", "protected static void printFizzBuzz(final int fizzNum, final int buzzNum, final int topNum) {\n\t\tif(topNum > 1) {\n\t\t\tfor(int i = 1; i <= topNum; i++) {\n\t\t\t\tString output = \"\";\n\t\t\t\tif(isFizzBuzz(fizzNum, buzzNum, i)) {\n\t\t\t\t\toutput = \"FB\";\n\t\t\t\t} else if(isBuzz(buzzNum, i)) {\n\t\t\t\t\toutput = \"B\";\n\t\t\t\t} else if(isFizz(fizzNum, i)) {\n\t\t\t\t\toutput = \"F\";\n\t\t\t\t} else {\n\t\t\t\t\toutput = String.valueOf(i);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(output + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(); // print a new line as the end of this test case.\n\t}", "public void fizzBuzzTest() {\n FizzBuzz fizzBuzz = new FizzBuzz();\n String[] resultArray = {fizzBuzz.detect(15), fizzBuzz.detect(3), fizzBuzz.detect(5), fizzBuzz.detect(4)};\n\n for (int i = 0; i < resultArray.length ; i++) {\n if (resultArray[i].equals(expectedResultArray[i])) {\n System.out.println(expectedResultArray[i] + \" test = OK\");\n } else {\n System.out.println(expectedResultArray[i] + \" test = FAIL\");\n }\n }\n\n }", "public static boolean isGood(int num){\r\n\t\tif ((num<0)||(num>6)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void isFibonacciTest() {\n\t\tAssert.assertTrue(ifn.isFibonacci(21));\n\t\tAssert.assertTrue(ifn.isFibonacci(144));\n\t\tAssert.assertTrue(!ifn.isFibonacci(150));\n\t\tAssert.assertTrue(!ifn.isFibonacci(56));\n\t}", "public boolean isValid(int number)", "public static boolean isFibonacci(Integer num)\n {\n int check = 1;\n int check2 = 0;\n for(int check3 = 0;check < num; check = check3)\n {\n check3 = check + check2;\n check2 = check;\n if(check3 == num)\n return true;\n }\n return false;\n }", "static Stream<String> toFizzBuzzStream(IntStream intStream) {\n \treturn intStream\n .boxed()\n .map(x -> (x%3==0? \"Fizz\": \"\") + (x%5==0? \"Buzz\": \"\")+ ((x%3!=0)&&(x%5!=0)? x: \"\"));\n }", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "private boolean isFactor() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tswitch(theCurrentToken.TokenType)\n\t\t{\n\t\t\tcase INTEGER: case TRUE: case FALSE: //case FLOAT:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.IF || theCurrentSymbol.getType() == TokenType.FOR)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.INTEGER || theCurrentToken.TokenType == TokenType.TRUE || theCurrentToken.TokenType == TokenType.FALSE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(theCurrentSymbol.getType() == TokenType.INTEGER || theCurrentSymbol.getType() == TokenType.BOOL //|| theCurrentSymbol.getType() == TokenType.FLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.GETINTEGER || theCurrentSymbol.getType() == TokenType.GETBOOL //|| theCurrentSymbol.getType() == TokenType.GETFLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.PUTINTEGER || theCurrentSymbol.getType() == TokenType.PUTBOOL //|| theCurrentSymbol.getType() == TokenType.PUTFLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(theCurrentSymbol.getType() == TokenType.FLOAT && theCurrentToken.TokenType == TokenType.INTEGER)\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase FLOAT:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif( theCurrentSymbol.getType() == TokenType.FLOAT || theCurrentSymbol.getType() == TokenType.GETFLOAT || theCurrentSymbol.getType() == TokenType.PUTFLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase CHAR:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.IF || theCurrentSymbol.getType() == TokenType.FOR)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentSymbol.getParameterTypes() == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttheCurrentSymbol.setParameterTypes(Arrays.asList(theCurrentToken.TokenType));\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(theCurrentSymbol.getParameterTypes().get(0) == theCurrentToken.TokenType)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.CHAR || theCurrentSymbol.getType() == TokenType.GETCHAR || \n\t\t\t\t\ttheCurrentSymbol.getType() == TokenType.PUTCHAR || theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase STRING:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.IF || theCurrentSymbol.getType() == TokenType.FOR)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentSymbol.getParameterTypes() == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttheCurrentSymbol.setParameterTypes(Arrays.asList(theCurrentToken.TokenType));\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(theCurrentSymbol.getParameterTypes().get(0) == theCurrentToken.TokenType)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.STRING || theCurrentSymbol.getType() == TokenType.GETSTRING || \n\t\t\t\t\ttheCurrentSymbol.getType() == TokenType.PUTSTRING || theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase MINUS:\n\t\t\t\tupdateToken();\n\t\t\t\tif(isName())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse if(isFactor())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LEFT_PARENTHESIS:\n\t\t\t\tupdateToken();\n\t\t\t\tif(isExpression())\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_PARENTHESIS)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IDENTITY:\n\t\t\t\tisValid = isName();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tisValid = false;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "boolean hasNumber();", "public static void main(String[] args) {\n\t // Call fizzBuzz method and verify correct output\t\n\t}", "boolean hasNum2();", "static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\twhile(number>0) {\r\n\t\t\tif(lastDigit<=number%10) {\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlastDigit= number%10;\r\n\t\t\tnumber/=10;\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(flag) \r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private boolean ifCorrect (int number){\n boolean check_correct = false;\n String temp = Integer.toString(number);\n char [] charArr = temp.toCharArray();\n for (int k = 0; k < temp.length()-1; k++){\n if (charArr[k] <= charArr[k+1]){\n check_correct = true;\n }\n else {\n check_correct = false;\n break;\n }\n }\n return check_correct;\n }", "boolean hasB26();", "public static boolean isValidNumber(String number) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(\"4\");\n\t set.add(\"7\");\n\t\t\n\t if(number.substring(0, 1).equals(\"3\") && set.contains(number.substring(1, 2)) && number.length() == 15) { return true; }\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\n for(int i=0;i<16;i++){\n if ((i%3)==0 || (i%5)==0){\n System.out.println(\"fuzzBuzz\");\n }else if ((i%3)==0){\n System.out.println(\"fuzz\");\n }else if((i%5)==0){\n System.out.println(\"buzz\");\n }else\n System.out.println(i);\n }\n }", "static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}", "public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t\t}\n\t}", "private static boolean isFibonacci(BigInteger numberToCheck) {\n boolean isFibonacci = false;\n List<BigInteger> fibonacciSequence;\n for (int i = numberToCheck.intValue(); !isFibonacci; i++) {\n fibonacciSequence = fibonacciJava8(i).collect(Collectors.toList());\n\n if (fibonacciSequence.contains(numberToCheck)) {\n isFibonacci = true;\n } else if (fibonacciSequence.get(fibonacciSequence.size() - 1).compareTo(numberToCheck) > 0) {\n break;\n }\n }\n\n return isFibonacci;\n }", "boolean hasNum1();", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num1 = scanner.nextInt();\n int num2 = scanner.nextInt();\n\n for (; num1 <= num2; num1++) {\n if (num1 % 3 == 0) {\n if (num1 % 5 == 0) {\n System.out.println(\"FizzBuzz\");\n } else {\n System.out.println(\"Fizz\");\n }\n } else if (num1 % 5 == 0) {\n System.out.println(\"Buzz\");\n } else {\n System.out.println(num1);\n }\n }\n }", "public void print(int i) throws FizzException, BuzzException {\n\n if (i%3==0) throw new FizzException();\n if (i%5==0) throw new BuzzException();\n\n System.out.println(i);\n }", "public static void main(String[] args) {\n\t\tString fizzBuzz = \"FizzBuzz\";\n\t\t\n\t\tfor(int count = 1; count <101; count++){\n\t\t\tif ((count%3==0) && (count%5)==0){\n\t\t\t\tSystem.out.println(fizzBuzz);\n\t\t\t}\n\t\t\telse if(count%3==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(0, 4));\n\t\t\t}\n\t\t\telse if(count%5==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(4, fizzBuzz.length()));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(count);\n\t\t\t}\n\t\t}\n\t}", "private List<FizzBuzzEntry> getFizzBuzzOutput(int start, int end) {\n\n\t\tList<FizzBuzzEntry> output = new LinkedList<FizzBuzzEntry>();\n\t\t\n\t\t/*\n\t\t * I used a LinkedList to ensure the Fizz Buzz output is going to keep\n\t\t * its original order\n\t\t */\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (i % 3 == 0 || i % 5 == 0) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tif (i % 3 == 0 && i % 5 == 0) {\n\t\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), \"Fizz Buzz\"));\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t/* \n\t\t\t\t * The if above \"if\" not on the solution I was given but the traditional \n\t\t\t\t * FizzBuzz problem tells you to show Fizz Buzz if the number is mod 3 and mod 5\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), \"Fizz\"));\n\t\t\t\t}\n\t\t\t\tif (i % 5 == 0) {\n\t\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), \"Buzz\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\toutput.add(new FizzBuzzEntry(Integer.toString(i), Integer\n\t\t\t\t\t\t.toString(i)));\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "@Test\r\n\tpublic void testEvery15thElement() {\r\n\t\tfor (int i = 14; i < fb.fizzBuzzed().length; i+=15) {\r\n\t\t\t\tAssert.assertEquals(\"FizzBuzz\", fb.fizzBuzzed()[i]);\r\n\t\t}\r\n\t}", "public static void acceptOnlyNumberFifteen(){\n\t\tSystem.out.println(\"please enter the first number: \");\n\t\tScanner scann=new Scanner(System.in);\n\t\tint x1=scann.nextInt();\n\t\tSystem.out.println(\"please enter the second number: \");\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x2=scan.nextInt();\n\t\tSystem.out.println(\"The result is: \" +isTrue(x1,x2));\n\t}", "public static boolean numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}", "public void fizzBuzzBar(int upperRange)\n {\n String result = \"\";\n for(int i = 1; i <= upperRange; i++) {\n if (i % 3 == 0) {\n result += \"Fizz\";\n }\n if (i % 5 == 0) {\n result += \"Buzz\";\n }\n if(i % 7 == 0)\n {\n result += \"Bar\";\n }\n if( result.isEmpty())\n {\n result += String.valueOf(i);\n }\n System.out.println(result);\n\n result = \"\";\n }// end for\n }", "boolean hasB23();", "private static boolean m55560tZ(int i) {\n return i == 7;\n }", "public static String foobarbaz(int num) {\n if(num%3==0 && num%5==0 && num%7!=0) { \n return \"Foo Bar\";\n }\n else id (num%7==0) {\n return \"Baz\";\n }\n else if (num%5==0) {\n return \"Bar\";\n }", "public static void main(String arg[]) {\n\t\tint no, i;\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter range of numbers\");\n\t\tno = s.nextInt();\n\t\tfor (i = 1; i <= no; i++) {\n\t\t\tif ((i % (3 * 5)) == 0) {\n\t\t\t\tSystem.out.println(\"FizzBuzz\\n\");\n\t\t\t} else if ((i % 5) == 0) {\n\t\t\t\tSystem.out.println(\"Buzz\\n\");\n\t\t\t} else if ((i % 3) == 0) {\n\t\t\t\tSystem.out.println(\"Fizz\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "boolean hasNumb();", "public static boolean is6 (int num){\r\n\t\t\r\n\t\tif(num%6==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\t\r\n\t}", "boolean hasHadithChapterNo();", "public boolean checkForNumber(int m, int n){\r\n\t\tif ( count[m][n] > 0 & count[m][n] < 9 & !bombs[m][n])\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}", "public static void main(String[] args) {\n\n for( int i=1 ; i<=5 ; i++ ){\n System.out.println(\"i = \"+i);\n System.out.println(\"Happy Birthday SEDA CIVAN\");\n\n }\nfor(int x=10;x>=1;--x){\n System.out.println(x);\n}\n System.out.println(\"-------------------------------\");\nfor (int number=0;number<=100 ;number+=2){\n System.out.print(number+\" \");\n}\n System.out.println(\"-------------------------------\");\n\nfor(int x=0 ; x<100 ; x+= 3 ){\n System.out.print(x+\" \");\n}\n System.out.println();\n System.out.println(\"-------------------------even number------\");\n for (int i = 0; i <100 ; i++) {\n if(i%2==0){\n System.out.print(i+\" \");\n }\n\n //THE SHORT CUT FOR GENERATING FOR LOOP IS : fori enter or tab\n\n }\n System.out.println();\n System.out.println(\"-------------------------------\");\n for (int q = 0; q < 100; q++) {\n if (q%5==0 && q%3==0){\n System.out.println(q+\" fizz buzz number\");\n }\n\n }\n\n//everything you can do with for loop --> can be done using while loop !!!!\n\n }", "public static boolean Q5(String test) {\n\t\tSystem.out.println(Pattern.matches(\"^\\\\d\\\\D{3}\",test));\n\t\treturn Pattern.matches(\"[abc].+\",test);\n\t}", "public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }", "boolean hasInt();", "public static void main(String[] args){\n for(int i = 1; i <= 100; i++){\n\n //prints Fizz if i is divisible by 3\n if(i % 3 == 0)\n System.out.print(\"Fizz\");\n //prints Buzz if i is divisible by 5\n if(i % 5 == 0)\n System.out.print(\"Buzz\");\n //prints i number if not divisible by 3 or 5\n if(i % 3 != 0 && i %5 != 0)\n System.out.print(i);\n //goes to next line\n System.out.println();\n\n }\n\n }", "boolean hasB22();", "private String[] fizzBuzz(int n) {\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tfor (int i = 1; i <= n; i++) { //O(n)\n\t\t\t// Put map with i and value if i is divisible by 5\n\t\t\t// and 3 put FizzBuzz\n\t\t\tif (i % 3 == 0 && i % 5 == 0)\n\t\t\t\tmap.put(i, \"FizzBuzz\");\n\t\t\t// if i is divisible by 3 put as Fizz\n\t\t\telse if (i % 3 == 0)\n\t\t\t\tmap.put(i, \"Fizz\");\n\t\t\t// if i is divisible by 5 put as FizzBUzz\n\t\t\telse if (i % 5 == 0)\n\t\t\t\tmap.put(i, \"Buzz\");\n\t\t\telse\n\t\t\t\tmap.put(i, i + \"\");\n\t\t}\n//return Map values as String []\n\t\tString[] str = new String[n];\n\t\tfor (int i = 0; i <= n - 1; i++) { //O(n)\n\t\t\tstr[i] = map.get(i + 1);\n\t\t}\n\t\treturn str;\n\t}", "public boolean nearHundred(int n) {\n return ((n > 100 && n % 100 < 10) || n % 100 > 89);\n }", "public boolean lastDigit(int a, int b) {\n return (a % 10 == b % 10);\n}", "public static boolean test (String s){\n\t\t// This pattern tests whether string s contains 3 numbers.\n\t Pattern pattern = Pattern.compile(\"\\\\d{3}\");\n\t Matcher matcher = pattern.matcher(s);\n\t if (matcher.find()){\n\t return true; \n\t } \n\t return false; \n\t }", "public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}", "private static void LessonFizzBuzzLab() {\n //Write a loop that counts from 0-100\n for(int index=0; index <= 100; index++) {\n //If the value is divisible by 15 print \"FizzBuzz\"\n if(index%3 == 0 && index%5 == 0) {\n //If the value is divisible by 3 print \"Fizz\"\n System.out.println(\"FizzBuzz\");\n } else if(index%3 == 0) {\n System.out.println(\"Fizz\");\n //If the value is divisible by 5 print \"Buzz\"\n } else if(index%5 == 0) {\n System.out.println(\"Buzz\");\n //If the value is not divisible by 3,5, or 15 simply print the number\n } else {\n System.out.println(index);\n }\n }\n //Write code that will throw an exception (other than the ones we covered in the lesson) and catch it.\n String[] myStrArray = new String[2];\n myStrArray[0] = \"Hello\";\n myStrArray[1] = \"Hello\";\n try {\n System.out.println(myStrArray[2]);\n } catch(ArrayIndexOutOfBoundsException error){\n System.out.println(error);\n }\n }", "public static boolean isPowerof3(int num){\n\t\tif (Math.pow(3,20) % num == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t\t// while (num % 3 == 0){\n\t\t// \tnum /= 3;\n\t\t// \tif (num == 1){\n\t\t// \t\treturn true;\n\t\t// \t}\n\t\t// }\n\t\t// return false;\n\t}", "public static Boolean isForthQuarterUnderOver(Integer integer) {\r\n\t\treturn forthQuarterUnderOver.contains(integer);\r\n\t}", "public boolean or35(int n) {\n return (n % 3 == 0 || n % 5 == 0);\n}", "public static boolean areFactors(int n, int[] a){\n for(int i=0; i<a.length; i++){\n if(n % a[i] != 0) return false;\n }\n return true;\n }", "public static boolean calculation(int number) \n\t{\n\t\tboolean isPrime=false;\n\t\tint counter = 0;\n\t\tfor (int i=1; i <=number; i++) {\n\t\t\t\n\t\t\tif (number % i == 0) {\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\tif(counter==2)\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\treturn isPrime;\n\t}", "public static void main(String[] args) {\n Scanner klav = new Scanner(System.in);\n int skaicius;\n\n System.out.println(\"Iveskite sveikaji skaiciu\");\n skaicius = klav.nextInt();\n if(skaicius % 15 == 0){\n System.out.println(\"fizzbuzz\");\n }\n if(skaicius % 15 != 0 && skaicius % 3 == 0){\n System.out.println((\"fizz\"));\n }\n if(skaicius % 15 != 0 && skaicius % 3 != 0 && skaicius % 5 == 0){\n System.out.println(\"buzz\");\n }\n if (skaicius % 3 != 0 && skaicius % 5 != 0){\n System.out.println(\"Ivedete ne FIZZBUZZINI skaiciu!\");\n }\n }", "public abstract boolean isHappy(int n);", "public static boolean isCPF(String CPF) {\n\t if (CPF.equals(\"00000000000\") ||\n\t CPF.equals(\"11111111111\") ||\n\t CPF.equals(\"22222222222\") || CPF.equals(\"33333333333\") ||\n\t CPF.equals(\"44444444444\") || CPF.equals(\"55555555555\") ||\n\t CPF.equals(\"66666666666\") || CPF.equals(\"77777777777\") ||\n\t CPF.equals(\"88888888888\") || CPF.equals(\"99999999999\") ||\n\t (CPF.length() != 11))\n\t return(false);\n\n\t char dig10, dig11;\n\t int sm, i, r, num, peso;\n\n\t // \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n\t try {\n\t // Calculo do 1o. Digito Verificador\n\t sm = 0;\n\t peso = 10;\n\t for (i=0; i<9; i++) {\n\t // converte o i-esimo caractere do CPF em um numero:\n\t // por exemplo, transforma o caractere '0' no inteiro 0\n\t // (48 eh a posicao de '0' na tabela ASCII)\n\t num = (int)(CPF.charAt(i) - 48);\n\t sm = sm + (num * peso);\n\t peso = peso - 1;\n\t }\n\n\t r = 11 - (sm % 11);\n\t if ((r == 10) || (r == 11))\n\t dig10 = '0';\n\t else dig10 = (char)(r + 48); // converte no respectivo caractere numerico\n\n\t // Calculo do 2o. Digito Verificador\n\t sm = 0;\n\t peso = 11;\n\t for(i=0; i<10; i++) {\n\t num = (int)(CPF.charAt(i) - 48);\n\t sm = sm + (num * peso);\n\t peso = peso - 1;\n\t }\n\n\t r = 11 - (sm % 11);\n\t if ((r == 10) || (r == 11))\n\t dig11 = '0';\n\t else dig11 = (char)(r + 48);\n\n\t // Verifica se os digitos calculados conferem com os digitos informados.\n\t if ((dig10 == CPF.charAt(9)) && (dig11 == CPF.charAt(10)))\n\t return(true);\n\t else return(false);\n\t } catch (InputMismatchException erro) {\n\t return(false);\n\t }\n\t }", "@Test\n\tpublic void test1() {\n\t\tint n = 3;\n\t\tSystem.out.println(Arrays.toString(fizzBuzz(n)));\n\t\tSystem.out.println(Arrays.toString(fizzBuzzTwoPointer(n)));\n\t}", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "public boolean nearHundred(int n) {\n return (Math.abs(n - 100) <= 10 || Math.abs(n - 200) <= 10);\n}", "public boolean guess(int number) {\n\t\tif (number == secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Correct! The secret is \"+secret+\"\\n\"+\"The count is \"+ count);\n\t\t\treturn true;\n\t\t} else if (number < secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Sorry, too small.\");\n\t\t} else if (number > secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Sorry, too large.\");\n\t\t}\n\t\treturn false;\n\t}", "public boolean isCPF(String CPF) {\n if (CPF.equals(\"00000000000\") || CPF.equals(\"11111111111\") ||\n CPF.equals(\"22222222222\") || CPF.equals(\"33333333333\") ||\n CPF.equals(\"44444444444\") || CPF.equals(\"55555555555\") ||\n CPF.equals(\"66666666666\") || CPF.equals(\"77777777777\") ||\n CPF.equals(\"88888888888\") || CPF.equals(\"99999999999\") ||\n (CPF.length() != 11))\n return(false);\n\n char dig10, dig11;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 10;\n for (i=0; i<9; i++) {\n // converte o i-esimo caractere do CPF em um numero:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posicao de '0' na tabela ASCII)\n num = (int)(CPF.charAt(i) - 48); \n sm = sm + (num * peso);\n peso = peso - 1;\n }\n\n r = 11 - (sm % 11);\n if ((r == 10) || (r == 11))\n dig10 = '0';\n else dig10 = (char)(r + 48); // converte no respectivo caractere numerico\n\n// Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 11;\n for(i=0; i<10; i++) {\n num = (int)(CPF.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso - 1;\n }\n\n r = 11 - (sm % 11);\n if ((r == 10) || (r == 11))\n dig11 = '0';\n else dig11 = (char)(r + 48);\n\n// Verifica se os digitos calculados conferem com os digitos informados.\n if ((dig10 == CPF.charAt(9)) && (dig11 == CPF.charAt(10)))\n return(true);\n else return(false);\n } catch (InputMismatchException erro) {\n return(false);\n }\n\t}", "public static boolean isValidFoodAmount(Integer test) {\n return test > 0;\n }", "public static boolean isCPF(String CPF) {\n\t\t if (CPF.equals(\"00000000000\") || CPF.equals(\"11111111111\") ||\n\t\t CPF.equals(\"22222222222\") || CPF.equals(\"33333333333\") ||\n\t\t CPF.equals(\"44444444444\") || CPF.equals(\"55555555555\") ||\n\t\t CPF.equals(\"66666666666\") || CPF.equals(\"77777777777\") ||\n\t\t CPF.equals(\"88888888888\") || CPF.equals(\"99999999999\") ||\n\t\t (CPF.length() != 11))\n\t\t return(false);\n\n\t\t char dig10, dig11;\n\t\t int sm, i, r, num, peso;\n\n\t\t// \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n\t\t try {\n\t\t// Calculo do 1o. Digito Verificador\n\t\t sm = 0;\n\t\t peso = 10;\n\t\t for (i=0; i<9; i++) { \n\t\t// converte o i-esimo caractere do CPF em um numero:\n\t\t// por exemplo, transforma o caractere '0' no inteiro 0 \n\t\t// (48 eh a posicao de '0' na tabela ASCII) \n\t\t num = (int)(CPF.charAt(i) - 48); \n\t\t sm = sm + (num * peso);\n\t\t peso = peso - 1;\n\t\t }\n\n\t\t r = 11 - (sm % 11);\n\t\t if ((r == 10) || (r == 11))\n\t\t dig10 = '0';\n\t\t else dig10 = (char)(r + 48); // converte no respectivo caractere numerico\n\n\t\t// Calculo do 2o. Digito Verificador\n\t\t sm = 0;\n\t\t peso = 11;\n\t\t for(i=0; i<10; i++) {\n\t\t num = (int)(CPF.charAt(i) - 48);\n\t\t sm = sm + (num * peso);\n\t\t peso = peso - 1;\n\t\t }\n\n\t\t r = 11 - (sm % 11);\n\t\t if ((r == 10) || (r == 11))\n\t\t dig11 = '0';\n\t\t else dig11 = (char)(r + 48);\n\n\t\t// Verifica se os digitos calculados conferem com os digitos informados.\n\t\t if ((dig10 == CPF.charAt(9)) && (dig11 == CPF.charAt(10)))\n\t\t return(true);\n\t\t else return(false);\n\t\t } catch (Exception e) {\n\t\t return(false);\n\t\t }\n\t\t }", "private boolean isNumericoConFraccion(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tcase '.':\r\n\t\t\treturn dotCountValidate();\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "private static boolean esCapicua(int num) {\n\t\treturn num == invertirNumero(num);\n\t}", "private boolean isOddPrime(int t) // Not the most efficient method, but it will serve\n {\n int test = 3;\n boolean foundFactor = false;\n while(test*test < t && !foundFactor)\n {\n foundFactor = (t%test == 0); // is it divisible by test\n test += 2;\n }\n\n return !foundFactor;\n }", "public static boolean isPerfectNumber(int number)\n {\n if(number < 1)\n {\n return false;\n }\n int sum = 0;\n for(int i=1; i<number; i++)\n {\n if(number % i == 0)\n {\n sum += i;\n }\n }\n if(sum==number)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "boolean hasB21();", "private final boolean m42356c(int i) {\n return i == this.f34094a - 1;\n }", "public boolean nearHundred(int n) {\n return ((Math.abs(100 - n) <= 10) || (Math.abs(200 - n) <= 10));\n}", "@Test\n\tpublic void whenNumberFiveFactorialOneHandredTwenty() {\n\t\tFactorial fact = new Factorial();\n\t\tint result = fact.calc(5);\n\t\tint expected = 120;\n\t\tassertThat(result, is(expected));\n\t}", "public static boolean checkNumberExist(Context context, String number, int type) {\n\t\tUri queryUri = null;\n\t\tif(type == 1) {\n\t\t\tqueryUri = Uri.withAppendedPath(BLACKLIST_URI, number);\n\t\t} else {\n\t\t\tqueryUri = Uri.withAppendedPath(WHITELIST_URI, number);\n\t\t}\n\t\tCursor cursor = context.getContentResolver().query(queryUri, null, null, null, null);\n\t\tboolean exist = false;\n\t\tif(cursor != null) {\n\t\t\ttry {\n\t\t\t\tif(cursor.moveToNext()) {\n\t\t\t\t\texist = true;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.w(TAG, \"no GomeBlacklist exit: \" + e);;\n\t\t\t} finally {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\t\treturn exist;\n\t}", "public boolean zzft(int i) {\n if (this.f602zE == i) {\n return true;\n }\n Log.w(\"GoogleApiClientConnecting\", this.f600zA.f682yW.zzatb());\n String valueOf = String.valueOf(this);\n Log.w(\"GoogleApiClientConnecting\", new StringBuilder(String.valueOf(valueOf).length() + 23).append(\"Unexpected callback in \").append(valueOf).toString());\n Log.w(\"GoogleApiClientConnecting\", \"mRemainingConnections=\" + this.f603zF);\n String valueOf2 = String.valueOf(zzfu(this.f602zE));\n String valueOf3 = String.valueOf(zzfu(i));\n Log.wtf(\"GoogleApiClientConnecting\", new StringBuilder(String.valueOf(valueOf2).length() + 70 + String.valueOf(valueOf3).length()).append(\"GoogleApiClient connecting is in step \").append(valueOf2).append(\" but received callback for step \").append(valueOf3).toString(), new Exception());\n zzf(new ConnectionResult(8, null));\n return false;\n }", "public static void main(String[] args) {\n\n\n System.out.println(\"pick a number up to 100\");\n\n Scanner user = new Scanner(System.in);\n\n\n int u;\n u = user.nextInt();\n\n\n int Max = 100;\n int Min = 1;\n\n\n if (u > 0 && u <= 100) {\n\n if (u % 3 == 0 && u % 5 == 0) {\n System.out.println(\"fizz buzz\");\n\n\n } else if (u % 3 == 0) {\n System.out.println(\"fizz\");\n\n } else if (u % 5 == 0) {\n\n System.out.println(\"buzz\");\n }\n } else if (u > 100)\n {\n System.out.println(u);\n\n }\n\n\n\n System.out.println(\"please enter your grade\");\n\n Scanner grade = new Scanner(System.in);\n int g;\n g = grade.nextInt();\n\n\n if (g >= 80){\n System.out.println(\"you got an A!\");\n }else if(g <= 79 || g>= 60) {\n System.out.println(\"you got an B!\");\n }else if(g <= 59 || g >= 50) {\n System.out.println(\"you got an C!\");\n }else if(g <= 49 || g >=45 ) {\n System.out.println(\"you got an D!\");\n }else if(g < 45) {\n System.out.println(\"you got an F!\");\n\n }\n\n System.out.println(\"Good job!\");\n\n\n\n\n\n\n\n\n\n\n\n\n }", "static boolean arePandigital(int a, int b, int c) {\n // Array to check that all digits are accounted for\n boolean[] nums = new boolean[10];\n\n // Fill in digits in a, b, c\n if(!fillInDigits(a, nums)) return false;\n if(!fillInDigits(b, nums)) return false;\n if(!fillInDigits(c, nums)) return false;\n\n if(nums[0]) return false;\n for(int i = 1; i < nums.length; i++) if(!nums[i]) return false;\n\n return true;\n }", "public static boolean containTwoOrThree(int[] numbers)\r\n {\r\n if (numbers[0] == 2 || numbers[1] == 2)\r\n {\r\n return true;\r\n }\r\n else if(numbers[0]==3 || numbers[1]==3)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "public boolean checkNumberContinuation(String password) {\n for (int i = 0; i < password.length(); i++) {\n if (String.valueOf(password.charAt(i)).matches(\"[0-9]\")) { //next time: Character.isDigit(passtword.charAt(i))\n if ((password.charAt(i) + 1 == password.charAt(i + 1))\n && (password.charAt(i) + 2 == password.charAt(i + 2))) {\n return false;\n }\n }\n }\n return true;\n }", "boolean hasZ();", "boolean hasZ();", "public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }", "public boolean isDigit(int i) {\n if (i < 1632) {\n return i <= 57 && 48 <= i;\n }\n return Collation.hasCE32Tag(getCE32(i), 10);\n }", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "public static boolean isCatPlaying(boolean summer, int temperature) {\n int maxTemp = summer ? 45 : 35;\n System.out.println(temperature >= 25 && temperature <= maxTemp);\n return temperature >= 25 && temperature <= maxTemp;\n// System.out.println(temperature > 24 && temperature < 46 && summer == true || temperature > 24 && temperature < 36);\n// return temperature > 24 && temperature < 46 && summer || temperature > 24 && temperature < 36;\n }", "@Test\n\tpublic void gcdOfFiboNumsTest() {\n\n\t\tAssert.assertTrue(ifn.gcdOfFiboNums(3, 12) == 2);\n\t}", "private boolean mo102a(int i) {\n switch (i) {\n case 0:\n return true;\n case 1:\n return this.f340a != null;\n case 2:\n return this.f341b != null;\n case 3:\n return (this.f341b == null || this.f340a == null) ? false : true;\n default:\n return false;\n }\n }", "public static boolean isSpecial(int num) {\n\t\tint a = 2;// be the div number\r\n\t\tint b = 0;// be the number count 2,3,4,5\r\n\t\tnum = 2*num;\r\n\t\tint c = num/4;\r\n\t\tint d = 0;\r\n\t\tif (num <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\twhile (num > 1) {\r\n\t\t\tif(a > c){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (num % a == 0) {\r\n\t\t\t\twhile (num % a == 0) {\r\n\t\t\t\t\tnum = num / a;\r\n\t\t\t\t}\r\n\t\t\t\tb++;\r\n\t\t\t\t}\r\n\t\t\ta++;\r\n\t\t\t}\r\n\t\tint e = b;\r\n\t\td = e;\r\n\t\tif (d != 3)\r\n\t\t{return false;}\r\n\t\tif( d==3 ){return true;}\r\n\r\n\t\treturn false;\r\n\t}", "private boolean esFilaValida(int fila) {\n return (fila>=0 && fila<=casillas.length);\n }", "private static boolean isPrime(int number) {\n\n\t\tif (number <= NUMBER_ONE) {\n\t\t\treturn false; \n\t\t}\n\n\t\tfor (int i = NUMBER_TWO; i < number; i++) {\n\t\t\tif (number % i == NUMBER_ZERO) { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}", "boolean getB26();" ]
[ "0.7557172", "0.7012979", "0.6243567", "0.616249", "0.60169196", "0.5909941", "0.57083166", "0.561045", "0.5604274", "0.54845893", "0.5441663", "0.54128146", "0.54117393", "0.54117393", "0.54117393", "0.53921527", "0.536931", "0.5349117", "0.5345607", "0.5331652", "0.5312489", "0.5299291", "0.5295729", "0.5286605", "0.5276601", "0.5253752", "0.5253533", "0.52138907", "0.5161531", "0.5160008", "0.51542765", "0.51345086", "0.51340353", "0.5114914", "0.51148444", "0.51088256", "0.50971603", "0.5093396", "0.5085067", "0.507892", "0.5056932", "0.50559056", "0.5030863", "0.50209874", "0.50180334", "0.50134575", "0.4998831", "0.4992139", "0.4988802", "0.49756157", "0.494475", "0.49445805", "0.49409702", "0.49348012", "0.4905286", "0.48975646", "0.48864755", "0.4883868", "0.48702794", "0.48695752", "0.4861988", "0.48544905", "0.48493463", "0.4834014", "0.48177606", "0.4812258", "0.48085955", "0.48049468", "0.47968358", "0.47958085", "0.47952574", "0.47939968", "0.47917262", "0.47913826", "0.47871572", "0.4785832", "0.47854665", "0.47846702", "0.4783517", "0.4782762", "0.4772257", "0.47714618", "0.47706714", "0.47584227", "0.4742745", "0.47248575", "0.4716621", "0.47163865", "0.47156292", "0.47156292", "0.47148585", "0.4714779", "0.4708503", "0.47080174", "0.47077838", "0.47073218", "0.47050372", "0.46957642", "0.46833518", "0.46775785" ]
0.7852362
0
Determine if the given number is fizz.
protected static boolean isFizz(final int fizzNum, final int num) { return num % fizzNum == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) {\n\t\treturn isFizz(fizzNum, num) && isBuzz(buzzNum, num);\n\t}", "public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\n //ask or integer\nSystem.out.println(\"Please enter a positive integer to see the FizzBuzz numbers\");\nint num = input.nextInt();\n// decalre and initialize count\nint count = 0;\nwhile(count < num){\n //increase value on count by 1\n count = count + 1;\n //check for fizz buzz answers\n if ((count % 5 == 0) && (count % 3 == 0)){System.out.println(\"You should say FizzBuzz\");\n } else if ((count % 3 == 0)){\n System.out.println(\"You should say Buzz\");\n }else if ((count % 5 == 0)){\n System.out.println(\"You should say Buzz\");\n }else if ((count % 3 !=0) && (count % 5 !=0)){\n System.out.println(\"You should say\" + \" \" + count);\n }\n}\r\n \r\n }", "public static Say fizzBuzz(int number){\n StringBuilder message = new StringBuilder();\n\n for (int i = 1; i <= number; i++){\n if (i % 3 == 0 && i % 5 == 0) {\n message.append(\"Fizz Buzz\");\n } else if (i % 3 == 0) {\n message.append(\"Fizz\");\n } else if (i % 5 == 0) {\n message.append(\"Buzz\");\n } else {\n message.append(Integer.toString(i));\n }\n message.append(\"...\");\n }\n message.append(\"....Thank you for playing Phone Buzz!\");\n return new Say.Builder(message.toString()).build();\n }", "public void fizzBuzz(int upperRange)\n {\n for(int i = 1; i <= upperRange; i++) {\n if ((i % 3 == 0) && (i % 5 == 0))\n {\n System.out.println(\"FizzBuzz\");\n }\n else if (i % 3 == 0) {\n System.out.println(\"Fizz\");\n }\n else if (i % 5 == 0) {\n System.out.println(\"Buzz\");\n }\n else\n {\n System.out.println(i);\n }\n }// end for\n }", "protected static boolean isBuzz(final int buzzNum, final int num) {\n\t\treturn num % buzzNum == 0;\n\t}", "private boolean isFactor() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tswitch(theCurrentToken.TokenType)\n\t\t{\n\t\t\tcase INTEGER: case TRUE: case FALSE: //case FLOAT:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.IF || theCurrentSymbol.getType() == TokenType.FOR)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.INTEGER || theCurrentToken.TokenType == TokenType.TRUE || theCurrentToken.TokenType == TokenType.FALSE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(theCurrentSymbol.getType() == TokenType.INTEGER || theCurrentSymbol.getType() == TokenType.BOOL //|| theCurrentSymbol.getType() == TokenType.FLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.GETINTEGER || theCurrentSymbol.getType() == TokenType.GETBOOL //|| theCurrentSymbol.getType() == TokenType.GETFLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.PUTINTEGER || theCurrentSymbol.getType() == TokenType.PUTBOOL //|| theCurrentSymbol.getType() == TokenType.PUTFLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(theCurrentSymbol.getType() == TokenType.FLOAT && theCurrentToken.TokenType == TokenType.INTEGER)\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase FLOAT:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif( theCurrentSymbol.getType() == TokenType.FLOAT || theCurrentSymbol.getType() == TokenType.GETFLOAT || theCurrentSymbol.getType() == TokenType.PUTFLOAT\n\t\t\t\t\t|| theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase CHAR:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.IF || theCurrentSymbol.getType() == TokenType.FOR)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentSymbol.getParameterTypes() == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttheCurrentSymbol.setParameterTypes(Arrays.asList(theCurrentToken.TokenType));\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(theCurrentSymbol.getParameterTypes().get(0) == theCurrentToken.TokenType)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.CHAR || theCurrentSymbol.getType() == TokenType.GETCHAR || \n\t\t\t\t\ttheCurrentSymbol.getType() == TokenType.PUTCHAR || theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase STRING:\n\t\t\t\tif(theCurrentSymbol != null)\n\t\t\t\t{\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.IF || theCurrentSymbol.getType() == TokenType.FOR)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(theCurrentSymbol.getParameterTypes() == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttheCurrentSymbol.setParameterTypes(Arrays.asList(theCurrentToken.TokenType));\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(theCurrentSymbol.getParameterTypes().get(0) == theCurrentToken.TokenType)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(theCurrentSymbol.getType() == TokenType.STRING || theCurrentSymbol.getType() == TokenType.GETSTRING || \n\t\t\t\t\ttheCurrentSymbol.getType() == TokenType.PUTSTRING || theCurrentSymbol.getType() == TokenType.PROCEDURE)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tcase MINUS:\n\t\t\t\tupdateToken();\n\t\t\t\tif(isName())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse if(isFactor())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LEFT_PARENTHESIS:\n\t\t\t\tupdateToken();\n\t\t\t\tif(isExpression())\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_PARENTHESIS)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IDENTITY:\n\t\t\t\tisValid = isName();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tisValid = false;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "@Test\n\tpublic void isFibonacciTest() {\n\t\tAssert.assertTrue(ifn.isFibonacci(21));\n\t\tAssert.assertTrue(ifn.isFibonacci(144));\n\t\tAssert.assertTrue(!ifn.isFibonacci(150));\n\t\tAssert.assertTrue(!ifn.isFibonacci(56));\n\t}", "public void print(int i) throws FizzException, BuzzException {\n\n if (i%3==0) throw new FizzException();\n if (i%5==0) throw new BuzzException();\n\n System.out.println(i);\n }", "protected static void printFizzBuzz(final int fizzNum, final int buzzNum, final int topNum) {\n\t\tif(topNum > 1) {\n\t\t\tfor(int i = 1; i <= topNum; i++) {\n\t\t\t\tString output = \"\";\n\t\t\t\tif(isFizzBuzz(fizzNum, buzzNum, i)) {\n\t\t\t\t\toutput = \"FB\";\n\t\t\t\t} else if(isBuzz(buzzNum, i)) {\n\t\t\t\t\toutput = \"B\";\n\t\t\t\t} else if(isFizz(fizzNum, i)) {\n\t\t\t\t\toutput = \"F\";\n\t\t\t\t} else {\n\t\t\t\t\toutput = String.valueOf(i);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(output + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(); // print a new line as the end of this test case.\n\t}", "public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t\t}\n\t}", "public static boolean isFibonacci(Integer num)\n {\n int check = 1;\n int check2 = 0;\n for(int check3 = 0;check < num; check = check3)\n {\n check3 = check + check2;\n check2 = check;\n if(check3 == num)\n return true;\n }\n return false;\n }", "public void fizzBuzzTest() {\n FizzBuzz fizzBuzz = new FizzBuzz();\n String[] resultArray = {fizzBuzz.detect(15), fizzBuzz.detect(3), fizzBuzz.detect(5), fizzBuzz.detect(4)};\n\n for (int i = 0; i < resultArray.length ; i++) {\n if (resultArray[i].equals(expectedResultArray[i])) {\n System.out.println(expectedResultArray[i] + \" test = OK\");\n } else {\n System.out.println(expectedResultArray[i] + \" test = FAIL\");\n }\n }\n\n }", "static Stream<String> toFizzBuzzStream(IntStream intStream) {\n \treturn intStream\n .boxed()\n .map(x -> (x%3==0? \"Fizz\": \"\") + (x%5==0? \"Buzz\": \"\")+ ((x%3!=0)&&(x%5!=0)? x: \"\"));\n }", "public static void main(String[] args){\n for(int i = 1; i <= 100; i++){\n\n //prints Fizz if i is divisible by 3\n if(i % 3 == 0)\n System.out.print(\"Fizz\");\n //prints Buzz if i is divisible by 5\n if(i % 5 == 0)\n System.out.print(\"Buzz\");\n //prints i number if not divisible by 3 or 5\n if(i % 3 != 0 && i %5 != 0)\n System.out.print(i);\n //goes to next line\n System.out.println();\n\n }\n\n }", "public static boolean isGood(int num){\r\n\t\tif ((num<0)||(num>6)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t // Call fizzBuzz method and verify correct output\t\n\t}", "public static boolean areFactors(int n, int[] a){\n for(int i=0; i<a.length; i++){\n if(n % a[i] != 0) return false;\n }\n return true;\n }", "public static boolean is6 (int num){\r\n\t\t\r\n\t\tif(num%6==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\t\r\n\t}", "public static void main(String[] args) {\n\n for( int i=1 ; i<=5 ; i++ ){\n System.out.println(\"i = \"+i);\n System.out.println(\"Happy Birthday SEDA CIVAN\");\n\n }\nfor(int x=10;x>=1;--x){\n System.out.println(x);\n}\n System.out.println(\"-------------------------------\");\nfor (int number=0;number<=100 ;number+=2){\n System.out.print(number+\" \");\n}\n System.out.println(\"-------------------------------\");\n\nfor(int x=0 ; x<100 ; x+= 3 ){\n System.out.print(x+\" \");\n}\n System.out.println();\n System.out.println(\"-------------------------even number------\");\n for (int i = 0; i <100 ; i++) {\n if(i%2==0){\n System.out.print(i+\" \");\n }\n\n //THE SHORT CUT FOR GENERATING FOR LOOP IS : fori enter or tab\n\n }\n System.out.println();\n System.out.println(\"-------------------------------\");\n for (int q = 0; q < 100; q++) {\n if (q%5==0 && q%3==0){\n System.out.println(q+\" fizz buzz number\");\n }\n\n }\n\n//everything you can do with for loop --> can be done using while loop !!!!\n\n }", "boolean hasNumber();", "private static boolean isFibonacci(BigInteger numberToCheck) {\n boolean isFibonacci = false;\n List<BigInteger> fibonacciSequence;\n for (int i = numberToCheck.intValue(); !isFibonacci; i++) {\n fibonacciSequence = fibonacciJava8(i).collect(Collectors.toList());\n\n if (fibonacciSequence.contains(numberToCheck)) {\n isFibonacci = true;\n } else if (fibonacciSequence.get(fibonacciSequence.size() - 1).compareTo(numberToCheck) > 0) {\n break;\n }\n }\n\n return isFibonacci;\n }", "@Test\r\n\tpublic void testEvery15thElement() {\r\n\t\tfor (int i = 14; i < fb.fizzBuzzed().length; i+=15) {\r\n\t\t\t\tAssert.assertEquals(\"FizzBuzz\", fb.fizzBuzzed()[i]);\r\n\t\t}\r\n\t}", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public static String printbyF(int n) {\n\t\tif (n < 1) {\n\t\t\tSystem.out.println(\"Invalid Input Number!! n Cannot Be Less Than 1!!\");\n\t\t\treturn \"Invalid\";\n\t\t}\n\t\tint Fibonacci = getFibonacci(n);\n\t\tif (isPrime(Fibonacci)) {\n\t\t\tSystem.out.println(\"BuzzFizz\");\n\t\t\treturn \"BuzzFizz\";\n\t\t}else if(Fibonacci%15==0){\n\t\t\tSystem.out.println(\"FizzBuzz\");\n\t\t\treturn \"FizzBuzz\";\n\t\t}else if(Fibonacci%5==0){\n\t\t\tSystem.out.println(\"Fizz\");\n\t\t\treturn \"Fizz\";\n\t\t}else if(Fibonacci%3==0){\n\t\t\tSystem.out.println(\"Buzz\");\n\t\t\treturn \"Buzz\";\n\t\t}else{\n\t\t\tSystem.out.println(Fibonacci);\n\t\t\treturn Integer.toString(Fibonacci);\n\t\t}\n\t}", "boolean hasHadithChapterNo();", "public static void main(String arg[]) {\n\t\tint no, i;\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter range of numbers\");\n\t\tno = s.nextInt();\n\t\tfor (i = 1; i <= no; i++) {\n\t\t\tif ((i % (3 * 5)) == 0) {\n\t\t\t\tSystem.out.println(\"FizzBuzz\\n\");\n\t\t\t} else if ((i % 5) == 0) {\n\t\t\t\tSystem.out.println(\"Buzz\\n\");\n\t\t\t} else if ((i % 3) == 0) {\n\t\t\t\tSystem.out.println(\"Fizz\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}", "public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }", "public static boolean isValidFoodAmount(Integer test) {\n return test > 0;\n }", "public static void main(String[] args) {\n\t\tString fizzBuzz = \"FizzBuzz\";\n\t\t\n\t\tfor(int count = 1; count <101; count++){\n\t\t\tif ((count%3==0) && (count%5)==0){\n\t\t\t\tSystem.out.println(fizzBuzz);\n\t\t\t}\n\t\t\telse if(count%3==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(0, 4));\n\t\t\t}\n\t\t\telse if(count%5==0){\n\t\t\t\tSystem.out.println(fizzBuzz.substring(4, fizzBuzz.length()));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(count);\n\t\t\t}\n\t\t}\n\t}", "public static Boolean isForthQuarterUnderOver(Integer integer) {\r\n\t\treturn forthQuarterUnderOver.contains(integer);\r\n\t}", "public void fizzBuzzBar(int upperRange)\n {\n String result = \"\";\n for(int i = 1; i <= upperRange; i++) {\n if (i % 3 == 0) {\n result += \"Fizz\";\n }\n if (i % 5 == 0) {\n result += \"Buzz\";\n }\n if(i % 7 == 0)\n {\n result += \"Bar\";\n }\n if( result.isEmpty())\n {\n result += String.valueOf(i);\n }\n System.out.println(result);\n\n result = \"\";\n }// end for\n }", "private static boolean m55560tZ(int i) {\n return i == 7;\n }", "private boolean esFilaValida(int fila) {\n return (fila>=0 && fila<=casillas.length);\n }", "public boolean isValid(int number)", "@Test public void facTest() {\n check(\"declare function local:fac($n, $f) {\" +\n \" if($n = 0) then $f\" +\n \" else local:fac($n - 1, $f * $n)\" +\n \"};\" +\n \"local:fac(123, xs:decimal('1'))\",\n\n \"12146304367025329675766243241881295855454217088483382315328918161829\" +\n \"23589236216766883115696061264020217073583522129404778259109157041165\" +\n \"14721860295199062616467307339074198149529600000000000000000000000000\" +\n \"00\",\n\n exists(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'true']\")\n );\n }", "private static void LessonFizzBuzzLab() {\n //Write a loop that counts from 0-100\n for(int index=0; index <= 100; index++) {\n //If the value is divisible by 15 print \"FizzBuzz\"\n if(index%3 == 0 && index%5 == 0) {\n //If the value is divisible by 3 print \"Fizz\"\n System.out.println(\"FizzBuzz\");\n } else if(index%3 == 0) {\n System.out.println(\"Fizz\");\n //If the value is divisible by 5 print \"Buzz\"\n } else if(index%5 == 0) {\n System.out.println(\"Buzz\");\n //If the value is not divisible by 3,5, or 15 simply print the number\n } else {\n System.out.println(index);\n }\n }\n //Write code that will throw an exception (other than the ones we covered in the lesson) and catch it.\n String[] myStrArray = new String[2];\n myStrArray[0] = \"Hello\";\n myStrArray[1] = \"Hello\";\n try {\n System.out.println(myStrArray[2]);\n } catch(ArrayIndexOutOfBoundsException error){\n System.out.println(error);\n }\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num1 = scanner.nextInt();\n int num2 = scanner.nextInt();\n\n for (; num1 <= num2; num1++) {\n if (num1 % 3 == 0) {\n if (num1 % 5 == 0) {\n System.out.println(\"FizzBuzz\");\n } else {\n System.out.println(\"Fizz\");\n }\n } else if (num1 % 5 == 0) {\n System.out.println(\"Buzz\");\n } else {\n System.out.println(num1);\n }\n }\n }", "public static boolean isDivisibleBy(int number, int factor) {\n\t\tif(factor == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"cannot divide by 0\");\r\n\t\t}\r\n\t\treturn(number % factor == 0);\r\n\r\n\t}", "public static boolean isPerfectNumber(int number)\n {\n if(number < 1)\n {\n return false;\n }\n int sum = 0;\n for(int i=1; i<number; i++)\n {\n if(number % i == 0)\n {\n sum += i;\n }\n }\n if(sum==number)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public static void test(){\n int[] a = {3,6,9, 12,81,72};\n int n = 648;\n boolean flag = areFactors(n, a);\n if(flag == true){\n System.out.println(n +\" is divisible by all elements of array.\");\n }\n else{\n System.out.println(n + \" fails the test.\");\n }\n }", "public static boolean isPrime(int num)\n {\n //test for numbers less than 2 because they aren't prime\n if(num < 2)\n {\n return false;\n }\n //test to see if the number has factors\n for(int i = 2; i < num; i ++)\n {\n if(num % i == 0) \n return false;\n }\n \n return true;\n }", "@Test\n\tpublic void whenNumberFiveFactorialOneHandredTwenty() {\n\t\tFactorial fact = new Factorial();\n\t\tint result = fact.calc(5);\n\t\tint expected = 120;\n\t\tassertThat(result, is(expected));\n\t}", "public static void main(String[] args) {\n Scanner klav = new Scanner(System.in);\n int skaicius;\n\n System.out.println(\"Iveskite sveikaji skaiciu\");\n skaicius = klav.nextInt();\n if(skaicius % 15 == 0){\n System.out.println(\"fizzbuzz\");\n }\n if(skaicius % 15 != 0 && skaicius % 3 == 0){\n System.out.println((\"fizz\"));\n }\n if(skaicius % 15 != 0 && skaicius % 3 != 0 && skaicius % 5 == 0){\n System.out.println(\"buzz\");\n }\n if (skaicius % 3 != 0 && skaicius % 5 != 0){\n System.out.println(\"Ivedete ne FIZZBUZZINI skaiciu!\");\n }\n }", "public abstract boolean isHappy(int n);", "private String[] fizzBuzz(int n) {\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tfor (int i = 1; i <= n; i++) { //O(n)\n\t\t\t// Put map with i and value if i is divisible by 5\n\t\t\t// and 3 put FizzBuzz\n\t\t\tif (i % 3 == 0 && i % 5 == 0)\n\t\t\t\tmap.put(i, \"FizzBuzz\");\n\t\t\t// if i is divisible by 3 put as Fizz\n\t\t\telse if (i % 3 == 0)\n\t\t\t\tmap.put(i, \"Fizz\");\n\t\t\t// if i is divisible by 5 put as FizzBUzz\n\t\t\telse if (i % 5 == 0)\n\t\t\t\tmap.put(i, \"Buzz\");\n\t\t\telse\n\t\t\t\tmap.put(i, i + \"\");\n\t\t}\n//return Map values as String []\n\t\tString[] str = new String[n];\n\t\tfor (int i = 0; i <= n - 1; i++) { //O(n)\n\t\t\tstr[i] = map.get(i + 1);\n\t\t}\n\t\treturn str;\n\t}", "public boolean mo37854a(int i) {\n return i >= this.f22370b;\n }", "private final boolean m42356c(int i) {\n return i == this.f34094a - 1;\n }", "boolean hasNum1();", "public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n \r\n\t for (int factor = 3; factor <= Math.sqrt(currentNumber); factor += 2)\r\n\t {\r\n\t if(currentNumber % factor == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n\t }\r\n \tprocessLastDigit();\r\n\t return true;\r\n\t}", "private boolean isOddPrime(int t) // Not the most efficient method, but it will serve\n {\n int test = 3;\n boolean foundFactor = false;\n while(test*test < t && !foundFactor)\n {\n foundFactor = (t%test == 0); // is it divisible by test\n test += 2;\n }\n\n return !foundFactor;\n }", "public boolean nearHundred(int n) {\n return ((n > 100 && n % 100 < 10) || n % 100 > 89);\n }", "public static boolean isCPF(String CPF) {\n\t if (CPF.equals(\"00000000000\") ||\n\t CPF.equals(\"11111111111\") ||\n\t CPF.equals(\"22222222222\") || CPF.equals(\"33333333333\") ||\n\t CPF.equals(\"44444444444\") || CPF.equals(\"55555555555\") ||\n\t CPF.equals(\"66666666666\") || CPF.equals(\"77777777777\") ||\n\t CPF.equals(\"88888888888\") || CPF.equals(\"99999999999\") ||\n\t (CPF.length() != 11))\n\t return(false);\n\n\t char dig10, dig11;\n\t int sm, i, r, num, peso;\n\n\t // \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n\t try {\n\t // Calculo do 1o. Digito Verificador\n\t sm = 0;\n\t peso = 10;\n\t for (i=0; i<9; i++) {\n\t // converte o i-esimo caractere do CPF em um numero:\n\t // por exemplo, transforma o caractere '0' no inteiro 0\n\t // (48 eh a posicao de '0' na tabela ASCII)\n\t num = (int)(CPF.charAt(i) - 48);\n\t sm = sm + (num * peso);\n\t peso = peso - 1;\n\t }\n\n\t r = 11 - (sm % 11);\n\t if ((r == 10) || (r == 11))\n\t dig10 = '0';\n\t else dig10 = (char)(r + 48); // converte no respectivo caractere numerico\n\n\t // Calculo do 2o. Digito Verificador\n\t sm = 0;\n\t peso = 11;\n\t for(i=0; i<10; i++) {\n\t num = (int)(CPF.charAt(i) - 48);\n\t sm = sm + (num * peso);\n\t peso = peso - 1;\n\t }\n\n\t r = 11 - (sm % 11);\n\t if ((r == 10) || (r == 11))\n\t dig11 = '0';\n\t else dig11 = (char)(r + 48);\n\n\t // Verifica se os digitos calculados conferem com os digitos informados.\n\t if ((dig10 == CPF.charAt(9)) && (dig11 == CPF.charAt(10)))\n\t return(true);\n\t else return(false);\n\t } catch (InputMismatchException erro) {\n\t return(false);\n\t }\n\t }", "public static boolean isCPF(String CPF) {\n\t\t if (CPF.equals(\"00000000000\") || CPF.equals(\"11111111111\") ||\n\t\t CPF.equals(\"22222222222\") || CPF.equals(\"33333333333\") ||\n\t\t CPF.equals(\"44444444444\") || CPF.equals(\"55555555555\") ||\n\t\t CPF.equals(\"66666666666\") || CPF.equals(\"77777777777\") ||\n\t\t CPF.equals(\"88888888888\") || CPF.equals(\"99999999999\") ||\n\t\t (CPF.length() != 11))\n\t\t return(false);\n\n\t\t char dig10, dig11;\n\t\t int sm, i, r, num, peso;\n\n\t\t// \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n\t\t try {\n\t\t// Calculo do 1o. Digito Verificador\n\t\t sm = 0;\n\t\t peso = 10;\n\t\t for (i=0; i<9; i++) { \n\t\t// converte o i-esimo caractere do CPF em um numero:\n\t\t// por exemplo, transforma o caractere '0' no inteiro 0 \n\t\t// (48 eh a posicao de '0' na tabela ASCII) \n\t\t num = (int)(CPF.charAt(i) - 48); \n\t\t sm = sm + (num * peso);\n\t\t peso = peso - 1;\n\t\t }\n\n\t\t r = 11 - (sm % 11);\n\t\t if ((r == 10) || (r == 11))\n\t\t dig10 = '0';\n\t\t else dig10 = (char)(r + 48); // converte no respectivo caractere numerico\n\n\t\t// Calculo do 2o. Digito Verificador\n\t\t sm = 0;\n\t\t peso = 11;\n\t\t for(i=0; i<10; i++) {\n\t\t num = (int)(CPF.charAt(i) - 48);\n\t\t sm = sm + (num * peso);\n\t\t peso = peso - 1;\n\t\t }\n\n\t\t r = 11 - (sm % 11);\n\t\t if ((r == 10) || (r == 11))\n\t\t dig11 = '0';\n\t\t else dig11 = (char)(r + 48);\n\n\t\t// Verifica se os digitos calculados conferem com os digitos informados.\n\t\t if ((dig10 == CPF.charAt(9)) && (dig11 == CPF.charAt(10)))\n\t\t return(true);\n\t\t else return(false);\n\t\t } catch (Exception e) {\n\t\t return(false);\n\t\t }\n\t\t }", "public static void main(String[] args) {\n\n for(int i=0;i<16;i++){\n if ((i%3)==0 || (i%5)==0){\n System.out.println(\"fuzzBuzz\");\n }else if ((i%3)==0){\n System.out.println(\"fuzz\");\n }else if((i%5)==0){\n System.out.println(\"buzz\");\n }else\n System.out.println(i);\n }\n }", "public static boolean isPowerof3(int num){\n\t\tif (Math.pow(3,20) % num == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t\t// while (num % 3 == 0){\n\t\t// \tnum /= 3;\n\t\t// \tif (num == 1){\n\t\t// \t\treturn true;\n\t\t// \t}\n\t\t// }\n\t\t// return false;\n\t}", "static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\twhile(number>0) {\r\n\t\t\tif(lastDigit<=number%10) {\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlastDigit= number%10;\r\n\t\t\tnumber/=10;\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(flag) \r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static final boolean m34339a(int i) {\n return i == 1;\n }", "public static void Factorization(int number)\n\t{\n\t\t for(int i = 2; i< number; i++)\n\t\t {\n\t while(number%i == 0) \n\t {\n\t System.out.print(i+\" \");\n\t number = number/i;\n\t\t\n\t }\n\t \n\t }\n \n if(2<=number)\n {\n System.out.println(number);\n }\n \n }", "static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}", "boolean hasNum2();", "protected boolean isFish(int id) {\n\t\treturn id == Item.fishRaw.shiftedIndex;\n\t}", "private int fidonicyNumber(int number) {\n\t\tif(number ==0 || number == 1)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn fidonicyNumber(number-1) + fidonicyNumber(number-2);\n\t}", "public static void main(String[] a){\n System.out.println(\"----Sum of the factors of perfect number is the number itself----\");\r\n System.out.println();\t\t\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tint n = sc.nextInt();\r\n\t\t\r\n\t\tboolean b = isperfect(n);\r\n\t\tif(b){\r\n\t\t \tSystem.out.println(\"perfect number\");\r\n\t\t} else{\r\n\t\t\tSystem.out.println(\"Not a perfect number\");\r\n\t\t}\r\n\t\t\r\n\t \r\n\t}", "private boolean isNumericoConFraccion(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tcase '.':\r\n\t\t\treturn dotCountValidate();\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public final boolean zzhf() {\n AppMethodBeat.i(68698);\n Calendar instance = Calendar.getInstance();\n this.zzafm = TimeUnit.MINUTES.convert((long) (instance.get(16) + instance.get(15)), TimeUnit.MILLISECONDS);\n Locale locale = Locale.getDefault();\n String toLowerCase = locale.getLanguage().toLowerCase(Locale.ENGLISH);\n String toLowerCase2 = locale.getCountry().toLowerCase(Locale.ENGLISH);\n this.zzafn = new StringBuilder((String.valueOf(toLowerCase).length() + 1) + String.valueOf(toLowerCase2).length()).append(toLowerCase).append(\"-\").append(toLowerCase2).toString();\n AppMethodBeat.o(68698);\n return false;\n }", "public static void factors(int number) {\n System.out.println(\"The factors of the numbers\" + number + \" are: \");\r\n // creating a for loop to go through the numbers to find its factors (dividing the number by each number until it is divisible by itself)\r\n for (int i = 1; i <= number; i++) {\r\n double answer = number / i;\r\n\r\n // if there are no reaminders print out the factors- if there is a remainder it is not a factor\r\n if (number % i == 0) {\r\n System.out.println((int) answer);\r\n }\r\n\r\n }\r\n\r\n }", "public boolean isCPF(String CPF) {\n if (CPF.equals(\"00000000000\") || CPF.equals(\"11111111111\") ||\n CPF.equals(\"22222222222\") || CPF.equals(\"33333333333\") ||\n CPF.equals(\"44444444444\") || CPF.equals(\"55555555555\") ||\n CPF.equals(\"66666666666\") || CPF.equals(\"77777777777\") ||\n CPF.equals(\"88888888888\") || CPF.equals(\"99999999999\") ||\n (CPF.length() != 11))\n return(false);\n\n char dig10, dig11;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 10;\n for (i=0; i<9; i++) {\n // converte o i-esimo caractere do CPF em um numero:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posicao de '0' na tabela ASCII)\n num = (int)(CPF.charAt(i) - 48); \n sm = sm + (num * peso);\n peso = peso - 1;\n }\n\n r = 11 - (sm % 11);\n if ((r == 10) || (r == 11))\n dig10 = '0';\n else dig10 = (char)(r + 48); // converte no respectivo caractere numerico\n\n// Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 11;\n for(i=0; i<10; i++) {\n num = (int)(CPF.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso - 1;\n }\n\n r = 11 - (sm % 11);\n if ((r == 10) || (r == 11))\n dig11 = '0';\n else dig11 = (char)(r + 48);\n\n// Verifica se os digitos calculados conferem com os digitos informados.\n if ((dig10 == CPF.charAt(9)) && (dig11 == CPF.charAt(10)))\n return(true);\n else return(false);\n } catch (InputMismatchException erro) {\n return(false);\n }\n\t}", "public String speak(int i) {\n\t\tString spoken = Integer.toString(i);\n\t\t\n if ((i%15)==0){\n\t\t\tspoken = \"FizzBuzz\";\n return spoken;\n\t\t}\n \n \n\t\tif ((i%5)==0){\n\t\t\tspoken = \"Buzz\";\n return spoken;\n\t\t}\n\t\t\n\t\tif ((i%3)==0){\n\t\t\tspoken = \"Fizz\";\n return spoken;\n\t\t}\n\t\t\n\t\treturn spoken;\n\t}", "public boolean zzft(int i) {\n if (this.f602zE == i) {\n return true;\n }\n Log.w(\"GoogleApiClientConnecting\", this.f600zA.f682yW.zzatb());\n String valueOf = String.valueOf(this);\n Log.w(\"GoogleApiClientConnecting\", new StringBuilder(String.valueOf(valueOf).length() + 23).append(\"Unexpected callback in \").append(valueOf).toString());\n Log.w(\"GoogleApiClientConnecting\", \"mRemainingConnections=\" + this.f603zF);\n String valueOf2 = String.valueOf(zzfu(this.f602zE));\n String valueOf3 = String.valueOf(zzfu(i));\n Log.wtf(\"GoogleApiClientConnecting\", new StringBuilder(String.valueOf(valueOf2).length() + 70 + String.valueOf(valueOf3).length()).append(\"GoogleApiClient connecting is in step \").append(valueOf2).append(\" but received callback for step \").append(valueOf3).toString(), new Exception());\n zzf(new ConnectionResult(8, null));\n return false;\n }", "public boolean isHappy(int n) {\n\t\tSet<Integer> nums = new HashSet<Integer>();\n\n\t\twhile (nums.add(n)) {\n\t\t\tint sum = 0;\n\t\t\tint no = n;\n\t\t\twhile (no > 0) {\n\t\t\t\tint rem = no % 10;\n\t\t\t\tsum += rem * rem;\n\t\t\t\tno = no / 10;\n\t\t\t}\n\t\t\tif (n == 1)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tn = sum;\n\n\t\t}\n\n\t\treturn false;\n\n\t}", "public static void main(String[] args) {\n\r\n\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter a number to find its factorial\");\r\n int n = sc.nextInt();\r\n\r\n for(int i = 1 ; i<=n; i++)\r\n {\r\n if(n % i ==0) {\r\n System.out.println(i + \" is factorial\");\r\n }\r\n }\r\n\r\n }", "private static boolean mo115226a(float f) {\n if (!Float.isNaN(f)) {\n return true;\n }\n return false;\n }", "@Test\n public void testFactorialValid()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"7\");\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"5040\"));\n //NKD: Would prefer for this to be calculated by some function, rather than a magic number\n //However, java.lang.Math doesn't have fibonacci or factorial functions AFAIK\n }", "public static boolean Q5(String test) {\n\t\tSystem.out.println(Pattern.matches(\"^\\\\d\\\\D{3}\",test));\n\t\treturn Pattern.matches(\"[abc].+\",test);\n\t}", "public boolean useF()\n {\n return (Greenfoot.isKeyDown(\"f\"));\n }", "@ParameterizedTest(name = \"{0}\") // use toString() as name\n\t\t@EnumSource(FibonacciNumber.class)\n\t\tpublic void testFibonacciNumbers(FibonacciNumber number) {\n\t\t\tBigInteger expected = number.value;\n\t\t\tBigInteger actual = FibonacciGenerator.fibonacciNumber(number.ordinal());\n\t\t\tassertEquals(expected, actual);\n\t\t}", "public static boolean isFloatingPointClass(Class nClazz) {\n\t\tif (!isNumericClass(nClazz))\n\t\t\tthrow new IllegalArgumentException(\"NaN Class: \" + nClazz);\n\t\tif (nClazz.isPrimitive())\n\t\t\tnClazz = ClassUtils.primitiveToWrapper(nClazz);\n\t\treturn ArrayUtils.contains(floatingPointClasses, nClazz);\n\t}", "private static int countFactors(int number) {\n // number of factors\n int factors = 0;\n\n // count factors\n for (int counter = 1; counter <= Math.sqrt(number); counter++) {\n if (Math.sqrt(number) <= TARGET_FACTORS / HALF) {\n break;\n }\n if (number % counter == 0) {\n factors++;\n }\n }\n\n return factors * MULTIPLIER_TWO;\n }", "private boolean ifCorrect (int number){\n boolean check_correct = false;\n String temp = Integer.toString(number);\n char [] charArr = temp.toCharArray();\n for (int k = 0; k < temp.length()-1; k++){\n if (charArr[k] <= charArr[k+1]){\n check_correct = true;\n }\n else {\n check_correct = false;\n break;\n }\n }\n return check_correct;\n }", "public boolean hasFactor() {\n\t\treturn this.hasFactor;\n\t}", "public static boolean f(long n) {\r\n boolean boo1 = true;\r\n // boo = true if the number is prime, & false otherwise.\r\n if (n <= 1) { // 0 and 1 arent prime numbers.\r\n boo1 = false;\r\n } else {\r\n for (int i = 2; i < n; i++) {\r\n // the condition has to be i < n so n (especially prime) wouldn't be divided itself.\r\n if (n % i == 0)\r\n boo1 = false;\r\n }\r\n }\r\n return boo1;\r\n }", "public boolean mo7628o(int i) {\n return (i & this.f4378h) != 0;\n }", "public boolean checkPerfectNumber(int num) {\n //num == 1 is special case.\n if(num == 1) return false;\n int sum = 1;\n for(int i = 2; i <= Math.sqrt(num); i++){\n if(num%i == 0){\n if(i == num/i) sum+=i;\n else sum = sum+i+num/i;\n }\n }\n return sum == num;\n }", "public static void main(String[] args) {\n\n\n System.out.println(\"pick a number up to 100\");\n\n Scanner user = new Scanner(System.in);\n\n\n int u;\n u = user.nextInt();\n\n\n int Max = 100;\n int Min = 1;\n\n\n if (u > 0 && u <= 100) {\n\n if (u % 3 == 0 && u % 5 == 0) {\n System.out.println(\"fizz buzz\");\n\n\n } else if (u % 3 == 0) {\n System.out.println(\"fizz\");\n\n } else if (u % 5 == 0) {\n\n System.out.println(\"buzz\");\n }\n } else if (u > 100)\n {\n System.out.println(u);\n\n }\n\n\n\n System.out.println(\"please enter your grade\");\n\n Scanner grade = new Scanner(System.in);\n int g;\n g = grade.nextInt();\n\n\n if (g >= 80){\n System.out.println(\"you got an A!\");\n }else if(g <= 79 || g>= 60) {\n System.out.println(\"you got an B!\");\n }else if(g <= 59 || g >= 50) {\n System.out.println(\"you got an C!\");\n }else if(g <= 49 || g >=45 ) {\n System.out.println(\"you got an D!\");\n }else if(g < 45) {\n System.out.println(\"you got an F!\");\n\n }\n\n System.out.println(\"Good job!\");\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public void PrimeFacor(int numberToFactorize) {\n\n System.out.println(\"Prime factors of \" + numberToFactorize + \" are ::\");\n\n for (int i = 2; i < numberToFactorize; i++) {\n\n while (numberToFactorize % i == 0) {\n System.out.println(i + \" \");\n numberToFactorize = numberToFactorize / i;\n\n }\n }\n if (numberToFactorize > 2) {\n System.out.println(numberToFactorize);\n }\n }", "public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }", "boolean hasB26();", "boolean hasInt();", "private final boolean m42354a(int i) {\n return i < this.f34094a;\n }", "boolean mo61579as(float f);", "public static boolean isEmirp(int n) \n{ \n//checks if the given number is prime or not \nif (isPrime(n) == false) \nreturn false; \n//variable that stores the reverse of the number \nint reverse = 0; \n//the while loop executes until the specified condition becomes false \nwhile (n != 0) \n{ \n//finds the last digit of the number (n) \nint digit = n % 10; \n//finds the reverse of the given number \nreverse = reverse * 10 + digit; \n//removes the last digit \nn = n/10; \n} \n//calling the user-defined function that checks the reverse number is prime or not \nreturn isPrime(reverse); \n}", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "public boolean isHappy(int n) {\n // n = 56\n // n = 61\n // n = 37\n\n Set<Integer> s = new HashSet<>();\n while (s.add(n)) {\n n = replace(n);\n if (n == 1) {\n return true;\n }\n }\n\n return false;\n }", "public void setNumber(int num) throws IllegalPizza {\n if(num < 1 || num > 100)\n throw new IllegalPizza(\"Invalid number of pizzas!\");\n this.numPizzas = num;\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "boolean hasFump();", "public boolean isPerfectSquare3(int num) {\n int i = 1;\n while (num > 0) {\n num -= i;\n i += 2;\n }\n return num == 0;\n }" ]
[ "0.70883197", "0.65310186", "0.61447865", "0.6068128", "0.5880585", "0.562699", "0.55974525", "0.5506082", "0.54711014", "0.5376676", "0.5374133", "0.53648525", "0.5341194", "0.5339999", "0.5327848", "0.5285925", "0.52535003", "0.52082044", "0.5190013", "0.5169571", "0.5161288", "0.51607525", "0.5129603", "0.5129603", "0.5129603", "0.5128644", "0.5102752", "0.5096033", "0.5087536", "0.50769794", "0.5002913", "0.49949244", "0.49755034", "0.49634114", "0.49568155", "0.4950995", "0.49385488", "0.49327788", "0.4928363", "0.49179912", "0.48972863", "0.4895636", "0.48821118", "0.48516858", "0.48487335", "0.48452136", "0.48191825", "0.4812384", "0.48015034", "0.47940573", "0.47891998", "0.47507086", "0.474713", "0.47366673", "0.47340587", "0.4727688", "0.47234917", "0.47085124", "0.47044155", "0.47001135", "0.46962854", "0.4678278", "0.46747148", "0.46640658", "0.46600094", "0.4648471", "0.46429527", "0.4639634", "0.46391693", "0.4636419", "0.46253628", "0.46243107", "0.46214607", "0.4610606", "0.4610566", "0.46091476", "0.46039483", "0.45957243", "0.45894614", "0.45885628", "0.45839104", "0.45816404", "0.45815524", "0.45736766", "0.45719922", "0.45682096", "0.45678833", "0.45676985", "0.4562235", "0.4561422", "0.45554048", "0.45539865", "0.45536712", "0.45533675", "0.45518053", "0.45507655", "0.45456234", "0.4545164", "0.4538249", "0.45343617" ]
0.8245952
0
Determine if the given number is buzz.
protected static boolean isBuzz(final int buzzNum, final int num) { return num % buzzNum == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) {\n\t\treturn isFizz(fizzNum, num) && isBuzz(buzzNum, num);\n\t}", "public boolean hasBlackjack() {\n\t\treturn this.hand.countValue().lower(22) == 21;\n\t}", "boolean hasNumber();", "boolean hasNumb();", "boolean hasB23();", "static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}", "boolean hasB26();", "public boolean isBomb() {\n return type.equalsIgnoreCase(\"bomb\");\n }", "boolean hasB22();", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public boolean isBankrupt() {\n\t\tif (money < 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean containsTheNumber(int number) {\r\n\t\treturn contains(Integer.toString(number).getBytes(charset));\r\n\t}", "static boolean isBobsTurn(int n) {\n\t\tint bitCount = 0;\n\t\twhile (n > 0) {\n\t\t\tbitCount += n & 1; // count last bit\n\t\t\tn >>= 1; // shift one right\n\t\t}\n\t\treturn bitCount % 2 == 1;\n\t}", "public boolean checkForNumber(int m, int n){\r\n\t\tif ( count[m][n] > 0 & count[m][n] < 9 & !bombs[m][n])\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}", "private final boolean m28065d(Number number) {\n return (number instanceof Integer) || (number instanceof Short) || (number instanceof Byte);\n }", "public static boolean isGood(int num){\r\n\t\tif ((num<0)||(num>6)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean hasBlackjack()\n {\n return getSumOfCards(false) == 21;\n }", "private static boolean isWangzha(List<PokerLabel> list) {\n for (PokerLabel p: list) {\n if (p.getNum() < 16) {\n return false;\n }\n }\n return true;\n }", "boolean hasB24();", "public boolean isValid(int number)", "boolean hasB25();", "static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\twhile(number>0) {\r\n\t\t\tif(lastDigit<=number%10) {\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlastDigit= number%10;\r\n\t\t\tnumber/=10;\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(flag) \r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public boolean isBust() {\n\t\tif(handValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static Say fizzBuzz(int number){\n StringBuilder message = new StringBuilder();\n\n for (int i = 1; i <= number; i++){\n if (i % 3 == 0 && i % 5 == 0) {\n message.append(\"Fizz Buzz\");\n } else if (i % 3 == 0) {\n message.append(\"Fizz\");\n } else if (i % 5 == 0) {\n message.append(\"Buzz\");\n } else {\n message.append(Integer.toString(i));\n }\n message.append(\"...\");\n }\n message.append(\"....Thank you for playing Phone Buzz!\");\n return new Say.Builder(message.toString()).build();\n }", "public abstract boolean isHappy(int n);", "public static boolean capicuaOrNot(String theNumber){\r\n\r\n //more local variables\r\n int counter=0, size=0;\r\n String newNumber=\"\";\r\n boolean yesOrNo=false;\r\n\r\n //process to determine wether it's capicúa or not\r\n size=theNumber.length()-1;\r\n //System.out.println(theNumber + size);\r\n for(counter=size; counter>=0; counter--){\r\n newNumber+=theNumber.charAt(counter);\r\n }//end of for loop\r\n System.out.println(newNumber);\r\n if(newNumber.equals(theNumber)){\r\n yesOrNo=true;\r\n }\r\n return yesOrNo;\r\n\r\n }", "public static boolean checkNumberExist(Context context, String number, int type) {\n\t\tUri queryUri = null;\n\t\tif(type == 1) {\n\t\t\tqueryUri = Uri.withAppendedPath(BLACKLIST_URI, number);\n\t\t} else {\n\t\t\tqueryUri = Uri.withAppendedPath(WHITELIST_URI, number);\n\t\t}\n\t\tCursor cursor = context.getContentResolver().query(queryUri, null, null, null, null);\n\t\tboolean exist = false;\n\t\tif(cursor != null) {\n\t\t\ttry {\n\t\t\t\tif(cursor.moveToNext()) {\n\t\t\t\t\texist = true;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.w(TAG, \"no GomeBlacklist exit: \" + e);;\n\t\t\t} finally {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\t\treturn exist;\n\t}", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "public Boolean checkBust() {\n\t\tif (getHandValue() > 21) {\n\t\t\tSystem.out.println(name + \" Busted!\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean haveMBQuant()\n {\n return ((mbType & QUANT) != 0);\n }", "private static boolean m55560tZ(int i) {\n return i == 7;\n }", "public static boolean isValidFoodAmount(Integer test) {\n return test > 0;\n }", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasB21();", "private final boolean m28064c(Number number) {\n return (number instanceof Short) || (number instanceof Byte);\n }", "boolean hasB27();", "public final boolean zzbq(int n) {\n String[] arrstring = zzbhf.zzdb(this.mContext).getPackagesForUid(n);\n if (arrstring != null && arrstring.length != 0) {\n int n2 = arrstring.length;\n for (n = 0; n < n2; ++n) {\n if (!this.zzfy(arrstring[n])) continue;\n return true;\n }\n }\n return false;\n }", "public boolean guess(int number) {\n\t\tif (number == secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Correct! The secret is \"+secret+\"\\n\"+\"The count is \"+ count);\n\t\t\treturn true;\n\t\t} else if (number < secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Sorry, too small.\");\n\t\t} else if (number > secret) {\n\t\t\tcount++;\n\t\t\tsetMessage(\"Sorry, too large.\");\n\t\t}\n\t\treturn false;\n\t}", "public final boolean zzmk() {\n return this.zzbtj.zzbsx != -1;\n }", "public static Boolean isOverUnder(Integer number, List<BET> bets) {\r\n\t\tBoolean result = Boolean.FALSE;\r\n\t\tif (bets.size() == 2\r\n\t\t\t\t&& (isGameUnderOver(number) || isFirstQuarterUnderOver(number)\r\n\t\t\t\t\t\t|| isSecondQuarterUnderOver(number)\r\n\t\t\t\t\t\t|| isThirdQuarterUnderOver(number)\r\n\t\t\t\t\t\t|| isForthQuarterUnderOver(number)\r\n\t\t\t\t\t\t|| isFirstPartUnderOver(number)\r\n\t\t\t\t\t\t|| isSecondPartUnderOver(number)\r\n\t\t\t\t\t\t|| isThirdPartUnderOver(number) || isFirstFiveInninngsUnderOver(number))) {\r\n\t\t\tresult = Boolean.TRUE;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "boolean hasBbgSymbol();", "public static boolean checkUnlucky(int num) {\n\t\twhile (num != 0) {\n\t\t\tif (num == 13) {\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\tnum = num / 10;\n\t\t}\n\t\treturn false;\n\t}", "private static boolean m13730b(int i) {\n if (!(i == C2087a.f5815B || i == C2087a.f5817D || i == C2087a.f5818E || i == C2087a.f5819F || i == C2087a.f5820G || i == C2087a.f5824K || i == C2087a.f5825L || i == C2087a.f5826M)) {\n if (i != C2087a.f5829P) {\n return false;\n }\n }\n return true;\n }", "boolean hasInt();", "private static boolean esCapicua(int num) {\n\t\treturn num == invertirNumero(num);\n\t}", "public boolean isHappy(int n) {\n // n = 56\n // n = 61\n // n = 37\n\n Set<Integer> s = new HashSet<>();\n while (s.add(n)) {\n n = replace(n);\n if (n == 1) {\n return true;\n }\n }\n\n return false;\n }", "boolean hasNum2();", "private boolean isDropped(double value) {\n double tar = rd.nextDouble();\n return value > tar;\n }", "private boolean haveMBPattern()\n {\n return ((mbType & PATTERN) !=0 );\n }", "public boolean isPositive(int number) {\n return number > 0;\n }", "public boolean isTollFree() \n\t{\n\t\treturn getNumber().charAt(1)=='8';\n\t}", "public boolean isDigit(int i) {\n if (i < 1632) {\n return i <= 57 && 48 <= i;\n }\n return Collation.hasCE32Tag(getCE32(i), 10);\n }", "public boolean isPositiveNumber(int number) {\n return number >= 0;\n }", "public final boolean zzk() {\n return (this.zzy & 256) != 0;\n }", "public static boolean luckyNumber3(int number) {\n\t\tint sum = 0;\n\t\twhile (number != 0) {\n\t\t\tsum = number % 10 - sum;\n\t\t\tnumber /= 10;\n\t\t}\n\t\treturn sum == 0;\n\t}", "private boolean checkSoThang(String soThang){\n String pattern = \"\\\\d+\"; \n return soThang.matches(pattern);\n }", "public final boolean mo34576b() {\n return this.f16545b == 1;\n }", "boolean hasB20();", "public boolean hasMoney(int x)\n\t{\n\t\treturn money >= x;\n\t}", "boolean hasNum1();", "boolean hasB19();", "public static boolean isCatPlaying(boolean summer, int temperature) {\n int maxTemp = summer ? 45 : 35;\n System.out.println(temperature >= 25 && temperature <= maxTemp);\n return temperature >= 25 && temperature <= maxTemp;\n// System.out.println(temperature > 24 && temperature < 46 && summer == true || temperature > 24 && temperature < 36);\n// return temperature > 24 && temperature < 46 && summer || temperature > 24 && temperature < 36;\n }", "private boolean ifCorrect (int number){\n boolean check_correct = false;\n String temp = Integer.toString(number);\n char [] charArr = temp.toCharArray();\n for (int k = 0; k < temp.length()-1; k++){\n if (charArr[k] <= charArr[k+1]){\n check_correct = true;\n }\n else {\n check_correct = false;\n break;\n }\n }\n return check_correct;\n }", "public boolean isHappy(int n) {\n\t\tSet<Integer> nums = new HashSet<Integer>();\n\n\t\twhile (nums.add(n)) {\n\t\t\tint sum = 0;\n\t\t\tint no = n;\n\t\t\twhile (no > 0) {\n\t\t\t\tint rem = no % 10;\n\t\t\t\tsum += rem * rem;\n\t\t\t\tno = no / 10;\n\t\t\t}\n\t\t\tif (n == 1)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tn = sum;\n\n\t\t}\n\n\t\treturn false;\n\n\t}", "boolean hasBunho();", "boolean hasBunho();", "boolean hasBackpack();", "boolean hasBlockNumber();", "boolean hasBlockNumber();", "boolean getB23();", "boolean isBasmalah();", "public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }", "public boolean checkForBlackjack(Player player) {\n\t\tif(player.getHandVal() == BLACKJACK) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public abstract void isBargein(long ms, boolean success);", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "boolean getB26();", "private final boolean m42355b(int i) {\n return i == 0;\n }", "private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }", "public boolean checkIfPiecedCanBeDroppedIn(int column_number){\n\t\tboolean flag = false;\n\t\tint row = 8;\n\t\twhile(row>=0){\n\t\t\tif(column_number <0 || column_number>24){\n\t\t\t\tflag=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(Board[row][column_number]=='\\u0000' || \n\t\t\t\t\tBoard[row][column_number]!='O' ){\n\t\t\t\t\t\trow--;\n\t\t\t}\t\n\t\t\telse if(Board[row][column_number]== 'O'){\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "public boolean hasBackpack() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean isTibetan();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }", "public boolean hasBackpack() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean happyNumber(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\tint sum = 0;\n\t\tHashSet<Integer> set = new HashSet<>();\n\t\tset.add(n);\n\t\twhile (sum != 1) {\n\t\t\tsum = 0;\n\t\t\twhile (n != 0) {\n\t\t\t\tsum += Math.pow(n % 10, 2);\n\t\t\t\tn /= 10;\n\t\t\t}\n\t\t\tif (set.contains(sum)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tset.add(sum);\n\t\t\t}\n\t\t\tn = sum;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isBullish(){\n return (Double.compare(this.open, this.close) < 0) ? true : false;\r\n }", "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "boolean getB22();", "private final boolean m42356c(int i) {\n return i == this.f34094a - 1;\n }", "public int hasBlackWon() {\n\t\tif(blackPieces == 0) {\n\t\t\treturn 1;\n\t\t} else if(whitePieces == 0) {\n\t\t\treturn 2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public static boolean checkIfArmstrongsNumber(int number){\n\t\tboolean isAremstrongNumber = false;\n\t\tint sum =0;\n\t\tchar [] numberArray =Integer.toString(number).toCharArray();\n\t for(char numbers:numberArray){\n\t \t Integer num=Integer.parseInt(Character.toString(numbers));\n\t \t sum=sum+(num*num*num);\n\t \t \n\t }\n\t\tif(sum == number){\n\t\t\tisAremstrongNumber = true;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\treturn isAremstrongNumber;\n\t\t\n\t}", "private boolean checkBlueBox(int i , int j) {\n if ( Start.shemaArray[i][j].bomb == 1)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean guess(int number) {\n\t\tcount++;\n\t\tif (number == secret) {\n\t\t\tsetHint(String.format(\"Correct. The secret is %d. You used %d guesses.\", this.secret, this.count));\n\t\t\treturn true;\n\n\t\t} else if (number < secret) {\n\t\t\tsetHint(\"Sorry,your guess is too small\");\n\t\t} else {\n\t\t\tsetHint(\"Sorry,your guess is too large\");\n\t\t}\n\t\treturn false;\n\n\t}", "boolean hasZ();", "boolean hasZ();", "public static boolean isValidNumber(String number) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(\"4\");\n\t set.add(\"7\");\n\t\t\n\t if(number.substring(0, 1).equals(\"3\") && set.contains(number.substring(1, 2)) && number.length() == 15) { return true; }\n\t\treturn false;\n\t}", "public boolean isCheese();" ]
[ "0.6548759", "0.5939486", "0.57751554", "0.5693228", "0.5684975", "0.5667475", "0.54611087", "0.5459104", "0.54345727", "0.5433827", "0.5433827", "0.5433827", "0.5426423", "0.5423171", "0.5422626", "0.5422039", "0.53846526", "0.53625935", "0.5360865", "0.5356776", "0.53444064", "0.5334829", "0.532865", "0.5309307", "0.5307492", "0.5299354", "0.52646005", "0.52609044", "0.52315784", "0.5204576", "0.5198169", "0.5185244", "0.51829225", "0.51723456", "0.51704466", "0.51431316", "0.512429", "0.50890595", "0.5081562", "0.5078368", "0.50754994", "0.50636345", "0.50579214", "0.5051245", "0.50422364", "0.50333303", "0.50299364", "0.5018374", "0.50076103", "0.50063705", "0.5005723", "0.5003463", "0.49926165", "0.49889046", "0.4987367", "0.49854627", "0.49746144", "0.49728325", "0.49582502", "0.49561745", "0.4956039", "0.49557897", "0.4953393", "0.49503797", "0.49479327", "0.49469906", "0.49467555", "0.49358764", "0.49358764", "0.4931497", "0.4929958", "0.4929958", "0.4924655", "0.4924149", "0.49086452", "0.4905901", "0.49039498", "0.4895308", "0.48934707", "0.48923475", "0.48893064", "0.48874652", "0.48800346", "0.4867561", "0.4864301", "0.48567575", "0.485514", "0.48474616", "0.48454976", "0.48448616", "0.4840305", "0.48379308", "0.48280308", "0.48217204", "0.48071688", "0.48038062", "0.48034385", "0.48034385", "0.47946867", "0.4793356" ]
0.8076287
0
create files directory under /data/data/package name
public boolean copyBinaryFromAssetsToData(String out_screenFileName) { File filesDirectory = new File(fileDir); InputStream is; try { is = mContext.getAssets().open(screenFileName); // copy ffmpeg file from assets to files dir Log.i(TAG, "copyBinaryFromAssetsToData fileNameFromAssets " + screenFileName + " => " + filesDirectory + " filename " + out_screenFileName); File myFile = new File(filesDirectory, out_screenFileName); // if (myFile.exists()) { // return true; // } final FileOutputStream os = new FileOutputStream(myFile); byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; int n; while(EOF != (n = is.read(buffer))) { os.write(buffer, 0, n); } os.close(); is.close(); File ffmpegFile = new File(filesDirectory, out_screenFileName); if(!ffmpegFile.canExecute()) { Log.i(TAG, "FFmpeg File is not executable, trying to make it executable ..."); if (ffmpegFile.setExecutable(true)) { return true; } else { Log.w(TAG, "make excute failed"); } } else { Log.i(TAG, "FFmpeg file is executable"); return true; } } catch (IOException e) { Log.e(TAG, "issue in coping binary from assets to data. ", e); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void createRootDir() {\n }", "@Override\n public void createDirectory(File storageName) throws IOException {\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "private void createFolder(String myFilesystemDirectory) {\n\r\n File file = new File(myFilesystemDirectory);\r\n try {\r\n if (!file.exists()) {\r\n //modified \r\n file.mkdirs();\r\n }\r\n } catch (SecurityException e) {\r\n Utilidades.escribeLog(\"Error al crear carpeta: \" + e.getMessage());\r\n }\r\n }", "@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "public File prepareDataFolder() {\n if (!dataFolder.exists()) {\n dataFolder.mkdirs();\n }\n return dataFolder;\n }", "public static String getDataDir(String path) {\n\t\tFile dir = new File(System.getProperty(\"user.dir\"));\n\t\tif (!(dir.toString().endsWith(\"samples\")))\n\t\t\tdir = dir.getParentFile();\n\t\tdir = new File(dir, \"resources\");\n\t\tdir = new File(dir, path);\n\t\tif (dir.isDirectory() == false)\n\t\t\tdir.mkdir();\n\t\treturn dir.toString();\n\t}", "@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }", "private void createEssentialDirs() throws TNotFoundEx{\n\t\tFileUtil fT = new FileUtil();\n\t\tfT.createDirOnDevice(TicklerVars.sdCardPath);\n\t\tif (!fT.isExistOnDevice(TicklerVars.sdCardPath))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.sdCardPath+\". Check your configurations in Tickler.conf file\");\n\t\tfT.createDirOnHost(TicklerVars.appTickDir);\n\t\tif (!fT.isExist(TicklerVars.appTickDir))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.appTickDir+\". Check your configurations in Tickler.conf file\");\n\t\t\n\t}", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void createTDenseDirectory() {\n File dense = new File(DenseLayerPath);\n dense.mkdir();\n }", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "public void createDir(File file) {\n if (!file.exists()) {\n file.mkdir();\n }\n }", "public int mkdirs(String callingPkg, String path) throws RemoteException;", "private void createFolders() {\n File f = new File(System.getProperty(\"user.dir\") + \"/chatimages/\");\n if (!f.exists()){\n f.mkdir();\n }\n }", "Folder createFolder();", "private static String createAppSpecificLocalDir(String baseDir, String applicationIdString,\n String user, int dagIdentifier) {\n return baseDir + File.separator + \"usercache\" + File.separator + user + File.separator +\n \"appcache\" + File.separator + applicationIdString + File.separator + dagIdentifier;\n }", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "@Override\n\tpublic void run() {\n\t\tString path = \"D:\\\\test\";\n\t\tfor(int i=1;i<65535;i++){\n\t\t\tFile file = new File(path+File.separator+name+i);\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.mkdirs();\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "public void createDir(File file){\n\t\tif (!file.exists()) {\n\t\t\tif (file.mkdir()) {\n\t\t\t\tlogger.debug(\"Directory is created!\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Failed to create directory!\");\n\t\t\t}\n\t\t}\n\t}", "public static void initCacheFileByData(Context context) {\n\t\tfinal String imageDir = getAppFilesDirByData(context)+ CACHE_IMG_DIR_PATH;\n\t\tfinal File imageFileDir = new File(imageDir);\n\t\tif (!imageFileDir.exists()) {\n\t\t\timageFileDir.mkdirs();\n\t\t}\n\t}", "public static void createDirectories() \r\n\t{\r\n\t\tif(!fCertificatesDir().exists()) \r\n\t\t{\r\n\t\t\tfCertificatesDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fDbDir().exists()) \r\n\t\t{\r\n\t\t\tfDbDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsDir().exists())\r\n\t\t{\r\n\t\t\tfMibsDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsBinaryDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsBinaryDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsTextDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsTextDir().mkdir();\r\n\t\t}\r\n\t}", "protected static void createDirectory(MasterProcedureEnv env, NamespaceDescriptor nsDescriptor)\n throws IOException {\n createDirectory(env.getMasterServices().getMasterFileSystem(), nsDescriptor);\n }", "static void initContacts(){\n String directory = \"contacts\";\n String filename = \"contacts.txt\";\n Path contactsDirectory= Paths.get(directory);\n Path contactsFile = Paths.get(directory, filename);\n try {\n if (Files.notExists(contactsDirectory)) {\n Files.createDirectories((contactsDirectory));\n System.out.println(\"Created directory\");\n }\n if (!Files.exists(contactsFile)) {\n Files.createFile(contactsFile);\n System.out.println(\"Created file\");\n }\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n }", "public static String getFilesStoreDir(Context ctx) {\n\t\tString filedir = \"\";\n\t\tif (XSSysUtil.existSDCard(ctx)) {\n\t\t\tfiledir = android.os.Environment.getExternalStorageDirectory()\n\t\t\t\t\t+ \"/\" + ctx.getPackageName();\n\t\t} else {\n\t\t\tfiledir = \"data/data/\" + ctx.getPackageName();\n\t\t}\n\n\t\tFile fFile = new File(filedir);\n\t\tif (!fFile.exists()) {\n\t\t\tboolean success = fFile.mkdirs();\n\t\t\tif(!success){\n\t\t\t\tLog.e(TAG, \"getFilesStoreDir()-->first mkdirs fail!\");\n\t\t\t}\n\t\t}\n\n\t\tfiledir += \"/Files\";\n\t\tfFile = new File(filedir);\n\t\tif (!fFile.exists()) {\n\t\t\tboolean success = fFile.mkdirs();\n\t\t\tif(!success){\n\t\t\t\tLog.e(TAG, \"getFilesStoreDir()-->second mkdirs fail!\");\n\t\t\t}\n\t\t}\n\t\treturn filedir;\n\t}", "public static void createDirectory(String srcDir, String nameDir) {\n try {\n Path path = Paths.get(srcDir + \"/\" + nameDir);\n\n Files.createDirectories(path);\n System.out.println(\"Directory is created\");\n } catch (IOException e) {\n System.err.println(\"ERROR CREATION! \" + e.getMessage());\n }\n\n }", "public void setAppFolder(String file_name) {\n File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Chitchato\");\n if (!file.exists()) {\n new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Chitchato\").mkdir();\n }\n }", "private static File setYdfDirectory()\r\n/* 27: */ throws IOException\r\n/* 28: */ {\r\n/* 29: 32 */ log.finest(\"OSHandler.setYdfDirectory\");\r\n/* 30: 33 */ ydfDirectory = new File(USER_HOME + \"/\" + \".yourdigitalfile\");\r\n/* 31: 34 */ ydfDirectory.mkdir();\r\n/* 32: 35 */ return ydfDirectory;\r\n/* 33: */ }", "public static void main(String[] args) {\n doCreateDir();\n }", "public void makeData() {\n\t\tFile file = null;\r\n try {\r\n if (!m.getDataFolder().exists()) { //Check if the directory of the plugin exists...\r\n \tm.getDataFolder().mkdirs(); //If not making one.\r\n }\r\n file = new File(m.getDataFolder(), \"data.yml\"); // Defining file to data.yml NOTE: This file has to be also in your Project, even if it's empty.\r\n if (!file.exists()) { //Check if it exists\r\n \tm.getLogger().info(\"data.yml not found, creating!\"); //Log that it is creating\r\n \tm.saveResource(\"data.yml\", true); //Saving the resource, This is all by Java done no Spigot noeeded. \r\n } else {\r\n \tm.getLogger().info(\"data.yml found, loading!\"); //If it is already there, load it.\r\n \t//TODO: Loading...\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();//If something returned a NPE or something it will print a stacktrace...\r\n }\r\n\t}", "private static void checkFridgeDataDirectory() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n Path path = Paths.get(DATA_FILE_PATH); //creates Path instance\n try {\n Files.createDirectories(Paths.get(DIRECTORY));\n Files.createFile(path); //creates file at specified location\n } catch (IOException e) {\n readFridgeData();\n }\n }", "static void mkdirs(File f) {\n f.mkdirs();\n }", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "private static void createDir(File f) {\n int limit = 10;\n while (!f.exists()) {\n if (!f.mkdir()) {\n createDir(f.getParentFile());\n }\n limit --;\n if(limit < 1) {\n break;\n }\n }\n if (limit == 0) {\n }\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "public Path getDataDirectory();", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "public boolean makeDirectory(){\n File root = new File(Environment.getExternalStorageDirectory(),\"OQPS\");\n if(!root.exists()){\n return root.mkdir();\n }\n return true; //folder already exists\n }", "private void makeDir(String targetDir){\n\t\tchar letter = 'A';\n\t\tnew File(targetDir + \"\\\\Sorted Music\").mkdir();\n\t\t\n\t\tfor (int i = 0; i < 26; i++){\n\t\t\tnew File(targetDir + \"\\\\Sorted Music\\\\\" + letter).mkdir();\n\t\t\tletter++;\n\t\t}\n\t}", "protected File makeUnpackDir() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@EventListener(ApplicationReadyEvent.class)\n private void createImageDirectory()\n {\n new File(productImageUpload).mkdir();\n }", "protected static void autoCreate(File dataDir) throws Exception {\n\r\n if ( ! dataDir.exists() && ! dataDir.mkdirs() ) {\r\n Object[] args = new Object[] { Convert.fromFile(dataDir) };\r\n throw new ThreadStopException(Text.get(Format.class,\"e9\",args)).setHint(Text.get(Format.class,\"h9\",args));\r\n }\r\n }", "public static void makeNewFile(File root, String name) {\n File directory = new File(root, name);\n try {\n if (!directory.createNewFile()) {\n throw new IOException(\"Could not create \" + name + \", file already exists\");\n }\n } catch (IOException e) {\n throw new UncheckedIOException(\"Failed to create file: \" + name, e);\n }\n }", "public void setup() {\n\t\tif (!new File(plugin.getDataFolder() + path).exists())\r\n\t\t\tnew File(plugin.getDataFolder() + path).mkdir();\r\n\r\n\t\tif (!new File(plugin.getDataFolder() + path, name + \".yml\").exists())\r\n\t\t\ttry {\r\n\t\t\t\tnew File(plugin.getDataFolder() + path, name + \".yml\").createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tplugin.getLogger().log(Level.SEVERE, \"Could not generate \" + name + \".yml\");\r\n\t\t\t}\r\n\t}", "private static File prepareTempFolder() {\n File result;\n try {\n result = java.nio.file.Files.createTempDirectory(\n DCOSService.class.getSimpleName()).toFile();\n System.out.println(result.toString());\n\n return result;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "int setup(int files, int dirs, int depth) {\n try {\n Path tmp = Files.createTempDirectory(getClass().getSimpleName());\n tmp.toFile().deleteOnExit();\n Path root = tmp.resolve(ROOTNAME);\n root.toFile().deleteOnExit();\n Files.createDirectory(root);\n int n = makeDir(1, root, files, dirs, depth);\n this.root = root.toString();\n return n / 3;\n } catch (IOException e) {\n throw new ExceptionInInitializerError(\"UNABLE TO SETUP FILE STRUCTURE!\");\n }\n }", "public File createContainingDir(File basedir) {\n String dirname = FileUtils.toSafeFileName(_url.getHost()+\"_\"+_layerName);\n File dir = new File(basedir, dirname );\n \n for(int i=1; dir.exists(); i++){\n dir = new File(basedir, dirname+\"_\"+i);\n }\n return dir;\n }", "public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }", "private static File createReserveDiskCacheDir(Context context) {\n\t\tFile cacheDir = StorageUtils.getCacheDirectory(context, false);\n\t\tFile individualDir = new File(cacheDir, \"lazy-cache\");\n\t\tif (individualDir.exists() || individualDir.mkdir()) {\n\t\t\tcacheDir = individualDir;\n\t\t}\n\t\treturn cacheDir;\n\t}", "@Override\n public void onClick(View v) {\n\n writeFile();\n\n File INTERNAL = getFilesDir();\n File EXT_DIR = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File dataDir = Environment.getExternalStorageDirectory();\n\n Log.d(\"FILE\", \"INTERNAL: \" + INTERNAL.getAbsolutePath());\n Log.d(\"FILE\", \"EXTERNAL: \" + EXT_DIR.getAbsolutePath());\n Log.d(\"FILE\", \"DATA: \" + dataDir.getAbsolutePath());\n }", "private void createresultDir() throws IOException\n\t{\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t RESULTDIR = Parameters.RESULT_LOCAL_DIR+'/'+sdf.format(new Date());\n\t\t boolean exists = (new File(Parameters.RESULT_LOCAL_DIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(Parameters.RESULT_LOCAL_DIR)).mkdirs();\n\t\t exists = (new File(RESULTDIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(RESULTDIR)).mkdirs();\n\t\t boolean append = true;\n\t FileHandler fh = new FileHandler(RESULTDIR+\"/report.log\", append);\n\t fh.setFormatter(new LogFormatter());\n\t logfile.addHandler(fh);\n\t}", "private String createDataSourceDirectory(String dataSourceID,File[] selectedFiles){\n \n //Create directory to store files associated to dataSource\n File dir = new File(sessionDirectory.getPath()+\"/\"+dataSourceID);\n dir.mkdir();\n \n //Add created directory to map \"dataSourcesDirectories\"\n dataSourcesDirectories.put(dataSourceID,dir);\n \n String value = \"\";\n \n //For each file\n try {\n \n File newFile = null;\n \n for(File file : selectedFiles) {\n \n newFile = new File(dir.getPath()+\"/\" + file.getName());\n \n //Create new file\n newFile.createNewFile();\n \n //Read original file into recently created file\n BufferedReader br = new BufferedReader(new FileReader(file));\n PrintWriter pw = new PrintWriter(new FileWriter(newFile));\n String line;\n while((line = br.readLine()) != null)\n pw.write(line+\"\\n\");\n pw.flush();\n pw.close();\n br.close();\n }\n \n //Construct a string representing all created files\n if(selectedFiles.length == 1)\n value = dir.getPath()+\"/\"+selectedFiles[0].getName();\n else{\n for(int i=0;i<selectedFiles.length-1;i++)\n value = value + dir.getPath() + \"/\" + selectedFiles[i].getName() + \";\";\n value = value + dir.getPath() + \"/\" + selectedFiles[selectedFiles.length-1].getName();\n }\n \n return value;\n \n }catch (IOException ex) { }\n \n return value;\n \n }", "private File createTempFolder(String osBasePath, String prefix, String suffix) {\n File baseTempFolder = getTempFolder(osBasePath);\n if (!baseTempFolder.isDirectory()) {\n if (baseTempFolder.isFile()) {\n deleteFileOrFolder(baseTempFolder);\n }\n if (!baseTempFolder.mkdirs()) {\n return null;\n }\n }\n for (int i = 1; i < 100; i++) {\n File folder = new File(baseTempFolder, String.format(\"%1$s.%2$s%3$02d\", prefix, suffix, i));\n if (!folder.exists()) {\n return folder;\n }\n }\n return null;\n }", "public void setUp() {\n new File(TEST_FILE).getParentFile().mkdirs();\n }", "int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "private void makeFolder(File folderNameFile) {\n\t\tfolderNameFile.mkdir();\n\t}", "private void createNewDirectory() {\n getMainWindow().addWindow(\n new TextInputDialog(\n \"Create Directory\",\n \"Create Directory\",\n \"New Folder\",\n new TextInputDialog.Callback() {\n public void onDialogResult(boolean happy, String newDirectory) {\n if ( happy\n && isValidFile(newDirectory)) {\n try {\n // Verzeichnis anlegen\n File newDir = getFile(newDirectory);\n if (!newDir.exists()) {\n newDir.mkdir(0755);\n }\n // Prüfen, ob das Verzeichnis angelegt wurde\n if (newDir.exists()) {\n loadXtreemFSData();\n showNotification(\"Success\", \"Directory \" + newDirectory + \" created.\", Notification.TYPE_TRAY_NOTIFICATION, null);\n }\n else {\n showNotification(\"Error\", \"Directory \" + newDirectory + \" could not be created.\", Notification.TYPE_WARNING_MESSAGE, null);\n }\n } catch (IOException e) {\n showNotification(\"Error\", e.toString(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n }\n }\n }));\n }", "public static File saveFile(String name, String data) {\n if (name == null) {\n name = \"\";\n }\n String fullyQualifiedName = name;\n\n // if filename is not absolute use current path as base dir\n if (!new File(fullyQualifiedName).isAbsolute()) {\n fullyQualifiedName = Paths.get(\"\").toAbsolutePath() + \"/\" + name;\n }\n try {\n // create subdirs (if there any)\n if (fullyQualifiedName.contains(\"/\")) {\n File f = new File(fullyQualifiedName.substring(0, fullyQualifiedName.lastIndexOf(\"/\")));\n f.mkdirs();\n }\n File file = new File(fullyQualifiedName);\n file.createNewFile();\n FileUtils.write(file, data, \"UTF-8\");\n log.info(\"Wrote: {}\", file.getAbsolutePath());\n return file;\n } catch (IOException e) {\n log.error(\"Could not create file {}\", name, e);\n return null;\n }\n }", "private static void createDirectory(Path path) throws IOException {\n\t\ttry {\n\t\t\tFiles.createDirectory(path);\n\t\t} catch (FileAlreadyExistsException e) {\n\t\t\tif (!Files.isDirectory(path)) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t}", "public boolean makeDirectory( String directory, FileType type );", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "public boolean createFiles(String filename) {\n\t\t\t// Create files in SD card for location recording\n\t\t\tFile sdDir = new File(\"/sdcard/\");\n\t\t\tif(sdDir.exists() && sdDir.canWrite()) {\n\t\t\t\tFile sensiDir = new File(sdDir.getAbsolutePath()+\"/sensiloc/\");\n\t\t\t\tif(sensiDir.isDirectory()) {\n\t\t\t\t\t// Delete old files if exist\n\t\t\t\t\t/*for(File f:sensiDir.listFiles()) {\n\t\t\t\t\t\tf.delete();\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse sensiDir.mkdir();\n\t\t\t\t// Create files and assign corresponding file handler\n\t\t\t\tif(sensiDir.exists() && sensiDir.canWrite()) {\n\t\t\t\t\t\n\t\t\t\t/*\tfp = new File(sensiDir.getAbsoluteFile()+((curMethod == LocateMethod.LOCATE_GPS) ? \"/GPS_Record.txt\" :\n\t\t\t\t\t\t(curMethod == LocateMethod.LOCATE_NETWORK) ? \"/Network_Record.txt\" : \"/Adapt_Record.txt\") );*/\n\t\t\t\t\tfp = new File(sensiDir.getAbsoluteFile() + \"/\" + filename);\n\t\t\t\t\tif(fp.exists()) {\n\t\t\t\t\t\t// Delete existing file\n\t\t\t\t\t\tfp.delete();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfp.createNewFile();\n\t\t\t\t\t\t// Record start battery level\n\t\t\t\t\t\tIntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);\n\t\t\t\t\t\tIntent battery = getApplicationContext().registerReceiver(null, ifilter);\n\t\t\t\t\t\tint startLevel = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);\n\t\t\t\t\t\tint scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1);\n\t\t\t\t\t\tfw = new FileWriter(fp, true);\n\t\t\t\t\t\tfw.append(String.format(\"Battery Level: %d: %d\\n\", startLevel, scale));\n\t\t\t\t\t\tfw.flush();\n\t\t\t\t\t\t\n\t\t\t\t\t}catch(IOException e) {\n\t\t\t\t\t\tLog.e(LOG_TAG, \"Error creating files under \"+sensiDir.getPath(), e);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\n\t\t\t\t} else { // sensiDir.exists()\n\t\t\t\t\tLog.e(LOG_TAG, \"unable to write to /sdcard/sensiloc/\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else { // sdDir.exists\n\t\t\t\tLog.e(LOG_TAG, \"/sdcard not available\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "private void createOutputFiles(){\n\t\tFile folder = new File(C.appFolderPath + C.DEBUG_FOLDER);\n\t\tboolean success = true;\n\t\tif(folder.exists()){\n\t\t\t// erase the folder\n\t\t\tDeleteRecursive(folder);\n\t\t}\n\t\t\n\t\t// create necessary folders\n\t\tif (!folder.exists()) {\n\t\t success = folder.mkdir();\n\t\t Log.d(C.LOG_TAG, \"folder is not existed, create one\");\n\t\t} else {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: folder has not been deleted\");\n\t\t}\n\t\tFile monitorFolder = new File(C.appFolderPath + C.DEBUG_FOLDER + logFolder);\n\t\tmonitorFolder.mkdir();\n\n\t\ttry {\n\t\t\tmMatlabOutFile = new PrintWriter(new FileOutputStream(new File(C.appFolderPath+ C.DEBUG_FOLDER +\"matlab.txt\"),true));\n\t\t\tmMatlabOutFile.println(inputPrefix+audioSettingName);\n\t\t\tmMatlabOutFile.println(RECODER_CHANNEL_CNT);\n\t\t\tmMatlabOutFile.println(C.DEFAULT_VOL);\n\t\t\tmMatlabOutFile.close();\n\t\t\tmMatlabOutFile = null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open sensor file to write\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void makeFolders( final File directoryToCreate )\n throws MojoExecutionException\n {\n this.logger.debug( \"Creating folder '\" + directoryToCreate.getAbsolutePath() + \"' ...\" );\n if ( directoryToCreate.mkdirs() == false )\n {\n throw new MojoExecutionException( \"Could not create folder '\" + directoryToCreate.getAbsolutePath() + \"'!\" );\n }\n }", "private void createServiceDirectory(String serviceID){\n \n String changedServiceID = serviceID.replaceAll(\"\\\\.\",\"&\");\n changedServiceID = changedServiceID.replaceAll(\":\",\"&\");\n \n //Create directory to store output files of service\n File dir = new File(sessionDirectory.getPath()+\"/\"+changedServiceID);\n dir.mkdir();\n \n //Add created directory to map \"servicesDirectories\"\n servicesDirectories.put(serviceID,dir);\n \n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile file = new File(\"F:/Chandu/Test/Test1/Test2/Test3/Test4\");\n\t\t\n\t\t//create a directory\n\t\t\n\t\tboolean isFolderCreated =file.mkdirs();\n\t\t\n\t\tSystem.out.println(isFolderCreated);\n\t\t\n\t\t//get AbsolutePath\n\t\t\n\t\tString absolutePath =file.getAbsolutePath();\n\t\tSystem.out.println(absolutePath);\n\t\t\n\t\tString canonicalPath =file.getCanonicalPath();\n\t\tSystem.out.println(canonicalPath);\n\t\t\n\t\tboolean isDirectory =file.isDirectory();\n\t\t\n\t\tSystem.out.println(isDirectory);\n\t\t\n\t\t//how to create file\n\t\t\n\t\tFile file1 = new File(\"F:/Chandu/Test/abc.java\") ;\n\t\t\n\t\t//write data into file\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "private File createNewFile(String prefix){\n if(prefix==null || \"\".equalsIgnoreCase(prefix)){\n prefix=\"IMG_\";\n }\n File newDirectory = new File(Environment.getExternalStorageDirectory()+\"/mypics/\");\n if(!newDirectory.exists()){\n if(newDirectory.mkdir()){\n Log.d(mContex.getClass().getName(), newDirectory.getAbsolutePath()+\" directory created\");\n }\n }\n File file = new File(newDirectory,(prefix+ System.currentTimeMillis()+\".jpg\"));\n if(file.exists()){\n //this wont be executed\n file.delete();\n try {\n file.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return file;\n }", "abstract public String getDataResourcesDir();", "WithCreate withFolderPath(String folderPath);", "Directory createAsDirectory() {\n return getParentAsExistingDirectory().findOrCreateChildDirectory(name);\n }", "public File createSubDirectories(String directoryPath) {\n File myFilesDir = new File(this.assetFolderPath, directoryPath);\n\n if(!myFilesDir.isDirectory()) {\n myFilesDir.mkdirs();\n }\n return myFilesDir;\n }", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "private String initialFileSetup(String file_path, String user_id) {\n\n String[] path_components = file_path.split(\"/\");\n String desired_filename = path_components[path_components.length - 1];\n String absolute_path = new File(\"\").getAbsolutePath();\n absolute_path = absolute_path.concat(\"/Final\");\n new File(absolute_path).mkdirs();\n absolute_path = absolute_path.concat(\"/Pause\");\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/\".concat(user_id));\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/Pause_\".concat(desired_filename));\n\n return absolute_path;\n }", "@BeforeEach\n void before() {\n if (Files.notExists(path)) path.toFile().mkdirs();\n }", "private void writeToSDFile() {\n File root = android.os.Environment.getExternalStorageDirectory();\n //Environment.getExternalStoragePublicDirectory()\n File dir = root.getAbsoluteFile();\n // See http://stackoverflow.com/questions/3551821/android-write-to-sd-card-folder\n //dir = new File (root.getAbsolutePath() + \"../extSdCard/FieldImages\"); //wrote to internal directory\n\n File dirnew = new File(dir.getParent());\n File dirfinal = new File(dirnew.getParent() + \"/extSdCard/FieldImages/mydata.txt\");\n Log.d(\"Files\", \"Path: \" + dirfinal.getPath());\n// String path = dirnew.getParent();\n File file[] = new File(dirnew.getParentFile() + \"/extSdCard/FieldImages\").listFiles();\n Log.d(\"Files\", \"Size: \" + file.length);\n for (int i = 0; i < file.length; i++) {\n Log.d(\"Files\", \"FileName:\" + file[i].getName());\n }\n\n// String pathnew = dir.getParent() + \"/legacy\";\n// Log.d(\"Files\", \"Pathnew: \" + pathnew);\n// File fnew = new File(pathnew);\n// File filenew[] = f.listFiles();\n// Log.d(\"Files\", \"Size: \"+ filenew.length);\n// for (int i=0; i < filenew.length; i++)\n// {\n// Log.d(\"Files\", \"FileName:\" + filenew[i].getName());\n// }\n //dir.mkdirs();\n //File file = new File(dir, \"myData.txt\");\n\n// try {\n// FileOutputStream f = new FileOutputStream(dirfinal);\n// PrintWriter pw = new PrintWriter(f);\n// pw.println(\"Hi , How are you\");\n// pw.println(\"Hello\");\n// pw.flush();\n// pw.close();\n// f.close();\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// Log.i(TAG, \"******* File not found. Did you\" +\n// \" add a WRITE_EXTERNAL_STORAGE permission to the manifest?\");\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n\n //Get the text file\n File filetest = dirfinal;\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(filetest));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }\n br.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n Log.i(TAG, \"******* File not found. Did you\" +\n \" add a WRITE_EXTERNAL_STORAGE permission to the manifest?\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Log.v(null,text.toString());\n\n }", "@BeforeClass(groups ={\"All\"})\n\tpublic void createFolder() {\n\t\tdciFunctions = new DCIFunctions();\n\t\ttry {\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tLogger.info(\"No need to create folder for salesforce\");\n\t\t\t}else{\n\t\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\t\tfolderInfo = dciFunctions.createFolder(universalApi, suiteData, \n\t\t\t\t\t\tDCIConstants.DCI_FOLDER+uniqueId);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogger.info(\"Issue with Create Folder Operation \" + ex.getLocalizedMessage());\n\t\t}\n\t}", "static void createOutputStructure(final File dir) throws MojoExecutionException {\n if (!dir.exists() && !dir.mkdirs()) {\n throw new MojoExecutionException(\"could not create output directory \" + dir.getAbsolutePath());\n }\n }", "private boolean create(Plugin plugin, String name){\n\n if(!plugin.getDataFolder().exists())\n plugin.getDataFolder().mkdir();\n\n File folder = plugin.getDataFolder();\n\n// if(name.contains(\"/\")) {\n// folder = new File(plugin.getDataFolder(), name.substring(0, name.lastIndexOf(\"/\")));\n//\n// if(!folder.exists())\n// folder.mkdir();\n//\n// name = name.substring(name.lastIndexOf(\"/\") + 1);\n// }\n\n configFile = new File(folder, name+\".yml\");\n\n if(!configFile.exists()){\n try {\n if(!configFile.getParentFile().exists())\n configFile.getParentFile().mkdir();\n configFile.createNewFile();\n return true;\n } catch (IOException ignored) {\n ignored.printStackTrace();\n }\n }\n\n return false;\n }", "public static String getWorkingDirectory(Context context) {\n String res;\n if (isSDCardMounted()) {\n String directory = \"For Happy\";\n res = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + directory;\n } else {\n res = context.getFilesDir().getAbsolutePath() + \"/\";\n }\n if (!res.endsWith(\"/\")) {\n res += \"/\";\n }\n File f = new File(res);\n if (!f.exists()) {\n boolean success = f.mkdirs();\n if (!success) {\n LogUtil.e(\"FileUtils create file failed\");\n }\n }\n return res;\n }", "@Override\n\tpublic String createDirectory(AuthenticationToken authenticationToken, String filePath, String idealFolderName, boolean force) \n\t\t\tthrows PermissionDeniedException, CreateDirectoryFailedException { \n\t\tif(idealFolderName.trim().isEmpty()) \n\t\t\tthrow new CreateDirectoryFailedException(\"Directory name is empty. The directory was not created.\");\n\t\t\n\t\tidealFolderName = fileNameNormalizer.normalize(idealFolderName);\n\t\t\n\t\tFile dir = new File(filePath);\n if(dir.isFile()) {\n \tdir = dir.getParentFile();\n \tfilePath = dir.getAbsolutePath();\n }\n dir.mkdirs();\n\t\t\n\t\tboolean permissionResult = filePermissionService.hasWritePermission(authenticationToken, filePath);\n\t\tif(!permissionResult)\n\t\t\tthrow new PermissionDeniedException();\n\t\telse {\n\t\t\tboolean inUseResult = this.isInUse(authenticationToken, filePath);\n\t\t\tif(inUseResult)\n\t\t\t\t//throw new CreateDirectoryFailedException(\"Can't create directory. Parent directory is currently in use.\");\n\t\t\t\tthrow new CreateDirectoryFailedException(\"Can't create directory. Parent directory \"+this.createMessageFileInUse(authenticationToken, filePath)+\". Delete the tasks using Task Manager, then try again.\");\n\t\t\telse {\n\t\t\t\tFile file = new File(filePath + File.separator + idealFolderName);\n\t\t\t\tboolean resultMkDir = file.mkdir();\n\t\t\t\tif(!resultMkDir && force) {\n\t\t\t\t\tString date = dateTimeFormat.format(new Date());\n\t\t\t\t\tidealFolderName = idealFolderName + \"_\" + date;\n\t\t\t\t\tfile = new File(filePath + File.separator + idealFolderName);\n\t\t\t\t\tresultMkDir = file.mkdir();\n\t\t\t\t\tint i = 1;\n\t\t\t\t\twhile(!resultMkDir) {\n\t\t\t\t\t\tfile = new File(filePath + File.separator + idealFolderName + \"_\" + i++);\n\t\t\t\t\t\tresultMkDir = file.mkdir();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!resultMkDir){ \n\t\t\t\t\tif(file.isDirectory() && file.exists())\n\t\t\t\t\t\tthrow new CreateDirectoryFailedException(\"Directory \"+file.getName()+\" already exists. You can try again with another name.\");\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new CreateDirectoryFailedException(\"Network or server errors\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn file.getAbsolutePath();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "private void setupDirectory(String name){\n this.pokemon = toLowerCase(name);\n ServerSmogon sm;\n File folder = new File(getFilesDir() +\n \"/strategy_\" + gen + \"/\");\n File f = new File(getFilesDir() +\n \"/strategy_\" + gen + \"/\" + pokemon + \".txt\");\n //File[] contents = folder.listFiles();\n Thread thread;\n //check if directory is made\n if(folder.exists() && folder.isDirectory() && f.exists()){\n setupArticleandStats();\n refreshlayoutpart2();\n return;\n }\n //if not make it\n\n folder.mkdirs();\n try{\n f.createNewFile();\n } catch(IOException e){\n e.printStackTrace();\n }\n\n\n //download strategy articles\n sm = new ServerSmogon(getBaseContext(), gen, \"strategy\", pokemon, handler);\n thread = new Thread(sm);\n\n thread.start();\n dialog=new ProgressDialog(this);\n dialog.setMessage(\"Downloading \"+pokemon);\n dialog.setCancelable(false);\n dialog.setInverseBackgroundForced(false);\n dialog.show();\n// try{\n//\n// thread.join();\n// }catch (InterruptedException e){\n// e.printStackTrace();\n// }\n\n }", "public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }", "static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}", "public static native void mkdirs(String path, int mode) throws IOException;", "public boolean create(boolean isFile) {\n\t\t\n\t\tboolean result = false;\n\t\t\n\t\tif(!isFile)\n\t\t{\n\t\t\tFile temp = new File(this.path);\n\t\t\ttemp.mkdirs();\n\t\t\tresult = true;\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tFile temp = new File(this.path);\n\t\t\tString folderContainingFile = \"/\";\n\t\t\t\n\t\t\tfor(int i = 0; i <= this.lenght - 2; i++)\n\t\t\t{\n\t\t\t\tfolderContainingFile += this.get(i) + \"/\";\n\t\t\t}\n\t\t\t\n\t\t\tnew File(folderContainingFile).mkdirs();\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttemp.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tresult = true;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public FilePlugin()\n {\n super();\n \n //create the data directory if it doesn't exist\n File dataDir = new File(FilenameUtils.dataDir);\n if(!dataDir.exists()) FilePersistenceUtils.makeDirs(dataDir);\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\t\n\t\textStorageDirectory = Environment.getExternalStorageDirectory().toString();\n \n File mkTarDir=new File(extStorageDirectory );\n\t\tmkTarDir.mkdir();\n\t\t\n\t}" ]
[ "0.73795736", "0.70173377", "0.6826162", "0.68111926", "0.6790826", "0.66483355", "0.66112024", "0.65672046", "0.63694054", "0.6327092", "0.63111246", "0.6241537", "0.62343276", "0.6190158", "0.6188169", "0.6128439", "0.6068746", "0.6057703", "0.6038161", "0.6037969", "0.60280365", "0.6007761", "0.59821343", "0.5981798", "0.596463", "0.5958245", "0.5955686", "0.5937558", "0.59352165", "0.5906155", "0.5900808", "0.5894786", "0.5889666", "0.58757836", "0.58691025", "0.58555645", "0.5839738", "0.5826321", "0.57970023", "0.57823145", "0.57704806", "0.5755419", "0.5746873", "0.5742155", "0.57179457", "0.5710324", "0.56945634", "0.5684072", "0.5666941", "0.56659806", "0.5664175", "0.5630269", "0.5624917", "0.56226593", "0.5621046", "0.55967766", "0.5586073", "0.55744654", "0.5563339", "0.5562832", "0.5561493", "0.55495954", "0.55443114", "0.55403095", "0.5540017", "0.55318123", "0.5529661", "0.55291814", "0.55280316", "0.55242187", "0.55215913", "0.5517825", "0.55174655", "0.5514228", "0.5503866", "0.55031306", "0.54880595", "0.5487715", "0.54855454", "0.5483024", "0.5475937", "0.54616207", "0.54565066", "0.54520005", "0.54490364", "0.544626", "0.54459107", "0.5441908", "0.542624", "0.542536", "0.5422687", "0.54223716", "0.5414788", "0.5414116", "0.5411457", "0.5407737", "0.5406393", "0.5403434", "0.5389859", "0.53866124", "0.53793174" ]
0.0
-1
/ public static final String learn = "learn"; public static final String discern = "discern"; public static final String listdiscern = "listdiscern"; public static final String listcatfeats = "listcatfeats"; public static final String listfeatcats = "listfeatcats"; public static final String listcatdoms = "listcatdoms"; public static final String listcatcats = "listcatcats"; public static final String listcats = "listcats"; public static final String listdomcats = "listdomcats"; public static final String listcatcatsback = "listcatcatsback";
public Handler(AdmServer server) { m_authServer = server; /* TextCat.setServer(serv); //refer to static/singleton!!! CatIns.m_columnId = -1; CatIns.m_columnDesc = 0; CatIns.m_columnTags = 1; CatIns.m_columnTaxo = -1; CatIns.m_columnVendor = -1; */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SilentLocations {\n public static final String BANK = \"bank\";\n public static final String CHURCH = \"church\";\n public static final String DENTIST = \"dentist\";\n public static final String DOCTOR = \"doctor\";\n public static final String EMBASSY = \"embassy\";\n public static final String FUNERAL_HOME = \"funeral_home\";\n public static final String HEALTH = \"health\";\n public static final String HOSPITAL = \"hospital\";\n public static final String LIBRARY = \"library\";\n public static final String MOSQUE = \"mosque\";\n public static final String SCHOOL = \"school\";\n public static final String HINDU_TEMPLE = \"hindu_temple\";\n public static final String UNIVERSITY = \"university\";\n}", "protected abstract String listLearnValues();", "public static void main(String[] args) {\n String exclamation1 = \"Ouch!\";\n String exclamation2 = \"Hoorah!\";\n String exclamation3 = \"Amazing!\";\n String adverb1 = \"stupidly\";\n String adverb2 = \"happily\";\n String adverb3 = \"shamefully\";\n String noun1 = \"car\";\n String noun2 = \"book\";\n String noun3 = \"bird\";\n String adjective1 = \"tall\";\n String adjective2 = \"smart\";\n String adjective3 = \"funny\";\n System.out.println( exclamation1+ \" he said \" + adverb1 +\n \" as he jumped into his convertible \" + noun1 +\n \" and drove off with his \" + adjective1 + \" wife.\");\n\n\n\n\n }", "public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY = \"pd_by\";\r\n\r\n\tpublic static final String RT_REGULATED_BY = \"rg_by\";\r\n\r\n\tpublic static final String RT_TRANSFORMATION_OF = \"transformation_of\";\r\n\r\n\tpublic static final String CC_REACTION = \"Reaction\";\r\n\r\n\tpublic static final String CC_COMPOUND = \"Comp\";\r\n\r\n\tpublic static final String CC_CELCOMP = \"CelComp\";\r\n\r\n}", "public interface Constants {\n final public static String TAG = \"[PracticalTest02Var03]\";\n\n final public static boolean DEBUG = true;\n\n final public static String WEB_SERVICE_ADDRESS = \"http://services.aonaware.com/DictService/DictService.asmx/Define\";\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"word\";\n\n final public static String SCRIPT_TAG = \"WordDefinition\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n}", "public String[] getCategoryList(){\n return new String[]{\n \"Macros\",\n \"Instrument Type\",\n \"TOF_NSCD\",\n \"NEW_SNS\"\n };\n }", "public String[] getCategoryList(){\n return new String[]{\n \"HIDDENOPERATOR\"\n };\n }", "public interface Constants {\n\n final public static String[] actionTypes = {\n \"ro.pub.cs.systems.eim.practicaltest01.actionType1\",\n \"ro.pub.cs.systems.eim.practicaltest01.actionType2\",\n \"ro.pub.cs.systems.eim.practicaltest01.actionType3\"\n };\n\n}", "public interface Constants {\n\n String CURRENT_SCORE = \"CURRENT_SCORE\";\n\n String HIGH_SCORES = \"HIGH_SCORES\";\n\n String DB_WRITER = \"DB_WRITER\";\n\n String DB_READER = \"DB_READER\";\n\n String DB_HELPER = \"DB_HELPER\";\n\n\n}", "public interface PrefsKey {\n\n String Ssid = \"Ssid\";\n String HotKeys = \"HotKeys\";\n String HistoryKeys = \"HistoryKeys\";\n String HistoryCooking = \"HistoryCooking\";\n\n String Guided = \"Guided\";\n}", "private void addWords(){\n wordList.add(\"EGE\");\n wordList.add(\"ABBAS\");\n wordList.add(\"KAZIM\");\n }", "public interface ApiPathConstants {\n\n // The media type constants\n String APPLICATION_JSON = \"application/json\";\n String ACCEPT_APPLICATION_JSON = \"Accept=application/json\";\n\n // Need to match below variables according to the cbr project\n String DEFAULT_CASEBASE = \"CaseBase0\";\n String DEFAULT_CONCEPT = \"Car\";\n String DEFAULT_AMAL_FUNCTION = \"CarFunc\";\n String DEFAULT_ATTR_ID = \"Color\";\n\n // The number of retrieved cases per query as preferred by the user.\n String DEFAULT_NO_OF_CASES = \"-1\";\n String NO_OF_RETURNED_CASES = \"k\";\n\n\n // myCBR-rest API: core vocabulary - single\n String PROJECT = \"project\";\n String CONCEPT \t= \"concept\";\n String CASEBASE \t= \"casebase\";\n String AMAL_FUNCTION= \"amalgamationFunction\";\n String ATTR \t= \"attribute\";\n String CASE \t= \"case\";\n String INSTANCE\t= \"instance\";\n String VALUE \t= \"value\";\n String SIM_FUNCTION = \"similarityFunction\";\n String LIST = \"list\";\n String NEW = \"new\";\n\n String EPHEMERAL \t= \"ephemeral\";\n String ANALYTICS \t= \"analytics\";\n\n\n // myCBR-rest API: core vocabulary - multiple\n String S \t\t\t= \"s\";\n String CONCEPTS \t\t= CONCEPT \t+ S;\n String CASEBASES \t\t= CASEBASE \t+ S;\n String AMAL_FUNCTIONS\t= AMAL_FUNCTION + S;\n String ATTRS \t\t= ATTR \t\t+ S;\n String CASES \t\t= CASE \t\t+ S;\n String INSTANCES\t\t= INSTANCE \t+ S;\n String VALUES \t\t= VALUE \t+ S;\n String SIM_FUNCTIONS \t= SIM_FUNCTION\t+ S;\n\n\n // myCBR-rest API: ID vocabulary\n String ID \t\t\t= \"ID\";\n String CONCEPT_ID \t\t= CONCEPT \t+ ID;\n String CASEBASE_ID \t\t= CASEBASE \t+ ID;\n String AMAL_FUNCTION_ID \t= AMAL_FUNCTION + ID;\n String ATTR_ID \t\t= ATTR \t\t+ ID;\n String NEW_ATTR_ID \t\t= NEW + ATTR \t\t+ ID;\n String ATTR_IDS = ATTR \t\t+ ID + S;\n String CASE_ID \t\t= CASE \t\t+ ID;\n String INSTANCE_ID \t\t= INSTANCE \t+ ID;\n String SIM_FUNCTION_ID\t= SIM_FUNCTION \t+ ID;\n //String ATTR_ID_LIST \t\t= ATTR \t\t+ ID + LIST;\n\n\n // myCBR-rest API: type vocabulary specific names\n String TYPE \t\t= \"Type\";\n String AMAL_FUNCTION_TYPE \t= AMAL_FUNCTION + TYPE;\n String ATTR_TYPE \t \t= ATTR + TYPE;\n\n\n // Path variables\n\n // Path pattern: /___ss\n String PATH \t\t=\"/\";\n String PATH_PROJECT = PATH + PROJECT;\n String PATH_CONCEPTS \t= PATH + CONCEPTS;\n String PATH_CASEBASES \t= PATH + CASEBASES;\n String PATH_AMAL_FUNCTIONS = PATH + AMAL_FUNCTIONS;\n String PATH_CASES \t\t= PATH + CASES;\n String PATH_ATTRIBUTES \t= PATH + ATTRS;\n String PATH_VALUE_RANGE = PATH + VALUE + \"Range\";\n String PATH_SIM_FUNCTIONS = PATH + SIM_FUNCTIONS;\n\n String PATH_EPHEMERAL = PATH + EPHEMERAL;\n String PATH_ANALYTICS = PATH + ANALYTICS;\n\n\n // Path pattern: /___s/{___ID}\n String PATH_CONCEPT_ID\t = PATH_CONCEPTS + \"/{\" + CONCEPT_ID \t + \"}\";\n String PATH_CASEBASE_ID \t = PATH_CASEBASES + \"/{\" + CASEBASE_ID \t + \"}\";\n String PATH_AMAL_FUNCTION_ID = PATH_AMAL_FUNCTIONS + \"/{\" + AMAL_FUNCTION_ID+ \"}\";\n String PATH_CASE_ID \t = PATH_CASES + \"/{\" + CASE_ID\t + \"}\";\n String PATH_ATTR_ID \t = PATH_ATTRIBUTES + \"/{\" + ATTR_ID + \"}\";\n String PATH_SIM_FUNCTION_ID = PATH_SIM_FUNCTIONS + \"/{\" + SIM_FUNCTION_ID + \"}\";\n //String PATH_ATTR_ID_LIST \t = PATH_ATTRIBUTES + \"/{\" + ATTR_ID_LIST + \"}\";\n String PATH_NEW_ATTR_ID \t = PATH_ATTRIBUTES + \"/{\" + NEW_ATTR_ID + \"}\";\n\n\n // Path pattern: /concepts/{conceptID}/___s\n String PATH_CONCEPT_CASEBASES \t= PATH_CONCEPT_ID + PATH_CASEBASES;\n String PATH_CONCEPT_AMAL_FUNCTIONS = PATH_CONCEPT_ID + PATH_AMAL_FUNCTIONS;\n String PATH_CONCEPT_CASES \t \t= PATH_CONCEPT_ID + PATH_CASES;\n String PATH_CONCEPT_ATTRS \t \t= PATH_CONCEPT_ID + PATH_ATTRIBUTES;\n\n\n // Path pattern: /concepts/{conceptID}/___s/{___ID}\n String PATH_CONCEPT_CASEBASE_ID \t = PATH_CONCEPT_ID + PATH_CASEBASE_ID;\n String PATH_CONCEPT_AMAL_FUNCTION_ID = PATH_CONCEPT_ID + PATH_AMAL_FUNCTION_ID;\n String PATH_CONCEPT_CASE_ID \t = PATH_CONCEPT_ID + PATH_CASE_ID;\n String PATH_CONCEPT_ATTR_ID\t \t = PATH_CONCEPT_ID + PATH_ATTR_ID;\n //String PATH_CONCEPT_ATTR_ID_LIST\t \t = PATH_CONCEPT_ID + PATH_ATTR_ID_LIST;\n\n\n //Path pattern: /concepts/{conceptID}/casebases/{casebaseID}/___s\n String PATH_CONCEPT_CASEBASE_AMAL_FUNCTIONS = PATH_CONCEPT_CASEBASE_ID + PATH_AMAL_FUNCTIONS;\n String PATH_CONCEPT_CASEBASE_CASES = PATH_CONCEPT_CASEBASE_ID + PATH_CASES;\n\n //Path pattern: /concepts/{conceptID}/casebases/{casebaseID}/___s/{___ID}\n String PATH_CONCEPT_CASEBASE_AMAL_FUNCTION_ID = PATH_CONCEPT_CASEBASE_ID + PATH_AMAL_FUNCTION_ID;\n String PATH_CONCEPT_CASEBASE_CASE_ID = PATH_CONCEPT_CASEBASE_ID + PATH_CASE_ID;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/valueRange\n String PATH_CONCEPT_ATTR_VALUE_RANGE = PATH_CONCEPT_ATTR_ID + PATH_VALUE_RANGE;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/___s\n String PATH_CONCEPT_ATTR_SIM_FUNCTIONS = PATH_CONCEPT_ATTR_ID + PATH_SIM_FUNCTIONS;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/___s/{___ID}\n String PATH_CONCEPT_ATTR_SIM_FUNCTION_ID = PATH_CONCEPT_ATTR_ID + PATH_SIM_FUNCTION_ID;\n\n\n //Path pattern: /ephemeral/concepts/{conceptID}/amalgamationFunctions/{amalgamationFunctionID}s\n String PATH_EPHEMERAL_CONCEPT_AMAL_FUNCTION_ID = PATH_EPHEMERAL + PATH_CONCEPT_AMAL_FUNCTION_ID;\n\n //Path pattern: /analytics/concepts/{conceptID}/amalgamationFunctions/{amalgamationFunctionID}\n String PATH_ANALYTICS_CONCEPT_AMAL_FUNCTION_ID = PATH_ANALYTICS + PATH_CONCEPT_AMAL_FUNCTION_ID;\n\n String COMPUTE_SELF_SIMLARITY = \"computeSelfSimilarity\";\n String RETRIEVAL_BY_CASE_IDS = \"retrievalByCaseIDs\";\n String RETRIEVAL_BY_CASE_ID_WITH_CONTENT = \"retrievalByCaseIDWithContent\";\n\n // Path pattern: /___\n String PATH_SELF_SIMLARITY \t\t= PATH + COMPUTE_SELF_SIMLARITY;\n String PATH_RETRIEVAL \t\t\t= PATH + RETRIEVAL_BY_CASE_IDS;\n String PATH_RETRIEVAL_BY_CASE_ID_WITH_CONTENT \t= PATH + RETRIEVAL_BY_CASE_ID_WITH_CONTENT;\n\n String PATH_CONCEPT_CASEBASE_SELF_SIMLARITY = PATH_CONCEPT_CASEBASE_ID + PATH_SELF_SIMLARITY;\n\n String PATH_DEFAULT_EPHEMERAL = PATH_EPHEMERAL + PATH_CONCEPT_CASEBASE_AMAL_FUNCTION_ID;\n String PATH_EPHEMERAL_RETRIEVAL = PATH_DEFAULT_EPHEMERAL + PATH_RETRIEVAL;\n String PATH_EPHEMERAL_RETRIEVAL_WITH_CONTENT = PATH_DEFAULT_EPHEMERAL + PATH_RETRIEVAL_BY_CASE_ID_WITH_CONTENT;\n String PATH_EPHEMERAL_SELF_SIMILARITY = PATH_DEFAULT_EPHEMERAL + PATH_SELF_SIMLARITY;\n}", "public interface TextConstant {\n String INPUT_INFO_DATA = \"input.string.data\";\n String INPUT_LAST_NAME=\"input.last.name.date\";\n String INPUT_FIRST_NAME = \"input.first.name.data\";\n String WRONG_INPUT_DATA = \"input.wrong.data\";\n String INPUT_LOGIN_DATA = \"input.login.data\";\n}", "public interface DBName {\n final static String DB = \"menu.db\";\n final static String Coffee = \"Menu\";\n final static String Ade = \"Ade\";\n final static String Basket = \"Basket\";\n final static String OrderList = \"OrderList\";\n}", "String category();", "public interface Constants {\n\n //前端显示描述类内容最长字符串长度\n int MAX_LIST_CONTEXT_LENGTH = 60;\n\n //描述内容最大长度\n int MAX_CONTEXT_LENGTH = 3000;\n\n //评论内容最大长度\n int MAX_COMMENT_LENGTH = 500;\n\n //获取更多评论记录数\n int MAX_MORE_COMMENT_NUM = 100;\n\n //上传文件名字最大长度\n int MAX_FILE_NAME_LENGTH = 30;\n\n //同一作业连续发送提醒交作业通知间隔秒数\n int MIN_SECONDS_WARNSUB = 21600;\n\n //口语作业最多支持单词数\n int MAX_VOICE_WORK_WORDS = 15;\n\n //作业发布最长延迟天数\n int MAX_PUBLISH_WORK_EXDAYS = 60;\n\n // 课外作业\n int WORK_TYPE_EXTRA_WORK = 8;\n\n //板书类型\n int WORK_TYPE_VOICE_WORK = 7;\n\n //板书类型\n int WORK_TYPE_BLACKBOARD_PUBLISH = 6;\n\n //网络课件类型\n int WORK_TYPE_COURSE_REAPPEAR = 5;\n\n //电子作业\n int WORK_TYPE_EXERCISE_WORK = 4;\n\n //同步课堂作业\n int WORK_TYPE_SYNCLASS_WORK = 3;\n\n //同步课堂作业\n int WORK_TYPE_MAGIC_WORK = 2;\n\n //同步课堂作业\n int WORK_TYPE_GUIDANCE_WORK = 1;\n\n //我的课件\n int COURSEWARE_BELONG_TYPE_MY_APPEAR = 1;\n\n //发布的课件\n int COURSEWARE_BELONG_TYPE_COURSE_APPEAR = 3;\n\n //用户类型\n String TEACHER_TYPE = \"1\";\n\n String STUDENT_TYPE = \"2\";\n\n int WORK_TYPE = 1;\n\n int BLACKBOARD_TYPE = 2;\n\n //乐观锁机制尝试次数\n int OPTIMISTIC_LOCK_TRY_TIMES = 10;\n\n //提分宝作业评分描述10\n String MAGIC_WORK_SCORE_CONTEXT10 = \"恭喜你!继续保持,清华北大在等你哦!\";\n\n //提分宝作业评分描述9\n String MAGIC_WORK_SCORE_CONTEXT9 = \"哇噢!可以挑战清华北大了!\";\n\n //提分宝作业评分描述8\n String MAGIC_WORK_SCORE_CONTEXT8 = \"你好聪明,加油冲击重点大学吧!\";\n\n //提分宝作业评分描述7\n String MAGIC_WORK_SCORE_CONTEXT7 = \"太棒了,可以挑战一本大学啦!\";\n\n //提分宝作业评分描述6\n String MAGIC_WORK_SCORE_CONTEXT6 = \"再次挑战,稍微努力下就能二本大学啦!\";\n\n //提分宝作业评分描述5\n String MAGIC_WORK_SCORE_CONTEXT5 = \"再多练练就可以上大学啦!\";\n /**提分宝数据统计前端页面分数描述*/\n //提分宝作业评分描述10\n String STATISTICS_SCORE_CONTEXT10 = \"清华北大\";\n //提分宝作业评分描述9\n String STATISTICS_SCORE_CONTEXT9 = \"重点大学\";\n //提分宝作业评分描述8\n String STATISTICS_SCORE_CONTEXT8 = \"一本大学\";\n //提分宝作业评分描述7\n String STATISTICS_SCORE_CONTEXT7 = \"二本大学\";\n //提分宝作业评分描述6\n String STATISTICS_SCORE_CONTEXT6 = \"三本大学\";\n //提分宝作业评分描述5\n String STATISTICS_SCORE_CONTEXT5 = \"挑战完成\";\n\n\n\n //提醒交作业通知标题\n String WARNSUB_TITLE = \"作业提醒\";\n\n //提醒查看教师发布的板书、网络课件通知标题\n String WARNVIEW_BLACKBOARD_TITLE = \"新板书\";\n String WARNVIEW_COURSEWARE_TITLE = \"新课件\";\n\n //提醒交作业通知内容\n String WARNSUB_CONTENT = \"赶快交作业,老师都着急啦!\";\n\n String GUIDANCE_WORK_NAME = \"预习作业\";\n String MAGIC_WORK_NAME = \"提分宝作业\";\n String SYNCLASS_WORK_NAME = \"同步课堂作业\";\n String EXERCISE_WORK_NAME = \"电子作业\";\n String VOICE_WORK_NAME = \"口语作业\";\n String BLACKBOARD_WORK_NAME = \"板书\";\n String COURSEWARE_WORK_NAME = \"网络课件\";\n String EXTRA_WORK_NAME = \"课外作业\";\n\n String WARN_SUB_WORK_BUSY = \"您太忙碌啦,请休息一会儿,稍后再试\";\n\n // 页面最初加载的评论数\n int MIN_COMMENT_NUM = 4;\n\n // 数字的正则表达式\n final String NUMBER_EXPR = \"^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$\";\n\n // indentifyId\n String IDENTIFY_SCHOOL_MANAGER = \"SCHOOL_MANAGER\";\n String IDENTIFY_TEACHER = \"TEACHER\";\n String IDENTIFY_STUDENT = \"STUDENT\";\n String IDENTIFY_PARENT=\"PARENT\";\n\n final int MAX_STUDENT_NUMBER_FOR_PUBLIC = 1000;\n\n //出题数\n int MAGIC2_WORK_QUEST_NUM = 8;\n //最大衍生题号sort\n int MAGIC2_WORK_MAX_SORT = 5;\n\n //错误率\n double MAGIC2_WORK_WRONG_QUEST_NUM = 0.2;\n\n //默认题目初始平均用时\n final long MAGIC2_WORK_QUEST_AVGTIME = 30000;\n //默认作业时间\n final long DEFAULT_WORK_TIME = 300000;\n}", "private static void catList() {\n\t\tSystem.out.println(\"List of preset Categories\");\n\t\tSystem.out.println(\"=========================\");\n\t\tSystem.out.println(\n\t\t\t\t\"Family\\nTeen\\nThriller\\nAnimated\\nSupernatural\\nComedy\\nDrama\\nQuirky\\nAction\\nComing of age\\nHorror\\nRomantic Comedy\\n\\n\");\n\t}", "String getCategoria();", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }", "public static void main(String[] args) {\n\n// Random randomizer = new Random();\n// //grab a random noun and adj\n// int randInt = randomizer.nextInt(11);\n// System.out.println(\" random adjective is : \" + adj[randInt]);\n// System.out.println( \" random noun is : \" + noun[randInt]);\n// String randAdj = adj[randInt];\n// String randNoun = noun[randInt];\n// System.out.println();\n// System.out.println(\"Here is your server name: \" + randAdj + \"-\" + randNoun);\n\n //another method\n String nouns = getRandomWord(noun);\n String adjs = getRandomWord(adj);\n System.out.println(adjs + \"-\" + nouns);\n }", "public interface SearchParams {\r\n\r\n\tpublic static final String LYRICS_FOR = \"lyrics for\";\r\n\tpublic static final String SITES = \"site:\";\r\n}", "interface Config {\n\n String DB_USERS = \"USERS\";\n String DB_USERS_DATA = \"DATA\";\n String DB_EQUIPMENTS = \"EQUIPMENTS\";\n String DB_MEMBERS = \"MEMBERS\";\n String DB_ORDERS = \"ORDERS\";\n}", "String legalTerms();", "public static void main(String[] args) {\n\t\tString[] sA1 = {\"old\", \"cold\", \"new\", \"cool\", \"scary\", \"scared\", \"worrisome\", \"very big\", \"small\", \"powerful\", \"imaginative\", \"hungry\", \"sleepy\", \"tired\", \"aggresive\", \"handsome\", \"ambitious\", \"brave\", \"calm\", \"eager\", \"clean\", \"chubby\", \"colossal\", \"gigantic\", \"little\", \"gentle\", \"religious\", \"grumpy\", \"embarrassed\", \"bewildered\"};\n\t\tString[] sA2 = {\"catarpillar\", \"basketball player\", \"police man\", \"doctor\", \"waiter\", \"ducky\", \"puppy\", \"psychic\", \"kitty cat\", \"badger\", \"otter\", \"basilisk\", \"platypus\", \"martian\", \"italian man\", \"chef\", \"veterinarian\", \"student\", \"qa tester\", \"sysadmin\", \"project manager\", \"soccer player\", \"vegitarian\", \"eel\", \"fish\", \"baby\", \"water chestnut\", \"apple tree\", \"president\", \"mechanic\", \"salesman\", \"twitch streamer\", \"quarterback\", \"halfback\", \"coach\", \"jealous\"};\n\t\tString[] sA3 = {\"favorite\", \"epic\", \"awesome\", \"amazing\", \"gorgeous\", \"worst\", \"unique\", \"weird\", \"funny\", \"magic\", \"itchy\", \"silly\", \"wonderful\", \"magnificent\", \"nice\", \"jolly\", \"unsightly\", \"miniature\", \"microscopic\", \"massive\", \"best\", \"loltyler1.com discount code alpha\"};\n\t\tString[] sA4 = {\"bodyguard\", \"plates\", \"game\", \"stuffed animal\", \"stopwatch\", \"pillow\", \"victory royale\", \"xbox controller\", \"wallet\", \"chair\", \"racecar bed\", \"rocket\", \"water bed\", \"closet\", \"water bottle\", \"jetski\", \"headset\", \"printer\", \"hard drive\", \"cologne\", \"deoderant\", \"robe\", \"diamond pickaxe\", \"iron sword\", \"stone shovel\", \"usb flash drive\"};\n\t\tArrayList<Book> bookArr = new ArrayList<Book>();\n\t\tRandom r = new Random();\n\t\tBookTableGateway btg = new BookTableGateway();\n\t\tPublisherTableGateway ptg = new PublisherTableGateway();\n\t\tAuditTableGateway atg = new AuditTableGateway();\n\t\tbtg.setPTGate(ptg);\n\t\tbtg.setATGate(atg);\n\t\tString isbn;\n\t\tint isbnInt = 501242;\n\t\tfor(int i = 0; i < 100;i++) {\n\t\t\tbookArr.clear();\n\t\tfor(int j = 0; j < 1100;j++) {\n\t\t\tString name = \"The \" + sA1[r.nextInt(sA1.length)] + \" \" + sA2[r.nextInt(sA2.length)] + \" and his \" + sA3[r.nextInt(sA3.length)] + \" \" + sA4[r.nextInt(sA4.length)];\n\t\t\tint yearPublished = r.nextInt(1900) + 117;\n\t\t\tString summary = \"A book that exists\";\n\t\t\tint pSwitch = r.nextInt(7);\n\t\t\tint publisherID;\n\t\t\tswitch(pSwitch) {\n\t\t\tcase 0:\n\t\t\t\tpublisherID = 123;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpublisherID = 124;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpublisherID = 125;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tpublisherID = 126;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tpublisherID = 128;\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tpublisherID = 129;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tpublisherID = 127;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\tpublisherID = 123;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tisbn = String.valueOf(isbnInt);\n\t\t\tisbnInt++;\n\t\t\tbookArr.add(new Book(0, yearPublished, name, summary, isbn, null, null, new Publisher(publisherID, null)));\n\t\t\tlogger.info(\"generated \" + name);\n\t\t}\n\t\tbtg.insertBookArray(bookArr);\n\t\t}\n\t\t\n\t}", "public interface Constants {\n\n final public static String TAG = \"[PracticalTest02Var04]\";\n\n final public static boolean DEBUG = true;\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"query\";\n\n final public static String SCRIPT_TAG = \"script\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n\n}", "public void decideNature()\n {\n String nature = new String(\"\");\n Random rand = new Random();\n int i = rand.nextInt(100);\n if(i <= 25)\n {\n nature = \"Very mischievous. Enjoys hiding objects in plain sight\";\n }//ends the if\n else if(i > 25 && i <= 50)\n {\n nature = \"Loves to spend time sleeping on the clouds\";\n }//ends the else if\n else if(i > 50 && i <= 75)\n {\n nature = \"Is very playful\";\n }//ends the else if\n else\n {\n nature = \"Loves to perform dances in the air\";\n }\n \n setNature(nature);\n }", "public static ArrayList<String> labels() {\n\n\t\tArrayList<String> labels = new ArrayList<String>();\t\n\n\t\t//\t\tlabels.add(\t\t\"_store\"\t\t\t\t\t);\n\t\t//\t\tlabels.add(\t\t\"_dept\"\t\t\t\t\t\t);\n\t\t//\t\tlabels.add(\t\t\"_date\"\t\t\t\t\t\t);\n\t\t//\t\tlabels.add(\t\t\"weekly_Sales\"\t\t\t\t);\n\t\tlabels.add(\t\t\"intcpt_or_wklySales\"\t\t);\n\t\tlabels.add(\t\t\"size\"\t\t\t\t\t\t);\n\t\tlabels.add(\t\t\"tempImprovement\"\t\t\t);\n\t\tlabels.add(\t\t\"hotness\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"coldness\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"fuel_Price\"\t\t\t\t);\n\t\tlabels.add(\t\t\"gasChange\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown1\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown2\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown3\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown4\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown5\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown1_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown2_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown3_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown4_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown5_isNA\"\t\t\t);\n\t\tlabels.add(\t\t\"cpi\"\t\t\t\t\t\t);\n\t\tlabels.add(\t\t\"cpiChange\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"unemployment\"\t\t\t\t);\n\t\tlabels.add(\t\t\"unemploymentChange\"\t\t);\n\t\tlabels.add(\t\t\"isSuperBowl\"\t\t\t\t);\n\t\tlabels.add(\t\t\"isTGiving\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"isLaborDay\"\t\t\t\t);\n\t\tlabels.add(\t\t\"isChristmas\"\t\t\t\t);\n\t\tlabels.add(\t\t\"isAfterHoliday\"\t\t\t);\n\t\tlabels.add(\t\t\"isBeforeHoliday\"\t\t\t);\n//\t\tlabels.add(\t\t\"type_A\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"type_B\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"type_C\"\t\t\t\t\t);\n\n\t\tfor (int i = 0; i < Data.numTypes; i++){\n\t\t\tlabels.add(\"isTypes_\" + Data.typesList.get(i));\n\t\t}\n\n\t\tfor (int i = 0; i < Data.numStores; i++){\n\t\t\tlabels.add(\"isStores_\" + Data.storesList.get(i));\n\t\t}\n//\t\tfor (int i = 0; i < Data.numDepts; i++){\n//\t\t\tlabels.add(\"isDepts_\" + Data.deptsList.get(i));\n//\t\t}\n\t\t\n\t\treturn labels;\n\n\t}", "@SuppressWarnings(\"checkstyle:avoidinlineconditionals\")\n private static void setUpNameList() {\n List<String> names = new ArrayList<>();\n String verb;\n String noun;\n for (int i = 0; i < NUMBER_OF_NAMES; i++) {\n verb = GenerationHelper.randomElement(verbs);\n noun = GenerationHelper.randomElement(nouns);\n String taskName = verb;\n taskName += \"aeiou\".contains(noun.subSequence(0, 1)) ? \" an \" : \" a \";\n taskName += noun;\n names.add(Character.toUpperCase(taskName.charAt(0)) + taskName.substring(1));\n }\n taskNames = new String[names.size()];\n names.toArray(taskNames);\n }", "public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}", "private void addCustomWords() {\r\n\r\n }", "private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }", "public static Set<String> getEnglishWords()\n{\n return english_words;\n}", "public interface Keys {\n String VIEW_PAGER_INDEX = \"view_pager_index\";\n String LOCAL_MUSIC_POSITION = \"local_music_position\";\n String LOCAL_MUSIC_OFFSET = \"local_music_offset\";\n String PLAYLIST_POSITION = \"playlist_position\";\n String PLAYLIST_OFFSET = \"playlist_offset\";\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 }", "private String getOptionStrings(int choice) {\n //these are the common ones, maybe the only ones\n switch (choice) {\n case 0: return \"\";\n case 1: return \"Shoot Laser gun.\";\n case 2: return \"Shoot Missile gun.\";\n case 3: return \"Wait a turn\";\n\n case 4: return \"Shoot at Pilot, Gun L, or Gun M?\";\n case 5: return \"Shoot at Shield, or Engine?\";\n case 6: return \"Shoot at random?\";\n\n case 7: return \"Shoot at Pilot?\";\n case 8: return \"Shoot at Gun L?\";\n case 9: return \"Shoot at Gun M?\";\n\n case 10: return \"Shoot at Shield?\";\n case 11: return \"Shoot at Engine?\";\n case 12: return \"Shoot at Random?\";\n\n case 100: return \"Enter any number to continue\";\n }\n //if value given is not found above\n return \"Error\";\n }", "public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }", "public void getKeyWords(DefaultActivity schedule) {\n ActivityTypes subType = schedule.getActivityType();\n switch (subType) {\n case SLEEP:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 3) {\n if (sleepMap.get(keyValue) != null) {\n sleepMap.put(keyValue, sleepMap.get(keyValue) + 1);\n } else {\n sleepMap.put(keyValue, 1.0);\n }\n }\n }\n\n break;\n case MEAL:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (mealMap.get(keyValue) != null) {\n mealMap.put(keyValue, mealMap.get(keyValue) + 1);\n }\n } else {\n mealMap.put(keyValue, 1.0);\n }\n }\n break;\n case TESTSTUDY:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (testMap.get(keyValue) != null) {\n testMap.put(keyValue, testMap.get(keyValue) + 1);\n }\n } else {\n testMap.put(keyValue, 1.0);\n }\n }\n break;\n case HOMEWORK:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (homeWorkMap.get(keyValue) != null) {\n homeWorkMap.put(keyValue, homeWorkMap.get(keyValue) + 1);\n }\n } else {\n homeWorkMap.put(keyValue, 1.0);\n }\n }\n break;\n case SKILLTRAINING:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (skillTrainingMap.get(keyValue) != null) {\n skillTrainingMap.put(keyValue, skillTrainingMap.get(keyValue) + 1);\n }\n } else {\n skillTrainingMap.put(keyValue, 1.0);\n }\n }\n break;\n case PROJECTBUILDING:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (projectBuildingMap.get(keyValue) != null) {\n projectBuildingMap.put(keyValue, projectBuildingMap.get(keyValue) + 1);\n } else {\n projectBuildingMap.put(keyValue, 1.0);\n }\n }\n break;\n case ENTERTAINMENT:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (entertainmentMap.get(keyValue) != null) {\n entertainmentMap.put(keyValue, entertainmentMap.get(keyValue) + 1);\n } else {\n entertainmentMap.put(keyValue, 1.0);\n }\n }\n break;\n case GENERALSTUDY:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (generalStudyMap.get(keyValue) != null) {\n generalStudyMap.put(keyValue, generalStudyMap.get(keyValue) + 1);\n } else {\n generalStudyMap.put(keyValue, 1.0);\n }\n }\n break;\n case SOCIALTIME:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (socialTimeMap.get(keyValue) != null) {\n socialTimeMap.put(keyValue, socialTimeMap.get(keyValue) + 1);\n } else {\n socialTimeMap.put(keyValue, 1.0);\n }\n }\n break;\n case ANOMALY:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (anomalyMap.get(keyValue) != null) {\n anomalyMap.put(keyValue, anomalyMap.get(keyValue) + 1);\n } else {\n anomalyMap.put(keyValue, 1.0);\n }\n }\n break;\n default:\n\n }\n }", "private List<String> build() {\n List<String> ags = new ArrayList<>();\n ags.add(\"European Union Chromosome 3 Arabidopsis Sequencing Consortium\");\n ags.add(\"Institute for Genomic Research\");\n ags.add(\"Kazusa DNA Research Institute\");\n return ags;\n }", "public static String LangLabel(int X,int Y){\n \n if ( inicializovane == false){constructor();}\n \n String SlovoDaloSlovo = \"empty\";\n switch (X) {\n case 1: \n SlovoDaloSlovo=SK.get(Y);\n break;\n case 2:\n SlovoDaloSlovo=CZ.get(Y);\n break;\n case 3:\n SlovoDaloSlovo=EN.get(Y);\n break;\n }\n return SlovoDaloSlovo;\n}", "public void loadConstNames() {\r\n \tloadHerculesNames();\r\n \tloadUrsaMinorNames();\r\n \tloadUrsaMajorNames();\r\n \tloadLibraNames();\r\n \tloadAndromedaNames();\r\n \tloadAquariusNames();\r\n \tloadAquilaNames();\r\n \tloadAriesNames();\r\n \tloadAurigaNames();\r\n \tloadBootesNames();\r\n \tloadCancerNames();\r\n \tloadCanisMajorNames();\r\n \tloadCanisMinorNames();\r\n \tloadCapricornusNames();\r\n \tloadCassiopeiaNames();\r\n \tloadCentaurusNames();\r\n \tloadCepheusNames();\r\n \tloadCruxNames();\r\n \tloadCygnusNames();\r\n \tloadDracoNames();\r\n \tloadGeminiNames();\r\n \tloadHydraNames();\r\n \tloadLeoNames();\r\n \tloadLyraNames();\r\n \tloadOrionNames();\r\n \tloadPegasusNames();\r\n \tloadPerseusNames();\r\n \tloadPiscesNames();\r\n \tloadSagittariusNames();\r\n \tloadScorpioNames();\r\n \tloadTaurusNames();\r\n }", "public interface MenuNames {\n public static final String FILE = I18N.get(\"ui.MenuNames.FILE\");\n public static final String FILE_NEW = I18N.get(\"ui.MenuNames.FILE.NEW\");\n public static final String FILE_SAVEVIEW = I18N.get(\"ui.MenuNames.FILE.SAVEVIEW\");\n public static final String EDIT = I18N.get(\"ui.MenuNames.EDIT\");\n public static final String TOOLS_EDIT_ATTRIBUTES = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String TOOLS_EDIT_GEOMETRY = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.GEOMETRY\");\n public static final String VIEW = I18N.get(\"ui.MenuNames.VIEW\");\n public static final String MAP_DECORATIONS = I18N.get(\"ui.MenuNames.VIEW.MAP_DECORATIONS\");\n public static final String LAYER = I18N.get(\"ui.MenuNames.LAYER\");\n public static final String TOOLS = I18N.get(\"ui.MenuNames.TOOLS\");\n //public static final String TOOLS_ADVANCED = I18N.get(\"ui.MenuNames.TOOLS.ADVANCED\"); // not used, not translated\n public static final String TOOLS_ANALYSIS = I18N.get(\"ui.MenuNames.TOOLS.ANALYSIS\");\n public static final String TOOLS_GENERALIZATION = I18N.get(\"ui.MenuNames.TOOLS.GENERALIZATION\");\n public static final String TOOLS_GENERATE = I18N.get(\"ui.MenuNames.TOOLS.GENERATE\");\n public static final String TOOLS_JOIN = I18N.get(\"ui.MenuNames.TOOLS.JOIN\");\n public static final String TOOLS_QA = I18N.get(\"ui.MenuNames.TOOLS.QA\");\n public static final String TOOLS_WARP = I18N.get(\"ui.MenuNames.TOOLS.WARP\");\n //public static final String TOOLS_PROGRAMMING =I18N.get(\"ui.MenuNames.TOOLS.PROGRAMMING\");\n public static final String TOOLS_QUERIES =I18N.get(\"org.openjump.core.ui.plugin.queries.SimpleQuery.menu\");\n public static final String WINDOW = I18N.get(\"ui.MenuNames.WINDOW\");\n public static final String RASTERTOOLS = I18N.get(\"ui.MenuNames.RASTER\");\n // Michael Michaud 2008-04-06\n // New menu for synchronization\n public static final String WINDOW_SYNCHRONIZATION = I18N.get(\"ui.MenuNames.WINDOW.SYNCHRONIZATION\");\n public static final String HELP = I18N.get(\"ui.MenuNames.HELP\");\n public static final String PLUGINS = I18N.get(\"ui.MenuNames.PLUGINS\");\n \n // Michael Michaud 2007-03-23\n // New menu for plugin manager, beanshell console, scripts\n public static final String CUSTOMIZE = I18N.get(\"ui.MenuNames.CUSTOMIZE\");\n \n //erwan begin 2005-12-01 --- SIGLE\t\n //Menu\n public static final String ATTRIBUTS = I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String SELECTION = I18N.get(\"ui.MenuNames.SELECTION\");\n public static final String RASTER = I18N.get(\"ui.MenuNames.RASTER\");\n public static final String STATISTICS = I18N.get(\"ui.MenuNames.STATISTICS\");\n public static final String GEOPROCESSING = \"SIGLE-\" + I18N.get(\"ui.MenuNames.GEOPROCESSING\");\n \n //Submenu\n //public static final String ONELAYER = I18N.get(\"ui.MenuNames.ONELAYER\");\n //public static final String TWOLAYERS = I18N.get(\"ui.MenuNames.TWOLAYERS\");\n \n public static final String CONVERT = I18N.get(\"ui.MenuNames.CONVERT\");\n public static final String EXTRACT = I18N.get(\"ui.MenuNames.EXTRACT\");\n public static final String MERGE = I18N.get(\"ui.MenuNames.MERGE\");\n public static final String GENERALIZATION = I18N.get(\"ui.MenuNames.GENERALIZATION\");\n public static final String TOPOLOGY = I18N.get(\"ui.MenuNames.TOPOLOGY\");\n //public static final String QA = I18N.get(\"ui.MenuNames.QA\"); // see MenuNames.TOOLS_QA\n public static final String DELETE = I18N.get(\"ui.MenuNames.DELETE\");\n public static final String DETECT = I18N.get(\"ui.MenuNames.DETECT\");\n public static final String PLOT = I18N.get(\"ui.MenuNames.PLOT\");\n \t\n //\terwan end 2005-12-01\n // Submenus for LayerName PopupMenu\n public static final String STYLE = I18N.get(\"ui.MenuNames.STYLE\");\n public static final String DATASTORE = I18N.get(\"ui.MenuNames.DATASTORE\");\n public static final String SCHEMA = I18N.get(\"ui.MenuNames.SCHEMA\");\n \n public static final String LAYERVIEWPANEL_POPUP = I18N.get(\"ui.MenuNames.LAYERVIEWPANEL_POPUP\");\n public static final String ATTRIBUTEPANEL_POPUP = I18N.get(\"ui.MenuNames.ATTRIBUTEPANEL_POPUP\");\n public static final String LAYERNAMEPANEL_LAYER_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_LAYER_POPUP\");\n public static final String LAYERNAMEPANEL_CATEGORY_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_CATEGORY_POPUP\");\n}", "private void selectFunctionality() {\n if (text.equals(\"1\") || text.contains(\"senast\")) {\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n } else if (text.equals(\"2\") || text.contains(\"favor\")) {\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n } else if (text.equals(\"3\") || text.contains(\"med\") || text.contains(\"inkorg\") || text.contains(\"sm\")) {\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n } else if (text.equals(\"4\") || text.contains(\"bok\") || text.contains(\"kontakt\")) {\n words = text.split(\" \");\n if (words.length > 1) {\n intent = new Intent(this, ContactGridActivity.class);\n intent.putExtra(\"initial_letter\", words[1].charAt(0));\n startActivity(intent);\n } else {\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n }\n\n }\n\n }", "public interface Treat {\n public static final int GIANT_DONUT = 0;\n public static final int GIANT_MATCHA_PARFAIT = 1;\n public static final int GIANT_MINT_CHIP = 2;\n public static final int CUPCAKE_CHERRY = 0;\n public static final int CUPCAKE_VANILLA = 1;\n public static final int CUPCAKE_SUNDAE = 2;\n public static final int SMALL_DONUT = 3;\n public static final int DONUT_PINK_SPRINKLES = 4;\n public static final int DONUT_CHOCOLATE = 5;\n public static final int MATCHA_CAKE = 6;\n public static final int STRAWBERRY_CAKE = 7;\n public static final int CHOCOLATE_CAKE = 8;\n public static final int CHOCO_BANANA_SANDWICH = 9;\n public static final int MINT_CHIP_SANDWICH = 10;\n public static final int RED_VELVET_CAKE = 11;\n public static final int MATCHA_CAKE_ROUND = 12;\n public static final int DONUT_WHITE_NUTS = 13;\n public static final int DONUT_BERRY_JAM = 14;\n //public static final int DONUT_CARAMEL = 15;\n public static final int DONUT_CEREAL = 15;\n //public static final int DONUT_CHOCOLATE_WHITE = 17;\n public static final int DONUT_HALF = 16;\n public static final int DONUT_JELLY_CHOCOLATE = 17;\n public static final int DONUT_LIGHT_BLUE = 18;\n //public static final int DONUT_RED_POWDER = 21;\n public static final int CUPCAKE_CINNAMON = 19;\n public static final int CUPCAKE_MINT_CHOCOLATE = 20;\n public static final int CUPCAKE_PINK_YELLOW = 21;\n public static final int CUPCAKE_RED_VELVET = 22;\n public static final int CUPCAKE_SMORE = 23;\n public static final int DONUT_BLUE_SPRINKLES = 24;\n //public static final int DONUT_MINT_TRI = 28;\n //public static final int DONUT_PURPLE_FLOWER = 29;\n public static final int CAKE_KIWI_STRAWBERRY = 25;\n public static final int DONUT_SILA_BERRY = 26;\n public static final int MOUSSE_TRIPLE_CHOCOLATE = 27;\n public static final int CAKE_PASTEL_RAINBOW = 28;\n public static final int CAKE_CHEESE_SWIRL = 29;\n public static final int MOUSSE_TRIPLE_RASPBERRY = 30;\n public static final int MOUSSE_TRIPLE_LEMON = 31;\n public static final int MOUSSE_TRIPLE_STRAWBERRY= 32;\n\n\n public static final int NUM_TREAT_TYPES = 33;\n public static final int NULL = 100;\n public static final int RED_BEAN_HEART = 101;\n public static final int RED_BEAN_CAKE = 102;\n public static final int BAD_SHROOM = 103;\n public static final int BUFF_MAGNET = 104;\n public static final int CABBAGE = 105;\n public static final int PARTY_BALL = 106;\n public static final int BUFF_PARTY_BALL = 107;\n\n\n\n public void setMove(IObjectMove objMove);\n public IObjectMove getMove();\n public void draw(Canvas canvas);\n public void update(int elapsedTime);\n public Coordinates getCoordinates();\n public int getPoints();\n public Rect getRect();\n public int getRectTop();\n public boolean isDeleted();\n public void reinit(ITreatTypeGood type, int x, int y);\n public void delete();\n public ITreatTypeGood getType();\n}", "Collection<String> getPossibleDefeatConditions();", "private void fillAdjective1a()\n {\n adjective1a.add(\"Epic\");\n adjective1a.add(\"Brilliant\");\n adjective1a.add(\"Mighty\");\n adjective1a.add(\"Great\");\n adjective1a.add(\"Wonderful\");\n adjective1a.add(\"Crazy\");\n adjective1a.add(\"Sparkling\");\n adjective1a.add(\"Shiny\");\n adjective1a.add(\"Lustful\");\n adjective1a.add(\"Precious\");\n\n }", "String getSkills();", "public interface BelphegorDisplayStrings extends Messages {\n @Key(\"addCategoryPrompt\")\n String addCategoryPrompt();\n\n @DefaultMessage(\"Successfully added {0} to the following Categories: {1,list}.\")\n @AlternateMessage({\"=1\", \"Successfully added {0} to the following Category: {1,list}.\"})\n @Key(\"appCategorizeSuccess\")\n String appCategorizeSuccess(String name, @PluralCount List<String> groupNames);\n\n @Key(\"appDescription\")\n String appDescription();\n\n String appDocumentationLabel();\n\n @Key(\"avgUserRatingColumnLabel\")\n String avgUserRatingColumnLabel();\n\n @Key(\"categorize\")\n String categorize();\n\n @Key(\"clearSelection\")\n String clearSelection();\n\n @Key(\"confirmDeleteAppCategory\")\n String confirmDeleteAppCategory(String name);\n\n @Key(\"confirmDeleteAppTitle\")\n String confirmDeleteAppTitle();\n\n @Key(\"deleteApp\")\n String deleteApp();\n\n @Key(\"deleteCategory\")\n String deleteCategory();\n\n String docHelpHtml();\n\n @Key(\"editApp\")\n String editApp();\n\n @Key(\"moveCategory\")\n String moveCategory();\n\n @Key(\"referenceGenomes\")\n String referenceGenomes();\n\n @Key(\"renamePrompt\")\n String renamePrompt();\n\n @Key(\"restoreApp\")\n String restoreApp();\n\n @Key(\"restoreAppSuccessMsg\")\n String restoreAppSuccessMsg(String name, String s);\n\n @Key(\"restoreAppSuccessMsgTitle\")\n String restoreAppSuccessMsgTitle();\n\n @Key(\"selectCategories\")\n String selectCategories(String name);\n\n @Key(\"systemMessages\")\n String systemMessages();\n\n @Key(\"tempDisable\")\n String tempDisable();\n\n String templateLinkPopupHeading();\n\n String templateLinkTitle();\n\n @Key(\"toolRequests\")\n String toolRequests();\n\n @Key(\"toolAdmin\")\n String toolAdmin();\n\n String updateDocumentationSuccess();\n}", "public interface Constants {\n String LIEPIN_HOST =\"https://h.liepin.com\";\n String SEARCH_URL =\"https://h.liepin.com/cvsearch/soResume/\";\n //String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showresumeworkexps/\";\n String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showworkexps/\";\n String ANCHOR_TAG =\"<div class=\\\"resume-work\\\" id=\\\"workexp_anchor\\\">\";\n String GET_METHOD =\"GET\";\n String POST_METHOD =\"POST\";\n}", "default List<String> assignedConcepts(Source code){\n return assignedConcepts(code, ImmutableSet.of());\n }", "public interface TAGS\n{\n String TAG_LOGGED = \"LogStatus\",\n TAG_USER_ID_TASK = \"UserID\",\n TAG_ID=\"ID\",\n TAG_LON=\"Lon\",\n TAG_LAT=\"Lat\",\n TAG_NAME = \"Name\",\n TAG_PWORD = \"Password\",\n TAG_START = \"Start\",\n TAG_STOP = \"Stop\",\n TAG_EXPLANATION = \"Explanation\",\n TAG_DESCRIPTION = \"Description\",\n TAG_PLACE = \"Place\",\n REQUESTING_LOCATION_UPDATES_KEY = \"requesting-location-updates\",\n LOCATION_KEY =\"location-key\",\n LAST_UPDATED_TIME_STRING_KEY = \"last-updated-time-string-key\";\n int MY_PERMISSIONS_REQUEST_LOCATION = 99;\n int MY_PERMISSIONS_REQUEST_VIBRATION = 100;\n\n}", "String getStringList();", "private void generateVariablesAndConstraints() {\n\t\tVariable norwegian=new Variable(generateDomain(), \"norwegian\");\n\t\tVariable english=new Variable(generateDomain(), \"english\");\n\t\tVariable dane=new Variable(generateDomain(), \"dane\");\n\t\tVariable german=new Variable(generateDomain(), \"german\");\n\t\tVariable swede=new Variable(generateDomain(), \"swede\");\n\t\t//colors: \"red\", \"green\", \"white\", \"yellow\", \"blue\"\n\t\tVariable red=new Variable(generateDomain(), \"red\");\n\t\tVariable green=new Variable(generateDomain(), \"green\");\n\t\tVariable white=new Variable(generateDomain(), \"white\");\n\t\tVariable yellow=new Variable(generateDomain(), \"yellow\");\n\t\tVariable blue=new Variable(generateDomain(), \"blue\");\n\t\t//tobaccos: \"light\", \"cigar\", \"pipe\", \"unfiltered\", \"menthol\"\n\t\tVariable light=new Variable(generateDomain(), \"light\");\n\t\tVariable cigar=new Variable(generateDomain(), \"cigar\");\n\t\tVariable pipe=new Variable(generateDomain(), \"pipe\");\n\t\tVariable unfiltered=new Variable(generateDomain(), \"unfiltered\");\n\t\tVariable menthol=new Variable(generateDomain(), \"menthol\");\n\t\t//drinks: \"tea\", \"milk\", \"water\", \"beer\", \"coffee\"\n\t\tVariable tea=new Variable(generateDomain(), \"tea\");\n\t\tVariable milk=new Variable(generateDomain(), \"milk\");\n\t\tVariable water=new Variable(generateDomain(), \"water\");\n\t\tVariable beer=new Variable(generateDomain(), \"beer\");\n\t\tVariable coffee=new Variable(generateDomain(), \"coffee\");\n\t\t//pets: \"fish\", \"cat\", \"bird\", \"dog\", \"horse\"\n\t\tVariable fish=new Variable(generateDomain(), \"fish\");\n\t\tVariable cat=new Variable(generateDomain(), \"cat\");\n\t\tVariable bird=new Variable(generateDomain(), \"bird\");\n\t\tVariable dog=new Variable(generateDomain(), \"dog\");\n\t\tVariable horse=new Variable(generateDomain(), \"horse\");\n\t\t\n\t\tvariables= new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tred, green, white, yellow, blue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlight, cigar, pipe, unfiltered, menthol,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttea, milk, water, beer, coffee,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfish, cat, bird, dog, horse));\n\t\t\n\t\tconstraints=new ArrayList<Constraint>();\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(red, green, white, yellow, blue))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(light, cigar, pipe, unfiltered, menthol))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(tea, milk, water, beer, coffee))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(fish, cat, bird, dog, horse))).toneq()));\n\t\tconstraints.add(new equnary(norwegian, 1)); //Norweg zamieszkuje pierwszy dom\n\t\tconstraints.add(new eq(english, red));//Anglik mieszka w czerwonym domu.\n\t\tconstraints.add(new lt(green, white));//Zielony dom znajduje się bezpośrednio po lewej stronie domu białego.\n\t\tconstraints.add(new eq(dane, tea));//Duńczyk pija herbatkę.\n\t\tconstraints.add(new nextto(light, cat));//Palacz papierosów light mieszka obok hodowcy kotów.\n\t\tconstraints.add(new eq(yellow, cigar));//Mieszkaniec żółtego domu pali cygara.\n\t\tconstraints.add(new eq(german, pipe));//Niemiec pali fajkę.\n\t\tconstraints.add(new equnary(milk, 3));//Mieszkaniec środkowego domu pija mleko.\n\t\tconstraints.add(new nextto(light, water));//Palacz papierosów light ma sąsiada, który pija wodę.\n\t\tconstraints.add(new eq(unfiltered, bird));//Palacz papierosów bez filtra hoduje ptaki.\n\t\tconstraints.add(new eq(swede, dog));//Szwed hoduje psy.\n\t\tconstraints.add(new nextto(norwegian, blue));//Norweg mieszka obok niebieskiego domu.\n\t\tconstraints.add(new nextto(horse, yellow));//Hodowca koni mieszka obok żółtego domu.\n\t\tconstraints.add(new eq(menthol, beer));//Palacz mentolowych pija piwo.\n\t\tconstraints.add(new eq(green, coffee));//W zielonym domu pija się kawę\n\t}", "public interface Constant {\n\n enum Column {\n BEAUTY(\"BEAUTY\", \"福利\", R.string.beauty, R.id.nav_beauty),\n ANDROID(\"ANDROID\", \"Android\", R.string.android, R.id.nav_android),\n IOS(\"IOS\", \"iOS\", R.string.ios, R.id.nav_ios),\n JS(\"JAVASCRIPT\", \"前端\", R.string.js, R.id.nav_web),\n APP(\"APP\", \"App\", R.string.app, R.id.nav_app),\n EXCITED(\"EXCITED\", \"瞎推荐\", R.string.excited, R.id.nav_excited),\n OTHERS(\"OTHERS\", \"拓展资源\", R.string.others, R.id.nav_others),\n FAVORITE(\"FAVORITE\", \"Collections\", R.string.favorite, R.id.nav_favorite);\n //SEARCH_RESULTS(\"SEARCH_RESULTS\", \"search_results\", R.string.nav_search, 0);\n\n private final String id;\n private final String apiName;\n private final int strId;\n private final int resId;\n\n Column(String id, String apiName, int strId, int resId) {\n this.id = id;\n this.apiName = apiName;\n this.strId = strId;\n this.resId = resId;\n }\n\n @Override\n public String toString() {\n return id;\n }\n\n public String getId() {\n return id;\n }\n\n public String getApiName() {\n return apiName;\n }\n\n public int getStrId() {\n return strId;\n }\n\n public int getResId() {\n return resId;\n }\n }\n\n}", "public void getLiftHints(){\n liftsAuto=new HashSet<String>();\n database.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for(DataSnapshot snapshot: dataSnapshot.getChildren()){\n liftsAuto.add(snapshot.getKey().substring(0,1).toUpperCase()+snapshot.getKey().substring(1).toLowerCase());\n\n }\n autoFillAdapter=new ArrayAdapter<String>(SetsPage.this, android.R.layout.simple_list_item_1, liftsAuto.toArray(new String[0]));\n txtLiftType.setAdapter(autoFillAdapter);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "public interface ConstantsKey {\n// Values\n String TEXT_FONT_STYLE_NAME=\"WorkSans_Regular.ttf\";\n// Urls\n String BASE_URL=\"http://test.code-apex.com/codeapex_project/index.php/api/user/\";\n String BASEURL =\"baseurl\" ;\n// Keys\n}", "public interface Constant {\n String INDEX_URL=\"https://raw.githubusercontent.com/sujit0892/meeting/master/meeting-xml/index.xml\";\n String MEETING_TAG=\"meeting\";\n String NAME_TAG=\"name\";\n String VENUE_TAG=\"venue\";\n String START_DATE=\"start-date\";\n String XML_URL=\"url\";\n String END_DATE=\"end-date\";\n String DESCRIPTION_TAG=\"description\";\n\n}", "public interface PaperDbConstants {\n String UNIVERSAL_TYPE = \"universal_flavor_type\";\n String PAPER_ACCESS_TOKEN = \"paper_access_token\";\n\n\n String LIVE = \"LIVE\";\n String DEV = \"DEV\";\n\n String LOGIN_CREDENTIALS = \"logininfo\";\n\n}", "public interface Const {\n String SERVER_NAME = \"http://xxx.kenit.net/\";\n String SERVER_PATH = \"http://xxx.kenit.net/androidpart/\";\n String GET_PRODUCT_FILE = \"getproduct.php\";\n}", "public interface URLs\r\n{\r\n String BASIC_URL = \"http://api.timetable.asia/\";\r\n\r\n String KEY = \"221b368d7f5f597867f525971f28ff75\";\r\n\r\n String COMPANY_URL = \"operator.json\";\r\n String LANGUAGE_URL = \"lang.json\";\r\n String VEHICLE_URL = \"fleet.json\";\r\n String ROUTE_URL = \"route.json\";\r\n String TRIP_URL = \"trip.json\";\r\n String COMMIT_URL = \"commit.json\";\r\n String CURRENT_STATIONS_URL = \"station.json\";\r\n public static final String LANGPACK_URL = \"langpack.json\";\r\n}", "public interface Constants {\n String API_LINK_TEXT = \"API_LINK\";\n String USER_ID = \"user_id\";\n String MAPS_KEY = \"AIzaSyBgktirlOODUO9zWD-808D7zycmP7smp-Y\";\n String NEWS_API = \"https://newsapi.org/v1/articles?source=national-geographic&sortBy=top&apiKey=79a22c366b984f11b09d11fb9476d33b\";\n}", "String[] getReservedWords();", "private LowercaseWordList() {\n\n }", "private static void mapDbNames()\r\n { \r\n if (dbMap == null) {\r\n dbMap = new HashMap<String, String>();\r\n dbMap.put(\"tuition\", \"tuition\");\r\n dbMap.put(\"utilities\", \"utilities\");\r\n dbMap.put(\"fuel\", \"gas\");\r\n dbMap.put(\"registration\", \"Vehicle Registration\");\r\n dbMap.put(\"repair\", \"car repair\");\r\n dbMap.put(\"clothing\", \"clothing\");\r\n // maps asst types to the way they're currently in the database\r\n // used in the where clause for where tcf_assistance.description = ?\r\n }\r\n }", "public ArrayList getAttributeList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n ArrayList adjAtt = new ArrayList();\n int separator = 0;\n List<Tree> leaves;\n String phraseNotation = \"NP([<NNS|NN|NNP]![<JJ|VBG])!$VP\";// !<VBG\";//@\" + phrase + \"! << @\" + phrase;\n\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n int adjectiveExist = 0;\n String adj = \"\";\n String attribute = \"\";\n String b = \"\";\n\n if (innerChild.length > 1) {\n int count = 1;\n\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\") || inChild.value().equals(\",\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n }\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (count == 1) {\n if (adjectiveExist == 1) {\n attribute = adj + \" \" + leaves.get(0).yieldWords().get(0).word();\n } else {\n attribute = leaves.get(0).yieldWords().get(0).word();\n }\n if (!designEleList.contains(attribute)) {\n String identifiedWord = attribute;\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n\n } else if (count >= 2 && separator == 0) {\n if (!attribute.contains(\"_\")) {\n\n attributeLists.remove(morphology.stem(attribute));\n attributeLists.remove(attribute);\n } else {\n attributeLists.remove(attribute);\n }\n\n attribute += \" \" + (leaves.get(0).yieldWords()).get(0).word();\n attributeLists.add(attribute);\n } else if (count >= 2 && separator == 1) {\n attribute = (leaves.get(0).yieldWords()).get(0).word();\n if (!attribute.contains(\"_\")) {\n attributeLists.add(morphology.stem(attribute));\n } else {\n attributeLists.add(attribute);\n }\n separator = 0;\n }\n count++;\n }\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n }\n }\n }\n adjAtt = getAdjectiveAttribute();\n if (!adjAtt.isEmpty()) {\n String att = \"\";\n for (int i = 0; i < adjAtt.size(); i++) {\n att = adjAtt.get(i).toString();\n if (!att.isEmpty() || !att.equals(\"\") || !(att.equals(\" \"))) {\n attributeLists.add(att.trim());\n }\n }\n }\n\n System.out.println(\"ATTRIBUTE LIST :\" + attributeLists);\n return attributeLists;\n\n }", "public interface Constants {\n\n /**\n * 资源路径\n */\n String CONTENT_RESOURCES_PATH = \"content\";\n\n /**\n * 名师头像地址\n */\n String TEACHER_HEADE_IMG_PATH = \"teacher\";\n\n /**\n * 证书保存地址\n */\n String CERTIFICATE_IMG_PATH = \"certificate\";\n\n\n /**\n * 舞谱上传地址目录\n */\n String DANCE_BOOK_PATH = \"dance_book\";\n}", "public Removalstops()\n {\n stopWords.add(\"am\");\n stopWords.add(\"my\");\nstopWords.add(\"at\");\nstopWords.add(\"a\");\nstopWords.add(\"i\");\nstopWords.add(\"is\");\nstopWords.add(\"of\");\nstopWords.add(\"have\");\nstopWords.add(\"--\");\nstopWords.add(\"do\");\nstopWords.add(\"the\");\nstopWords.add(\"was\");\nstopWords.add(\"iam\");\nstopWords.add(\"there\");\nstopWords.add(\"what\");\nstopWords.add(\"for\");\nstopWords.add(\"in\");\nstopWords.add(\"very\");\nstopWords.add(\"and\");\nstopWords.add(\"to\");\nstopWords.add(\"often\");\nstopWords.add(\"because\");\nstopWords.add(\"in\");\nstopWords.add(\"an\");\nstopWords.add(\"can\");\nstopWords.add(\"via\");\nstopWords.add(\"even\");\nstopWords.add(\"as\");\nstopWords.add(\"best\");\nstopWords.add(\"been\");\nstopWords.add(\"into\");\nstopWords.add(\"by\");\nstopWords.add(\"around\");\nstopWords.add(\"being\");\nstopWords.add(\"from\");\nstopWords.add(\"etc\");\nstopWords.add(\"his\");\nstopWords.add(\"do\");\nstopWords.add(\"have\");\nstopWords.add(\"had\"); \nstopWords.add(\"able\");\nstopWords.add(\"about\");\nstopWords.add(\"above\");\nstopWords.add(\"abroad\");\nstopWords.add(\"according\");\nstopWords.add(\"accordingly\");\nstopWords.add(\"across\");\nstopWords.add(\"actually\");\nstopWords.add(\"adj\");\nstopWords.add(\"after\");\nstopWords.add(\"afterwards\");\nstopWords.add(\"again\");\nstopWords.add(\"against\");\nstopWords.add(\"ago\");\nstopWords.add(\"ahead\");\nstopWords.add(\"ain't\");\nstopWords.add(\"all\");\nstopWords.add(\"allow\");\nstopWords.add(\"allows\");\nstopWords.add(\"almost\");\nstopWords.add(\"alone\");\nstopWords.add(\"along\");\nstopWords.add(\"alongside\");\nstopWords.add(\"already\");\nstopWords.add(\"also\");\nstopWords.add(\"although\");\nstopWords.add(\"always\");\nstopWords.add(\"am\");\nstopWords.add(\"amid\");\nstopWords.add(\"amidst\");\nstopWords.add(\"among\");\nstopWords.add(\"amongst\");\nstopWords.add(\"an\");\nstopWords.add(\"and\");\nstopWords.add(\"another\");\nstopWords.add(\"any\");\nstopWords.add(\"anybody\");\nstopWords.add(\"anyhow\");\nstopWords.add(\"anyone\");\nstopWords.add(\"anything\");\nstopWords.add(\"anyway\");\nstopWords.add(\"anyways\");\nstopWords.add(\"anywhere\");\nstopWords.add(\"apart\");\nstopWords.add(\"appear\");\nstopWords.add(\"appreciate\");\nstopWords.add(\"appropriate\");\nstopWords.add(\"are\");\nstopWords.add(\"aren't\");\nstopWords.add(\"around\");\nstopWords.add(\"as\");\nstopWords.add(\"a's\");\nstopWords.add(\"aside\");\nstopWords.add(\"ask\");\nstopWords.add(\"asking\");\nstopWords.add(\"associated\");\nstopWords.add(\"at\");\nstopWords.add(\"available\");\nstopWords.add(\"away\");\nstopWords.add(\"awfully\");\nstopWords.add(\"back\");\nstopWords.add(\"backward\");\nstopWords.add(\"backwards\");\nstopWords.add(\"be\");\nstopWords.add(\"became\");\nstopWords.add(\"beacause\");\nstopWords.add(\"become\");\nstopWords.add(\"becomes\");\nstopWords.add(\"becoming\");\nstopWords.add(\"been\");\nstopWords.add(\"before\");\nstopWords.add(\"beforehand\");\nstopWords.add(\"begin\");\nstopWords.add(\"behind\");\nstopWords.add(\"being\");\nstopWords.add(\"believe\");\nstopWords.add(\"below\");\nstopWords.add(\"beside\");\nstopWords.add(\"besides\");\nstopWords.add(\"best\");\nstopWords.add(\"better\");\nstopWords.add(\"between\");\nstopWords.add(\"beyond\");\nstopWords.add(\"both\");\nstopWords.add(\"brief\");\nstopWords.add(\"but\");\nstopWords.add(\"by\");\nstopWords.add(\"came\");\nstopWords.add(\"can\");\nstopWords.add(\"cannot\");\nstopWords.add(\"cant\");\nstopWords.add(\"can't\");\nstopWords.add(\"caption\");\nstopWords.add(\"cause\");\nstopWords.add(\"causes\");\nstopWords.add(\"certain\");\nstopWords.add(\"cetrainly\");\nstopWords.add(\"changes\");\nstopWords.add(\"clearly\");\nstopWords.add(\"c'mon\");\nstopWords.add(\"co\");\nstopWords.add(\"co.\");\nstopWords.add(\"com\");\nstopWords.add(\"come\");\nstopWords.add(\"comes\");\nstopWords.add(\"concerning\");\nstopWords.add(\"consequently\");\nstopWords.add(\"consider\");\nstopWords.add(\"considering\");\nstopWords.add(\"could\");\nstopWords.add(\"couldn't\");\nstopWords.add(\"c's\");\nstopWords.add(\"currently\");\nstopWords.add(\"dare\");\nstopWords.add(\"daren't\");\nstopWords.add(\"definitely\");\nstopWords.add(\"described\");\nstopWords.add(\"despite\");\nstopWords.add(\"did\");\nstopWords.add(\"didn't\");\nstopWords.add(\"different\");\nstopWords.add(\"directly\");\nstopWords.add(\"do\");\nstopWords.add(\"does\");\nstopWords.add(\"doesn't\");\nstopWords.add(\"doing\");\nstopWords.add(\"done\");\nstopWords.add(\"don't\");\nstopWords.add(\"down\");\nstopWords.add(\"downwards\");\nstopWords.add(\"during\");\nstopWords.add(\"each\");\nstopWords.add(\"edu\");\nstopWords.add(\"eg\");\nstopWords.add(\"eight\");\nstopWords.add(\"eighty\");\nstopWords.add(\"either\");\nstopWords.add(\"else\");\nstopWords.add(\"elsewhere\");\nstopWords.add(\"end\");\nstopWords.add(\"ending\");\nstopWords.add(\"enough\");\nstopWords.add(\"entirely\");\nstopWords.add(\"especially\");\nstopWords.add(\"et\");\nstopWords.add(\"etc\");\nstopWords.add(\"even\");\nstopWords.add(\"evenmore\");\nstopWords.add(\"every\");\nstopWords.add(\"everybody\");\nstopWords.add(\"everyone\");\nstopWords.add(\"everything\");\nstopWords.add(\"everywhere\");\nstopWords.add(\"ex\");\nstopWords.add(\"exactly\");\nstopWords.add(\"example\");\nstopWords.add(\"except\");\nstopWords.add(\"fairly\");\nstopWords.add(\"far\");\nstopWords.add(\"farhter\");\nstopWords.add(\"few\");\nstopWords.add(\"fewer\");\nstopWords.add(\"fifth\");\nstopWords.add(\"first\");\nstopWords.add(\"five\");\nstopWords.add(\"followed\");\nstopWords.add(\"following\");\nstopWords.add(\"follows\");\nstopWords.add(\"for\");\nstopWords.add(\"forever\");\nstopWords.add(\"former\");\nstopWords.add(\"formerly\");\nstopWords.add(\"forth\");\nstopWords.add(\"forward\");\nstopWords.add(\"found\");\nstopWords.add(\"four\");\nstopWords.add(\"from\");\nstopWords.add(\"further\");\nstopWords.add(\"furthermore\");\nstopWords.add(\"get\");\nstopWords.add(\"gets\");\nstopWords.add(\"getting\");\nstopWords.add(\"given\");\nstopWords.add(\"gives\");\nstopWords.add(\"go\");\nstopWords.add(\"goes\");\nstopWords.add(\"going\");\nstopWords.add(\"gone\");\nstopWords.add(\"got\");\nstopWords.add(\"gotten\");\nstopWords.add(\"greetings\");\nstopWords.add(\"had\");\nstopWords.add(\"hadn't\");\nstopWords.add(\"half\");\nstopWords.add(\"happens\");\nstopWords.add(\"hardly\");\nstopWords.add(\"has\");\nstopWords.add(\"hasn't\");\nstopWords.add(\"have\");\nstopWords.add(\"haven't\");\nstopWords.add(\"having\");\nstopWords.add(\"he\");\nstopWords.add(\"he'd\");\nstopWords.add(\"he'll\");\nstopWords.add(\"hello\");\nstopWords.add(\"help\");\nstopWords.add(\"hence\");\nstopWords.add(\"her\");\nstopWords.add(\"here\");\nstopWords.add(\"hereafter\");\nstopWords.add(\"hereby\");\nstopWords.add(\"herein\");\nstopWords.add(\"here's\");\nstopWords.add(\"hereupon\");\nstopWords.add(\"hers\");\nstopWords.add(\"herself\");\nstopWords.add(\"he's\");\nstopWords.add(\"hi\");\nstopWords.add(\"him\");\nstopWords.add(\"himself\");\nstopWords.add(\"his\");\nstopWords.add(\"hither\");\nstopWords.add(\"hopefully\");\nstopWords.add(\"how\");\nstopWords.add(\"howbeit\");\nstopWords.add(\"however\");\nstopWords.add(\"however\");\nstopWords.add(\"hundred\");\nstopWords.add(\"i'd\");\nstopWords.add(\"ie\");\nstopWords.add(\"if\");\nstopWords.add(\"ignored\");\nstopWords.add(\"i'll\");\nstopWords.add(\"i'm\");\nstopWords.add(\"immediate\");\nstopWords.add(\"in\");\nstopWords.add(\"iansmuch\");\nstopWords.add(\"inc\");\nstopWords.add(\"inc.\");\nstopWords.add(\"indeed\");\nstopWords.add(\"indicate\");\nstopWords.add(\"indicated\");\nstopWords.add(\"indicates\");\nstopWords.add(\"inner\");\nstopWords.add(\"inside\");\nstopWords.add(\"insofar\");\nstopWords.add(\"into\");\nstopWords.add(\"inward\");\nstopWords.add(\"is\");\nstopWords.add(\"isn't\");\nstopWords.add(\"it\");\nstopWords.add(\"it'd\");\nstopWords.add(\"it'll\");\nstopWords.add(\"its\");\nstopWords.add(\"it's\");\nstopWords.add(\"itself\");\nstopWords.add(\"i've\");\nstopWords.add(\"just\");\nstopWords.add(\"k\");\nstopWords.add(\"keep\");\nstopWords.add(\"keeps\");\nstopWords.add(\"kept\");\nstopWords.add(\"know\");\nstopWords.add(\"knows\");\nstopWords.add(\"known\");\nstopWords.add(\"last\");\nstopWords.add(\"lately\");\nstopWords.add(\"later\");\nstopWords.add(\"latter\");\nstopWords.add(\"latterly\");\nstopWords.add(\"least\");\nstopWords.add(\"less\");\nstopWords.add(\"let\");\nstopWords.add(\"let's\");\nstopWords.add(\"like\");\nstopWords.add(\"liked\");\nstopWords.add(\"likely\");\nstopWords.add(\"likewise\");\nstopWords.add(\"little\");\nstopWords.add(\"look\");\nstopWords.add(\"looks\");\nstopWords.add(\"low\");\nstopWords.add(\"lower\");\nstopWords.add(\"ltd\");\nstopWords.add(\"made\");\nstopWords.add(\"mainly\");\nstopWords.add(\"make\");\nstopWords.add(\"makes\");\nstopWords.add(\"many\");\nstopWords.add(\"may\");\nstopWords.add(\"maybe\");\nstopWords.add(\"mayn't\");\nstopWords.add(\"me\");\nstopWords.add(\"mean\");\nstopWords.add(\"meanwhile\");\nstopWords.add(\"merely\");\nstopWords.add(\"might\");\nstopWords.add(\"mightn't\");\nstopWords.add(\"mine\");\nstopWords.add(\"minus\");\nstopWords.add(\"miss\");\nstopWords.add(\"more\");\nstopWords.add(\"moreover\");\nstopWords.add(\"most\");\nstopWords.add(\"mostly\");\nstopWords.add(\"mr\");\nstopWords.add(\"mrs\");\nstopWords.add(\"much\");\nstopWords.add(\"must\");\nstopWords.add(\"mustn't\");\nstopWords.add(\"my\");\nstopWords.add(\"myself\");\nstopWords.add(\"name\");\nstopWords.add(\"namely\");\nstopWords.add(\"nd\");\nstopWords.add(\"near\");\nstopWords.add(\"nearly\");\nstopWords.add(\"necessary\");\nstopWords.add(\"need\");\nstopWords.add(\"needn't\");\nstopWords.add(\"needs\");\nstopWords.add(\"neither\");\nstopWords.add(\"never\");\nstopWords.add(\"neverf\");\nstopWords.add(\"neverless\");\nstopWords.add(\"nevertheless\");\nstopWords.add(\"new\");\nstopWords.add(\"next\");\nstopWords.add(\"nine\");\nstopWords.add(\"ninety\");\nstopWords.add(\"no\");\nstopWords.add(\"nobody\");\nstopWords.add(\"non\");\nstopWords.add(\"none\");\nstopWords.add(\"nonetheless\");\nstopWords.add(\"noone\");\nstopWords.add(\"no-one\");\nstopWords.add(\"nor\");\nstopWords.add(\"normally\");\nstopWords.add(\"not\");\nstopWords.add(\"nothing\");\nstopWords.add(\"notwithstanding\");\nstopWords.add(\"novel\");\nstopWords.add(\"now\");\nstopWords.add(\"nowwhere\");\nstopWords.add(\"obviously\");\nstopWords.add(\"of\");\nstopWords.add(\"off\");\nstopWords.add(\"often\");\nstopWords.add(\"oh\");\nstopWords.add(\"ok\");\nstopWords.add(\"okay\");\nstopWords.add(\"old\");\nstopWords.add(\"on\");\nstopWords.add(\"once\");\nstopWords.add(\"one\");\nstopWords.add(\"ones\");\nstopWords.add(\"one's\");\nstopWords.add(\"only\");\nstopWords.add(\"onto\");\nstopWords.add(\"opposite\");\nstopWords.add(\"or\");\nstopWords.add(\"other\");\nstopWords.add(\"others\");\nstopWords.add(\"otherwise\");\nstopWords.add(\"ought\");\nstopWords.add(\"oughtn't\");\nstopWords.add(\"our\");\nstopWords.add(\"ourselves\");\nstopWords.add(\"out\");\nstopWords.add(\"outside\");\nstopWords.add(\"over\");\nstopWords.add(\"overall\");\nstopWords.add(\"own\");\nstopWords.add(\"particular\");\nstopWords.add(\"particularly\");\nstopWords.add(\"past\");\nstopWords.add(\"per\");\nstopWords.add(\"perhaps\");\nstopWords.add(\"placed\");\nstopWords.add(\"please\");\nstopWords.add(\"plus\");\nstopWords.add(\"possible\");\nstopWords.add(\"presumably\");\nstopWords.add(\"probably\");\nstopWords.add(\"provided\");\nstopWords.add(\"provides\");\nstopWords.add(\"que\");\nstopWords.add(\"quite\");\nstopWords.add(\"qv\");\nstopWords.add(\"rather\");\nstopWords.add(\"rd\");\nstopWords.add(\"re\");\nstopWords.add(\"really\");\nstopWords.add(\"reasonably\");\nstopWords.add(\"recent\");\nstopWords.add(\"recently\");\nstopWords.add(\"regarding\");\nstopWords.add(\"regardless\");\nstopWords.add(\"regards\");\nstopWords.add(\"relatively\");\nstopWords.add(\"respectively\");\nstopWords.add(\"right\");\nstopWords.add(\"round\");\nstopWords.add(\"said\");\nstopWords.add(\"same\");\nstopWords.add(\"saw\");\nstopWords.add(\"say\");\nstopWords.add(\"saying\");\nstopWords.add(\"says\");\nstopWords.add(\"second\");\nstopWords.add(\"secondly\");\nstopWords.add(\"see\");\nstopWords.add(\"seeing\");\nstopWords.add(\"seem\");\nstopWords.add(\"seemed\");\nstopWords.add(\"seeming\");\nstopWords.add(\"seems\");\nstopWords.add(\"seen\");\nstopWords.add(\"self\");\nstopWords.add(\"selves\");\nstopWords.add(\"sensible\");\nstopWords.add(\"sent\");\nstopWords.add(\"serious\");\nstopWords.add(\"seriously\");\nstopWords.add(\"seven\");\nstopWords.add(\"several\");\nstopWords.add(\"shall\");\nstopWords.add(\"shan't\");\nstopWords.add(\"she\");\nstopWords.add(\"she'd\");\nstopWords.add(\"she'll\");\nstopWords.add(\"she's\");\nstopWords.add(\"should\");\nstopWords.add(\"shouldn't\");\nstopWords.add(\"since\");\nstopWords.add(\"six\");\nstopWords.add(\"so\");\nstopWords.add(\"some\");\nstopWords.add(\"somebody\");\nstopWords.add(\"someday\");\nstopWords.add(\"somehow\");\nstopWords.add(\"someone\");\nstopWords.add(\"something\");\nstopWords.add(\"sometime\");\nstopWords.add(\"sometimes\");\nstopWords.add(\"somewhat\");\nstopWords.add(\"somewhere\");\nstopWords.add(\"soon\");\nstopWords.add(\"sorry\");\nstopWords.add(\"specified\");\nstopWords.add(\"specify\");\nstopWords.add(\"specifying\");\nstopWords.add(\"still\");\nstopWords.add(\"sub\");\nstopWords.add(\"such\");\nstopWords.add(\"sup\");\nstopWords.add(\"sure\");\nstopWords.add(\"take\");\nstopWords.add(\"taken\");\nstopWords.add(\"taking\");\nstopWords.add(\"tell\");\nstopWords.add(\"tends\");\nstopWords.add(\"th\");\nstopWords.add(\"than\");\nstopWords.add(\"thank\");\nstopWords.add(\"thanks\");\nstopWords.add(\"thanx\");\nstopWords.add(\"that\");\nstopWords.add(\"that'll\");\nstopWords.add(\"thats\");\nstopWords.add(\"that've\");\nstopWords.add(\"the\");\nstopWords.add(\"their\");\nstopWords.add(\"theirs\");\nstopWords.add(\"them\");\nstopWords.add(\"themselves\");\nstopWords.add(\"then\");\nstopWords.add(\"thence\");\nstopWords.add(\"there\");\nstopWords.add(\"thereafter\");\nstopWords.add(\"thereby\");\nstopWords.add(\"there'd\");\nstopWords.add(\"therefore\");\nstopWords.add(\"therein\");\nstopWords.add(\"ther'll\");\nstopWords.add(\"there're\");\nstopWords.add(\"theres\");\nstopWords.add(\"there's\");\nstopWords.add(\"thereupon\");\nstopWords.add(\"there've\");\nstopWords.add(\"these\");\nstopWords.add(\"they\");\nstopWords.add(\"they'd\");\nstopWords.add(\"they'll\");\nstopWords.add(\"they're\");\nstopWords.add(\"they've\");\nstopWords.add(\"thing\");\nstopWords.add(\"things\");\nstopWords.add(\"think\");\nstopWords.add(\"third\");\nstopWords.add(\"thirty\");\nstopWords.add(\"this\");\nstopWords.add(\"thorough\");\nstopWords.add(\"thoroughly\");\nstopWords.add(\"those\");\nstopWords.add(\"though\");\nstopWords.add(\"throughout\");\nstopWords.add(\"thru\");\nstopWords.add(\"thus\");\nstopWords.add(\"till\");\nstopWords.add(\"to\");\nstopWords.add(\"together\");\nstopWords.add(\"too\");\nstopWords.add(\"took\");\nstopWords.add(\"toward\");\nstopWords.add(\"towards\");\nstopWords.add(\"tried\");\nstopWords.add(\"tries\");\nstopWords.add(\"truly\");\nstopWords.add(\"try\");\nstopWords.add(\"trying\");\nstopWords.add(\"t's\");\nstopWords.add(\"twice\");\nstopWords.add(\"two\");\nstopWords.add(\"un\");\nstopWords.add(\"under\");\nstopWords.add(\"underneath\");\nstopWords.add(\"undoing\");\nstopWords.add(\"unfortunately\");\nstopWords.add(\"unless\");\nstopWords.add(\"unlike\");\nstopWords.add(\"unlikely\");\nstopWords.add(\"untill\");\nstopWords.add(\"unto\");\nstopWords.add(\"up\");\nstopWords.add(\"upon\");\nstopWords.add(\"upwards\");\nstopWords.add(\"us\");\nstopWords.add(\"use\");\nstopWords.add(\"used\");\nstopWords.add(\"useful\");\nstopWords.add(\"uses\");\nstopWords.add(\"using\");\nstopWords.add(\"usually\");\nstopWords.add(\"v\");\nstopWords.add(\"value\");\nstopWords.add(\"various\");\nstopWords.add(\"versus\");\nstopWords.add(\"very\");\nstopWords.add(\"via\");\nstopWords.add(\"viz\");\nstopWords.add(\"vs\");\nstopWords.add(\"want\");\nstopWords.add(\"wants\");\nstopWords.add(\"was\");\nstopWords.add(\"wasn't\");\nstopWords.add(\"way\");\nstopWords.add(\"we\");\nstopWords.add(\"we'd\");\nstopWords.add(\"welcome\");\nstopWords.add(\"well\");\nstopWords.add(\"we'll\");\nstopWords.add(\"went\");\nstopWords.add(\"were\");\nstopWords.add(\"we're\");\nstopWords.add(\"weren't\");\nstopWords.add(\"we've\");\nstopWords.add(\"what\");\nstopWords.add(\"whatever\");\nstopWords.add(\"what'll\");\nstopWords.add(\"what's\");\nstopWords.add(\"what've\");\nstopWords.add(\"when\");\nstopWords.add(\"whence\");\nstopWords.add(\"whenever\");\nstopWords.add(\"where\");\nstopWords.add(\"whereafter\");\nstopWords.add(\"whereas\");\nstopWords.add(\"whereby\");\nstopWords.add(\"wherein\");\nstopWords.add(\"where's\");\nstopWords.add(\"whereupon\");\nstopWords.add(\"whereever\");\nstopWords.add(\"whether\");\nstopWords.add(\"which\");\nstopWords.add(\"whichever\");\nstopWords.add(\"while\");\nstopWords.add(\"whilst\");\nstopWords.add(\"whither\");\nstopWords.add(\"who\");\nstopWords.add(\"who'd\");\nstopWords.add(\"whoever\");\nstopWords.add(\"whole\");\nstopWords.add(\"who'll\");\nstopWords.add(\"whom\");\nstopWords.add(\"whomever\");\nstopWords.add(\"who's\");\nstopWords.add(\"whose\");\nstopWords.add(\"why\");\nstopWords.add(\"will\");\nstopWords.add(\"willing\");\nstopWords.add(\"wish\");\nstopWords.add(\"with\");\nstopWords.add(\"within\");\nstopWords.add(\"without\");\nstopWords.add(\"wonder\");\nstopWords.add(\"won't\");\nstopWords.add(\"would\");\nstopWords.add(\"wouldn't\");\nstopWords.add(\"yes\");\nstopWords.add(\"yet\");\nstopWords.add(\"you\");\nstopWords.add(\"you'd\");\nstopWords.add(\"you'll\");\nstopWords.add(\"your\");\nstopWords.add(\"you're\");\nstopWords.add(\"yours\");\nstopWords.add(\"yourself\");\nstopWords.add(\"you've\");\nstopWords.add(\"zero\");\n\n \n \n }", "public static void assignKeywords(String dataset){\n\t\tif(dataset.equals(\"openacc\")){\n\t\t\tkeywords = keywords_openacc;\n\t\t}else if(dataset.equals(\"cpu2006\")){\n\t\t\tkeywords = keywords_cpu2006;\n\t\t}else if(dataset.equals(\"cpu2017\")){\n\t\t\tkeywords = keywords_cpu2017;\n\t\t}else if(dataset.equals(\"mpi2007\")){\n\t\t\tkeywords = keywords_mpi2007;\n\t\t}else if(dataset.equals(\"omp2012\")){\n\t\t\tkeywords = keywords_omp2012;\n\t\t}\n\t}", "public interface ResponseConstants {\n\n String Bad_Request = \"The request was invalid or cannot be otherwise served\";\n String Authentication_failed = \"The request failed due to invalid credentials\";\n String Not_Found = \"No information available or the requested URL was not found on the server\";\n String Internal_Server_Error = \"Something is broken\";\n String Bad_Gateway = \"Oxford Dictionaries API is down or being upgraded\";\n String Service_Unavailable = \"The Oxford Dictionaries API servers are up, but overloaded with requests. Please try again later\";\n String Gateway_timeout = \"The Oxford Dictionaries API servers are up, but the request couldn’t be serviced due to some failure within our stack. Please try again later\";\n\n}", "private void setLairNames(int typeInt) {\n\t\tswitch (typeInt) { // puts lairnames in a hash map with the city name as key and the lairname as value depending on the type of villain\n\n\t\tcase 0:\n\t\t\tlairNames.put(\"Springfield\", \"Hagley Oval\");\n\t\t\tlairNames.put(\"Te Puke\", \"Bay Oval\");\n\t\t\tlairNames.put(\"Gore\", \"The Grove Park\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune Domain\");\n\t\t\tlairNames.put(\"Paeroa\", \"Centennial Park\");\n\t\t\tlairNames.put(\"Taihape\", \"Memorial Park, Taihape\");\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\tlairNames.put(\"Springfield\", \"Selwyn Rugby Club\");\n\t\t\tlairNames.put(\"Te Puke\", \"Centenial Park, Te Puke\");\n\t\t\tlairNames.put(\"Gore\", \"Newman Park, Gore\");\n\t\t\tlairNames.put(\"Ohakune\", \"Rochfort Park, Ohakune\");\n\t\t\tlairNames.put(\"Paeroa\", \"Paeroa Old Boys Football Ground\");\n\t\t\tlairNames.put(\"Taihape\", \"Memorial Park, Taihape\");\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tlairNames.put(\"Springfield\", \"The Springfield Hotel\");\n\t\t\tlairNames.put(\"Te Puke\", \"Molly O'Connors Pub\");\n\t\t\tlairNames.put(\"Gore\", \"Howl at the Moon, Cafe and Bar\");\n\t\t\tlairNames.put(\"Ohakune\", \"Powderkeg Restaurant and Bar\");\n\t\t\tlairNames.put(\"Paeroa\", \"The Paeroa Hotel\");\n\t\t\tlairNames.put(\"Taihape\", \"Gumboot Manor Restaurant and Bar\");\n\t\t\tbreak;\n\n\t\tcase 3:\n\t\t\tlairNames.put(\"Springfield\", \"Springfield Telephone Exchange\");\n\t\t\tlairNames.put(\"Te Puke\", \"Te Puke Telephone Exchange\");\n\t\t\tlairNames.put(\"Gore\", \"Gore Telephone Exchange\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune Telephone Exchange\");\n\t\t\tlairNames.put(\"Paeroa\", \"Paeroa Telephone Exchange\");\n\t\t\tlairNames.put(\"Taihape\", \"Taihape Telephone Exchange\");\n\t\t\tbreak;\n\n\t\tcase 4:\n\t\t\tlairNames.put(\"Springfield\", \"Christchurch District Court Chambers\");\n\t\t\tlairNames.put(\"Te Puke\", \"Te Awamutu District Court Chambers\");\n\t\t\tlairNames.put(\"Gore\", \"Gore District Court\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune District Court\");\n\t\t\tlairNames.put(\"Paeroa\", \"Hauraki District Court\");\n\t\t\tlairNames.put(\"Taihape\", \"Taihape District Court\");\n\t\t\tbreak;\n\n\t\tcase 5:\n\t\t\tlairNames.put(\"Springfield\", \"Springfield Giant Donut Statue\");\n\t\t\tlairNames.put(\"Te Puke\", \"Te Puke Giant Kiwifruit Statue\");\n\t\t\tlairNames.put(\"Gore\", \"Gore Giant Trout Statue\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune Giant Carrot Statue\");\n\t\t\tlairNames.put(\"Paeroa\", \"Paeroa L&P Statue\");\n\t\t\tlairNames.put(\"Taihape\", \"Taihape Giant Gumboot Statue\");\n\t\t\tbreak;\n\t\t}\t\n\t}", "private static void buildWordList(){\n\t\ttry {\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tScanner inScanner = new Scanner(new FileReader(LIST_LOCATION));\n\t\t\tfor(int i = 0; i < collegiateWords.length ; i++){\n\t\t\t\tcollegiateWords[i] = inScanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\n\t\tSystem.out.println(\"Word List Built.\");\n\t}", "public interface Constants\n{\n\tString EMAIL = \"email\";\n\tString RECORD_ID = \"_id\";\n\tString ENTRY_DATE = \"entryDate\";\n\tString DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssXXX\";\n\tString LEADS = \"leads\";\n}", "void method0() {\nprivate static final String ELEMENT_N = \"element_n\";\nprivate static final String ELEMENT_R = \"element_r\";\nprivate static final String ATTRIBUTE_N = \"attribute_n\";\nprivate static final String ATTRIBUTE_R = \"attribute_r\";\nprivate static int ATTIDX_COUNT = 0;\npublic static final int ATTIDX_ABSTRACT = ATTIDX_COUNT++;\npublic static final int ATTIDX_AFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_BASE = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCK = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCKDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_DEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_EFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINAL = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINALDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_FORM = ATTIDX_COUNT++;\npublic static final int ATTIDX_ID = ATTIDX_COUNT++;\npublic static final int ATTIDX_ITEMTYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_MAXOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MEMBERTYPES = ATTIDX_COUNT++;\npublic static final int ATTIDX_MINOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAME = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE_LIST = ATTIDX_COUNT++;\npublic static final int ATTIDX_NILLABLE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NONSCHEMA = ATTIDX_COUNT++;\npublic static final int ATTIDX_PROCESSCONTENTS = ATTIDX_COUNT++;\npublic static final int ATTIDX_PUBLIC = ATTIDX_COUNT++;\npublic static final int ATTIDX_REF = ATTIDX_COUNT++;\npublic static final int ATTIDX_REFER = ATTIDX_COUNT++;\npublic static final int ATTIDX_SCHEMALOCATION = ATTIDX_COUNT++;\npublic static final int ATTIDX_SOURCE = ATTIDX_COUNT++;\npublic static final int ATTIDX_SUBSGROUP = ATTIDX_COUNT++;\npublic static final int ATTIDX_SYSTEM = ATTIDX_COUNT++;\npublic static final int ATTIDX_TARGETNAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_TYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_USE = ATTIDX_COUNT++;\npublic static final int ATTIDX_VALUE = ATTIDX_COUNT++;\npublic static final int ATTIDX_ENUMNSDECLS = ATTIDX_COUNT++;\npublic static final int ATTIDX_VERSION = ATTIDX_COUNT++;\npublic static final int ATTIDX_XML_LANG = ATTIDX_COUNT++;\npublic static final int ATTIDX_XPATH = ATTIDX_COUNT++;\npublic static final int ATTIDX_FROMDEFAULT = ATTIDX_COUNT++;\n//public static final int ATTIDX_OTHERVALUES = ATTIDX_COUNT++; \npublic static final int ATTIDX_ISRETURNED = ATTIDX_COUNT++;\nprivate static final XIntPool fXIntPool = new XIntPool();\n// constants to return \nprivate static final XInt INT_QUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_QUALIFIED);\nprivate static final XInt INT_UNQUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_UNQUALIFIED);\nprivate static final XInt INT_EMPTY_SET = fXIntPool.getXInt(XSConstants.DERIVATION_NONE);\nprivate static final XInt INT_ANY_STRICT = fXIntPool.getXInt(XSWildcardDecl.PC_STRICT);\nprivate static final XInt INT_ANY_LAX = fXIntPool.getXInt(XSWildcardDecl.PC_LAX);\nprivate static final XInt INT_ANY_SKIP = fXIntPool.getXInt(XSWildcardDecl.PC_SKIP);\nprivate static final XInt INT_ANY_ANY = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_ANY);\nprivate static final XInt INT_ANY_LIST = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_LIST);\nprivate static final XInt INT_ANY_NOT = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_NOT);\nprivate static final XInt INT_USE_OPTIONAL = fXIntPool.getXInt(SchemaSymbols.USE_OPTIONAL);\nprivate static final XInt INT_USE_REQUIRED = fXIntPool.getXInt(SchemaSymbols.USE_REQUIRED);\nprivate static final XInt INT_USE_PROHIBITED = fXIntPool.getXInt(SchemaSymbols.USE_PROHIBITED);\nprivate static final XInt INT_WS_PRESERVE = fXIntPool.getXInt(XSSimpleType.WS_PRESERVE);\nprivate static final XInt INT_WS_REPLACE = fXIntPool.getXInt(XSSimpleType.WS_REPLACE);\nprivate static final XInt INT_WS_COLLAPSE = fXIntPool.getXInt(XSSimpleType.WS_COLLAPSE);\nprivate static final XInt INT_UNBOUNDED = fXIntPool.getXInt(SchemaSymbols.OCCURRENCE_UNBOUNDED);\n// used to store the map from element name to attribute list \n// for 14 global elements \nprivate static final Hashtable fEleAttrsMapG = new Hashtable(29);\n// for 39 local elememnts \nprivate static final Hashtable fEleAttrsMapL = new Hashtable(79);\n// used to initialize fEleAttrsMap \n// step 1: all possible data types \n// DT_??? >= 0 : validate using a validator, which is initialized staticly \n// DT_??? < 0 : validate directly, which is done in \"validate()\" \nprotected static final int DT_ANYURI = 0;\nprotected static final int DT_ID = 1;\nprotected static final int DT_QNAME = 2;\nprotected static final int DT_STRING = 3;\nprotected static final int DT_TOKEN = 4;\nprotected static final int DT_NCNAME = 5;\nprotected static final int DT_XPATH = 6;\nprotected static final int DT_XPATH1 = 7;\nprotected static final int DT_LANGUAGE = 8;\n// used to store extra datatype validators \nprotected static final int DT_COUNT = DT_LANGUAGE + 1;\nprivate static final XSSimpleType[] fExtraDVs = new XSSimpleType[DT_COUNT];\nprotected static final int DT_BLOCK = -1;\nprotected static final int DT_BLOCK1 = -2;\nprotected static final int DT_FINAL = -3;\nprotected static final int DT_FINAL1 = -4;\nprotected static final int DT_FINAL2 = -5;\nprotected static final int DT_FORM = -6;\nprotected static final int DT_MAXOCCURS = -7;\nprotected static final int DT_MAXOCCURS1 = -8;\nprotected static final int DT_MEMBERTYPES = -9;\nprotected static final int DT_MINOCCURS1 = -10;\nprotected static final int DT_NAMESPACE = -11;\nprotected static final int DT_PROCESSCONTENTS = -12;\nprotected static final int DT_USE = -13;\nprotected static final int DT_WHITESPACE = -14;\nprotected static final int DT_BOOLEAN = -15;\nprotected static final int DT_NONNEGINT = -16;\nprotected static final int DT_POSINT = -17;\n// used to resolver namespace prefixes \nprotected XSDHandler fSchemaHandler = null;\n// used to store symbols. \nprotected SymbolTable fSymbolTable = null;\n// used to store the mapping from processed element to attributes \nprotected Hashtable fNonSchemaAttrs = new Hashtable();\n// temprory vector, used to hold the namespace list \nprotected Vector fNamespaceList = new Vector();\n// whether this attribute appeared in the current element \nprotected boolean[] fSeen = new boolean[ATTIDX_COUNT];\nprivate static boolean[] fSeenTemp = new boolean[ATTIDX_COUNT];\n// the following part implements an attribute-value-array pool. \n// when checkAttribute is called, it calls getAvailableArray to get \n// an array from the pool; when the caller is done with the array, \n// it calls returnAttrArray to return that array to the pool. \n// initial size of the array pool. 10 is big enough \nstatic final int INIT_POOL_SIZE = 10;\n// the incremental size of the array pool \nstatic final int INC_POOL_SIZE = 10;\n// the array pool \nObject[][] fArrayPool = new Object[INIT_POOL_SIZE][ATTIDX_COUNT];\n// used to clear the returned array \n// I think System.arrayCopy is more efficient than setting 35 fields to null \nprivate static Object[] fTempArray = new Object[ATTIDX_COUNT];\n// current position of the array pool (# of arrays not returned) \nint fPoolPos = 0;\n}", "static void constructor(){\n /*SK*/ /*CZ*/ /*EN*/ \n /*0*/ SK.add(\"Základné nastavenia a konštanty\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); //language String value at position \n/*1*/ SK.add(\"A :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*2*/ SK.add(\"Z :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*3*/ SK.add(\"Dľžka rozpätia \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*4*/ SK.add(\"Počítaná vzdialenosť od osi vedenia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*5*/ SK.add(\"\\u0394l \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*6*/ SK.add(\"Dľžka elementu reťazovky\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*7*/ SK.add(\"Aplikovať terén\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*8*/ SK.add(\"Aplikovat modelovaný terén?\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*9*/ SK.add(\"A/Z hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*10*/ SK.add(\"hranice priestoru su v tvare obdlžnika dopočítaneho na základe hodnôt konštánt AZ\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*11*/ SK.add(\"Generované hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*12*/ SK.add(\"hranice priestoru sú generovane an základe vstupných bodov pozn. Comlex Hull\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*13*/ SK.add(\"Teren\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*14*/ SK.add(\"Model terénu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*15*/ SK.add(\"Hlavná os rozpätia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*16*/ SK.add(\"X1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*17*/ SK.add(\"X-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*18*/ SK.add(\"Z1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*19*/ SK.add(\"Z-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*20*/ SK.add(\"X2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*21*/ SK.add(\"X-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*22*/ SK.add(\"Z2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*23*/ SK.add(\"Z-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*24*/ SK.add(\"Ukažka terenu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*25*/ SK.add(\"Y :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*26*/ SK.add(\"Výškový offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*27*/ SK.add(\"block offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*28*/ SK.add(\"Blokuje daný ofset \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*29*/ SK.add(\"Strana počitaneho štvorca\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*30*/ SK.add(\"H :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*31*/ SK.add(\"Vyska pre vertikalne mapovanie\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n \n \n \n \n \n \n \n \n \n \n \n \n // language_main_frame.LangLabel(constants.getLanguage_option(),0) \n inicializovane = true;\n}", "public List<String> getCategories();", "public static void main(String[] args) {\nfinal String str=\"Hello\";//constant variables CANT BE change;\n// name=\"School\";\n\n\t}", "void setStatCategory (String statistic);", "static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }", "interface Game {\n\n // Bank\n String TRANSACTION = \"transaction\";\n\n // Lobby\n String POKE = \"poke\";\n String MEMBER_READY = \"member_ready\";\n }", "public interface Constants {\n\n String KEY_BOOK_INFO = \"key_book_info\";\n\n}", "public static void main(String[] args) {\n\t\tarticle.add(\"the\");\n\t\tarticle.add(\"a\");\n\t\tarticle.add(\"some\");\n\t\tarticle.add(\"one\");\n\t\tnoun.add(\"boy\");\n\t\tnoun.add(\"girl\");\n\t\tnoun.add(\"dog\");\n\t\tnoun.add(\"town\");\n\t\tnoun.add(\"car\");\n\t\tverb.add(\"drove\");\n\t\tverb.add(\"ran\");\n\t\tverb.add(\"jumped\");\n\t\tverb.add(\"walked\");\n\t\tverb.add(\"skipped\");\n\t\tpreposition.add(\"to\");\n\t\tpreposition.add(\"from\");\n\t\tpreposition.add(\"over\");\n\t\tpreposition.add(\"on\");\n\t\tpreposition.add(\"under\");\n\t\tRandom r= new Random();\n\t\tfor(int i=0;i<15;i++)\n\t\t{\n\t\tint n= r.nextInt(4);\n\t\tint n2= r.nextInt(5);\n\t\tint n3= r.nextInt(5);\n\n\t\tint n4= r.nextInt(5);\n\t\tint n5= r.nextInt(4);\n\t\tint n6= r.nextInt(5);\n\n\t\tSystem.out.println(article.get(n)+ \" \"+ noun.get(n2)+\" \"+ verb.get(n3)+\" \"+ preposition.get(n4)+\" \" + article.get(n5)+\" \"+ noun.get(n6)+\".\");\n\t\t}\n\n\t}", "private void setStrings(){\n ip = context.getResources().getString(R.string.ip);\n port = context.getResources().getString(R.string.port);\n dbName = context.getResources().getString(R.string.db_name);\n user = context.getResources().getString(R.string.masterUser);\n pass = context.getResources().getString(R.string.masterPass);\n }", "private void suggestCategory() {\n String[] allCat = {\"Pizza\", \"Pasta\", \"Dessert\", \"Salad\", \"SoftDrinks\"};\n// for (ItemDTO i : allDetails) {\n// names.add(i.getName());\n// }\n\n TextFields.bindAutoCompletion(txtCat, allCat);\n }", "public interface RequestURLs {\n String DEFAULT_URL = \"http://aperturedev.co.kr:21002/petcommunity/\";\n\n /*\n 매칭 서비스 관련\n */\n String GET_PET_TYPES = DEFAULT_URL + \"services/get-pettypes.php\"; // 강아지 종을 가져온다.\n String REGIST_MATCH_PET = DEFAULT_URL + \"matching/regist-new-pet.php\"; // 팻 등록 실시\n String MATCHING_OTHER_PET = DEFAULT_URL + \"matching/matching.php\"; // 매칭할 팻을 하나 가져옵니다.\n\n /*\n 사용자 정보 관련\n */\n String GET_USER_INFO = DEFAULT_URL + \"users/get-info.php\"; // UUID -> 사용자 정보\n String REGIST_SERVICE = DEFAULT_URL + \"users/signup.php\"; // 회원가입을 실시한다.\n String IS_REGIST_SERVICE = DEFAULT_URL + \"/users/is-registed.php\"; // 회원가입 되어 있는지 확인한다.\n String LOGIN_SERVICE = DEFAULT_URL + \"users/signin.php\"; // 로그인 처리한다.\n\n\n\n\n}", "private void setTaunts(String taunt1, String taunt2, String taunt3){\n\t\ttaunts.add(taunt1); // adds taunts to the arraylist\n\t\ttaunts.add(taunt2);\n\t\ttaunts.add(taunt3);\n\t}", "public interface Constants {\n\n /*TODO KEY VALUE 参数*/\n String BUNDLE = \"bundle\";\n\n /*TODO APP 渠道*/\n String APP_SHANXI = \"SHANXI\";\n}", "@Override\n public void onClick(View view) {\n\n String[] facts = {\n \"Ants stretch when they wake up in the morning.\",\n \"Ostriches can run faster than horses.\",\n \"Olympic gold medals are actually made mostly of silver.\",\n \"You are born with 300 bones; by the time you are an adult you will have 200.\",\n \"It takes about 8 minutes for light from the Sun to reach Earth.\",\n \"Some bamboo plants can grow almost a meter in just one day.\",\n \"The state of Florida is bigger than England.\",\n \"Some penguins can leap 2-3 meters out of the water.\",\n \"On average, it takes 56 days to form a new habit.\",\n \"Mammoths still walked the earth when the Great Pyramid was being built.\",\n \"There are more life forms living in your skin than there are people on the planet.\",\n \"Otters sleep holding hands.\",\n \"Caterpillars completely liquify as they transform into moths.\",\n \"An indoor vegetable factory in Japan produces up to 10,000 heads of lettuce per day and uses 1% of the amount of water needed for outdoor fields.\",\n \"When hippos are upset, their sweat turns red.\",\n \"“Facebook Addiction Disorder” is a mental disorder identified by Psychologists.\",\n \"The average woman uses her height in lipstick every 5 years.\",\n \"Human saliva has a boiling point three times that of regular water.\",\n \"During your lifetime, you will produce enough saliva to fill two swimming pools.\",\n \"Bikinis and tampons were invented by men.\",\n \"Heart attacks are more likely to happen on a Monday.\",\n \"Camels have three eyelids to protect themselves from blowing sand.\",\n \"Dolphins sleep with one eye open.\",\n \"Months that begin on a Sunday will always have a ‘Friday the 13th’.\",\n \"Fictional/horror writer Stephen King sleeps with a nearby light on to calm his fear of the dark.\",\n \"Americans travel 1,144,721,000 miles by air every day.\",\n \"38% of American men say they love their cars more than women.\",\n \"The U.S. military operates 234 golf courses.\",\n \"A cat has 32 muscles in each ear.\",\n \"A duck’s quack doesn’t echo, and no one knows why.\",\n \"The average lifespan of an eyelash is five months.\",\n \"A spider has transparent blood.\",\n \"Babies are most likely to be born on Tuesdays.\",\n \"The Minneapolis phone book has 21 pages of Andersons.\",\n \"A horse can look forward with one eye and back with the other.\",\n \"The word Pennsylvania is misspelled on the Liberty Bell.\",\n \"You spend 7 years of your life in the bathroom.\",\n \"Simplistic passwords contribute to over 80% of all computer password break-ins.\",\n \"Dentists have recommended that a toothbrush be kept at least 6 feet away from a toilet to avoid airborne particles resulting from the flush.\",\n \"Most dust particles in your house are made from dead skin.\",\n \"Venus is the only planet that rotates clockwise.\",\n \"Oak trees do not produce acorns until they are fifty years of age or older.\",\n \"The king of hearts is the only king without a mustache.\",\n \"Thirty-five percent of people who use personal ads for dating are already married.\",\n \"One out of 20 people have an extra rib.\",\n \"The longest distance a deepwater lobster has been recorded to travel is 225 miles.\",\n \"Orcas when traveling in groups, breathe in unison.\",\n \"Pucks hit by hockey sticks have reached speeds of up to 150 miles per hour\",\n \"Most lipstick contains fish scales.\",\n \"No piece of paper can be folded in half more than 7 times.\",\n \"More people are killed by donkeys annually than are killed in plane crashes.\",\n \"The fear of peanut butter sticking to the roof of the mouth is called Arachibutyrophobia.\",\n \"Serving ice cream on cherry pie was once illegal in Kansas.\",\n \"Emus cannot walk backwards.\",\n \"Infants spend more time dreaming than adults do.\",\n \"Over 200 varieties of watermelons are grown in the U.S.\",\n \"The most dangerous job in the United States is that of a fisherman, followed by logging and then an airline pilot.\",\n \"The youngest pope was 11 years old.\",\n \"You share your birthday with at least 9 other million people in the world.\",\n \"During the First World War, cigarettes were handed out to soldiers along with their rations.\",\n \"The USA bought Alaska from Russia for 2 cents an acre.\",\n \"Walmart sells more apparel a year than all the other competing department stores combined.\",\n \"Canada has more inland waters and lakes than any other country in the world.\",\n \"Ramses II, a pharaoh of Egypt died in 1225 B.C. At the time of his death, he had fathered 96 sons and 60 daughters.\",\n \"Women are twice as likely to be diagnosed with depression than men in the United States.\",\n \"An average city dog lives approximately three years longer than an average country dog.\",\n \"On average, falling asleep while driving results in 550 accidents per day in the United States.\",\n \"The average life span of a single red blood cell is 120 days.\",\n \"Over 250 million Slinky toys have been sold since its debut in 1946.\",\n \"The last thing Elvis Presley ate before he died was four scoops of ice cream and 6 chocolate chip cookies.\",\n \"Every year, Burger King restaurants prepare over 950,000 pounds of bacon for their breakfast customers.\",\n \"The cosmos is within us, we're made of star stuff. We are a way for the cosmos to know itself.\",\n \"There is a dog museum in St. Louis, Missouri.\",\n \"An average person laughs about 15 times a day.\",\n \"About 10% of the 100,000 thunderstorms that occur in the USA every year are classified as severe.\",\n \"A leech has 32 brains.\",\n \"There are about 6,800 languages in the world.\",\n \"By walking an extra 20 minutes every day, an average person will burn off seven pounds of body fat in an year.\",\n \"A slug has four noses.\",\n \"Camel is considered unclean meat in the Bible.\",\n \"Mosquitoes have teeth.\",\n \"Cats have over one hundred vocal sounds, dogs only have about ten.\",\n \"Lions cannot roar until they reach the age of two.\",\n \"In Las Vegas, casinos do not have any clocks.\",\n };\n\n String fact = \"\";\n\n Random rng = new Random();\n int random = rng.nextInt(facts.length);\n\n fact = facts[random];\n factLabel.setText(fact);\n didY.setText(\"Did you know?\");\n }", "public static void main(String[] args){\r\n Language myLang = new Language(\"Willish\", 5, \"Mars\", \"verb-noun-verb-adjective\");\r\n Mayan mayan = new Mayan(\"Ki'che'\", 2330000);\r\n SinoTibetan sino1 = new SinoTibetan(\"Chinese Tibetan\", 100000);\r\n SinoTibetan sino2 = new SinoTibetan(\"Tibetan\", 200000);\r\n ArrayList<Language> langList = new ArrayList<Language>();\r\n langList.add(myLang);\r\n langList.add(mayan);\r\n langList.add(sino1);\r\n langList.add(sino2);\r\n \r\n for (Language allLangs : langList){\r\n allLangs.getInfo();\r\n }\r\n }", "public interface API {\n\n String ZHIHU_DAILY_BEFORE = \"http://news.at.zhihu.com/api/4/news/before/\";\n String ZHIHU_DAILY_OFFLINE_NEWS = \"http://news-at.zhihu.com/api/4/news/\";\n String SEARCH = \"http://zhihudailypurify.herokuapp.com/search/\";\n\n}", "public static void main(String[] args) {\r\n\r\n\t\tMap<Integer, String> map = new HashMap<>();\r\n\r\n\t\tSet<EnumTrend> trendPattern = new HashSet<EnumTrend>();\r\n\t\tboolean ascend = false;\r\n\t\tboolean descend = false;\r\n\r\n\t\ttrendPattern = checkTrendpatterns(numList);\r\n\r\n\t\tboolean undefined = trendPattern.contains(EnumTrend.ASC) && trendPattern.contains(EnumTrend.DESC);\r\n\t\tboolean constant = !(trendPattern.contains(EnumTrend.ASC)) && !trendPattern.contains(EnumTrend.DESC);\r\n\r\n\t\tif (!undefined && !constant) {\r\n\t\t\tif (trendPattern.contains(EnumTrend.ASC)) {\r\n\t\t\t\tascend = true;\r\n\t\t\t} else {\r\n\t\t\t\tdescend = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(trendPattern);\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"undefined: \" + undefined + \", constant: \" + constant + \", ascend \" + ascend + \", descend \" + descend);\r\n\r\n\t}", "public interface Constant {\r\n\r\n String BASE_NAME = \"com.sslyxhz.entropy\";\r\n\r\n // Girl Photo\r\n String EXTRA_URL = BASE_NAME + \".EXTRA_URL\";\r\n String EXTRA_DESC = BASE_NAME + \".EXTRA_DESC\";\r\n\r\n // TypeDataFragment\r\n String EXTRA_TAG_NAME = BASE_NAME + \".EXTRA_TAG_NAME\";\r\n int TYPE_ITEM_GANK = 21; // 一般类型\r\n int TYPE_ITEM_WELFARE = 22; // 福利\r\n}", "List getCategoriesOfType(String typeConstant);", "private void initializeStrings(Activity activity) {\n OBSERVATORY_URL = activity.getString(R.string.live_address);\n API_KEY = activity.getString(R.string.api_key);\n VARIABLE_QUERY_FORMAT = activity.getString(R.string.variable_format);\n BUFFER_QUERY_FORMAT = activity.getString(R.string.buffer_query);\n TWO_VARIABLE_FORMAT = activity.getString(R.string.two_variables_format);\n\n IS_ACTIVE_KEY = activity.getString(R.string.json_is_active_key);\n DATA_KEY = activity.getString(R.string.json_data_key);\n GEOM_KEY = activity.getString(R.string.json_geom_key);\n COORDINATES_KEY = activity.getString(R.string.json_coordinates_key);\n\n PM10_VARIABLE = activity.getString(R.string.pm10_variable);\n TEMP_VARIABLE = activity.getString(R.string.temperature_variable);\n HUMID_VARIABLE = activity.getString(R.string.humidity_variable);\n MEASUREMENTS_LIMIT_UPPER = \n activity.getResources().getInteger(R.integer.measurement_limit_upper);\n\n NO_JSON_OBJECT_FOUND_LOG_TITLE =\n activity.getString(R.string.no_json_object_found_log_title);\n NO_JSON_OBJECT_FOUND_LOG_CONTENTS =\n activity.getString(R.string.no_json_object_found_log_contents);\n }", "public static ArrayList<String> GetModifierList()\n {\n ArrayList<String> list = new ArrayList<String>();\n\n //list.add(ModifierType.A_SYMBOL_ICON);//graphical, feeds off of symbol code, SIDC positions 3, 5-10\n //list.add(ModifierType.B_ECHELON);//graphical, feeds off of symbol code, SIDC positions 11-12\n list.add(C_QUANTITY);\n //list.add(D_TASK_FORCE_INDICATOR);//graphical, feeds off of symbol code, SIDC positions 11-12\n //list.add(E_FRAME_SHAPE_MODIFIER);//symbol frame, feeds off of symbol code, SIDC positions 3-4\n list.add(F_REINFORCED_REDUCED);//R = reinforced, D = reduced, RD = reinforced and reduced\n list.add(G_STAFF_COMMENTS);\n list.add(H_ADDITIONAL_INFO_1);\n list.add(H1_ADDITIONAL_INFO_2);\n list.add(H2_ADDITIONAL_INFO_3);\n list.add(J_EVALUATION_RATING);\n list.add(K_COMBAT_EFFECTIVENESS);\n list.add(L_SIGNATURE_EQUIP);\n list.add(M_HIGHER_FORMATION);\n list.add(N_HOSTILE);\n list.add(P_IFF_SIF);\n list.add(Q_DIRECTION_OF_MOVEMENT);//number in mils\n //list.add(R_MOBILITY_INDICATOR);//graphical, feeds off of symbol code, SIDC positions 11-12\n list.add(R2_SIGNIT_MOBILITY_INDICATOR);\n //list.add(S_HQ_STAFF_OR_OFFSET_INDICATOR);//graphical, feeds off of symbol code, SIDC positions 11-12\n list.add(T_UNIQUE_DESIGNATION_1);\n list.add(T1_UNIQUE_DESIGNATION_2);\n list.add(V_EQUIP_TYPE);\n list.add(W_DTG_1);\n list.add(W1_DTG_2);\n list.add(X_ALTITUDE_DEPTH);\n list.add(Y_LOCATION);\n list.add(Z_SPEED);\n\n list.add(AA_SPECIAL_C2_HQ);\n //list.add(AB_FEINT_DUMMY_INDICATOR);//graphical, feeds off of symbol code, SIDC positions 11-12\n //list.add(AC_INSTALLATION);//graphical, feeds off of symbol code, SIDC positions 11-12\n list.add(AD_PLATFORM_TYPE);\n list.add(AE_EQUIPMENT_TEARDOWN_TIME);\n list.add(AF_COMMON_IDENTIFIER);\n list.add(AG_AUX_EQUIP_INDICATOR);\n list.add(AH_AREA_OF_UNCERTAINTY);\n list.add(AI_DEAD_RECKONING_TRAILER);\n list.add(AJ_SPEED_LEADER);\n list.add(AK_PAIRING_LINE);\n //list.add(AL_OPERATIONAL_CONDITION);//2525C ////graphical, feeds off of symbol code, SIDC positions 4\n list.add(AO_ENGAGEMENT_BAR);//2525C\n\n\n\n return list;\n }", "public interface COSConstants {\n\n public static final String CLOTHO_PATH_PREFIX = \"/clotho\";\n public static final String GIRLITY_PATH_PREFIX = \"/girlity\";\n public static final String PACKAGE_PATH_PREFIX = CLOTHO_PATH_PREFIX+ \"/package\";\n public static final String SPLASH_PATH_PREFIX = GIRLITY_PATH_PREFIX+ \"/splash\";\n}", "public interface Configuration {\n// /**\n// * 获取主分词器词库\n// * @return\n// */\n// public String getMainDic();\n// /**\n// * 获取城市词路径\n// * @return String 城市词路径\n// */\n// public String getCityDicionary();\n\n /**\n * 获取城区词路径\n *\n * @return String 获取城区词路径\n */\n public String getRegionDicionary();\n\n /**\n * 获取\"工程师\"类词库路径\n *\n * @return String \"工程师\"类词库路径\n */\n public String getTheoremDicionary();\n\n /**\n * 获取\"总工程师\"类词库路径\n *\n * @return String \"总工程师\"类词库路径\n */\n public String getEngineerDicionary();\n\n /**\n * 获取垃圾类词库路径\n *\n * @return String 垃圾类词库路径\n */\n public String getConjunctionDicionary();\n\n /**\n * 获取多义类词库路径\n *\n * @return String 多义词库路径\n */\n public String getPolysemyDicionary();\n\n /**\n * 获取多职位前词库路径\n *\n * @return String 多职位前词库路径\n */\n public String getManagerDicionary();\n\n /**\n * 获取多职位后词库路径\n *\n * @return String 多职位后词库路径\n */\n public String getAssistantDicionary();\n\n /**\n * 获取数字词库路径\n *\n * @return String 数字词库路径\n */\n public String getNumberDicionary();\n\n /**\n * 获取无用词词库路径\n *\n * @return String 无用词词库路径\n */\n public String getWorthlessDicionary();\n\n /**\n * 获取标签词词库路径\n *\n * @return String 标签词词库路径\n */\n public String getTagDicionary();\n\n /**\n * 获取公司性质词词库路径\n *\n * @return String 公司性质词词库路径\n */\n public String getCorporationDicionary();\n// /**\n// * 获取ik分词器的主路径\n// * @return\n// */\n// public String getIkMainFilePath();\n\n}", "public interface Constants {\n String API_BASE_URL = \"https://api.themoviedb.org/3/\";\n String IMAGE_BASE_URL = \"https://image.tmdb.org/t/p/\";\n String PATH_POSTER_W185 = \"w342\";\n String PATH_BACKDROP_W780 = \"w780\";\n String POSTER_URL = IMAGE_BASE_URL + PATH_POSTER_W185;\n String BACKDROP_URL = IMAGE_BASE_URL + PATH_BACKDROP_W780;\n String RV_STATE = \"rvstate\";\n String MOVIES_STATE = \"listMovies\";\n\n interface PrefKeys {\n String MOVIES_TYPE_KEY = \"movies_type\";\n String LAST_SELECTED_TAB = \"last_tab\";\n }\n\n interface MoviesType {\n String POPULAR = \"popular\";\n String TOP_RATED = \"top_rated\";\n String FAVORITE = \"favorite\";\n }\n\n interface TabsType {\n String POPULAR_TAB = \"popular_tab\";\n String TOP_RATED_TAB = \"top_rated_tab\";\n String FAVORITE_TAB = \"favorite_tab\";\n }\n}", "interface ILoString {\n \n // Initiates translating this list of nucleotides into a list of proteins\n ILoLoString translate(); \n \n // Translates this list of nucleotides into a list of proteins\n ILoLoString ribosome(ILoString loc, ILoLoString lop, boolean go); \n \n // Take the first n characters from this list of nucleotides\n String getFirst(int n); \n \n // Remove the first n characters from this list of nucleotides/codons\n ILoString removeFirst(int n);\n \n // Append given string onto this list of nucleotides/codons\n ILoString append(String that); \n \n // Finds the length of this list of nucleotides/codons\n int length(); \n \n}", "public interface Actions {\n String ACTION_MEDIA_PLAY_PAUSE = \"com.tatait.tatamusic.ACTION_MEDIA_PLAY_PAUSE\";\n String ACTION_MEDIA_NEXT = \"com.tatait.tatamusic.ACTION_MEDIA_NEXT\";\n String ACTION_MEDIA_PREVIOUS = \"com.tatait.tatamusic.ACTION_MEDIA_PREVIOUS\";\n String VOLUME_CHANGED_ACTION = \"android.media.VOLUME_CHANGED_ACTION\";\n String LIST_TYPE_COLLECT = \"collect\";\n String LIST_TYPE_LOCAL = \"local\";\n String LIST_TYPE_ONLINE = \"online\";\n int DB_PLAY_LIST_LOCAL = 0;\n int DB_PLAY_LIST_COLLECT = 1;\n int DB_PLAY_LIST_ONLINE = 2;\n}", "private String getSuggestions() {\r\n\t\tDbHandler dbHandler = new DbHandler(new AndroidFileIO(this));\r\n\t\tTable data;\r\n\t\ttry {\r\n\t\t\tdata = dbHandler.generateDataTable(\"mentalrate\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tRulesFinder finder = new RulesFinder(data);\r\n\t\tIterator<Rule> rulesIter = finder.findRules().iterator();\r\n\r\n\t\tString msg = \"\";\r\n\t\twhile (rulesIter.hasNext()) {\r\n\t\t msg += RuleTranslator.humanReadable(rulesIter.next())+\"\\n\";\r\n\t\t}\r\n\t System.out.println(msg);\r\n\t\treturn msg;\r\n\t}" ]
[ "0.60783", "0.58108115", "0.5772035", "0.56084377", "0.5599739", "0.55817866", "0.5561218", "0.5557771", "0.55535215", "0.54645455", "0.5453062", "0.54115164", "0.53852606", "0.5377369", "0.53498316", "0.5336587", "0.5335764", "0.53255194", "0.5308462", "0.53014374", "0.528546", "0.52731645", "0.527022", "0.52686244", "0.5266949", "0.5261972", "0.5260325", "0.5246577", "0.52452147", "0.52327526", "0.5219675", "0.5213348", "0.5212283", "0.5205645", "0.52039385", "0.5197746", "0.5194775", "0.517422", "0.51599", "0.515065", "0.5146207", "0.5141264", "0.513893", "0.5124948", "0.5123639", "0.51231533", "0.5114657", "0.5105007", "0.51001763", "0.5096431", "0.5081409", "0.50764126", "0.50731146", "0.50724924", "0.5061904", "0.50593936", "0.50593424", "0.5042527", "0.5039423", "0.50348353", "0.50332063", "0.50286394", "0.502482", "0.50197166", "0.501164", "0.5010351", "0.5001987", "0.49964872", "0.49960163", "0.4989531", "0.49856088", "0.4976974", "0.4976332", "0.49749884", "0.4974129", "0.49693257", "0.49687216", "0.49633363", "0.4952268", "0.49479464", "0.49405345", "0.4940292", "0.49373844", "0.49373344", "0.49357346", "0.49357247", "0.49350402", "0.49337104", "0.49329537", "0.49320617", "0.49315947", "0.4924382", "0.4914963", "0.49127835", "0.48941365", "0.4884112", "0.48761317", "0.4875305", "0.4867297", "0.48671126", "0.48607764" ]
0.0
-1
Function to check if tree is empty
public boolean isEmpty() { return root == nil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() \n\t{\n\t\treturn root == null;//if root is null, tree is empty\n\t}", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "public boolean empty() {\r\n\t\t return(this.root == null);\r\n\t }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "public boolean isEmpty(){\n return this.root == null;\n }", "public boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}", "public boolean empty( ) {\n return (root == null);\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty( )\r\n\t{\r\n\t\treturn root == null;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "public boolean isEmpty()\n {\n return root == null;\n }", "public boolean isEmpty()\n {\n return root == null;\n }", "boolean isEmpty(){\r\n\t\t\r\n\t\treturn root == null;\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn (this.root == null);\r\n\t}", "public boolean isEmpty(){\n return (root == null);\n }", "public boolean isEmpty() {\n // if the root has nothing then there can be no tree. so True\n if (root == null) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean isEmpty() {\n return (that.rootNode == null);\n }", "boolean isEmpty(){\n return root == null;\n }", "@Override\r\n public boolean isEmpty(){\r\n // Set boolean condition to false\r\n boolean isEmpty = false;\r\n // If the root is null, the tree is empty\r\n if(root == null){\r\n //Set condition to true\r\n isEmpty = true;\r\n }\r\n // Return the condition\r\n return isEmpty;\r\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean empty() {\n if(root==EXT_NODE) {\r\n \treturn true;\r\n }\r\n return false;\r\n }", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() { \n return (bst.size() == 0);\n }", "public boolean isEmpty() {\r\n \r\n // return a boolean, true if empty\r\n return root == null;\r\n }", "public boolean isEmpty() {\n\t\treturn root == null;\n\t}", "public boolean isEmpty() {\n\t\treturn treeMap.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn mSentinel == mRoot;// if the root is equal to the sentinel(empty\n\t\t\t\t\t\t\t\t\t// node) then the tree is empty otherwise it\n\t\t\t\t\t\t\t\t\t// is not\n\t}", "public boolean isEmpty() {\n\t\treturn BST.isEmpty();\n\t\t}", "public boolean isNotEmpty(){\n return root != null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (root == null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\r\n\t\t\r\n\t\treturn topNode == null; // Checks if topNode is null;\r\n\t\t\r\n\t}", "public void testIsEmpty() {\r\n assertTrue(tree.isEmpty());\r\n tree.insert(\"apple\");\r\n assertFalse(tree.isEmpty());\r\n }", "private boolean isTreeFull() {\n // The number of leaf nodes required to store the whole vector\n // (each leaf node stores 32 elements).\n int requiredLeafNodes = (totalSize >>> 5);\n\n // The maximum number of leaf nodes we can have in a tree of this\n // depth (each interior node stores 32 children).\n int maxLeafNodes = (1 << treeDepth);\n\n return (requiredLeafNodes > maxLeafNodes);\n }", "public boolean empty() {\n if(root.next==null)\n return true;\n return false;\n }", "public boolean isEmpty()\n {\n return(nodes.isEmpty());\n }", "public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }", "@Override\n \t\tpublic boolean isEmpty() {\n \t\t\treturn (state != null && state.getChildrenCount(currentPage) == 0);\n \t\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn getNumberOfNodes() == 0;\r\n\t}", "public boolean isEmpty(){\n return firstNode == null;\n }", "public boolean isEmpty(){\n return firstNode == null;\n }", "@Override\n public boolean isEmpty() {\n return this.numNodes == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tif(nodeCount == 0) return true;\n\t\telse return false;\n\t}", "public boolean isEmpty()\n {\n return (numNodes == 0);\n }", "public Boolean isEmpty() {\n\t\tBoolean empty=true;\n\t\tif(nodes.isEmpty()==false) {\n\t\t\tempty=false;\n\t\t}\n\t\treturn empty;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn firstNode.equals(null);\n\t}", "public boolean isEmpty() {\n return firstNode == null;\n }", "public boolean empty() {\n return left.isEmpty()&&right.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn firstNode == null;\n\t}", "public boolean isEmpty() {\r\n return (top == null);\r\n }", "boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}", "public boolean isEmpty(){\n return (top == 0);\n }", "public boolean empty() \n { \n\treturn(top==-1);\n \n }", "public boolean isEmpty() {\n\n return (top == null);\n }", "boolean isEmpty() {\n // -\n if(top == null)\n return true;\n return false;\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }", "private boolean findEmptyGroup(){\r\n boolean isEmpty = true;\r\n TreeNode root = (TreeNode)sponsorHierarchyTree.getModel().getRoot();\r\n TreePath result = findEmptyGroup(sponsorHierarchyTree, new TreePath(root));\r\n if( result != null && result.getLastPathComponent() instanceof Integer ){\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"sponsorHierarchyList_exceptionCode.1204\"));\r\n isEmpty = false;\r\n }\r\n return isEmpty;\r\n }", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}", "public boolean empty() { \n if (top == -1) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "public boolean isEmpty() {\n return top==-1;\n }", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public boolean empty(){\n return this.top == -1;\n }", "public boolean isLeaf()\n/* */ {\n/* 477 */ return this.children.isEmpty();\n/* */ }", "public boolean isEmpty() {\n\t\t\n\t\treturn top == null;\n\t}", "public boolean isEmpty() {\n return (this.top == 0);\n }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty()\n{\n // If any attributes are not default return false\n if(getMaxTime()!=5 || getFrameRate()!=25 || !SnapUtils.equals(getEndAction(),\"Loop\"))\n return false;\n \n // Iterate over owner children and if any are not empty, return false\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n if(!isEmpty(getOwner().getChild(i)))\n return false;\n \n // Return true since every child was empty\n return true;\n}", "boolean isEmpty() {\r\n\t\treturn top==0;\r\n\t}", "public boolean isEmpty() {\n return downStack.isEmpty();\n }", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "public boolean isEmpty() {\n if(this.top== -1) {\n return true;\n }\n return false;\n }", "public boolean isLeaf() { return (data.length == 0); }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "@Test\n public void allowedEmptyLeaf() throws Exception {\n Query query = Query.parse(\"/allow-empty-leaf\");\n doAllowedEmptyTest(query);\n }", "public boolean empty();", "public boolean isEmpty()\n {\n return graph.isEmpty();\n }", "public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}", "public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }", "public boolean is_empty() \n\t{\n\t\tif (this.nb_disk == 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "public boolean isEmpty();", "public boolean isEmpty();", "public boolean isEmpty();", "public boolean isEmpty();", "public boolean isEmpty();" ]
[ "0.83198273", "0.8237203", "0.81786364", "0.8108458", "0.79698443", "0.7969313", "0.7967374", "0.79555726", "0.7928932", "0.7899255", "0.78970575", "0.789259", "0.789259", "0.78867567", "0.78801435", "0.7877804", "0.78561217", "0.78181463", "0.78113353", "0.7795594", "0.7792954", "0.7792954", "0.7792954", "0.7792954", "0.7792954", "0.7792954", "0.7775724", "0.77714705", "0.77714705", "0.7767879", "0.776673", "0.77426165", "0.7725364", "0.7683569", "0.7674559", "0.76740324", "0.76528007", "0.75667393", "0.75444305", "0.75371104", "0.7513611", "0.7491707", "0.7480897", "0.74727416", "0.742479", "0.74168277", "0.74168277", "0.740812", "0.7389541", "0.7382805", "0.7293437", "0.7262646", "0.7261948", "0.72277415", "0.7217278", "0.7163386", "0.7131091", "0.7109643", "0.71016437", "0.70765376", "0.7073644", "0.70712066", "0.7065537", "0.7061912", "0.705867", "0.7053775", "0.7048328", "0.70439905", "0.7022035", "0.70115995", "0.6986827", "0.6986827", "0.6976146", "0.69761205", "0.69692886", "0.696574", "0.6959717", "0.6946145", "0.6942758", "0.6938123", "0.69229376", "0.6917227", "0.69013697", "0.6899423", "0.68983424", "0.6889154", "0.68438494", "0.6833761", "0.68149114", "0.6811576", "0.6799258", "0.6777906", "0.6777258", "0.6776585", "0.6774701", "0.6774701", "0.6774701", "0.6774701", "0.6774701" ]
0.7834298
18
Functions to insert data
public void insert(int X, int WT) { root = insert(X, WT, root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert()\n\t{\n\t}", "int insert(FunctionInfo record);", "public int insertSensorData(DataValue dataVal) throws Exception;", "int insert(Massage record);", "public abstract void insert(DataAction data, DataRequest source) throws ConnectorOperationException;", "int insert(Assist_table record);", "int insert(ToolsOutIn record);", "int insert(ClinicalData record);", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "int insert(TblBTSSysFunctionDO record);", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "void insert(Mi004 record);", "int insert(Commet record);", "int insert(Basicinfo record);", "int insert(TagData record);", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "void insertfacultydata(Faculty fac_insert);", "int insert(FctWorkguide record);", "int insert(GirlInfo record);", "int insert(TbSerdeParams record);", "int insert(Tourst record);", "int insert(Prueba record);", "int insert(Ltsprojectpo record);", "int insert(AccuseInfo record);", "int insert(Abum record);", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "int insert(TbFreightTemplate record);", "int insert(TCar record);", "int insert(Forumpost record);", "int insert(SupplierInfo record);", "public void insert() throws SQLException;", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "int insert(Lbt72TesuryoSumDPkey record);", "@Insert(onConflict = OnConflictStrategy.IGNORE)\n void insert(DataTugas dataTugas);", "int insert(DataSync record);", "int insert(ConfigData record);", "int insert(Nutrition record);", "int insert(UserInfo record);", "void addData();", "@Override\r\n\tpublic void inserir(Funcionario funcionario) throws SQLException {\n\t\topen();\r\n\t\t\r\n\t\tclose();\r\n\t\t\r\n\t}", "int insert(StudentInfo record);", "void insert(Customer customer);", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "public void processInsertar() {\n }", "int insert(TDwBzzxBzflb record);", "private void insertOperator() {\n int rowsAff = 0;\n int counter = 0;\n String query = \"\";\n System.out.print(\"Table: \");\n String table = sc.nextLine();\n System.out.print(\"Comma Separated Columns: \");\n String cols = sc.nextLine();\n System.out.print(\"Comma Separated Values: \");\n String[] vals = sc.nextLine().split(\",\");\n //transform the user input into a valid SQL insert statement\n query = \"INSERT INTO \" + table + \" (\" + cols + \") VALUES(\";\n for (counter = 0; counter < vals.length - 1; counter++) {\n query = query.concat(\"'\" + vals[counter] + \"',\");\n }\n query = query.concat(\"'\" + vals[counter] + \"');\");\n System.out.println(query);\n rowsAff = sqlMngr.insertOp(query);\n System.out.println(\"\");\n System.out.println(\"Rows affected: \" + rowsAff);\n System.out.println(\"\");\n }", "int insert(Orderall record);", "int insert(AdminTab record);", "int insert(CptDataStore record);", "int insert(DashboardGoods record);", "int insert(Cargo record);", "int insert(UserTips record);", "int insert(PageFunc record);", "int insert(Storage record);", "int insert(Storage record);", "int insert(RepStuLearning record);", "int insert(Sequipment record);", "int insert(TBBearPer record);", "int insert(Goods record);", "int insert(Goodexistsingle record);", "int insert(BasicEquipment record);", "int insert(DictDoseUnit record);", "int insert(HotelType record);", "int insert(IntegralBook record);", "int insert(UserInfoUserinfo record);", "int insert(Movimiento record);", "int insert(SupplyNeed record);", "int insert(Tour record);", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "int insert(SysCode record);", "int insert(TblMotherSon record);", "int insert(TCpySpouse record);", "public abstract String insert(Object obj) ;", "void insert(XdSpxx record);", "int insert(UsrMmenus record);", "int insert(DiaryFile record);", "int insert(Shipping record);", "int insert(Enfermedad record);", "public void insertIntoTable (String tableName , LinkedList<String> values);", "int insert(ClOrderInfo record);", "int insert(Position record);", "int insert(CaseLinkman record);", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public void addData() {\n boolean isInserted = my_db.insertData(\"LIC\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"LIC inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mutual Fund\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mutual Fund inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mediclaim\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mediclaim inserted\", Toast.LENGTH_SHORT).show();\n\n }\n }", "int insert(NewsInfo record);", "int insert(Dress record);", "int insert(Userinfo record);", "int insert(FinancialManagement record);", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "void insert(Providers record);", "int insert(Tipologia record);", "int insert(AliUserInfoDO record);", "int insert(SecondSlideshow record);", "int insert(Question14 record);", "int insert(Comments record);", "public void insertData() throws SQLException, URISyntaxException, FileNotFoundException {\n\t \t\t//On vide la base en premier\n\t \t\tdropDB();\n\t \t\t\n\t \t\t//Fichier contenant les jeux de test\n\t \t\tBufferedReader br = new BufferedReader(new FileReader(\"./data.txt\"));\n\t \t \n\t \t PreparedStatement pstmt = null;\n\t \t Connection conn = null;\n\t \t int id;\n\t \t String lastname, firstname, cardNumber, expirationMonth, expirationYear, cvv, query;\n\t \t try {\n\t \t conn = this.connectToBDD();\n\t \t \n\t \t String line = null;\n\t \t \n\t \t //On lit le fichier data.txt pour inserer en base\n\t \t while((line=br.readLine()) != null) {\n\t \t \t String tmp[]=line.split(\",\");\n\t \t \t id=Integer.parseInt(tmp[0]);\n\t\t\t \t lastname=tmp[1];\n\t\t\t \t firstname=tmp[2];\n\t\t\t \t cardNumber=tmp[3];\n\t\t\t \t expirationMonth=tmp[4];\n\t\t\t \t expirationYear=tmp[5];\n\t\t\t \t cvv=tmp[6];\n\t\t\t \t \n\t\t\t \t //Insertion des clients\n\t\t\t \t query = \"INSERT INTO consumer VALUES(\"+ id + \",'\" +firstname+\"','\"+lastname+\"')\";\n\t\t\t \t \n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t\t\t \t \n\t\t\t \t \n\t\t\t \t //Insertion des comptes\n\t\t\t \t query = \"INSERT INTO account (card_number, expiration_month, expiration_year, cvv, remain_balance, consumer_id) \"\n\t\t \t\t\t\t+ \"VALUES ('\"+cardNumber+\"','\"+expirationMonth+\"','\"+expirationYear+\"','\"+cvv+\"',300,\"+id+\")\";\n\t\t\t \t\n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t \t }\n\t \t \n\t \t \n\t \t } catch (Exception e) {\n\t \t System.err.println(\"Error: \" + e.getMessage());\n\t \t e.printStackTrace();\n\t \t }\n\t \t }", "int insert(Table2 record);", "public long insert();", "public void insert(Conge conge) ;" ]
[ "0.71657753", "0.7044319", "0.69928414", "0.6851794", "0.68398464", "0.68283", "0.6812804", "0.6806562", "0.68010694", "0.6797826", "0.6791706", "0.6785111", "0.6761925", "0.67538655", "0.6733067", "0.6731605", "0.67293185", "0.67291236", "0.6695995", "0.66875654", "0.666946", "0.6665312", "0.66632944", "0.6643834", "0.66398275", "0.66268516", "0.6625769", "0.66117793", "0.65997285", "0.6594198", "0.65940267", "0.65923095", "0.65915143", "0.6585461", "0.6571722", "0.6568173", "0.655952", "0.6548353", "0.65476376", "0.6541362", "0.65372795", "0.65320545", "0.652569", "0.65153605", "0.6506831", "0.6505142", "0.6499979", "0.6497714", "0.64944327", "0.6492996", "0.64922", "0.64920336", "0.6486284", "0.64801806", "0.64799863", "0.64798445", "0.64798445", "0.6478698", "0.6473131", "0.6466464", "0.64631987", "0.6457444", "0.6453526", "0.64483047", "0.6445885", "0.64433944", "0.6442114", "0.6440788", "0.6438702", "0.64361113", "0.64329326", "0.64280105", "0.642717", "0.6419783", "0.6416183", "0.64139646", "0.6412994", "0.6412052", "0.641111", "0.64068186", "0.6406682", "0.6403254", "0.64023715", "0.6402068", "0.639969", "0.63981783", "0.6398151", "0.63974935", "0.63962543", "0.6396166", "0.6396009", "0.6395699", "0.6394831", "0.63928246", "0.6389244", "0.6387355", "0.63860774", "0.63847256", "0.63805956", "0.63784254", "0.6378372" ]
0.0
-1
Functions to count number of nodes
public int countNodes() { return countNodes(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNodeCount();", "int getNodeCount();", "int nodeCount();", "int getNodesCount();", "int getNodesCount();", "public int my_node_count();", "int totalNumberOfNodes();", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int countNodes(){\r\n \treturn count(root);\r\n }", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "public int getNodeCount() {\n return nodeCount;\n }", "public int getNodeCount() {\n return node_.size();\n }", "public int nodesCount() {\n return nodes.size();\n }", "public int totalNumNodes () { throw new RuntimeException(); }", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "public int nodeCount() {\n\treturn nodeList.size();\n }", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "int getNodeStatusListCount();", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "public int countNodes() {\n\t\t\n\t\tif(isEmpty()==false){\n\t\t\tint count =1;\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\tcount++;\n\t\t\t\ttemp=temp.getNext();\n\t\t}\n\t\treturn count;\n\t\t}\n\t\telse{\n\t\t\treturn 0;\n\t\t}\n\t}", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }", "public int nodeCount(){\r\n\t\treturn size;\r\n\t}", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "@Override\n\tpublic int getNodeCount()\n\t{\n\t\treturn nodeList.size();\n\t}", "public abstract int getNodeRowCount();", "public int getNumNodes() {\n\t\treturn nodes.size();\n\t}", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "public long getContextNodeCount();", "public int nodeCounter() {\n\n\t\tDLNode n = head;\n\t\tint nodeCounter = 0;\n\t\twhile (n != null) {\n\t\t\tn = n.next;\n\t\t\tnodeCounter++;\n\t\t}\n\t\treturn nodeCounter;\n\t}", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}", "public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "private int countNodes(Node n) {\n int count = 1;\n if (n==null) return 0;\n\n for (int i = 0; i < n.getSubtreesSize(); i++) {\n count = count + countNodes(n.getSubtree(i));\n }\n\n return count;\n }", "public abstract int \t\tgetNodeRowCount(int nodeIndex);", "public int getNodesCount() {\n if (nodesBuilder_ == null) {\n return nodes_.size();\n } else {\n return nodesBuilder_.getCount();\n }\n }", "public int countNodesByName(Node parent, String nodeName) throws Exception;", "public int numNodes() {\n\t\treturn numNodes;\n\t}", "int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }", "public int getNumberOfNodesEvaluated();", "private int countNodes(BTNode r)\r\n {\r\n if (r == null)\r\n return 0;\r\n else\r\n {\r\n int l = 1;\r\n l += countNodes(r.getLeft());\r\n l += countNodes(r.getRight());\r\n return l;\r\n }\r\n }", "public int numNodes() {\n return nodeVector.size();\n }", "public int countNodes(Node N) {\n if(N != null){\n int left = countNodes(N.getLeft());\n int right = countNodes(N.getRight());\n return left+right+1;\n } else {\n return 0;\n }\n }", "public long getAllContextNodeCount();", "public int nodeCount() {\n return this.root.nodeCount();\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}", "public int totalNodes(Node<T> n)\n\t{\n\t\tif (n == null) \n return 0; \n else \n { \n \t\n int lTotal = totalNodes(n.left); \n int rTotal = totalNodes(n.right); \n \n return (lTotal + rTotal + 1); \n \n \n \n } \n\t}", "public int nodeSize()\n{\n\treturn getNodes().size();\n}", "public int size(){\n return nodes.size();\n }", "static int nodeCount(Node node) {\n\t\tNode current = node;\n\t\tif(current == null) {\n\t\t\treturn 0;\n\t\t} else if(current.next == null) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 1 + nodeCount(current.next);\n\t\t}\n\t}", "public int size()\r\n { \r\n return numNodes;\r\n }", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "public int my_leaf_count();", "public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}", "private int nodeCount(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tif(t==null)\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1+nodeCount(t.left)+nodeCount(t.right);\r\n\t\t}\r\n\t}", "public int numNodes(String nodeType)\r\n {\r\n\treturn ntMap.get(nodeType).numNodes();\r\n }", "public int size()\n {\n return nodes.size();\n }", "int node_size()\n {\n Node temp =headnode;\n int count=0;\n while (temp.next!=null)\n {\n count++;\n temp=temp.next;\n }\n return count;\n }", "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }", "static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }", "public static int Count(Node node){\n\t\tif (node==null) \n\t\t\treturn 0;\n\t\t\n return Count(node.left) + 1 + Count(node.right);\n \n\t}", "private int countNodes(BSTNode r) {\r\n \r\n // if the node is null, return 0\r\n if (r == null) {\r\n \r\n return 0;\r\n }\r\n \r\n // if node is NOT null, execute\r\n else {\r\n \r\n // initialize count to 1\r\n int countN = 1;\r\n \r\n // increment count for each child node\r\n countN += countNodes(r.getLeft());\r\n countN += countNodes(r.getRight());\r\n \r\n // return the count\r\n return countN;\r\n }\r\n }", "public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}", "@Override\n\tpublic int size() {\n\t\treturn nodeCount;\n\t}", "public int size() {\n return nodes.size();\n }", "public int size( )\r\n {\r\n int size = (int) manyNodes;// Student will replace this return statement with their own code:\r\n return size;\r\n }", "public abstract int getNumChildren();", "private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }", "int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}", "public int size() {\n\t\treturn nodes.size();\n\t}", "int getChildCount();", "private static int countNodes(TreeNode node) {\n if (node == null) {\n // Tree is empty, so it contains no nodes.\n return 0;\n } else {\n // Add up the root node and the nodes in its two subtrees.\n int leftCount = countNodes(node.left);\n int rightCount = countNodes(node.right);\n return 1 + leftCount + rightCount;\n }\n }", "public double getTotalNodeCount() {\n return this.node.getFullNodeList().values().stream()\n .filter(BaseNode::checkIfConsensusNode).count();\n }", "public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }", "@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}", "private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }", "public final int size() {\n return nNodes;\n }", "@Override\n public int nodeSize() {\n return this.nodes.size();\n }", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }", "public abstract int getNodesQuantity();", "public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}", "public int getChildCount();", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int Count()\n {\n\tint total = 0;\n\tnode cur = new node();\n\tcur = Head.Next;\n\tif(cur == Head)\n\t return total;\n\twhile(cur != Head)\n\t {\n\t\ttotal++;\n\t\tcur = cur.Next;\n\t }\n\treturn total;\n }", "public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }", "private void counting(MyBinNode<Type> r){\n if(r != null){\n this.nodes++;\n this.counting(r.left);\n this.counting(r.right);\n }\n }", "public int size() {\n\treturn nodeList.size();\n }", "private int size(Node x) {\n if (x == null) return 0;\n else return x.N;\n }" ]
[ "0.89822114", "0.89822114", "0.8966359", "0.89478445", "0.89478445", "0.86855423", "0.85026675", "0.83092654", "0.8208818", "0.8173925", "0.792518", "0.7922496", "0.7906246", "0.78758115", "0.78559846", "0.78437847", "0.7834029", "0.78130364", "0.77527875", "0.7748805", "0.77481085", "0.7747249", "0.769765", "0.76932836", "0.7665657", "0.76492834", "0.76353234", "0.7624248", "0.7620562", "0.7618888", "0.76035064", "0.7593548", "0.75898165", "0.7587099", "0.7558282", "0.7555348", "0.7549561", "0.7538918", "0.75274754", "0.75164527", "0.7495676", "0.7483095", "0.741958", "0.7393115", "0.73879415", "0.7364116", "0.7357783", "0.7348408", "0.7334817", "0.73038816", "0.72915584", "0.72395366", "0.7237905", "0.7224644", "0.7223339", "0.7222974", "0.7219845", "0.7203592", "0.7190359", "0.7187828", "0.7173371", "0.7159018", "0.71568626", "0.7150967", "0.7149967", "0.7142784", "0.71398836", "0.71179545", "0.71082497", "0.70776725", "0.7075402", "0.70616364", "0.70513386", "0.70472574", "0.7040713", "0.70353097", "0.70262235", "0.70247346", "0.7020078", "0.7017006", "0.70151377", "0.7007602", "0.6985048", "0.698054", "0.69760877", "0.69712955", "0.69638836", "0.69246334", "0.69238317", "0.6920757", "0.69195104", "0.68939495", "0.6860013", "0.6844697", "0.6822671", "0.68094426", "0.68047166", "0.67967486", "0.67939657" ]
0.7805994
19
Functions to search for an element
public boolean search(int val) { return search(root, val); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic void findElement(String by) {\n\t\n}", "public T find(T element);", "public boolean search(T element);", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "void search();", "void search();", "public DLLNode<String> search(String element) {\r\n\tDLLNode<String> temp = (DLLNode<String>) header;\r\n\twhile(temp != null) {\r\n\t\tif (temp.getInfo().contains(element)) {\r\n\t\t\treturn temp;\r\n\t\t}\r\n\t\ttemp = (DLLNode<String>) temp.getLink();\r\n\t}\r\n\treturn null;\r\n}", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }", "public abstract Iter<Boolean> search(T element);", "WebElement getSearchButton();", "@In String search();", "public abstract OneCampaignAbstract accessToElementSearched(final String key, final String element);", "abstract public void search();", "int search(E item);", "public Node searchElement(Object el) {\n\t\n\t\tfor (Node elemento : this.set) {\n\t\t\tif(elemento.getElemento().equals(el)) {\n\t\t\t\treturn elemento;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void search() {\r\n \t\r\n }", "public void searchFor(IJavaElement elem, IJavaSearchScope scope){\n \t SearchPattern pattern = SearchPattern.createPattern(elem, IJavaSearchConstants.REFERENCES);\n \t SearchEngine searchEngine = new SearchEngine();\n \t try{\n \t searchEngine.search(pattern, new SearchParticipant[] {SearchEngine.getDefaultSearchParticipant()}, scope, requestor, null);\n \t }catch(CoreException e){\n \t e.printStackTrace();\n \t }\n \t}", "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "private void search(Object value)\r\n\t\t{\n\r\n\t\t}", "public boolean search(E e){\n boolean blResult = false;\n\n /** TODO: INSERT YOUR CODE HERE\n *\n * SEARCH FOR THE ITEM PASSED AS PARAMETER AND RETURN TRUE IF FOUND\n * ELSE RETURN FALSE\n *\n *\n */\n return blResult;\n }", "public void search() {\n }", "@Override\n\tpublic T find(T targetElement) {\n\t\tif(contains(targetElement))\n\t\t return targetElement;\n\t\telse \n\t\t\treturn null;\n\t\t\n\t}", "public int indexOfElement(DomainElement element);", "@Override\r\n\tpublic T find(T element) {\n\t\treturn null;\r\n\t}" ]
[ "0.74293464", "0.7391848", "0.72342134", "0.69165564", "0.68654144", "0.6769204", "0.6769204", "0.6762481", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.67583036", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.6757507", "0.67539805", "0.6658999", "0.6656722", "0.6649512", "0.6615205", "0.6540681", "0.6484716", "0.64707893", "0.6435524", "0.6386391", "0.63497484", "0.6345359", "0.63395584", "0.6306587", "0.62728393", "0.6271249", "0.6257621" ]
0.0
-1
Function for inorder traversal
public void inorder() { inorder(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inOrderTraverseRecursive();", "public void inorder()\n {\n inorderRec(root);\n }", "private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}", "public void inorder()\r\n {\r\n inorder(root);\r\n }", "private void inorder() {\n inorder(root);\n }", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "public void inorder(Node source) {\n inorderRec(source);\n }", "public void inOrderTraverseIterative();", "public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}", "private List<Integer> inOrderTraversal(Tree tree, List<Integer> arr){\n if(tree==null){\n return null;\n }\n\n if(tree.left!=null){\n inOrderTraversal(tree.left, arr);\n }\n arr.add(tree.data);\n\n if(tree.right!=null){\n inOrderTraversal(tree.right,arr);\n }\n return arr;\n\n}", "public void inorderTraversal() {\n inorderThroughRoot(root);\n System.out.println();\n }", "public void inOrder() {\r\n \r\n // call the private inOrder method with the root\r\n inOrder(root);\r\n }", "void inorderTraversal(Node node) {\n\t\tif (node != null) {\n\t\t\tinorderTraversal(node.left);\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tinorderTraversal(node.right);\n\t\t}\n\t}", "public void inOrder(){\n inOrder(root);\n }", "public void inOrderTraversal(){\n System.out.println(\"inOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack<Node>();\n\n for(Node node = root; node!= null; node=node.getLeft()){\n stack.push(node);\n }\n while(!stack.isEmpty()){\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n for(node=node.getRight(); node!= null; node = node.getLeft()){\n stack.push(node);\n }\n }\n\n System.out.println();\n }", "void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}", "public void inorderTraversal() \n { \n inorderTraversal(header.rightChild); \n }", "public void inOrderTraversal(Node node)\n\t{\n\t\tif(node!=null){\n\t\t\t\n\t\t\tinOrderTraversal(node.leftChild);\n\t\t\tarr.add(node.data);\n\t\t\tinOrderTraversal(node.rightChild);\n\t\t}\n\t}", "public void inorder()\r\n\t{\r\n\t\tif(root==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"tree is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// find the leftmost node of the tree\r\n\t\tNode p =root;\r\n\t\twhile(p.leftThread==false)\r\n\t\t\tp=p.left;\r\n\t\twhile(p!=null)//loop until we reach the right most node whose right link(rightThread) is null\r\n\t\t{\r\n\t\t\tSystem.out.print(p.info + \" \");\r\n\t\t\tif(p.rightThread==true) // if 'right' is pointing to the inorder successor\r\n\t\t\t\tp = p.right;\r\n\t\t\telse // find the inorder successor i.e the left most node in the right sub tree\r\n\t\t\t{\r\n\t\t\t\tp = p.right;\r\n\t\t\t\twhile(p.leftThread==false)\r\n\t\t\t\t\tp = p.left;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "int[] inOrderTraversal() {\n \tinOrderTraversalRecursive(this.root);\n \tInteger[] result = (Integer[])inorder.toArray(new Integer[0]);\n \tint[] r = new int[result.length];\n \tfor(int i = 0 ; i < result.length; i++)\n \t{\n \t\tr[i] = result[i];\n \t}\n \treturn r;\n }", "public void inOrderTraversal() {\n beginAnimation();\n treeInOrderTraversal(root);\n stopAnimation();\n\n }", "void inOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tinOrderTraversal(node.getLeftNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tinOrderTraversal(node.getRightNode());\n\t}", "public ArrayList<E> inorderNoRecursion()\n {\n ArrayList<E> nonRecursiveInorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE IN ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursiveInorder\n */\n\n return nonRecursiveInorder;\n }", "public void inOrder() {\n inOrder(root);\n }", "public Iterator<T> inorderIterator() { return new InorderIterator(root); }", "static void inorderTraversal(Node tmp)\n {\n if(tmp!=null) {\n inorderTraversal(tmp.left);\n System.out.print(tmp.val+\" \");\n inorderTraversal(tmp.right);\n }\n \n \n \n }", "public static void main(String[] args) {\n\n\n TreeNode root = new TreeNode(1);\n TreeNode left1 = new TreeNode(2);\n TreeNode left2 = new TreeNode(3);\n TreeNode left3 = new TreeNode(4);\n TreeNode left4 = new TreeNode(5);\n TreeNode right1 = new TreeNode(6);\n TreeNode right2 = new TreeNode(7);\n TreeNode right3 = new TreeNode(8);\n TreeNode right4 = new TreeNode(9);\n TreeNode right5 = new TreeNode(10);\n root.left = left1;\n root.right = right1;\n left1.left = left2;\n left1.right = left3;\n left3.right = left4;\n right1.left = right2;\n right1.right = right3;\n right2.right = right4;\n right3.left = right5;\n //[3, 2, 4, 5, 1, 7, 9, 6, 10, 8]\n List<Integer> list = inorderTraversalN(root);\n System.err.println(list);\n }", "public void inOrder() {\r\n\t\tSystem.out.print(\"IN: \");\r\n\t\tinOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public ArrayList<Integer> inOrderTraversal() {\r\n\t\treturn inOrderTraversal(treeMinimum());\r\n\t}", "private void inorder_traversal(Node n, int depth) {\n if (n != null) {\n inorder_traversal(n.left, depth + 1); //add 1 to depth (y coordinate) \n n.xpos = totalNodes++; //x coord is node number in inorder traversal\n n.ypos = depth; // mark y coord as depth\n inorder_traversal(n.right, depth + 1);\n }\n }", "private void inorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n inorder(root.left);\n list.add(root.element);\n inorder(root.right);\n }", "private static boolean inOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the current node, then finally the right child\n else {\n inOrderTraversal(current.getLeftChild());\n inorder.add(current);\n inOrderTraversal(current.getRightChild());\n }\n return true;\n }", "static void inorderTraversal(Node root) {\n if (root == null) {\n return;\n }\n inorderTraversal(root.left);\n System.out.print(root.data + \" \");\n inorderTraversal(root.right);\n }", "public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.right = new TreeNode(2);\n\t\t//root.left.left = new TreeNode(3);\n\t\t//root.left.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(3);\n\t\t//root.right.right = new TreeNode(3);\n\t\t\n\t\tSystem.out.println(inorderTraversal(root));\n\t}", "private void inorder(TreeNode<E> root) {\r\n\t\t\tif (root == null)\r\n\t\t\t\treturn;\r\n\t\t\tinorder(root.left);\r\n\t\t\tlist.add(root.element);\r\n\t\t\tinorder(root.right);\r\n\t\t}", "public static List<Node> inOrderTraversal(BinarySearchTree BST) {\n inorder = new LinkedList<Node>();\n inOrderTraversal(BST.getRoot());\n return inorder;\n }", "public void visitInorder(Visitor<T> visitor) { if (root != null) root.visitInorder(visitor); }", "private List<T> inOrder(Node<T> curr, List<T> list) { //Time Complexity: O(n)\n if (curr == null) {\n return list;\n }\n inOrder(curr.left, list);\n list.add(curr.data);\n inOrder(curr.right, list);\n return list;\n }", "public void inOrder(){\n inOrder(root);\n System.out.println();\n }", "private void inOrder(BSTNode node) {\r\n \r\n // if the node is NOT null, execute the if statement\r\n if (node != null) {\r\n \r\n // go to the left node\r\n inOrder(node.getLeft());\r\n \r\n // visit the node (increment the less than or equal counter)\r\n node.incrementLessThan();\r\n \r\n // go to the right node\r\n inOrder(node.getRight());\r\n }\r\n }", "public List<Integer> inorderTraversal2(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n TreeNode curr = root; // not necessary\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n while (true) {\n // inorder: left, root, right\n // add all left nodes into stack\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n } // curr == null\n // if stack is empty, then finished\n if (stack.isEmpty()) {\n break;\n }\n // all left nodes in stack\n // if right node empty, pop, else add right\n curr = stack.pop();\n // add left and root\n result.add(curr.val);\n // if right is null, then next round pop stack\n // else next round add right.left first ...\n curr = curr.right;\n }\n // stack is empty\n return result;\n }", "private void inOrderTraversal(int index) {\n // go through the graph as long as has values\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n inOrderTraversal(2 * index + 1);\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on right child\n inOrderTraversal(2 * index + 2);\n }", "public List<Integer> inorderTraversal(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n inorderRec(root, result);\n return result;\n }", "private void inorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tinorderHelper(root.left);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tinorderHelper(root.right);\n\t\t}\n\t}", "@Override\n public Iterator<E> getInorderIterator() {\n return new InorderIterator();\n }", "void getInorderIteratively(Node node) {\n Stack<Node> stack = new Stack<Tree.Node>();\n if (node == null)\n return;\n Node current = node;\n while (!stack.isEmpty() || current != null) {\n // While the sub tree is not empty keep on adding them\n while (current != null) {\n stack.push(current);\n current = current.left;\n }\n // No more left sub tree\n Node temp = stack.pop();\n System.out.println(temp.data);\n // We now have to move to the right sub tree of the just popped out node\n current = temp.right;\n }\n\n }", "public void Inorder(Node p, List<Node> order_pointer){\n if(p == null){\n return;\n }\n Inorder(p.left, order_pointer);\n order_pointer.add(p);\n Inorder(p.right, order_pointer);\n }", "private void inOrder(Node x) {\n if (x == null) {\n return;\n }\n inOrder(x.left);\n System.out.println(x.key);\n inOrder(x.right);\n }", "public void traverseInOrder() {\n\t System.out.println(\"============= BTREE NODES ===============\");\n\t\tinOrder(root);\n System.out.println(\"=========================================\");\n\t}", "public void printInorder() {\r\n System.out.print(\"inorder:\");\r\n printInorder(overallRoot);\r\n System.out.println();\r\n }", "public void inOrder(Node myNode){\n \n if (myNode != null){ //If my node is not null, excute the following\n \n inOrder(myNode.left); //Recurse with left nodes\n System.out.println(myNode.name); //Print node name \n inOrder(myNode.right); //Recurse with right nodes\n \n }\n }", "public void printInorder() {\n System.out.print(\"inorder:\");\n printInorder(overallRoot);\n System.out.println();\n }", "private E[] getPreOrderLeftSubTree(E[] inOrderTraversal,E[] preOrderTraversal) {\n\t\treturn null;\n\t}", "private E[] getInOrderLeftSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\t\ttn=new TreeNode(null,null,null,1);\n\t\tTreeNode tleft=new TreeNode(tn,null,null,2);\n\t\tTreeNode tright=new TreeNode(tn,null,null,3);\n\t\ttn.left=tleft;\n\t\ttn.right=tright;\n\t\t\n\t\tTreeNode tleft1=new TreeNode(tleft,null,null,4);\n\t\tTreeNode tright1=new TreeNode(tleft,null,null,5);\n\t\ttleft.left=tleft1;\n\t\ttleft.right=tright1;\n\t\t\n\t\tTreeNode tleft2=new TreeNode(tright,null,null,6);\n\t\tTreeNode tright2=new TreeNode(tright,null,null,7);\n\t\ttright.left=tleft2;\n\t\ttright.right=tright2;\n\t\t\n\t\tTreeNode tleft3=new TreeNode(tleft1,null,null,8);\n\t\tTreeNode tright3=new TreeNode(tleft1,null,null,9);\n\t\ttleft1.left=tleft3;\n\t\ttleft1.right=tright3;\n\t\t\n\t\tTreeNode tleft4=new TreeNode(tright1,null,null,10);\n\t\tTreeNode tright4=new TreeNode(tright1,null,null,11);\n\t\ttright1.left=tleft4;\n\t\ttright1.right=tright4;\n\t\t\n\t\tSystem.out.println(inorderTraversal2(tn));\n\t}", "public List<T> inOrder() { //Time Complexity: O(1)\n List<T> list = new ArrayList<>();\n return inOrder(root, list);\n }", "public void inorderTraversal(Node root) {\r\n\t\tif(root != null) {\r\n\t\t\tinorderTraversal(root.leftChild);\r\n\t\t\tSystem.out.print(root.data + \" \");\r\n\t\t\tinorderTraversal(root.rightChild);\r\n\t\t}\r\n\t}", "public List<Integer> inorderTraversal(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n while (node != null || !stack.empty()) {\n // push left nodes into stack\n while (node != null) {\n stack.push(node);\n node = node.left;\n }\n node = stack.pop();\n result.add(node.val);\n // ! key step: invoke recursive call on node's right child\n node = node.right;\n }\n return result;\n }", "private List<T> inOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult = inOrderHelper(current.getLeft(), result);\n\t\t\tresult.add(current.getData());\n\t\t\tresult = inOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public InorderIterator() {\r\n\t\t\tinorder(); // Traverse binary tree and store elements in list\r\n\t\t}", "private void traverseInOrder(BinaryNode<AnyType> curr) {\n\t\tif (curr.left != null) {\n\t\t\ttraverseInOrder(curr.left);\n\t\t}\n\t\tSystem.out.println(curr.element);\n\n\t\t// checking for duplicates\n\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraverseInOrder(curr.right);\n\t\t}\n\t}", "private void inorderTraverse(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tinorderTraverse(node.left); // walk trough left sub-tree\n\t\tthis.child.add(node);\n\t\tinorderTraverse(node.right); // walk trough right sub-tree\n\t}", "public InorderIterator() {\n inorder(); // Traverse binary tree and store elements in list\n }", "protected void inorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n inorder(root.left);\n System.out.print(root.element + \" \");\n inorder(root.right);\n }", "public List < Integer > inorderTraversal(TreeNode root) {\n List < Integer > res = new ArrayList < > ();\n TreeNode curr = root;\n TreeNode pre;\n while (curr != null) {\n if (curr.left == null) {\n res.add(curr.val);\n curr = curr.right; // move to next right node\n } else { // has a left subtree\n pre = curr.left;\n while (pre.right != null) { // find rightmost\n pre = pre.right;\n }\n pre.right = curr; // put cur after the pre node\n TreeNode temp = curr; // store cur node\n curr = curr.left; // move cur to the top of the new tree\n temp.left = null; // original cur left be null, avoid infinite loops\n }\n }\n return res;\n }", "public static void inOrderTraverse(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tNode node = root;\n\t\twhile (node!=null || !stack.empty()) {\n if(node!=null){\n \t stack.push(node);\n \t node = node.lchild;\n }else{\n \t node = stack.pop();\n \t node.visit();\n \t node = node.rchild;\n }\n\t\t}\n\t}", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "public void InOrder() {\n\t\tInOrder(root);\n\t}", "private void inOrder() {\n inOrderTraversal(0);\n System.out.println(); // jump to next line\n }", "public void inorder(SplayNode n) {\n\t\t if(n != null) {\n\t\t inorder(n.left);\n\t\t System.out.println(n.data);\n\t\t inorder(n.right);\n\t\t }\n\t\t }", "static void inorder(Node root) {\n if (root != null) {\n inorder(root.left);\n System.out.print(root.key + \" \");\n inorder(root.right);\n }\n }", "void inOrder(TreeNode node) \n { \n if (node == null) \n return; \n \n inOrder(node.left); \n System.out.print(node.val + \" \"); \n \n inOrder(node.right); \n }", "public void inOrderTraversalRecursive(ArrayList<Integer> o, RBNode x){\r\n\t\tif(x.left != nil) inOrderTraversalRecursive(o,x.left);\r\n\t\to.add(x.key);\r\n\t\tif(x.right != nil) inOrderTraversalRecursive(o,x.right);\r\n\t}", "private void inorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n inorderHelper(node.leftNode);\n System.out.printf(\"%s \", node.data);\n inorderHelper(node.rightNode);\n }", "List<Integer> traverseInOrder(List<Integer> oList) \n\t{\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traverseInOrder(oList);\n\t\t}\n\t\n\t\toList.add(this.key);\n\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traverseInOrder(oList);\n\t\t}\n\t\t\n\t\treturn oList;\n\t}", "private void recInOrderTraversal(BSTNode<T> node) {\n\t\tif (node != null) {\n\t\t\trecInOrderTraversal(node.getLeft());\n\t\t\ta.add(node.getData());\n\t\t\trecInOrderTraversal(node.getRight());\n\t\t}\n\t}", "private void inOrder(Node<T> node){\n if(node != null){\n inOrder(node.left);\n System.out.print(node.data + \" ,\");\n inOrder(node.right);\n }\n }", "private void inOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.inOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n\n\n if (right != null) {\n right.inOrderTraversal(sb);\n }\n }", "static void inorder(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n inorder(root.left, output);\n output.add(root.val);\n inorder(root.right, output);\n }", "protected void inorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tinorder(root.left);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tinorder(root.right);\r\n\t}", "public String inOrderTraverse(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tString treeAsString = \"\";\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsString += curr.toString() + \" \";\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsString;\r\n\t}", "void traverseInOrder(Node node){\n if (node != null) {\n traversePreOrder(node.left); // fokus left sampai dihabiskan, lalu right (berbasis sub-tree)\n System.out.println(\" \" + node.data);\n traversePreOrder(node.right);\n }\n }", "public void inOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tinOrderTraversal(root.getLeftChild());\n\t\t\tSystem.out.println(root);\n\t\t\tinOrderTraversal(root.getRightChild());\n\t\t}\n\t}", "public static void inOrder(Node node) {\n if (node == null) {\n return;\n }\n inOrder(node.left);\n System.out.print(node.data + \" \");\n inOrder(node.right);\n }", "public List<Integer> inorderTraversalRecursive(TreeNode root) {\n if(root == null){\n return rst;\n }\n inorderTraversalRecursive(root.left);\n rst.add(root.val);\n inorderTraversalRecursive(root.right);\n return rst;\n }", "public static void main(String[] args) {\n\t\tBinary_Tree_Inorder_Traversal_94 b=new Binary_Tree_Inorder_Traversal_94();\n\t\tTreeNode root=new TreeNode(1);\n\t\troot.right=new TreeNode(2);\n\t\troot.right.left=new TreeNode(3);\n\t\tList<Integer> list=b.inorderTraversal(root);\n\t\tfor(Integer i:list){\n\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t}", "public void visitInorder(Visitor<T> visitor) {\n if (left != null) left.visitInorder(visitor);\n visitor.visit(value);\n if (right != null) right.visitInorder(visitor);\n }", "public List<T> inorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n inorderHelper(list, root);\n }\n return list;\n }", "public static void main(String[] args) {\n Node root = new Node(50);\n root.left =new Node(30);\n root.left.left =new Node(10);\n root.left.right =new Node(40);\n root.left.left.right =new Node(20);\n root.right =new Node(80);\n root.right.right =new Node(90); \n root.right.left =new Node(70);\n root.right.left.left=new Node(60);\n traversal(root);\n display(root);\n System.out.println();\n inorder(root);\n System.out.println();\n }", "private List<Node<T>> nodeInOrder (Node<T> curr, List<Node<T>> list) {\n if (curr == null) {\n return list;\n }\n nodeInOrder(curr.left, list);\n list.add(curr);\n nodeInOrder(curr.right, list);\n return list;\n }", "public ArrayList<Integer> inOrderTraversal (RBNode x) {\r\n\t\tArrayList<Integer> output = new ArrayList<Integer>(size);\r\n\t\toutput.add(x.key);\r\n\t\tRBNode next = nextNode(x);\r\n\t\twhile (next != nil){\r\n\t\t\toutput.add(next.key);\r\n\t\t\tnext = nextNode(next);\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "private void inOrder(Node root) {\r\n\t\t// inOrderCount++;\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tinOrder(root.getlChild());\r\n\t\tif (inOrderCount < 20) {\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\tinOrderCount++;\r\n\t\t\t//System.out.println(\" Count: \" + inOrderCount);\r\n\t\t}\r\n\t\tinOrder(root.getrChild());\r\n\r\n\t}", "void inorder(Node root){\n if(root!=null){\n // checking if the tree is not empty\n inorder(root.left);\n System.out.print(root.data+\" \");\n inorder(root.right);\n }\n\n }", "private E[] geInOrderRightSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public static void inorder(Node root){\n\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getRight());\n\t\t}\n\n\t}", "private void Inorder(Node p, Set<K> keyset){\n if(p == null){\n return;\n }\n Inorder(p.left, keyset);\n keyset.add(p.key);\n Inorder(p.right, keyset);\n }", "public void inorderRec(Node source) {\n if (source != null) {\n inorderRec(source.getLeft());\n results.add(source);\n inorderRec(source.getRight());\n }\n }", "public void inOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tinOrderTravel(node.leftChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t\tinOrderTravel(node.rightChild);\r\n\t\t}\r\n\t}", "private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}" ]
[ "0.8267493", "0.78484046", "0.7775723", "0.77728194", "0.774613", "0.7675952", "0.7648642", "0.764093", "0.7638836", "0.76184535", "0.7537287", "0.7536299", "0.7494792", "0.74275744", "0.7391457", "0.729878", "0.7288098", "0.72854364", "0.72472006", "0.7238553", "0.7208567", "0.7185121", "0.7183245", "0.7174386", "0.7167391", "0.7129602", "0.7119908", "0.71196496", "0.7118492", "0.70935", "0.70395476", "0.70131564", "0.69994867", "0.69717526", "0.6971264", "0.69622797", "0.69573355", "0.6951116", "0.6947094", "0.68987757", "0.68782127", "0.6872813", "0.68606883", "0.6852229", "0.6843674", "0.68277764", "0.682009", "0.6811311", "0.68078893", "0.68056715", "0.68052787", "0.6782571", "0.676934", "0.67601055", "0.67509925", "0.67456007", "0.67400634", "0.6733252", "0.6726286", "0.6710061", "0.67090505", "0.6708992", "0.67071825", "0.6706733", "0.6702983", "0.6694037", "0.6688233", "0.6680842", "0.66720134", "0.66712695", "0.66667694", "0.6665082", "0.66468394", "0.6641844", "0.66412103", "0.6636147", "0.66290134", "0.6622863", "0.66217285", "0.65788466", "0.655368", "0.65377307", "0.65350485", "0.6522891", "0.65224844", "0.65195173", "0.6504644", "0.6504533", "0.6494455", "0.6470768", "0.64557326", "0.6455363", "0.64538026", "0.6443513", "0.6440542", "0.6432462", "0.6427316", "0.64253825", "0.64078444" ]
0.7677443
5
Function for preorder traversal
public void preorder() { preorder(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "public void preorder()\r\n {\r\n preorder(root);\r\n }", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "private E[] getPreOrderLeftSubTree(E[] inOrderTraversal,E[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public void preorder() {\n\t\tpreorder(root);\n\t}", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }", "public void preOrderTraversal(){\n System.out.println(\"preOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack();\n\n if(root!=null){\n stack.push(root);\n }\n while(!stack.isEmpty()) {\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n if (node.getRight() != null) {\n stack.push(node.getRight());\n }\n if (node.getLeft() != null) {\n stack.push(node.getLeft());\n }\n }\n System.out.println();\n }", "public Iterator<T> preorderIterator() { return new PreorderIterator(root); }", "private E[] getInOrderLeftSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "public void preOrder() {\n preOrder(root);\n }", "public void PreOrder() {\n\t\tPreOrder(root);\n\t}", "private void preOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on left child\n preOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n preOrderTraversal(2 * index + 2);\n }", "public void preOrder(){\n preOrder(root);\n System.out.println();\n }", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "public static List<Node> preOrderTraversal(BinarySearchTree BST) {\n preorder = new LinkedList<Node>();\n preOrderTraversal(BST.getRoot());\n return preorder;\n }", "private static <N> void preOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\t\r\n\t\tvisitor.visitNode(node);\r\n\t\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpreOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}", "public void preOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n System.out.println(node.getElement());\r\n preOrder(node.getLeft());\r\n preOrder(node.getRight());\r\n }", "public void preorder(Node node){\n\t\tif(node == nil){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\" ID: \" + node.id + \" Colour: \" + node.colour + \" Count: \" + node.count);\n\t\tpreorder(node.left);\n\t\tpreorder(node.right);\n\t}", "public static void preorder(Node root){\n\t\tif(root != null){\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t}\n\t}", "private void preorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tpreorderHelper(root.left);\n\t\t\tpreorderHelper(root.right);\n\t\t}\n\t}", "void preorder(Node root){\n if(root!=null){\n System.out.print(root.data+\" \");\n preorder(root.left);\n preorder(root.right);\n }\n\n }", "private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}", "public List<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> returnList = new ArrayList<Integer>();\n LinkedList<TreeNode> stack = new LinkedList<TreeNode>();\n \n while(root !=null || !stack.isEmpty()){\n if(root != null){\n stack.push(root);\n returnList.add(root.val);\n root = root.left;\n }else{\n root = stack.pop();\n root = root.right;\n }\n }\n return returnList;\n }", "void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}", "private void preOrder(int node, int[] parents) {\n currTour.add(node + 1);\n Queue<Integer> children = findChildren(node, parents);\n while(!children.isEmpty()) {\n preOrder(children.remove(), parents);\n }\n }", "public static void preorderTraversal(Node root)\r\n {\r\n if (root == null) {\r\n return;\r\n }\r\n \r\n System.out.print(root.data + \" \");\r\n preorderTraversal(root.left);\r\n preorderTraversal(root.right);\r\n }", "public void visitPreorder(Visitor<T> visitor) { if (root != null) root.visitPreorder(visitor); }", "public void preOrderTraversal() {\n preOrderThroughRoot(root);\n System.out.println();\n }", "private static boolean preOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the current node, then the left child, then finally the right child\n else {\n preorder.add(current);\n preOrderTraversal(current.getLeftChild());\n preOrderTraversal(current.getRightChild());\n }\n return true;\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(9);\n root.right = new TreeNode(20);\n root.right.left = new TreeNode(15);\n root.right.right = new TreeNode(7);\n System.out.println(new Solution().preorderTraversal(null));\n }", "List<Integer> traversePreOrder(List<Integer> oList) \n\t{\t\t\n\t\toList.add(this.key);\n\t\t\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traversePreOrder(oList);\n\t\t}\n\t\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traversePreOrder(oList);\n\t\t}\n\t\t\n\t\treturn oList;\t\t\n\t}", "public ArrayList<Integer> preorderTraversal(TreeNode a) {\n\n ArrayList<Integer> result = new ArrayList<>();\n\n if (a == null) return result;\n\n Stack<TreeNode> stack = new Stack();\n TreeNode current = a;\n\n // Push the root node onto the stack\n stack.push(current);\n\n while (!stack.isEmpty()) {\n // pop a node off of the stack\n TreeNode node = stack.pop();\n result.add(node.val);\n\n // push the right and left nodes onto the stack\n if (node.right != null) {\n stack.push(node.right);\n }\n\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "private void preOrder(Node node) {\n\t\tif(null == node) return;\n\t\t\n\t\t//Print node\n\t\tSystem.out.println(node.data);\n\t\t\n\t\t//Go to left child node\n\t\tpreOrder(node.left);\n\t\t\n\t\t//Go to right child node\n\t\tpreOrder(node.right);\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "public myList<T> my_preorder();", "@Override\n public Iterator<E> getPreorderIterator() {\n return new PreorderIterator();\n }", "public void inOrderTraverseRecursive();", "private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }", "public static void main(String[] args) {\n\n\t\tTreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node4.left = node7;\n \n System.out.println(preorderTraversalIterative(node1));\n System.out.println(preorderTraversalRecursive(node1));\n \n\t\t\n\t\t\n\t\t\n\t}", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "private List<T> preOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult.add(current.getData());\n\t\t\tresult = preOrderHelper(current.getLeft(), result);\n\t\t\tresult = preOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }", "@Test\n\tvoid tesPreorder() {\n\t\tHeap<Integer, Integer> treap = createTreeHeap();\n\t\t//root, left, right\n\t\tassertEquals(\"[5, 4, 2, 1, 3]\", treap.preOrder());\n\t}", "protected void preorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tpreorder(root.left);\r\n\t\tpreorder(root.right);\r\n\t}", "public List<Integer> preorderTraversalRecursive(TreeNode root) {\n if(root == null){\n return rst;\n }\n\n rst.add(root.val);\n preorderTraversalRecursive(root.left);\n preorderTraversalRecursive(root.right);\n return rst;\n }", "public void visitPreorder(Visitor<T> visitor) {\n visitor.visit(value);\n if (left != null) left.visitPreorder(visitor);\n if (right != null) right.visitPreorder(visitor);\n }", "public void preOrder (Node root)\n\t{\n\t \n\t if(root == null)\n\t {\n\t\t return;\n\t }\n\t \n\t addValToPreorder(root);\n\t \n\t //get all of the left nodes\n\t preOrder(root.leftNode());\n\t //get all of the right nodes\n\t preOrder(root.rightNode()); \n\t \n\t}", "private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }", "private void preOrder(Node root) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (preOrderCount < 20) {\r\n\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + preOrderCount);\r\n\t\t\tpreOrderCount++;\r\n\t\t\tpreOrder(root.getlChild());\r\n\t\t\tpreOrder(root.getrChild());\r\n\t\t}\r\n\r\n\t}", "static ArrayList<Integer> preorder(Node root)\n {\n ArrayList<Integer> output_arr=new ArrayList<>();\n if(root==null){\n return null;\n }\n Stack<Node> stack=new Stack<>();\n stack.add(root);\n \n while(!stack.isEmpty()){\n Node currentnode=stack.pop();\n output_arr.add(currentnode.data);\n if(currentnode.right!=null){\n stack.add(currentnode.right);\n }\n if(currentnode.left!=null){\n stack.add(currentnode.left);\n }\n \n }\n return output_arr;\n }", "public void preOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\n\t\taction.visit(this.getElement());\n\t\tthis.left.preOrderDepthFirstTraversal(action);\n\t\tthis.right.preOrderDepthFirstTraversal(action);\n\t}", "private void preorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n System.out.printf(\"%s \" , node.data);\n preorderHelper(node.leftNode);\n preorderHelper(node.rightNode);\n }", "public void preOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n preOrderTraverseTree(focusNode.leftChild);\n\n preOrderTraverseTree(focusNode.rightChild);\n\n }\n }", "public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }", "public void preOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.println(root);\n\t\t\tpreOrderTraversal(root.getLeftChild());\n\t\t\tpreOrderTraversal(root.getRightChild());\n\t\t}\n\t}", "protected void preorder(node root){\n if(root == null)\n return;\n\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "public ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n list.add(root.val);\n while (!stack.empty()) {\n TreeNode current = stack.peek();\n if (current.left == null && current.right == null) {\n stack.pop();\n }\n\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n }\n }\n\n return list;\n }", "public List<Integer> IterativePreorderTraversal(TreeNode node) {\n \tList<Integer> list = new ArrayList<Integer>();\n \tStack<TreeNode> stack = new Stack<>();\n \twhile(!stack.isEmpty() || node!=null){\n \t\t// first, visit the current node\n \t\tif (node!=null){\n \t\t\tlist.add(node.val);\n \t\t\t// push its right child into stack\n \t\t\tif (node.right!=null){\n \t\t\t\tstack.push(node.right);\n \t\t\t}\n \t\t\t// second, go to the left subtree\n \t\t\tnode = node.left;\n \t\t} else{\n \t\t\t// if node is null\n \t\t\tnode = stack.pop();\n \t\t}\n \t}\n \t\n\t\treturn list;\n \n }", "public void traversePreOrder(Node node) {\n\t\tif (node != null) {\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t\ttraversePreOrder(node.left);\n\t\t\ttraversePreOrder(node.right);\n\t\t}\n\t}", "private void preorderHelper(ArrayList<T> list, BSTNode<T> current) {\n // look at data, left, right\n if (current.getLeft() != null) {\n list.add(current.getLeft().getData());\n preorderHelper(list, current.getLeft());\n }\n if (current.getRight() != null) {\n list.add(current.getRight().getData());\n preorderHelper(list, current.getRight());\n }\n }", "public static void preOrder(Node n) {\n\t\tif (n == null)\n\t\t\treturn;\n\t\tSystem.out.println(n.getData());\n\t\tpreOrder(n.getLeft());\n\t\tpreOrder(n.getRight());\n\t}", "public static void preOrder(Node node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "public List<T> preorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n list.add(root.getData());\n preorderHelper(list, root);\n }\n return list;\n }", "public static List<TreeNode> preOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\n\t\tif (rootNode == null) {\n\t\t\treturn output;\n\t\t}\n\t\tstack.push(rootNode);\n\t\twhile (!stack.empty()) {\n\t\t\tTreeNode node = stack.pop();\n\t\t\toutput.add(node);\n\t\t\tif (node.right != null)\n\t\t\t\tstack.push(node.right);\n\t\t\tif (node.right != null)\n\t\t\t\tstack.push(node.left);\n\t\t}\n\t\treturn output;\n\t}", "private void treePreOrderTraversal(final Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePreOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePreOrderTraversal(currNode.children[i]);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "private void preorderSubtree(Position<E> p, List<Position<E>> snapshot) {\n snapshot.add(p);\n for (Position<E> c : children(p)) {\n preorderSubtree(c, snapshot); \n \n }\n }", "public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }", "void preOrder(Node Node) {\n if (Node != null) {\n System.out.print(Node.key + \" \");\n preOrder(Node.left);\n preOrder(Node.right);\n }\n }", "static void preOrderWithoutRecursion(Node root) {\n Stack<Node> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n Node node = stack.peek();\n System.out.print(node.data + \" \");\n stack.pop();\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n }", "public void inorder(Node source) {\n inorderRec(source);\n }", "private void preOrderTraversal(StringBuilder sb) {\n sb.append(data + \" \");\n\n if (left != null) {\n left.preOrderTraversal(sb);\n }\n\n if (right != null) {\n right.preOrderTraversal(sb);\n }\n }", "public void inorder()\n {\n inorderRec(root);\n }", "private List<Integer> inOrderTraversal(Tree tree, List<Integer> arr){\n if(tree==null){\n return null;\n }\n\n if(tree.left!=null){\n inOrderTraversal(tree.left, arr);\n }\n arr.add(tree.data);\n\n if(tree.right!=null){\n inOrderTraversal(tree.right,arr);\n }\n return arr;\n\n}", "void preOrderOperation(PortfolioNode parentNode, Position position);", "public TreeNode createFromPreOrder(int[] preorder, int[] inorder) {\n //will solve this recursively by finding the root of each tree and appending it to the other by traversing\n //the preorder array in order and searching for an element in the inorder traversal\n\n\n return helper(preorder, inorder, 0, 0, inorder.length - 1);\n\n }", "public void preOrder(TreeNode root){\n\t\t//Change place of temp\n\t\tSystem.out.println(root.toString());\n\t\tif(root.getLeft()!= null){\n\t\t\tpreOrder(root.getLeft());\n\t\t}\n\t\tif(root.getMiddle()!=null){\n\t\t\tpreOrder(root.getMiddle());\n\t\t}\n\t\tif(root.getRight()!= null){\n\t\t\tpreOrder(root.getRight());\n\t\t}\n\t}", "private void preOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n System.out.print(root.getData() + \" \");\n preOrderTraversalRec(root.getLeft());\n preOrderTraversalRec(root.getRight());\n }", "public void preorder(TreeNode root) {\n\n\t\tTreeNode current = root;\n\n\t\twhile (current != null) {\n\n\t\t\t// no elements on the left that are less than the current; add it to result.\n\t\t\tif (current.left == null) {\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\n\t\t\t// start processing the left subtree.\n\t\t\telse {\n\n\t\t\t\tTreeNode predecessor = current.left;\n\n\t\t\t\t// find rightmost value of current's left subtree.\n\t\t\t\twhile (predecessor.right != null && predecessor.right != current.right) {\n\t\t\t\t\tpredecessor = predecessor.right;\n\t\t\t\t}\n\n\t\t\t\t// if no thread between current and its predecessor, add it and add current\n\t\t\t\t// val to the result.\n\t\t\t\tif (predecessor.right == null) {\n\t\t\t\t\tpredecessor.right = current.right;\n\t\t\t\t\tcurrent.right = current.left;\n\t\t\t\t\tcurrent.left = null;\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\t\t\t\t// current's left subtree has been processed; remove the thread.\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public void preorderTraverseTree(Node focusNode) {\n\n\t\tif (focusNode != null) {\n\n\t\t\tSystem.out.print(focusNode.data + \" \");\n\n\t\t\tpreorderTraverseTree(focusNode.left);\n\t\t\tpreorderTraverseTree(focusNode.right);\n\n\t\t}\n\n\t}", "private <E> void preOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t//System.out.println(root.value);\n\t\taction.execute(root.value);\n\n\t\tpreOrder(root.left,action);\n\t\t\n\t\tpreOrder(root.right,action);\n\t\t\n\t}", "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "public static void preOrder(TreeNode node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "private String preorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//Get node\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//Get leftChild\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpreorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get rightChild\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpreorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}", "public static ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n result.add(node.val);\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "public static void main(String[] args) {\n\n\n TreeNode root = new TreeNode(1);\n TreeNode left1 = new TreeNode(2);\n TreeNode left2 = new TreeNode(3);\n TreeNode left3 = new TreeNode(4);\n TreeNode left4 = new TreeNode(5);\n TreeNode right1 = new TreeNode(6);\n TreeNode right2 = new TreeNode(7);\n TreeNode right3 = new TreeNode(8);\n TreeNode right4 = new TreeNode(9);\n TreeNode right5 = new TreeNode(10);\n root.left = left1;\n root.right = right1;\n left1.left = left2;\n left1.right = left3;\n left3.right = left4;\n right1.left = right2;\n right1.right = right3;\n right2.right = right4;\n right3.left = right5;\n //[3, 2, 4, 5, 1, 7, 9, 6, 10, 8]\n List<Integer> list = inorderTraversalN(root);\n System.err.println(list);\n }", "private static void preOrder(Node root) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}", "public static void preOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tSystem.out.print(node.value + \" \");\n\t\tpreOrder(node.left);\n\t\tpreOrder(node.right);\t\n\t}", "ArrayList<Integer> preOrder(Node root)\n {\n // Code\n ArrayList<Integer> result = new ArrayList<Integer>();\n\n if (root == null) {\n return null;\n }\n Stack<Node> stack = new Stack<Node>();\n stack.push(root);\n // Node newNode = root;\n\n while (stack.empty() == false) {\n Node mynode = stack.peek();\n result.add(mynode.data);\n //System.out.print(mynode.data + \" \");\n stack.pop();\n\n if (mynode.right != null) {\n stack.push(mynode.right);\n }\n if(mynode.left != null){\n stack.push(mynode.left);\n }\n\n }\n return result;\n }", "private void preorderLeftOnly(Node root) {\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n if (root.left != null)\r\n preorderLeftOnly(root.left);\r\n }", "public List<Integer> traversePreOrderIterative(TreeNode root) {\n if (root == null) {\n return Collections.emptyList();\n }\n\n List<Integer> result = new ArrayList<>();\n\n Deque<TreeNode> stack = new ArrayDeque<>();\n stack.add(root);\n\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n result.add(node.val);\n\n if (node.right != null) {\n stack.push(node.right);\n }\n\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "void printPreorder(Node node) {\n if (node == null)\n return;\n\n /* first print data of node */\n System.out.print(node.key + \" \");\n\n /* then recur on left sutree */\n printPreorder(node.left);\n\n /* now recur on right subtree */\n printPreorder(node.right);\n }" ]
[ "0.8300326", "0.81799924", "0.80407786", "0.7747467", "0.77025676", "0.76711196", "0.7634021", "0.76022315", "0.75456816", "0.7434278", "0.7424642", "0.7400486", "0.73730904", "0.7358609", "0.7321951", "0.73190707", "0.7310969", "0.7309923", "0.7291791", "0.72841775", "0.7273431", "0.72696584", "0.72597986", "0.72554564", "0.7213157", "0.7208713", "0.72063065", "0.7201496", "0.7198936", "0.7193256", "0.71800065", "0.7173", "0.7170506", "0.71655995", "0.7165471", "0.7161915", "0.7136255", "0.71333104", "0.71327347", "0.7130949", "0.7123381", "0.7104413", "0.7086581", "0.7071773", "0.7062274", "0.7046379", "0.7044836", "0.70371974", "0.70323753", "0.6996592", "0.69952095", "0.69896644", "0.69870776", "0.696942", "0.69470423", "0.6937966", "0.690526", "0.687809", "0.6877676", "0.6871266", "0.6865529", "0.6861275", "0.6859243", "0.68571854", "0.6856375", "0.6846858", "0.68439656", "0.68356556", "0.68280125", "0.68155885", "0.6814571", "0.6814097", "0.68046474", "0.67824554", "0.6779734", "0.6779536", "0.67662364", "0.67567164", "0.6736662", "0.6736512", "0.6733132", "0.6729493", "0.6716288", "0.6714425", "0.6713582", "0.66889966", "0.6681491", "0.6679622", "0.6665002", "0.6658319", "0.6650602", "0.6646191", "0.66410553", "0.6640413", "0.66319925", "0.6630059", "0.6621897", "0.66217923", "0.66136014" ]
0.7953244
3
Function for postorder traversal
public void postorder() { postorder(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }", "public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public void postOrderTraversal(Node<T> aRoot, List<T> postOrder)\n\t{\n\t\tif (aRoot != null)\n\t\t{\n\t\t\tpostOrderTraversal(aRoot.left, postOrder);\n\t\t\tpostOrderTraversal(aRoot.right, postOrder);\n\t\t\tpostOrder.add(aRoot.X);\n\t\t}\n\t}", "public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}", "void postOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tpostOrderTraversal(node.getLeftNode());\n\t\tpostOrderTraversal(node.getRightNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t}", "public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }", "public void postOrder(){\n postOrder(root);\n System.out.println();\n }", "public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }", "private void traversePostOrder(BSTNode<T> node, LinkedList<T> list) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(node!= null) {\r\n\t\t\t//left\r\n\t\t\tthis.traversePostOrder(node.left, list);\r\n\t\t\t//right\r\n\t\t\tthis.traversePostOrder(node.right, list);\r\n\t\t\t//visit node\r\n\t\t\tlist.add(node.data);\r\n\t\t}\r\n\t}", "public void postorder() {\n\t\tpostorder(root);\n\t}", "public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }", "private void postOrder(Node<T> node){\n if(node != null){\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" ,\");\n }\n }", "private static <N> void postOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpostOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}else{\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}\r\n\t}", "public void postOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n postOrder(node.getLeft());\r\n postOrder(node.getRight());\r\n System.out.println(node.getElement());\r\n\r\n }", "public void postOrderTraversal() {\n postOrderThroughRoot(root);\n System.out.println();\n }", "private static boolean postOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the right child, then finally the current node\n else{\n postOrderTraversal(current.getLeftChild());\n postOrderTraversal(current.getRightChild());\n postorder.add(current);\n }\n return true;\n }", "public static List<Node> postOrderTraversal(BinarySearchTree BST) {\n postorder = new LinkedList<Node>();\n postOrderTraversal(BST.getRoot());\n return postorder;\n }", "public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }", "void postorder(Node root){\n if(root!=null){\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.data+\" \");\n }\n\n }", "public Iterator<T> postorderIterator() { return new PostorderIterator(root); }", "private void postorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tpostorderHelper(root.left);\n\t\t\tpostorderHelper(root.right);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t}\n\t}", "public List<Integer> postorderTraversal1(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n TreeNode current = root;\n\n while (current != null || !stack.isEmpty()) {\n\n // visit until the leaf\n while (current != null) {\n stack.push(current);\n\n // visit left right, then right, as in post-order\n if (current.left != null) {\n current = current.left;\n } else {\n current = current.right;\n // check in the end is to sure right is always visited\n }\n }\n\n // node as parent, its left and right child are both null\n TreeNode node = stack.pop();\n traversal.add(node.val); // node is added after both its children are visited\n\n // visit node's right sibling if it exists\n // stack.peek()\n // / \\\n // node to be visited\n if (!stack.isEmpty() && stack.peek().left == node) {\n current = stack.peek().right;\n }\n }\n\n return traversal;\n }", "void printPostorder() { \n\t\tprintPostorder(root);\n\t}", "List<Integer> traversePostOrder(List<Integer> oList) \n\t{\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traversePostOrder(oList);\n\t\t}\n\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traversePostOrder(oList);\n\t\t}\n\t\t\n\t\toList.add(this.key);\n\t\t\n\t\treturn oList;\n\t}", "public void postOrder(Node node) {\n\n if (node == null) {\n System.out.println(\"Tree is empty\");\n return;\n }\n\n Stack<Node> stack1 = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n\n stack1.push(node);\n\n while (!stack1.empty()) {\n\n node = stack1.pop();\n\n stack2.push(node);\n\n if (node.left != null) {\n stack1.push(node.left);\n }\n\n if (node.right != null) {\n stack1.push(node.right);\n }\n }\n\n while (!stack2.empty()) {\n node = stack2.pop();\n System.out.print(node.value + \" \");\n }\n }", "private void postorderHelper(TreeNode<T> node){\n\n if (node == null)\n return;\n\n postorderHelper(node.leftNode);\n postorderHelper(node.rightNode);\n System.out.printf(\"%s \", node.data);\n }", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public void traversePostOrder(Node node) {\n\t\tif (node != null) {\n\t\t\ttraversePostOrder(node.left);\n\t\t\ttraversePostOrder(node.right);\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tNode root = new Node(30);\n\t\troot.right = new Node(40);\n\t\troot.left = new Node(20);\n\t\troot.left.right=new Node(25);\n\t\troot.left.left = new Node(10);\n\t\troot.right.left = new Node(35);\n\t\troot.right.right = new Node(45);\n\t\t\n\t\tpostOrderTraversal(root);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tpostOrderRecursion(root);\n\t}", "protected void postorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.element + \" \");\n }", "private void postOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.postOrderTraversal(sb);\n }\n\n if (right != null) {\n right.postOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n }", "public void visitPostorder(Visitor<T> visitor) { if (root != null) root.visitPostorder(visitor); }", "public List<Integer> postorderTraversal(TreeNode root) {\n LinkedList<Integer> res = new LinkedList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n while (root != null || !stack.empty()) {\n if (root != null) {\n res.addFirst(root.val);\n stack.push(root);\n root = root.right;\n }\n else {\n root = stack.pop().left;\n }\n }\n return res;\n }", "static void postOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n postOrderTraversal(root.left);\n postOrderTraversal(root.right);\n System.out.print(root.data + \" \");\n }", "private void postOrder() {\n postOrderTraversal(0);\n System.out.println(); // jump to next line\n }", "private List<T> postOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult = postOrderHelper(current.getLeft(), result);\n\t\t\tresult = postOrderHelper(current.getRight(), result);\n\t\t\tresult.add(current.getData());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public List<T> postorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n postorderHelper(list, root);\n }\n return list;\n }", "protected void postorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tpostorder(root.left);\r\n\t\tpostorder(root.right);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t}", "public void printPostorder() {\n System.out.print(\"postorder:\");\n printPostorder(overallRoot);\n System.out.println();\n }", "public static void main(String[] args) {\nDGraph g=new DGraph();\r\nDirectedDFS d=new DirectedDFS(g);\r\nfor(Iterator<Integer> i=d.preorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\nfor(Iterator<Integer> i=d.postorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\n\r\n/*for(Iterator i=d.topologicalorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();*/\r\n\r\n\r\n\tfor(int w:d.reversepost())\r\n\t\tSystem.out.print(w+\" \");\r\n\t//System.out.println(d.topologicalorder.pop());\r\n\t}", "public static void postorder(Node root){\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t\tSystem.out.println(root.toString());\n\n\t\t}\n\t}", "public List<Integer> postOrder(TreeNode root) {\n\n List<Integer> ans = new ArrayList<>();\n\n if(root==null){\n return ans;\n }\n\n Deque<TreeNode> stack = new LinkedList<>();\n stack.push(root);\n TreeNode pre = new TreeNode(0);\n\n while(!stack.isEmpty()) {\n\n if (stack.peek().left != null && stack.peek().left != pre && stack.peek().right != pre) {\n stack.push(stack.peek().left);\n continue;\n }\n\n if (stack.peek().right != null && stack.peek().right != pre) {\n stack.push(stack.peek().right);\n continue;\n }\n pre = stack.poll();\n ans.add(pre.key);\n }\n\n return ans;\n\n }", "private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }", "public void postOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tpostOrderTravel(node.leftChild);\r\n\t\t\tpostOrderTravel(node.rightChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Iterator<T> iteratorPostOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tthis.traversePostOrder(this.root, list);\r\n\t\treturn list.iterator();\r\n\t}", "static void postOrderIterative(BinaryTreeNode root)\n {\n // Create two stacks\n Stack<BinaryTreeNode> s1 = new Stack<BinaryTreeNode>();\n Stack<BinaryTreeNode> s2 = new Stack<BinaryTreeNode>();\n\n // push root to first stack\n s1.push(root);\n BinaryTreeNode node;\n\n // Run while first stack is not empty\n while(!s1.isEmpty()){\n // Pop an item from s1 and push it to s2\n node = s1.pop();\n s2.push(node);\n\n // Push left and right children of removed item to s1\n if(node.getLeft()!=null){\n s1.push(node.getLeft());\n }\n if(node.getRight() != null){\n s1.push(node.getRight());\n }\n }\n\n\n // Print all elements of second stack\n while (!s2.isEmpty()) {\n node = s2.pop();\n System.out.print(node.getData() + \"->\");\n }\n }", "public static void main(String args[]){\n BinaryTreeNode root = new BinaryTreeNode();\n root.setData(1);\n\n BinaryTreeNode left = new BinaryTreeNode();\n left.setData(2);\n\n BinaryTreeNode right = new BinaryTreeNode();\n right.setData(3);\n\n BinaryTreeNode leftleft = new BinaryTreeNode();\n leftleft.setData(4);\n\n BinaryTreeNode leftright = new BinaryTreeNode();\n leftright.setData(5);\n\n root.setLeft(left);\n root.setRight(right);\n left.setLeft(leftleft);\n left.setRight(leftright);\n\n\n postOrderIterative(root);\n\n }", "public static void postOrder(Node node) {\n if (node == null) {\n return;\n }\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" \");\n }", "public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }", "@Override\n\tpublic void postorder() {\n\n\t}", "public myList<T> my_postorder();", "public void postOrder() {\n postOrder(root);\n }", "public List<Integer> postorderTraversal(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n\n visit(root, traversal);\n\n return traversal;\n }", "public void visitPostorder(Visitor<T> visitor) {\n if (left != null) left.visitPostorder(visitor);\n if (right != null) right.visitPostorder(visitor);\n visitor.visit(root.value);\n }", "public void postOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tpostOrderTraversal(root.getLeftChild());\n\t\t\tpostOrderTraversal(root.getRightChild());\n\t\t\tSystem.out.println(root);\n\t\t}\n\t}", "public void postOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\t\t\n\t\tthis.left.postOrderDepthFirstTraversal(action);\n\t\tthis.right.postOrderDepthFirstTraversal(action);\n\t\taction.visit(this.getElement());\t\t\t\n\t}", "private void postOrdertraverse(Node root){\n for(var child : root.getChildren())\n postOrdertraverse(child); //recursively travels other childrens in current child\n\n //finally visit root\n System.out.println(root.value);\n\n }", "public void postOrder2(BinaryTreeNode root) {\n\t\tBinaryTreeNode cur = root;\n\t\tBinaryTreeNode pre = root;\n\t\tStack<BinaryTreeNode> s = new Stack<BinaryTreeNode>();\n\n\t\tif (root != null)\n\t\t\ts.push(root);\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tcur = s.peek();\n\t\t\t// traversing down the tree\n\t\t\tif (cur == pre || cur == pre.getLeft() || cur == pre.getRight()) {\n\t\t\t\tif (cur.getLeft() != null) {\n\t\t\t\t\ts.push(cur.getLeft());\n\t\t\t\t} else if (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t}\n\t\t\t\tif (cur.getLeft() == null && cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// traversing up the tree from the left\n\t\t\telse if (pre == cur.getLeft()) {\n\t\t\t\tif (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t} else if (cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// we are traversing up the tree from the right\n\t\t\telse if (pre == cur.getRight()) {\n\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t}\n\t\t\tpre = cur;\n\t\t}\n\t}", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "private TreeNode helper(int[] inorder, int[] inIdx, int[] postorder, int[] postIdx, TreeNode finish) {\n if (postIdx[0] < 0 || (finish != null && inorder[inIdx[0]] == finish.val)) {\n return null;\n }\n\n TreeNode root = new TreeNode(postorder[postIdx[0]--]);\n\n root.right = helper(inorder, inIdx, postorder, postIdx, root);\n\n inIdx[0]--;\n\n root.left = helper(inorder, inIdx, postorder, postIdx, finish);\n\n return root;\n }", "void postOrderOperation(PortfolioNode parentNode, Position position);", "public static void postOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tpostOrder(node.left);\n\t\tpostOrder(node.right);\n\t\tSystem.out.print(node.value + \" \");\t\n\t}", "void printPostorder(Node node) {\n\t\t//base case\n\t\tif(node == null)\n\t\t\treturn;\n\t\t// first recur on left subtree\n\t\tprintPostorder(node.left);\n\t\t\t\t\n\t\t// then recur on right subtree\n\t\tprintPostorder(node.right);\n\t\t\t\t\n\t\t// now deal with the node\n\t\tSystem.out.print(node.data + \" \");\n\t}", "void printPostorder(Node node) {\n if (node == null)\n return;\n\n // first recur on left subtree\n printPostorder(node.left);\n\n // then recur on right subtree\n printPostorder(node.right);\n\n // now deal with the node\n System.out.print(node.key + \" \");\n }", "public void postOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n postOrderTraverseTree(focusNode.leftChild);\n postOrderTraverseTree(focusNode.rightChild);\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n }\n }", "private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}", "public ArrayList<Integer> postorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n while (!stack.empty()) {\n TreeNode current = stack.pop();\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n } else {\n stack.pop();\n list.add(current.val);\n }\n }\n return list;\n }", "private void postorderHelper(ArrayList<T> list, BSTNode<T> current) {\n if (current.getLeft() != null) {\n postorderHelper(list, current.getLeft());\n }\n if (current.getRight() != null) {\n postorderHelper(list, current.getRight());\n }\n list.add(current.getData());\n }", "private void postOrderTraverse(Node<String> node,StringBuilder sb) {\n\n\t\t\t\tif (node != null) {\t\n\t\t\t\t\tpostOrderTraverse(node.left, sb);\n\t\t\t\t\tpostOrderTraverse(node.right,sb);\n\t\t\t\t\tsb.append(node.toString());\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "private void treePostOrderTraversal(Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "public void inOrderTraverseRecursive();", "static <T> List<T> implementAPostorderTraversalWithoutRecursion(BinaryTreeNode<T> tree) {\n List<T> result = new ArrayList<>();\n Deque<BinaryTreeNode<T>> stack = new ArrayDeque<>();\n BinaryTreeNode<T> previous = tree;\n\n stack.push(tree);\n\n while (!stack.isEmpty()) {\n BinaryTreeNode<T> node = stack.peek();\n\n if ((node.left == null) && (node.right == null)) { // leaf\n result.add(stack.pop().data);\n } else {\n if ((node.right != null) && (previous == node.right)) { // returning from right child\n result.add(stack.pop().data);\n } else if ((node.right == null) && (previous == node.left)) { // returning from left when right is null\n result.add(stack.pop().data);\n } else {\n if (node.right != null) stack.push(node.right);\n if (node.left != null) stack.push(node.left);\n }\n }\n\n previous = node;\n }\n\n return result;\n }", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "private void postOrder(OpTree t, ArrayList<String> rlist)\n\t{\n\t\tif (t == null) return;\n\t\tpostOrder(t.left, rlist);\n\t\tpostOrder(t.right, rlist);\n\t\trlist.add(rlist.size(),(t.op != null? t.op : t.dval.toString()));\n\t}", "@Override\n public Iterator<E> getPostorderIterator() {\n return new PostorderIterator();\n }", "void postOrderOperation(PortfolioNode portfolioNode);", "private String postorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//get left\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpostorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get right\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpostorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get item\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}", "public static void PrePostIterative(Node node){\r\n \r\n Stack<Pair> st = new Stack<>();\r\n st.push(new Pair(node, -1)); //-1 here is for state initially\r\n \r\n //Create two ArrayList to store values\r\n ArrayList<Integer> pre = new ArrayList<>();\r\n ArrayList<Integer> post = new ArrayList<>();\r\n \r\n while(st.size() > 0){\r\n Pair p = st.peek();\r\n \r\n //if p.state = -1 then add value in pre and increase state\r\n if(p.state == -1){\r\n pre.add(p.node.data);\r\n p.state++;\r\n }\r\n \r\n //if p.state = node.children.size then add value in post and pop from Stack\r\n else if(p.state == p.node.children.size()){\r\n post.add(p.node.data);\r\n st.pop();\r\n }\r\n \r\n //if state is between 0 and children size then add children of node at state value to stack and increase state\r\n else{\r\n Node child = p.node.children.get(p.state); //p.state value is the p.state'th child like 0th child, 1st child like this.\r\n st.push(new Pair(child, -1));\r\n p.state++;\r\n }\r\n }\r\n \r\n //Print values in pre and post ArrayList\r\n for(int val : pre){\r\n System.out.print(val + \" \");\r\n }\r\n System.out.println();\r\n for(int val : post){\r\n System.out.print(val + \" \");\r\n }\r\n System.out.println();\r\n }", "public TreeNode reconstruct(int[] inOrder, int[] postOrder) {\n if(inOrder == null || postOrder == null) {\n return null;\n }\n Map<Integer,Integer> postionInOrder = new HashMap<Integer, Integer>();\n for (int i = 0; i < inOrder.length; i++){\n postionInOrder.put(inOrder[i], i);\n }\n return reconstruct(inOrder, postOrder, postionInOrder, 0, inOrder.length - 1, 0, inOrder.length - 1);\n }", "static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next());\n }\n System.out.print(\" \" + node.data);\n }", "private void postOrder(BSTNode<K,V> node, List<Entry<K,V>> list) throws NullPointerException {\n\t\tif (root == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (root != null) {\n\t\t\t\n\t\t\tif (node.left != null) {\n\t\t\t\tpostOrder(node.left, list);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.right != null) {\n\t\t\t\tpostOrder(node.right, list);\n\t\t\t}\n\t\t\t\n\t\t\tlist.add(new Entry<K,V>(node.key, node.value));\n\t\t}\n\t}", "public static List<TreeNode> postOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\n\t\tif (rootNode == null)\n\t\t\treturn output;\n\n\t\tStack<TreeNode> s = new Stack<TreeNode>();\n\t\tTreeNode current = rootNode;\n\n\t\twhile (true) {\n\n\t\t\tif (current != null) {\n\t\t\t\tif (current.right != null)\n\t\t\t\t\ts.push(current.right);\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.left;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (s.isEmpty())\n\t\t\t\treturn output;\n\t\t\tcurrent = s.pop();\n\n\t\t\tif (current.right != null && !s.isEmpty() && current.right == s.peek()) {\n\t\t\t\ts.pop();\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.right;\n\t\t\t} else {\n\t\t\t\toutput.add(current);\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t}\n\n\t}", "public void printPostOrder(Node currNode){\n if (currNode != null){\n printInOrder(currNode.left);\n printInOrder(currNode.right);\n System.out.print(currNode.val + \", \");\n }\n }", "public List<Integer> postorderTraversalRecursive(TreeNode root) {\n if (root == null) {\n return rst;\n }\n postorderTraversalRecursive(root.left);\n postorderTraversalRecursive(root.right);\n rst.add(root.val);\n return rst;\n }", "public void postOrder(Node root) {\n if(root!=null) {\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }\n }", "private void postOrder(HomogeneusNode root) {\n if (root != null) {\n postOrder(root.getLeft());\n postOrder(root.getRight());\n System.out.printf(\"%d\", root.getData());\n }\n }", "public void printTreePostOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreePostOrder(node.left);\n printTreePostOrder(node.right);\n\n System.out.print(node.item + \" \");\n }", "private <E> void postOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tpostOrder(root.left,action);\n\t\t\n\t\tpostOrder(root.right,action);\n\t\t//System.out.println(root.value,action);\n\t\taction.execute(root.value);\n\t\t\n\t}", "public void inOrderTraverseIterative();", "public void preorder()\r\n {\r\n preorder(root);\r\n }", "private void inOrderTraversal(int index) {\n // go through the graph as long as has values\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n inOrderTraversal(2 * index + 1);\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on right child\n inOrderTraversal(2 * index + 2);\n }", "public void postOrder(Node root) {\n if (root != null) {\n postOrder(root.getLeftChild());\n postOrder(root.getRightChild());\n System.out.print(root.getData() + \" \");\n }\n }", "public void postOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tpostOrder(localRoot.leftChild);\r\n\t\t\tpostOrder(localRoot.rightChild);\r\n\t\t\tSystem.out.print(localRoot.data+ \" \");\r\n\t\t}\r\n\t}" ]
[ "0.8034767", "0.77563256", "0.7638848", "0.7603065", "0.7430227", "0.7401398", "0.73751676", "0.7294653", "0.71603554", "0.71484214", "0.7108848", "0.7067484", "0.70457953", "0.70294", "0.70065504", "0.69921714", "0.6974496", "0.6954269", "0.6938933", "0.6938216", "0.6922313", "0.69155574", "0.6904213", "0.687817", "0.6868561", "0.6862008", "0.68462205", "0.6804515", "0.6802209", "0.6784171", "0.6759241", "0.67446136", "0.6726798", "0.6708614", "0.67073566", "0.6694012", "0.6690704", "0.6680115", "0.66649485", "0.6662605", "0.6662554", "0.6660658", "0.66552055", "0.6644124", "0.6643282", "0.6642322", "0.66398305", "0.6632279", "0.66130525", "0.66030514", "0.6598581", "0.65970623", "0.6575375", "0.6546697", "0.6544573", "0.651467", "0.64917386", "0.64728844", "0.6471439", "0.64672774", "0.6456654", "0.6440707", "0.6432901", "0.6411102", "0.6410828", "0.6410599", "0.64019424", "0.639262", "0.6379688", "0.63456863", "0.63336945", "0.6328176", "0.63261884", "0.6325627", "0.6318674", "0.63171345", "0.63095546", "0.6307038", "0.6292715", "0.62923586", "0.6288123", "0.6285959", "0.62619543", "0.6247904", "0.62450933", "0.62311554", "0.62173754", "0.6208701", "0.61655354", "0.616489", "0.6156796", "0.6148301", "0.61257464", "0.61182296", "0.60922104", "0.6086191", "0.6085058", "0.6075496", "0.6071181" ]
0.7441108
4
Created by Lukas Dylan Adisurya on 17/02/2018. If you had any question about this project, you can contact me via email
public interface APIService { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void perish() {\n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "private ReportGenerationUtil() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\n protected void initialize() \n {\n \n }", "private MetallicityUtils() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private MApi() {}", "private UsineJoueur() {}", "@Override\n protected void initialize() {\n\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\n public void initialize() {\n \n }", "protected OpinionFinding() {/* intentionally empty block */}", "private Platform() {\n\t\t\n\t}", "private Singletion3() {}", "private FundInfo() {\n initFields();\n }", "private BuilderUtils() {}", "Petunia() {\r\n\t\t}", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void mo4359a() {\n }", "protected void onFirstUse() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "protected Doodler() {\n\t}", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "private Aliyun() {\n\t\tsuper();\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private Util() { }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo6081a() {\n }", "protected void mo6255a() {\n }", "public contrustor(){\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}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private static void cajas() {\n\t\t\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "protected Problem() {/* intentionally empty block */}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "private JacobUtils() {}", "@Override\n protected void startUp() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "private BuildTranslations () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "protected void initialize() {}", "protected void initialize() {}", "@Override\n public void init() {\n\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }", "private CanonizeSource() {}", "public Tbdtokhaihq3() {\n super();\n }", "private void init() {\n\n\t}", "@Override\n protected void init() {\n }", "private RefereesInLeagueDBAccess() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private Main() {\n\n super();\n }", "private OMUtil() { }", "@Override\n public void initialize() { \n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "public void init() {\n \n }", "@Override\n public void init() {\n }" ]
[ "0.56356835", "0.53377044", "0.53377044", "0.53377044", "0.53377044", "0.53377044", "0.53377044", "0.533651", "0.5311894", "0.5292344", "0.52725476", "0.5223911", "0.5184957", "0.51848066", "0.51628464", "0.51543856", "0.51407236", "0.5137392", "0.51370263", "0.5134957", "0.510949", "0.5096701", "0.5095034", "0.5073379", "0.5066603", "0.5050822", "0.50474745", "0.5039638", "0.5028992", "0.5022664", "0.5016555", "0.5006285", "0.5005", "0.49990967", "0.49944016", "0.49913672", "0.49816", "0.49816", "0.49816", "0.4974286", "0.49651858", "0.49651858", "0.4961535", "0.49572608", "0.49536836", "0.49455297", "0.49455297", "0.49374706", "0.49374706", "0.49374706", "0.49374706", "0.49374706", "0.49374706", "0.49374706", "0.49334818", "0.49323523", "0.49288318", "0.49254718", "0.49235442", "0.49206442", "0.4913212", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.4906496", "0.48987728", "0.48937997", "0.4890064", "0.48802796", "0.48759252", "0.4864593", "0.4864593", "0.48644206", "0.48644206", "0.48610088", "0.48574203", "0.48545462", "0.48545462", "0.485319", "0.48501197", "0.48444116", "0.4835959", "0.4832277", "0.48224637", "0.48211062", "0.4820331", "0.48185647", "0.48159721", "0.48144794", "0.4812399", "0.4811207", "0.48103815", "0.48103815", "0.4810039", "0.48036137" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Area)) { return false; } Area other = (Area) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Default constructor. Loads the passed source Shapes model and an initial target Shapes model as member variables.
public ShapesRule6(String sourceShapesPath, String targetShapesPath) { loadShapesModel(sourceShapesPath); initializeShapesModel(); this.targetURI = URI.createURI(targetShapesPath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeShapesModel() {\n\t\t// Initialize the model\n\t\tShapesPackage.eINSTANCE.eClass();\n\t\tShapesPackage.eINSTANCE.setNsURI(METAMODEL_PATH_SHAPES);\n\n\t\t// Retrieve the default factory singleton\n\t\tfactory = ShapesFactory.eINSTANCE;\n\n\t\t// Create the content of the model via this program\n\t\ttargetRootBlock = factory.createRootBlock();\n\t}", "public MultiShapeLayer() {}", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public ModelSourceFile() {\n\t\t\n\t}", "public DrawingModelImpl() {\r\n objects = new ArrayList<>();\r\n listeners = new ArrayList<>();\r\n }", "public Shape()\n\t{\n\t\tinitShape();\n\t}", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "private void loadShapesModel(String modelPath) {\n\t\t// Initialize the model\n\t\tShapesPackage.eINSTANCE.eClass();\n\n\t\t// Register the XMI resource factory for the .shapes extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"shapes\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Get the resource\n\t\tResource resource = resSet.getResource(URI.createURI(modelPath), true);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tEObject obj = resource.getContents().get(0);\n\t\tif (obj instanceof RootBlock) {\n\t\t\tsourceRootBlock = (RootBlock) obj;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"RootBlock has to be first element in \" + modelPath);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Loaded Shapes model from \" + modelPath);\n\t\t}\n\t}", "public Shape(URL url, String unit) {\n ArrayList<Shape> shapes;\n\n if (url.toString().toLowerCase().endsWith(\"obj\")) {\n shapes = loadOBJ(url, unit);\n } else if (url.toString().toLowerCase().endsWith(\"stl\")) {\n shapes = loadSTL(url, unit);\n } else {\n throw new IllegalArgumentException(\"Shape contructor: Not OBJ/STL file: \" + url);\n }\n\n if (shapes.size() != 1) {\n throw new IllegalArgumentException(\"Contructing shape from OBJ/STL file containing more or fewer than one mesh: \" + url);\n }\n this.mesh = (TriangleMesh) shapes.get(0).getMesh();\n super.setMesh(this.mesh);\n setVisuals(\"green\");\n }", "public OpenGLModel() {\n\n\n\t}", "public TargetGeneratorModel()\n {\n }", "public ShapeFile(){\n numShapes = 0;\n }", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "public ModelBakery(IResourceManager p_i46085_1_, TextureMap p_i46085_2_, BlockModelShapes p_i46085_3_) {\n/* 78 */ this.resourceManager = p_i46085_1_;\n/* 79 */ this.textureMap = p_i46085_2_;\n/* 80 */ this.blockModelShapes = p_i46085_3_;\n/* */ }", "private void construct(){\n TriangleMesh mesh;\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/bunny.obj\");\n mesh.setMaterial(new MaterialNode(0.1f, 0.1f, .5f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/cube.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 0, 0));\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/teddy.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 0, 1, 0));\n mesh.setMaterial(new MaterialNode(0.1f, .5f, 0.1f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/sphere.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 1, 0));\n mesh.setMaterial(new MaterialNode(1, 0, 0, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n scene.calculateNormals();\n scene.setupRendering();\n }", "protected Shape() {}", "public void setup() {\n\t\tshapes[0] =new Shape (10,10);\n\t\tshapes[1] = new Rect (20,20,10,10);\n\t\tshapes[2]=new Oval (30,30,10,10);\n\t\tshapes[3] = new RoundedRect (70,70,40,40);\n\t}", "public ModelService(ModelService source) {\n if (source.Id != null) {\n this.Id = new String(source.Id);\n }\n if (source.Cluster != null) {\n this.Cluster = new String(source.Cluster);\n }\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Runtime != null) {\n this.Runtime = new String(source.Runtime);\n }\n if (source.ModelUri != null) {\n this.ModelUri = new String(source.ModelUri);\n }\n if (source.Cpu != null) {\n this.Cpu = new Long(source.Cpu);\n }\n if (source.Memory != null) {\n this.Memory = new Long(source.Memory);\n }\n if (source.Gpu != null) {\n this.Gpu = new Long(source.Gpu);\n }\n if (source.GpuMemory != null) {\n this.GpuMemory = new Long(source.GpuMemory);\n }\n if (source.CreateTime != null) {\n this.CreateTime = new String(source.CreateTime);\n }\n if (source.UpdateTime != null) {\n this.UpdateTime = new String(source.UpdateTime);\n }\n if (source.ScaleMode != null) {\n this.ScaleMode = new String(source.ScaleMode);\n }\n if (source.Scaler != null) {\n this.Scaler = new Scaler(source.Scaler);\n }\n if (source.Status != null) {\n this.Status = new ServiceStatus(source.Status);\n }\n if (source.AccessToken != null) {\n this.AccessToken = new String(source.AccessToken);\n }\n if (source.ConfigId != null) {\n this.ConfigId = new String(source.ConfigId);\n }\n if (source.ConfigName != null) {\n this.ConfigName = new String(source.ConfigName);\n }\n if (source.ServeSeconds != null) {\n this.ServeSeconds = new Long(source.ServeSeconds);\n }\n if (source.ConfigVersion != null) {\n this.ConfigVersion = new String(source.ConfigVersion);\n }\n if (source.ResourceGroupId != null) {\n this.ResourceGroupId = new String(source.ResourceGroupId);\n }\n if (source.Exposes != null) {\n this.Exposes = new ExposeInfo[source.Exposes.length];\n for (int i = 0; i < source.Exposes.length; i++) {\n this.Exposes[i] = new ExposeInfo(source.Exposes[i]);\n }\n }\n if (source.Region != null) {\n this.Region = new String(source.Region);\n }\n if (source.ResourceGroupName != null) {\n this.ResourceGroupName = new String(source.ResourceGroupName);\n }\n if (source.Description != null) {\n this.Description = new String(source.Description);\n }\n if (source.GpuType != null) {\n this.GpuType = new String(source.GpuType);\n }\n if (source.LogTopicId != null) {\n this.LogTopicId = new String(source.LogTopicId);\n }\n }", "@Before\n public void initialize() {\n model1 = new AnimationModel();\n textView1 = new TextView();\n out = new StringBuffer();\n modelWithRectAndOval = new AnimationModel();\n modelWithRectAndOval.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200,\n 200), new Color(1, 0, 0), 1, 100,\n 50.0, 100.0));\n modelWithRectAndOval.addShape(Oval.createOval(\"C\", new Point.Double(500, 100),\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n }", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public Core() {\r\n inputs = new ArrayList<>();\r\n outputs = new ArrayList<>();\r\n converter = new Converter();\r\n\r\n }", "public WorldModel(){\t\n\t}", "Shape1(){\n\t\tSystem.out.println(\"Shape is constructed\");\n\t}", "@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public CarrierShape()\n {\n super();\n }", "public ShapeLibraryTest()\n {\n }", "public Model() {\n\t\tboolean debug = Constants.getDebugFlag();\n\t\tgameMode = Constants.getGameMode();\n\t\twhitePieces = new PieceArray();\n\t\tblackPieces = new PieceArray();\n\t\tcapturedPieces = new ArrayList<Piece>();\n\t\tmoveList = new ArrayList<Move>();\n\t\tgameTree = new GameTree();\n\n\t\tboard = new Piece[8][8];\n\n\t\t\n\t\t// Easy way to set up nonstandard positions for testing.\n\t\tif(debug)\n\t\t\tinitializeDebugBoard();\n\t\telse\n\t\t\tinitializeBoard();\n\t\t\n\t\tpopulateLists();\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "@Override\n public void init() {\n this.shapes = new DatabaseShape();\n }", "public DefaultLoaderDefinition() {\n\t\t// nothing to do\n\t}", "public PR1Model() { \n\t\tdrawData = FXCollections.observableArrayList();\n\t\tdoubleListener = new ChangeListener<Number>() {\n\n\t\t\t/* (non-Javadoc)\n\t\t\t * @see javafx.beans.value.ChangeListener#changed(javafx.beans.value.ObservableValue, java.lang.Object, java.lang.Object)\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) { touch(); }\n\t\t};\n\t\tcolorListener = new ChangeListener<Color>() {\n\n\t\t\t@Override\n\t\t\tpublic void changed( ObservableValue<? extends Color> observable, Color oldValue, Color newValue) { touch(); }\t\t\n\t\t};\n\t\ttypeListener = new ChangeListener<ShapeType>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ShapeType> observable, ShapeType oldValue, ShapeType newValue) { touch(); }\n\t\t};\n\t\ttextListener = new ChangeListener<String>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) { touch(); }\n\t\t};\n\t\tdeleteListener = new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { touch(); }\n\t\t};\n\t}", "DataGenModel()\n {\n }", "private void initializeModel() {\n\t\t\n\t}", "@Override\r\n\tpublic void visit(Shapes shapes) {\n\t\tSystem.out.println(\"my Shapes init\");\r\n\t}", "public Shape(MeshView mv) {\n Mesh m = mv.getMesh();\n\n if (m instanceof TriangleMesh) {\n this.mesh = (TriangleMesh) m;\n super.setMesh(m);\n } else {\n throw new IllegalArgumentException(\"Constructing Shape from invalid kind of mesh: \" + m);\n }\n\n setVisuals(\"purple\");\n }", "public MD2_Model(PApplet app, int numFrames, int numXYZ, int frameSize,\n\t\t\tgb_Vector3[] points, gb_Vector3 modOffset, gb_Vector3 modSize,\n\t\t\tint[] glCommand, MD2_Loader.GL_Vertex[] vertex, PImage modelTex,\n\t\t\tMD2_ModelState[] state) {\n\t\tthis.app = app;\n\t\tthis.numFrames = numFrames;\n\t\tthis.numXYZ = numXYZ;\n\t\tthis.frameSize = frameSize;\n\t\tthis.point = points;\n\t\tthis.modOffset = modOffset;\n\t\tthis.modSize = modSize;\n\t\tthis.glComannd = glCommand;\n\t\tthis.glVertex = vertex;\n\t\tthis.modelTex = modelTex;\n\t\tthis.state = state;\n\t\tthis.stateIndex = 0;\n\t}", "@Before\n public void setUp() {\n defaultColor1 = new Color(10, 10, 10);\n defaultPosition1 = new Position(0, 100);\n defaultSize1 = new Size(20, 20);\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, defaultSize1);\n defaultColor2 = new Color(100, 100, 100);\n defaultPosition2 = new Position(50, 50);\n defaultSize2 = new Size(25, 25);\n defaultShape2 = new Oval(defaultColor2, defaultPosition2, defaultSize2);\n }", "public FileOpModel()\n\t{ \n\t\tthis(new ArrayList<>());\n\t}", "public Shape(URL url) {\n this(url, \"cm\");\n }", "public Mesh() {\n this(DEFAULT_COORDS);\n }", "public DefaultObjectModel (Reader... schemas)\n throws IOException, BlinkException\n {\n this ();\n loadSchema (schemas);\n }", "public Scene() {}", "private void init() throws IOException, ModelException{\r\n // Check if the input file should be convert to libSVM format\r\n if(this.reformatInputFile){\r\n reformatInputFile();\r\n this.inputFileName = this.inputFileName + \".svm\";\r\n }\r\n\r\n // Scale the training set\r\n if(this.scale){\r\n scale();\r\n }\r\n\r\n setProblem();\r\n checkParams();\r\n\r\n // Check if cross validation is needed\r\n if(this.crossValidation == 1){\r\n crossValidate();\r\n }\r\n // Goes to here only if you use SVMModel without project context\r\n else{\r\n train();\r\n }\r\n }", "public Target()\n\t{\n\t\tx = 2.0;\n\t\ty = 2.0;\n\t\tangle = 0.0;\n\t\tdistance = 0.0;\n\t\tnullTarget=true;\n\t}", "public BasicLoader() {\n }", "public CanvasEditor(Shape initialShape) { //shape constructor\n\t\t\n\t\tthis.currentShape = initialShape;\n\t\t\n\t\t\n\t}", "public EnsembleLibraryModel(Classifier classifier) {\n \n m_Classifier = classifier;\n \n //this may seem redundant and stupid, but it really is a good idea \n //to cache the stringRepresentation to minimize the amount of work \n //that needs to be done when these Models are rendered\n m_StringRepresentation = toString();\n \n updateDescriptionText();\n }", "public void init() {\n\t\twindow.init();\n\t\t\n\t\t//OBJModel test = new OBJModel(\"monkey.obj\");\n\t\t//IndexedModel model = test.toIndexedModel();\n\t\t//Model test2 = new Model(OBJLoader.loadMesh(\"monkey.obj\"));\n\t\t\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "public Paint() {\n shapes = new ArrayList<>();\n }", "protected void init()\r\n\t{\n\t\tif (ConfigManager.getInstance().getIsCrossClassify() && WekaTool.dataStageOn)\r\n\t\t{\r\n\t\t\t//System.out.println(\"in init for data stage\");\r\n\t\t\tsrcDirUrl = ConfigManager.getInstance().getTrainPath();\r\n\t\t\tdestDirUrl = ConfigManager.getInstance().getTrainPath() +\r\n\t\t\t File.separator + \"output\";\r\n\t\t\t//System.out.println(\"srcDirUrl = \" + srcDirUrl);\r\n\t\t\t//System.out.println(\"destDirUrl = \" + destDirUrl);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//System.out.println(\"here, good\");\r\n\t\t\tsrcDirUrl = getSrcDirUrl();\r\n\t\t\tdestDirUrl = getDestDirUrl();\r\n\t\t}\r\n\t\tdatalibSVMUrl = getLibSVMDirUrl();\r\n\t\ttry {\r\n\t\t\tsrcDir = Utils.getDir(srcDirUrl);\r\n\t\t\tdestDir = Utils.getDir(destDirUrl);\r\n\t\t} catch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t}", "public CommandLineFSRecognizer() {\n init();\n }", "public GraphicLayer() {\r\n super();\r\n }", "@Before\n public void setUp() {\n testAnimation = new AnimationModelImpl();\n\n // Instantiate the IShapes\n r = new Rectangle(\"R\",\n 50.0, 100.0,\n 1, 0, 0,\n 200.0, 200.0);\n\n c = new Ellipse(\"C\",\n 120.0, 60.0,\n 0, 0, 1,\n 500.0, 100.0);\n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public void initFromModel(final BBFatheredPatPathoArray src)\n\t{\n\t\tinit() ;\n\t\t\n\t\tif (null == src)\n\t\t\treturn ;\n\n\t\t_PatPatho = new LdvModelNodeArray(src._PatPatho) ;\n\t\t_FatherNode = new LdvModelNode(src._FatherNode) ;\n\t}", "public void initModel() {\n gunControl.initSmoke();\n }", "public DefaultObjectModel (String... schemas)\n throws IOException, BlinkException\n {\n this ();\n loadSchema (schemas);\n }", "public ModelBolting(){}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public Sample()\n {\n inputs = new ArrayList<>();\n outputs = new ArrayList<>();\n numberOfInputs = 0;\n numberOfOutputs = 0;\n comment = \"\";\n }", "public ShapeTest(Shape shape) {\r\n\t\t\r\n\t\tthis.shape = shape;\r\n\t}", "public Blank()\n {\n // Here you set up your interface. You can look at other patch editors\n // to see how they were done. At the very end you typically would say something like:\n \n \n model.set(\"name\", \"InitName\"); // or whatever, to set the initial name of your patch (assuming you use \"name\" as the key for the patch name)\n loadDefaults(); // this tells Edisyn to load the \".init\" sysex file you created. If you haven't set that up, it won't bother\n }", "private void initializeShapeConfig(TypedArray attributes) {\n defaultShapeKey =\n attributes.getInteger(R.styleable.nox_shape, ShapeFactory.FIXED_CIRCULAR_SHAPE_KEY);\n }", "public void init(GLAutoDrawable drawable) {\n try {\n ds = new VolumetricDataSet(new File(\"BostonTeapot.raw\"), 256, 256, 178);\n\n GL gl = drawable.getGL();\n glu = new GLU();\n\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n gl.glViewport(0, 0, 500, 300);\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glLoadIdentity();\n glu.gluOrtho2D(0.0, 500.0, 0.0, 300.0);\n } catch (IOException ex) {\n Logger.getLogger(FileReader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public Model() {\n\t}", "public Model() {\n\t}", "private void init(Simulation simulation) {\n // create RDF model\n model = ModelFactory.createDefaultModel();\n provOutputFileURI = simulation.getProvLocation()\n .resolve(simulation.getName() + \".ttl\").toString();\n // set prefixes for...\n // RDF syntax\n model.setNsPrefix(\"rdf\", ProvOntology.getRDFNameSpaceURI());\n // RDF schema\n model.setNsPrefix(\"rdfs\", ProvOntology.getRDFSNameSpaceURI());\n // w3 Prov Ontology\n model.setNsPrefix(\"prov\", ProvOntology.getPROVNameSpaceURI());\n // XML schema\n model.setNsPrefix(\"xsd\", ProvOntology.getXSDNameSpaceURI());\n localNameSpaceURI = getLocalNameSpaceURI();\n // Graphitti Prov\n model.setNsPrefix(LOCAL_NS_PREFIX, localNameSpaceURI);\n }", "public Knights(Pane layer, Castle src, Castle target)\r\n\t{\r\n\t\tsuper(layer, Settings.COST_PRODUCTION_KNIGHT, Settings.TIME_COST_KNIGHT, \r\n\t\t\t\tSettings.SPEED_KNIGHT, Settings.DAMMAGES_KNIGHT, Settings.DAMMAGES_KNIGHT, src, target);\r\n\t\tr.setFill(Color.GREY);\r\n\t}", "public Loader(){\n\t\tthis(PLANETS, NEIGHBOURS);\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "private void initProtocol() {\n\t\tprotocol = new MixingProtocol();\n\n\t\tRectangleMixingStep step1 = new RectangleMixingStep(1.25, true, true);\n\t\tRectangleMixingStep step2 = new RectangleMixingStep(2.50, true, false);\n\t\tRectangleMixingStep step3 = new RectangleMixingStep(3.75, false, true);\n\t\tRectangleMixingStep step4 = new RectangleMixingStep(4.0, false, false);\n\n\t\tprogram = new ArrayList<MixingStep>();\n\t\tprogram.add(step1);\n\t\tprogram.add(step2);\n\t\tprogram.add(step3);\n\t\tprogram.add(step4);\n\n\t\tprotocol.setProgram(program);\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 MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "@Test(expected = IllegalArgumentException.class)\n public void testMakingShapeWithNullLocation() {\n model1.addShape(Oval.createOval(\"C\", null,\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n }", "@Override\n protected void init( final IProgressMonitor monitor ) throws SOProcessException{\n\n try {\n super.init(monitor);\n\n if (this.paramsClipInExistentLayer != null) {\n\n init(this.paramsClipInExistentLayer);\n\n this.targetLayer = this.paramsClipInExistentLayer.getTargetLayer();\n\n this.targetStore = getFeatureStore(targetLayer);\n \n setGeomAttrTypeToClip(this.targetLayer.getSchema());\n\n } else if (this.paramsClipInNewLayer != null) {\n\n init(this.paramsClipInNewLayer);\n\n // create new layer (store and resource) with the feature type required\n SimpleFeatureType type = this.paramsClipInNewLayer.getTargetFeatureType();\n\n this.targetGeoResource = AppGISMediator.createTempGeoResource(type);\n assert this.targetGeoResource != null;\n\n this.targetStore = this.targetGeoResource.resolve(FeatureStore.class, monitor);\n\n setGeomAttrTypeToClip(type);\n \n this.targetLayer = addLayerToMap(this.map, this.targetGeoResource);\n }\n assert this.targetLayer != null;\n assert this.targetStore != null;\n \n\n } catch (IOException e) {\n\n final String msg = MessageFormat\n .format(\n Messages.ClipProcess_failed_creating_temporal_store,\n e.getMessage());\n LOGGER.severe(msg);\n\n throw new SOProcessException(msg);\n }\n\n }", "CubeModel(CubeModel cube) {\n initialize(cube);\n\n }", "public Train(){\n}", "@Test(expected = IllegalArgumentException.class)\n public void testNoShapeWithSameName() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addShape(Oval.createOval(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n }", "private void instantiate(){\n inputAddressList = new LinkedList<Address>();\n inputGroupList = new LinkedList<Group>();\n root = new Group(\"root\", 0);\n }", "public Training() {\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "TwoDShape5() {\n width = height = 0.0;\n }", "public SceneInfo(SceneInfo source) {\n if (source.ScenePictureURL != null) {\n this.ScenePictureURL = new String(source.ScenePictureURL);\n }\n if (source.HeadX != null) {\n this.HeadX = new Long(source.HeadX);\n }\n if (source.HeadY != null) {\n this.HeadY = new Long(source.HeadY);\n }\n if (source.HeadWidth != null) {\n this.HeadWidth = new Long(source.HeadWidth);\n }\n if (source.HeadHeight != null) {\n this.HeadHeight = new Long(source.HeadHeight);\n }\n }", "public EpsShape(Shape shape) {\n\t\tthis(shape,false);\n\t}", "public MobilitySourceCollection(MobilitySource[] mobilitySources) {\n\t\tthis.mobilitySources = mobilitySources;\n\t\taddressMobilitySourceMap = new HashMap();\n\t\taddressAddressMap = new HashMap();\n\t\tcurrentEnterIndex = 0;\n\t\tcurrentAddress = 0;\n\t\trectangle = null;\n\t\tshape = new ShapeCollection();\n\t\ttotalDeviceCount = 0;\n\t\tfor(int i=0; i<mobilitySources.length; i++) {\n\t\t\trectangle = rectangle == null ? mobilitySources[i].getRectangle() : rectangle.union(mobilitySources[i].getRectangle());\n\t\t\tshape.addShape(mobilitySources[i].getShape(), Position.NULL_POSITION);\n\t\t\ttotalDeviceCount += mobilitySources[i].getTotalDeviceCount();\n\t\t}\n\t}", "public Shape(){\n\t\t//System.out.println(\"This is abstract class Shape\");\n\t}", "public MapView(GameModel model){\n this.model = model;\n this.images = new Images(model);\n this.visualizer = new VisualizerVisitor(this, zoomFactor);\n this.debug = new DebugVisitor(this, zoomFactor);\n this.modelMid = new DoubleVec(model.getFieldSizeX()*0.5,model.getFieldSizeY()*0.5);\n this.refPoint = modelMid;\n this.smallVisualizer = new SmallVisitor(this, 3);\n updateBoxes();\n }", "public abstract void initLayers();", "public GeotiffDataSource() {}", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "public void initialize(Model model){\r\n\t\tArrayList<String> elements = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < model.getElements().size(); i++){\r\n\t\t\telements.add(model.getElements().get(i).getId());\r\n\t\t}\r\n\t\t\r\n\t\tFeature base = new Feature(\"base\", \"mandatory\", \"root\", elements);\r\n\t\tthis.mandatoryFeatures.add(base);\r\n\t\tFeatureGroup variants = new FeatureGroup(\"variants\", \"alternative\", \"root\");\r\n\t\tthis.alternativeFeatureGroup.add(variants);\r\n\t\t\r\n\t\t//New 02/12/201/\r\n\t\tFeature newVariant = new Feature(model.getId()+\"_Variant\", \"variant\", this.alternativeFeatureGroup.get(0).getId());\r\n\t\tthis.addVariant(newVariant);\r\n\t\t//-New 02/12/201/\r\n\t}", "public NetworkSource() {\n }", "public TShapePanel() {\r\ncommonInitialization();\r\n }", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "public FareModel() {\n }", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "public Training() {\n\n }" ]
[ "0.64766383", "0.6010131", "0.5944773", "0.59106225", "0.5862607", "0.5749537", "0.56661344", "0.5619939", "0.56077975", "0.5540293", "0.5490369", "0.54537135", "0.5434417", "0.5385313", "0.533546", "0.5319963", "0.53099394", "0.52839696", "0.527933", "0.52689296", "0.52643794", "0.5203324", "0.5171893", "0.5164625", "0.5161757", "0.51447475", "0.51429695", "0.5129328", "0.5115112", "0.5108174", "0.5106445", "0.5098764", "0.50982845", "0.5085481", "0.50807565", "0.5049895", "0.5049596", "0.50495076", "0.5015942", "0.50105566", "0.50089866", "0.49878886", "0.49865556", "0.4982438", "0.49805817", "0.49734706", "0.49703887", "0.495789", "0.49569264", "0.49539894", "0.49498194", "0.49443707", "0.4929667", "0.49295917", "0.4924189", "0.4919436", "0.4912226", "0.4908848", "0.4905133", "0.4904917", "0.4904573", "0.49030516", "0.49015057", "0.48910305", "0.4889507", "0.4887355", "0.48826846", "0.48826846", "0.48765877", "0.4876009", "0.4872008", "0.4870806", "0.4868476", "0.48639914", "0.4856042", "0.48483768", "0.48483086", "0.4847643", "0.4846535", "0.48391557", "0.48262233", "0.4825134", "0.48219454", "0.48212388", "0.48209602", "0.48126188", "0.4810063", "0.4806726", "0.48052725", "0.48028743", "0.4794473", "0.47876474", "0.47871873", "0.4785488", "0.47827393", "0.47718215", "0.4769878", "0.4768795", "0.47570106", "0.47544628" ]
0.583043
5